Closed davidorme closed 2 months ago
pre-commit.ci run
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 95.23%. Comparing base (
89f8ff1
) to head (f810269
). Report is 2 commits behind head on develop.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@AmyOctoCat - the on approval profiling script was broken so it failed its own test when you approved it. Can you reapprove so we can see if that is now fixed.
@AmyOctoCat I wondered if something like that was needed, or maybe this: https://stackoverflow.com/a/71367604
@AmyOctoCat I wondered if something like that was needed, or maybe this: https://stackoverflow.com/a/71367604
Sorry David, only just noticed your comment, that looks like it should do the job. I'm hoping the last commit I pushed achieves something similar, but if it doesn't work, that'll be next port of call...
~It ran!~ Wait... too early
That worked! I'm not sure what happens with the actions here - I've seen this before and things just seem to hang for some reason.
Description
The issue #224 discusses a couple of ways to rethink when and how profiling is run. This PR implements two ways, so we can see how they pan out in parallel.
Updates the profiling workflow that runs on pushes to
develop
(so after a PR is merged) to correct a couple of minor structural issues and add a pull request to update the stats. The current implementation simply tries to push todevelop
but that isn't allowed.Adds a parallel implementation that (should) only run when a PR is reviewed and approved. This one then commits the updated files to the PR. I think we'll need to add the new action to the list of tests needed to merge.
So:
pyrealm_profiling_after_push.yaml: An approved PR is merged, the profiling and benchmarking runs and a second PR is created to add the updates (hopefully with a warning on failed tests).
π Only runs once. π Requires an extra PR, failing code is now in
develop
.π π€― Oh god, and I suppose it is going to start of another profiling run when it gets merged, which will... etc etc.
pyrealm_profiling_on_approve.yaml: An approved PR is merged, the profiling and benchmarking runs and a second PR is created to add the updates (hopefully with a warning on failed tests).
π Stops failing code making it into
develop
without fixing/justification, single PR. π Might run several times.Fixes #224 (maybe)
Type of change
Key checklist
pre-commit
checks:$ pre-commit run -a
$ poetry run pytest
Further checks