Skip to content

Commit fe64cb6

Browse files
authored
[matrix_benchmarking] library: visualize: don't skip the upload if a regression has been detected (#859)
… <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Uploads now proceed when the only blocker is a regression flag, while still blocking for other non-fatal errors—improves upload reliability. * **Chores** * Added an automated Python syntax check workflow for pull requests. * Updated CI workflow metadata and checkout action versions across several workflows. * Minor string-escaping fixes in a few scripts to prevent invalid escapes. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
2 parents f9e4df1 + 1f67ad2 commit fe64cb6

File tree

12 files changed

+43
-18
lines changed

12 files changed

+43
-18
lines changed

.github/workflows/ansible-lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ on:
1313
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1414
jobs:
1515
# This workflow contains a single job called "build"
16-
build:
16+
check_ansible_lint:
1717
# The type of runner that the job will run on
1818
runs-on: ubuntu-latest
1919

2020
steps:
2121
# Important: This sets up your GITHUB_WORKSPACE environment variable
22-
- uses: actions/checkout@v3
22+
- uses: actions/checkout@v4
2323

2424
- name: Set ANSIBLE_ROLES_PATH
2525
run: |

.github/workflows/build_docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ on:
88
- cron: '0 */8 * * *'
99

1010
jobs:
11-
build:
11+
build_docs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
max-parallel: 4
1515
matrix:
1616
python-version: [3.9]
1717
steps:
1818
- name: Use checkout
19-
uses: actions/checkout@v3
19+
uses: actions/checkout@v4
2020
with:
2121
fetch-depth: 0
2222

.github/workflows/check_consistency.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ on:
1111
- cron: '0 */8 * * *'
1212

1313
jobs:
14-
build:
14+
check_topsail_consistency:
1515
runs-on: ubuntu-latest
1616

1717
steps:
18-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v4
1919
with:
2020
fetch-depth: 0
2121

.github/workflows/check_generated_ansible.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ on:
1111
- cron: '0 */8 * * *'
1212

1313
jobs:
14-
build:
14+
check_generated_ansible:
1515
runs-on: ubuntu-latest
1616

1717
steps:
18-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v4
1919
with:
2020
fetch-depth: 0
2121

.github/workflows/check_generated_toolbox_rst.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ on:
1111
- cron: '0 */8 * * *'
1212

1313
jobs:
14-
build:
14+
check_generated_rst:
1515
runs-on: ubuntu-latest
1616

1717
steps:
18-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v4
1919
with:
2020
fetch-depth: 0
2121

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Check the Python syntax
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
jobs:
7+
check_python_syntax:
8+
runs-on: ubuntu-latest
9+
strategy:
10+
max-parallel: 4
11+
matrix:
12+
python-version: [3.9]
13+
steps:
14+
- name: Use checkout
15+
uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
19+
- name: Check that all the files can be compiled
20+
run: |
21+
set -o pipefail
22+
set -o errexit
23+
24+
python -m compileall . | (grep -v -E '(^Listing|^Compiling)' || true)

.github/workflows/check_wip.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ on:
55
branches: [main]
66

77
jobs:
8-
build:
8+
check_wip:
99
runs-on: ubuntu-latest
1010

1111
steps:
12-
- uses: actions/checkout@v3
12+
- uses: actions/checkout@v4
1313
with:
1414
fetch-depth: 0
1515

projects/core/library/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,13 +390,13 @@ def test_skip_list():
390390
if exec_this_subcommand is False:
391391
logging.fatal(f"Subcommand '{current_subcommand}' is disabled in the exec list. Stopping happily this execution.")
392392
with open(env.ARTIFACT_DIR / "SKIPPED", "w") as f:
393-
print("Skipped because part of the \skip list", file=f)
393+
print("Skipped because part of the \\skip list", file=f)
394394
raise SystemExit(0)
395395

396396
if exec_this_subcommand is not True and exec_list.get("_only_", False):
397397
logging.fatal(f"Only flag is set, and subcommand '{current_subcommand}' is not enabled in the exec list. Stopping happily this execution.")
398398
with open(env.ARTIFACT_DIR / "SKIPPED", "w") as f:
399-
print("Skipped because not part of the \only list", file=f)
399+
print("Skipped because not part of the \\only list", file=f)
400400

401401
raise SystemExit(0)
402402

projects/deprecated/notebooks/toolbox/notebooks_locust_scale_test/files/locust-files/entrypoint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
-outfile $ARTIFACT_DIR/{LOCUST_FILE_PREFIX}_report.html \
2929
"
3030

31-
REMOVE_NA_CMD = "sed -i '/N\/A/d' {file}"
31+
REMOVE_NA_CMD = r"sed -i '/N\/A/d' {file}"
3232

3333
artifacts_directory = pathlib.Path(os.getenv("ARTIFACT_DIR"))
3434

projects/deprecated/notebooks/toolbox/notebooks_locust_scale_test/files/locust-files/jupyterlab.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def get_jupyterlab_page(self, base_url):
111111

112112
soup = BeautifulSoup(response.text, features="lxml")
113113
if soup.title and soup.title.text == "JupyterLab":
114-
logging.info(f"Reached JupyterLab page \o/")
114+
logging.info(f"Reached JupyterLab page \\o/")
115115

116116
elif soup.title and "Log in" in soup.title.text:
117117
raise common.ScaleTestError(f"JupyterLab home page failed to load properly... (still on the login page)",

0 commit comments

Comments
 (0)