mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 17:50:20 +00:00
Merge pull request #65659 from s0undt3ch/hotfix/coverage
[3006.x] Stop trying when codecov replies with `Too many uploads to this commit`
This commit is contained in:
commit
2efde6f0ab
1 changed files with 14 additions and 0 deletions
14
tools/ci.py
14
tools/ci.py
|
@ -1214,8 +1214,22 @@ def upload_coverage(ctx: Context, reports_path: pathlib.Path, commit_sha: str =
|
||||||
"--flags",
|
"--flags",
|
||||||
flags,
|
flags,
|
||||||
check=False,
|
check=False,
|
||||||
|
capture=True,
|
||||||
)
|
)
|
||||||
|
stdout = ret.stdout.strip().decode()
|
||||||
|
stderr = ret.stderr.strip().decode()
|
||||||
if ret.returncode == 0:
|
if ret.returncode == 0:
|
||||||
|
ctx.console_stdout.print(stdout)
|
||||||
|
ctx.console.print(stderr)
|
||||||
|
break
|
||||||
|
|
||||||
|
if (
|
||||||
|
"Too many uploads to this commit" in stdout
|
||||||
|
or "Too many uploads to this commit" in stderr
|
||||||
|
):
|
||||||
|
# Let's just stop trying
|
||||||
|
ctx.console_stdout.print(stdout)
|
||||||
|
ctx.console.print(stderr)
|
||||||
break
|
break
|
||||||
|
|
||||||
if current_attempt >= max_attempts:
|
if current_attempt >= max_attempts:
|
||||||
|
|
Loading…
Add table
Reference in a new issue