ci: run generate-idl before verified build#70
Merged
Conversation
The build-verified action runs solana-verify inside a Docker container as root, leaving the workspace target/ directory root-owned. The subsequent Generate IDL step (cargo check as the runner user) then failed with "Permission denied (os error 13)" trying to create target/debug. Reorder so IDL generation runs before the Docker build. IDL generation has no dependency on the verified .so artifact, so the swap is safe and avoids a sudo chown workaround.
Compute Unit Report
Generated: 2026-04-30 |
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.
Summary
Generate IDLto run beforeBuild verified programinrelease.yml.Generate IDLwithPermission deniedwhen creatingtarget/debug.Root Cause
solana-developers/github-actions/build-verifiedrunssolana-verifyinside a Docker container as root, leavingtarget/root-owned on the runner. The next step (Generate IDL→cargo checkas the runner user) cannot createtarget/debugand fails withos error 13.The
subscriptions/subscriptionssegment in the error path is the standard GitHub Actions checkout layout (/home/runner/work/<repo>/<repo>/), not a duplicated path bug.IDL generation has no dependency on the verified
.soartifact, so swapping the order is safe and avoids asudo chownworkaround tied to action internals.Test Plan
Releaseworkflow manually againstdevnetfrom this branch.Generate IDLstep succeeds and producesidl/subscriptions.json.Build verified programandWrite program buffercontinue to succeed.Failing run for reference: https://github.com/solana-program/subscriptions/actions/runs/25178325752