-
Notifications
You must be signed in to change notification settings - Fork 757
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
[C3] chore: fix dependabot so that it used the correct package version #5151
Conversation
|
A wrangler prerelease is available for testing. You can install this latest build in your project with: npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8176127369/npm-package-wrangler-5151 You can reference the automatically updated head of this PR with: npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/prs/5151/npm-package-wrangler-5151 Or you can use npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8176127369/npm-package-wrangler-5151 dev path/to/script.js Additional artifacts:npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8176127369/npm-package-create-cloudflare-5151 --no-auto-update npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8176127369/npm-package-cloudflare-kv-asset-handler-5151 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8176127369/npm-package-miniflare-5151 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8176127369/npm-package-cloudflare-pages-shared-5151 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8176127369/npm-package-cloudflare-vitest-pool-workers-5151 Note that these links will no longer work once the GitHub Actions artifact expires.
Please ensure constraints are pinned, and |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5151 +/- ##
==========================================
+ Coverage 70.31% 70.36% +0.04%
==========================================
Files 298 298
Lines 15550 15567 +17
Branches 4000 4007 +7
==========================================
+ Hits 10934 10953 +19
+ Misses 4616 4614 -2 |
@@ -55,7 +55,8 @@ jobs: | |||
- name: Checkout Repo | |||
uses: actions/checkout@v3 | |||
with: | |||
fetch-depth: 0 | |||
fetch-depth: 3 | |||
ref: ${{ github.head_ref }} |
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.
I think the correct fix is to change the trigger to pull_request
rather than pull_request_target
, which according to the docs runs the job in the context of the base of the PR rather than the HEAD.
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.
sounds reasonable to me, thanks 🙂
I've update the trigger, please have another look 🙏
…_target and remove unnecessary refs
@@ -55,7 +60,7 @@ jobs: | |||
- name: Checkout Repo | |||
uses: actions/checkout@v3 | |||
with: | |||
fetch-depth: 0 |
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.
Note: 0
would also work but it seems quite unnecessary in my opinion since it fetches everything (https://github.com/actions/checkout)
but I'm happy to use 0
if we find it more clear/robust and don't care about the extra fetching, please let me know what you think 🙂
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've been going with 0 because it guarantees that all the tags are also there, and generally no one is complaining about performance. So I would err on that side. It is very confusing if something is missing from the cloned repo because the errors are a bit vague.
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.
ok, changed to 0
🙂👍
@@ -55,7 +60,7 @@ jobs: | |||
- name: Checkout Repo | |||
uses: actions/checkout@v3 | |||
with: | |||
fetch-depth: 0 |
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've been going with 0 because it guarantees that all the tags are also there, and generally no one is complaining about performance. So I would err on that side. It is very confusing if something is missing from the cloned repo because the errors are a bit vague.
What this PR solves / how to test
Currently our dependabot workflow is flawed and uses outdated version of framework
CLIs as you can see from this PR's description: #5149
This is due to the wrong checkout performed in the
e2e-only-dependabot-bumped-framework
step which uses the version of the package.json file frommain
instead of getting the updated one.This PR fixes such behavior.
Author has addressed the following