-
Notifications
You must be signed in to change notification settings - Fork 11
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
switching checkout repo; fixing bug in branch checkout #131
Conversation
i completely agree that the test would look like one of the other
|
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.
lets try writing the test for checkout
, and see if github will let us run it in CI/CD.
if github doesn't, learning how to skip the test if python notices it's running in a CI/CD is also a good thing, i imagine.
Thank you for the review! I know that it's possible to skip all tests when
pushing, but skipping an individual one via the git commands is another
matter.
I'd also like to check for something more than is-present and is-not-empty
- the bugfix is in response to checking out the wrong branch (was
hard-coded to "main"). This might be a misuse of the "protected branch"
function - but if we kept around a branch that wasn't named "main" in the
workflows repo, I can check against that to make sure that the checks are
working.
(And the branch-specific checkouts are needed for running the workflow
regtests - you need to have the current branch you are referring to
referenced by the checkout, not the main branch of the workflows repo.
Getting the checkout tests working here is an incremental step towards
getting the workflow tests working there.)
…On Fri, Jul 26, 2024 at 10:06 AM Ian ***@***.***> wrote:
***@***.**** requested changes on this pull request.
lets try writing the test for checkout, and see if github will let us run
it in CI/CD.
if github doesn't, learning how to skip the test if python notices it's
running in a CI/CD is also a good thing, i imagine.
—
Reply to this email directly, view it on GitHub
<#131 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AC362WQLCPH4PYXLAMULL73ZOJJXBAVCNFSM6AAAAABLP3QYJCVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDEMBRHE2TEMRVHE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
Carolyn Whitlock
|
> I'd also like to check for something more than is-present and is-not-empty admirable- but lets grapple with that after we author a basic check! a simple, yet imperfect check, is better than no check! > the bugfix is in response to checking out the wrong branch (was hard-coded to "main"). what bug? confused! > This might be a misuse of the "protected branch" function - but if we kept around a branch that wasn't named "main" in the workflows repo, I can check against that to make sure that the checks are working. still confused. we do expect to have more than one branch for the workflows repo in general FYI. > And the branch-specific checkouts are needed for running the workflow regtests - you need to have the current branch you are referring to referenced by the checkout, not the main branch of the workflows repo. Getting the checkout tests working here is an incremental step towards getting the workflow tests working there. let's start with any branch checkout being tested first, merge this code in with that check ASAP if possible, and then we can |
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.
Looks good to me. It's possible we want to eventually make the default tag the same tag of fre-cli, like 2024.01
. The main
branch might be too cutting edge someday once people are using the definitions.
Completely agree with @ilaflott 's suggestions for increasing test coverage for fre pp checkout. |
For now, I don't think we should (or can, really) validate which branch |
I noted the desired tests in a new issue, #136. I'm going to merge this small update since we need it for fre/2024.01 |
Describe your changes
Replaced gitlab checkout with github checkout; fixed bug in checkout that hard-coded branch="main"
Issue ticket number and link (if applicable)
Checklist before requesting a review
This probably does deserve a pytest test for teh branch checkout, but that's another to-do item