Skip to content

Commit df052e7

Browse files
authored
Upstream CI: limit runtime (#4946)
* Upstream CI: limit runtime * [test-upstream] run upstream * Update .github/workflows/upstream-dev-ci.yaml * [test-upstream] run upstream * [test-upstream] limit to 60 s * [test-upstream] update parse_logs.py * [test-upstream] run upstream
1 parent 0f65307 commit df052e7

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.github/workflows/parse_logs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def extract_short_test_summary_info(lines):
1818
)
1919
up_to_section_content = itertools.islice(up_to_start_of_section, 1, None)
2020
section_content = itertools.takewhile(
21-
lambda l: l.startswith("FAILED"), up_to_section_content
21+
lambda l: l.startswith("FAILED") or l.startswith("ERROR"), up_to_section_content
2222
)
2323
content = "\n".join(section_content)
2424

.github/workflows/upstream-dev-ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
id: status
7878
run: |
7979
set -euo pipefail
80-
python -m pytest -rf | tee output-${{ matrix.python-version }}-log || (
80+
python -m pytest --timeout=60 -rf | tee output-${{ matrix.python-version }}-log || (
8181
echo '::set-output name=ARTIFACTS_AVAILABLE::true' && false
8282
)
8383
- name: Upload artifacts

ci/install-upstream-wheels.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ conda uninstall -y --force \
1616
pint \
1717
bottleneck \
1818
sparse
19+
# to limit the runtime of Upstream CI
20+
python -m pip install pytest-timeout
1921
python -m pip install \
2022
-i https://pypi.anaconda.org/scipy-wheels-nightly/simple \
2123
--no-deps \

0 commit comments

Comments
 (0)