fix(e2e): fix EACCES permission denied from envtest binaries on self-hosted runners (RHOAIENG-55511)#6921
Conversation
…hosted runners (RHOAIENG-55511) BFF startup downloads setup-envtest k8s binaries with read-only permissions into packages/*/bff/bin/k8s/. On the next e2e run, actions/checkout cannot clean the workspace, causing EACCES errors. Fix by chmod-ing read-only envtest files before checkout and after BFF shutdown.
|
Important Review skippedReview was skipped due to path filters ⛔ Files ignored due to path filters (1)
CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including ⚙️ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited), Organization UI (inherited) Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Testing the workflow dispatch in https://github.com/opendatahub-io/odh-dashboard/actions/runs/23612109185 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6921 +/- ##
==========================================
+ Coverage 64.43% 64.45% +0.01%
==========================================
Files 2503 2503
Lines 76998 77046 +48
Branches 19117 19137 +20
==========================================
+ Hits 49615 49660 +45
- Misses 27383 27386 +3 see 29 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
https://issues.redhat.com/browse/RHOAIENG-55511
Description
After PR #6865 enabled Make + Go on CI so BFF services actually start, the
make runtarget in every BFF Makefile downloadssetup-envtestbinaries (etcd, kube-apiserver, kubectl) with read-only permissions intopackages/*/bff/bin/k8s/. On the next e2e run on the same self-hosted Fedora runner,actions/checkout@v4(which defaults toclean: true) tries togit clean -ffdxthe workspace but cannot remove the read-only files, failing with EACCES and blocking subsequent CI runs.This fix adds two defensive
find ... chmod u+wcommands in the CI workflow:git cleansucceeds.Both commands use
2>/dev/null || trueso they are safe even when the paths don't exist.How Has This Been Tested?
findcommand correctly targets only files lacking user-write permission underpackages/*/bff/bin|| true) and cannot break existing runs even if no matching files existTest Impact
No new tests are needed — this is a CI workflow-only change that fixes file permission handling on self-hosted runners. The fix is transparent to all existing tests.
Request review criteria:
Self checklist (all need to be checked):
After the PR is posted & before it merges:
main