openubmc-bingo 0.6.11__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 CHANGED
@@ -9,4 +9,4 @@
9
9
  # MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
10
10
  # See the Mulan PSL v2 for more details.
11
11
 
12
- __version__ = '0.6.11'
12
+ __version__ = '0.6.13'
@@ -90,30 +90,37 @@ class BuildConans(object):
90
90
  options += f" -s {name}={value}"
91
91
 
92
92
  cmd = f"conan install --requires={node.ref} {self.cmd} {options}"
93
- cmd += f" --build=\"{node.name}/*\" --build=missing -f json --lockfile={self.lockfile}"
93
+ cmd += f" --build=missing -f json --lockfile={self.lockfile}"
94
+ if self.force_build:
95
+ cmd += f" --build=\"{node.name}/*\""
94
96
  try:
95
- logfile = f"{self.log_dir}/conan_build_{node.name}.log"
96
- log.debug(f">>>> {cmd}")
97
- log.info(f">>>> build {node.ref} start, logfile: {logfile}")
98
- with os.fdopen(os.open(logfile, os.O_RDWR | os.O_CREAT, stat.S_IWUSR | stat.S_IRUSR), "a+") as f:
99
- real_cmd = shlex.split(cmd)
100
- pipe = subprocess.Popen(real_cmd, stdout=f, stderr=f)
101
- start_time = time.time()
102
- while True:
103
- if pipe.poll() is not None:
104
- break
105
- # 1800秒超时
106
- if time.time() - start_time > 1800:
107
- pipe.kill()
108
- raise errors.BmcGoException(f"================== {node.name} 构建超时 ==================")
109
- time.sleep(1)
110
- if pipe.returncode != 0:
111
- log.error(f"================== {node.name} 构建失败日志起始位置 ==================")
112
- f.seek(0)
113
- conan_log = f.read()
114
- log.error(conan_log)
115
- log.error(f"================== {node.name} 构建失败日志结束位置 ==================")
116
- raise errors.BmcGoException(f"================== {node.name} 构建失败 ==================")
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} 构建失败 ==================")
117
124
  log.success(f"<<<< build {node.ref} finished")
118
125
  except Exception as e:
119
126
  self.exception = e
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: openubmc-bingo
3
- Version: 0.6.11
3
+ Version: 0.6.13
4
4
  Summary: Tools provided by openubmc
5
5
  Home-page: https://openubmc.cn
6
6
  Classifier: Programming Language :: Python :: 3
@@ -1,4 +1,4 @@
1
- bmcgo/__init__.py,sha256=f9jG-AQzuUOV5FcUHlWTuKHojRVWOYy0WRWLjzY7f68,562
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=1kugt48GRf2P-IilkxFSBTl3i8_Xk5EB4cN2LeuZZJY,9330
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.11.dist-info/METADATA,sha256=GwLK6z6A84kM7Yl82K0fVA31QClRhg6EIKLJGuYubhI,1010
268
- openubmc_bingo-0.6.11.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
269
- openubmc_bingo-0.6.11.dist-info/entry_points.txt,sha256=UUoUP-vAWTgg9vEYbRwYqOBHgpRtkngdzMPb-ocz90g,42
270
- openubmc_bingo-0.6.11.dist-info/top_level.txt,sha256=9AcvCAt1nZcOgMsGt6T07mg2Bgtdet-3mHTwg91axgI,6
271
- openubmc_bingo-0.6.11.dist-info/RECORD,,
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,,