Skip to content

fix(rsky-pds): clone exact PR commit so new workspace members are included#189

Open
afbase wants to merge 4 commits into
feat/rsky-graph-incremental-savefrom
fix/rsky-pds-dockerfile-rsky-graph
Open

fix(rsky-pds): clone exact PR commit so new workspace members are included#189
afbase wants to merge 4 commits into
feat/rsky-graph-incremental-savefrom
fix/rsky-pds-dockerfile-rsky-graph

Conversation

@afbase
Copy link
Copy Markdown
Collaborator

@afbase afbase commented May 23, 2026

Summary

  • Replaces git clone --depth 1 ... main with ARG COMMIT_SHA + git init/fetch/checkout FETCH_HEAD so the Docker build always clones the exact commit under test
  • Passes COMMIT_SHA=${{ github.event.pull_request.head.sha || github.sha }} as a build-arg in both the fork and non-fork build steps in rust.yml

Why

When a PR adds a new workspace member (e.g. rsky-graph), the old approach cloned origin/main, which doesn't have that member yet. Cargo then failed to resolve the workspace because Cargo.toml referenced a crate directory that didn't exist. Cloning the specific PR commit ensures the workspace is self-consistent.

Test plan

🤖 Generated with Claude Code

…embers are present

The docker build was cloning origin/main, which does not include crates
added in an open PR (e.g. rsky-graph). Pass COMMIT_SHA as a build-arg
and use git init/fetch/checkout to check out the exact commit under test,
ensuring the workspace Cargo.toml and all member crates are consistent.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
afbase and others added 3 commits May 22, 2026 21:19
The previous sed range '/\[workspace\]/,/\[/p' stopped at the first
line containing '[' after [workspace], which is 'members = [' itself.
MEMBERS_SECTION ended up as just that one line (no quoted names), so
readarray produced [""], and any PR touching .github/ would pass an
empty package name to cargo check/build.

Switch to a range that spans from 'members = [' through the closing ']'
so all member names are captured regardless of workspace size.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…/format_commit

rsky-repo changed these signatures to take &Keypair; remove the stray
dereferences in actor_store so the types match.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
… test initializers

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant