Fix error when adding files to existing PR with --update-pr and refactor + fixes in options tests#4962
Merged
boegel merged 13 commits intoeasybuilders:developfrom Aug 1, 2025
Conversation
e9b8739 to
bf90425
Compare
bf90425 to
973aaec
Compare
329eba1 to
da20a23
Compare
da20a23 to
bde2f1a
Compare
options tests
options tests--update-pr and refactor + fixes in options tests
boegel
requested changes
Aug 1, 2025
boegel
requested changes
Aug 1, 2025
…in test_github_new_update_pr
boegel
previously approved these changes
Aug 1, 2025
Member
boegel
left a comment
There was a problem hiding this comment.
lgtm, will merge when CI gives green light after two very small changes to options test suite...
Member
|
One of the tests that's only run when a GitHub token is available was failing: That's fixed in 563828f |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
(created using
eb --new-pr)When only adding files to an existing PR (e.g. missing dependencies) the first check requires a commit message and this one requires NO commit message unless
--forceis given.Remove the requirement when there is a source-branch (i.e. update-pr and update-branch) (in first commit)
I added tests for verifying the behavior is still correct (2nd and 3rd commit).
During that I noticed some issues in the tests which are present throughout the file so I did a (mostly search&replace) refactoring for the asserts using regexs
By that I noticed a test that didn't really test much: Matching the list of easyblocks, which contains
|-- barin the regex means that ANY match (e.g.--bar) is sufficient due to the missing escaping. But we wanted to test the full text for which we don't even need a regex but a simpleassertInSee the last commit which adds 23(!!!) missing lines
edit: fixes #4963