Skip to content

Upstream CI: limit runtime - #4946

Merged
mathause merged 8 commits into
pydata:masterfrom
mathause:upstream_max_5h
Feb 23, 2021
Merged

Upstream CI: limit runtime#4946
mathause merged 8 commits into
pydata:masterfrom
mathause:upstream_max_5h

Conversation

@mathause

Copy link
Copy Markdown
Collaborator

Try to limit the time of "CI Upstream" to avoid a silent failure.

@mathausemathause changed the title Upstream max 5hUpstream CI: limit runtimeFeb 23, 2021
@keewis

Copy link
Copy Markdown
Collaborator

you can probably limit that to 1.5h or 2h: our CI currently takes about 30 minutes to run so if it suddenly takes more than double there is something wrong, anyway

Comment thread.github/workflows/upstream-dev-ci.yaml Outdated
@keewis

Copy link
Copy Markdown
Collaborator

I seem to have misunderstood the purpose of --timeout: as far as I can tell, if a single test takes more than the value passed to it, a Failed instance is raised. As we don't have tests that should run more than 30s (I think?), we can safely set it to 2min.

Comment thread.github/workflows/upstream-dev-ci.yaml Outdated
@keewis

keewis commented Feb 23, 2021

Copy link
Copy Markdown
Collaborator

The test status becomes ERROR, so the parsing script will not collect those. To fix that, could you also change

lambdal: l.startswith("FAILED"), up_to_section_content
to

lambdal: l.startswith("FAILED") orl.startswith("ERROR"), up_to_section_content

@mathause

Copy link
Copy Markdown
CollaboratorAuthor

The timeout seems to work. If there are too many tests that take long the solution might not help but for the current problem it seems to be fine. I am merging so we catch the Upstream dev run in 1.5 h to see if the test now fails successfully ;-)

@mathause
mathause merged commit df052e7 into pydata:masterFeb 23, 2021
@mathause
mathause deleted the upstream_max_5h branch February 23, 2021 22:37
@mathausemathause mentioned this pull request Feb 24, 2021
@mathause

Copy link
Copy Markdown
CollaboratorAuthor

Thanks for the reviews @keewis

dcherian added a commit to dcherian/xarray that referenced this pull request Mar 8, 2021
* upstream/master: (46 commits)
pin netCDF4=1.5.3 in min-all-deps (pydata#4982)
fix matplotlib errors for single level discrete colormaps (pydata#4256)
Adapt exception handling in CFTimeIndex.__sub__ and __rsub__ (pydata#5006)
Update options.py (pydata#5000)
Adjust tests to use updated pandas syntax for offsets (pydata#4537)
add a combine_attrs parameter to Dataset.merge (pydata#4895)
Support for dask.graph_manipulation (pydata#4965)
raise on passing axis to Dataset.reduce methods (pydata#4940)
Whatsnew for 0.17.1 (pydata#4963)
Refinements to how-to-release (pydata#4964)
DOC: add example for reindex (pydata#4956)
DOC: rm np import (pydata#4949)
Add 0.17.0 release notes (pydata#4953)
document update as inplace (pydata#4932)
bump the dependencies (pydata#4942)
Upstream CI: limit runtime (pydata#4946)
typing for numpy 1.20 (pydata#4878)
Use definition of DTypeLike from Numpy if found (pydata#4941)
autoupdate mypy (pydata#4943)
Add DataArrayCoarsen.reduce and DatasetCoarsen.reduce methods (pydata#4939)
...
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@mathause@keewis