-
Notifications
You must be signed in to change notification settings - Fork 331
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
fix: downstream tests assume release branch was cut #3047
Conversation
@asr2003: The label(s) In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Hi @asr2003. Thanks for your PR. I'm waiting for a knative member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
- name: Checkout downstream with fallback branch | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ env.BRANCH }} | ||
repository: ${{ matrix.repo }} | ||
path: downstream |
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.
We can skip this step if the earlier checkout succeeded
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.
Might be simpler to not use the env var and collapse the steps into something like this
- name: Checkout downstream with fallback branch
if: steps.checkout-downstream.outcome == 'failure'
uses: actions/checkout@v4
with:
ref: main
repository: ${{ matrix.repo }}
path: downstream
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.
Simplified steps as changes suggested
Sure, I will make incorporate the requested changes |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3047 +/- ##
=======================================
Coverage 78.73% 78.73%
=======================================
Files 189 189
Lines 8872 8872
=======================================
Hits 6985 6985
Misses 1621 1621
Partials 266 266 ☔ View full report in Codecov by Sentry. |
/ok-to-test thanks |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: asr2003, dprotaso The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Changes
🐛 Fix bug of release branch cut:
Added following additional steps to downstream.yaml for the scenario if the checkout fails - it should fallback and checkout the main branch downstream
/kind enhancement
cc: @dprotaso