openubmc-bingo 0.6.12__py3-none-any.whl → 0.6.13__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of openubmc-bingo might be problematic. Click here for more details.
- bmcgo/__init__.py +1 -1
- bmcgo/utils/build_conans.py +27 -22
- {openubmc_bingo-0.6.12.dist-info → openubmc_bingo-0.6.13.dist-info}/METADATA +1 -1
- {openubmc_bingo-0.6.12.dist-info → openubmc_bingo-0.6.13.dist-info}/RECORD +7 -7
- {openubmc_bingo-0.6.12.dist-info → openubmc_bingo-0.6.13.dist-info}/WHEEL +0 -0
- {openubmc_bingo-0.6.12.dist-info → openubmc_bingo-0.6.13.dist-info}/entry_points.txt +0 -0
- {openubmc_bingo-0.6.12.dist-info → openubmc_bingo-0.6.13.dist-info}/top_level.txt +0 -0
bmcgo/__init__.py
CHANGED
bmcgo/utils/build_conans.py
CHANGED
|
@@ -94,28 +94,33 @@ class BuildConans(object):
|
|
|
94
94
|
if self.force_build:
|
|
95
95
|
cmd += f" --build=\"{node.name}/*\""
|
|
96
96
|
try:
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
97
|
+
for i in range(1, 2):
|
|
98
|
+
logfile = f"{self.log_dir}/conan_build_{node.name}.log"
|
|
99
|
+
log.debug(f">>>> {cmd}")
|
|
100
|
+
log.info(f">>>> build {node.ref} start, logfile: {logfile}")
|
|
101
|
+
with os.fdopen(os.open(logfile, os.O_RDWR | os.O_CREAT, stat.S_IWUSR | stat.S_IRUSR), "a+") as f:
|
|
102
|
+
real_cmd = shlex.split(cmd)
|
|
103
|
+
pipe = subprocess.Popen(real_cmd, stdout=f, stderr=f)
|
|
104
|
+
start_time = time.time()
|
|
105
|
+
while True:
|
|
106
|
+
if pipe.poll() is not None:
|
|
107
|
+
break
|
|
108
|
+
# 1800秒超时
|
|
109
|
+
if time.time() - start_time > 1800:
|
|
110
|
+
pipe.kill()
|
|
111
|
+
raise errors.BmcGoException(f"================== {node.name} 构建超时 ==================")
|
|
112
|
+
time.sleep(1)
|
|
113
|
+
if pipe.returncode != 0:
|
|
114
|
+
# 首次增量构建失败时切换到源码构建模式
|
|
115
|
+
if i == 1 and not self.force_build:
|
|
116
|
+
cmd += f" --build=\"{node.name}/*\""
|
|
117
|
+
|
|
118
|
+
log.error(f"================== {node.name} 构建失败日志起始位置 ==================")
|
|
119
|
+
f.seek(0)
|
|
120
|
+
conan_log = f.read()
|
|
121
|
+
log.error(conan_log)
|
|
122
|
+
log.error(f"================== {node.name} 构建失败日志结束位置 ==================")
|
|
123
|
+
raise errors.BmcGoException(f"================== {node.name} 构建失败 ==================")
|
|
119
124
|
log.success(f"<<<< build {node.ref} finished")
|
|
120
125
|
except Exception as e:
|
|
121
126
|
self.exception = e
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
bmcgo/__init__.py,sha256=
|
|
1
|
+
bmcgo/__init__.py,sha256=Uh6sIl54OeKW_-VdwePJtnT2PnzcqBgPSynw8oQA4HQ,562
|
|
2
2
|
bmcgo/bmcgo.py,sha256=uD4TsfjrFB5aQPIS6WRUVc9ShXX-dSImY9ezkB13g1w,685
|
|
3
3
|
bmcgo/bmcgo_config.py,sha256=-HZcTsnccE5wUsgGJ59kq8sDdu8feftIbpyoFvyvBhU,11264
|
|
4
4
|
bmcgo/errors.py,sha256=QW1ndrJcJ2Ws7riOznPKVvZsNlrYk73eZol7w8gJTPU,3076
|
|
@@ -241,7 +241,7 @@ bmcgo/tasks/conan/conanfile.py,sha256=MI6c2QNKixrkA5Tx4i9EKw7bZ20GVDIKgkaMwNHQKc
|
|
|
241
241
|
bmcgo/utils/__init__.py,sha256=BDXz8BcSlCkfo5UYt6j2rm89-HiYA1ZzfpFhy99MH-0,538
|
|
242
242
|
bmcgo/utils/basic_enums.py,sha256=L5VtHtzSvs6duAnphgqDGXX80Wit3Y7DjMlpi9MCxyI,1348
|
|
243
243
|
bmcgo/utils/buffer.py,sha256=t1SkWntWksboNFMPsltslwRdXZi3FAe8eV0JAAE7Vto,4004
|
|
244
|
-
bmcgo/utils/build_conans.py,sha256
|
|
244
|
+
bmcgo/utils/build_conans.py,sha256=-60beCS_TqAdlFvmL5aAEm8MtNX6hcGa-PIdtB3RCj4,9711
|
|
245
245
|
bmcgo/utils/combine_json_schemas.py,sha256=08JrAlLeo_JgUqzYcZNgSwJZPLfjbWVJ4esPPt9bPMY,7967
|
|
246
246
|
bmcgo/utils/component_post.py,sha256=rTSMv36geI6rbm6ZFQenZfG0mn1nVPpdJqn7g8bYtKA,2330
|
|
247
247
|
bmcgo/utils/component_version_check.py,sha256=nKfav7EnJ_JWfCvH_SiyhhIapGXUzhFs1QvLb58MPBs,6266
|
|
@@ -264,8 +264,8 @@ bmcgo/utils/installations/install_plans/qemu.yml,sha256=lT7aKag60QUH6hTGFKa3hGRq
|
|
|
264
264
|
bmcgo/utils/installations/install_plans/studio.yml,sha256=APR3GM-3Q11LFfe8vh7t3LztDn4LLEpNHRUNjkaVekA,143
|
|
265
265
|
bmcgo/utils/installations/installers/apt_installer.py,sha256=nPaCb4cobSi9InN_aHsEPtQ0k4FgsCUWE5_VgBPvcRE,3769
|
|
266
266
|
bmcgo/utils/installations/installers/pip_installer.py,sha256=dDdios1EQ7fzt90r02pZeoM3jCmjslLzkSvzd2hgRVM,3241
|
|
267
|
-
openubmc_bingo-0.6.
|
|
268
|
-
openubmc_bingo-0.6.
|
|
269
|
-
openubmc_bingo-0.6.
|
|
270
|
-
openubmc_bingo-0.6.
|
|
271
|
-
openubmc_bingo-0.6.
|
|
267
|
+
openubmc_bingo-0.6.13.dist-info/METADATA,sha256=5np_r3mkW_I_pGTIl4TJWGclGljGW10m7yqFh-kyu9g,1010
|
|
268
|
+
openubmc_bingo-0.6.13.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
|
269
|
+
openubmc_bingo-0.6.13.dist-info/entry_points.txt,sha256=UUoUP-vAWTgg9vEYbRwYqOBHgpRtkngdzMPb-ocz90g,42
|
|
270
|
+
openubmc_bingo-0.6.13.dist-info/top_level.txt,sha256=9AcvCAt1nZcOgMsGt6T07mg2Bgtdet-3mHTwg91axgI,6
|
|
271
|
+
openubmc_bingo-0.6.13.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|