-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check out correct ref in "pytest" CI workflow #288
Conversation
e5c3e5c
to
a146e52
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #288 +/- ##
========================================
+ Coverage 65.7% 77.0% +11.3%
========================================
Files 213 213
Lines 16463 16512 +49
========================================
+ Hits 10817 12724 +1907
+ Misses 5646 3788 -1858
|
2d3e671
to
908ba95
Compare
908ba95
to
57f61f9
Compare
57f61f9
to
6a45549
Compare
6a45549
to
9304f3d
Compare
9304f3d
to
9b68976
Compare
9b68976
to
a830aff
Compare
a830aff
to
4c205a6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me except for the failing tests. Are these errors just flaky? I'll try rerunning them.
Other than that, I'm just wondering if test times are getting somewhat out of hand and if there's anything we can do about that. For v3.8.0, the macos test failed after 43 minutes.
Seems not, but I'm baffled why they'd fail on macOS and not on others. I'll investigate. |
f99a4c9
to
e75aaf3
Compare
Okay, something very strange is happening on macOS. Comparing this run (failing) to this run (passing), I see:
versus
In other words, this clone():
…somehow, on macOS, returns a different scenario with R11 nodes instead of R12 🤔 |
4dbed6b
to
50f6fde
Compare
66e2410
to
e20d275
Compare
e20d275
to
9a130e9
Compare
As mentioned on Slack, I've put the following in if (
GHA
and platform.system() == "Darwin"
and identify_nodes(result) != context.model.regions
):
pytest.xfail(
reason="Known issue on GitHub Actions macOS runners: result has nodes "
f"{identify_nodes(result) = !r} != {identify_nodes(res) = !r} == "
f"{context.model.regions = !r}"
) …until time is available to get to the bottom of the cause. I have a vague suspicion it may be due to using pytest-xdist, but since I don't use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this cleanup :)
Thanks! So with the approval and this run in which all checks pass, I will rebase to drop the "TEMPORARY" commit and then immediately merge. |
…according to the version policy.
- Set units for 'output' param in .ldv.prepare_tech_econ().
- Use repr(ConfigHelper) in Context.asdict() to avoid RecursionError that occurs when context.transport.spec.add.set["technology"] elements have parent/child relationships. - Handle Enum, Quantity, self in .util.cache. - Log a verbose message on error. - Only use ._util.dataclasses._asdict() on Python <3.13. - Expand tests.
On GHA and macOS (only), Scenario.clone(...) returns a scenario with different 'node' elements than the original. Xfail these cases until the root cause can be identified and fixed.
9a130e9
to
9d3064b
Compare
To confirm all is right after the merge, I've rebased #279 which starts this workflow run and will monitor to ensure that the jobs all succeed. |
✅ |
#281 shifted the main event trigger for the "pytest" CI workflow from pull_request to pull_request_target. However, it erroneously omitted to explicitly specify the ref to be checked out. This is necessary because actions/checkout (and in this repo also francisbilham11/action-cached-lfs-checkout) will default to checking out $GITHUB_REF; for the pull_request_target event, this is the base branch commit, unlike for pull_request, where it is the source branch commit.
As a consequence of this, when merging #259, the "pytest" workflow appeared to pass, but this was in fact running the tests on
main
, while the tests did not all pass on the PR branch. Thus when #279 #282 were updated with rebase, they picked up these failing tests.This PR:
And also:
How to review
PR checklist
Add, expand, or update documentation.N/A