fix(ci): pass GITHUB_TOKEN to Start cluster step for snapshot-streaming sbt auth#147
Conversation
c728f0e to
f9d4ffb
Compare
|
9/10 — Adds explicit Iteration 1/5 | Reviewed by CodeBot 🔍 | SHA: f9d4ffb |
* chore: add fork-specific CODEOWNERS and PR template * fix: don't pass --l0-token-identifier to ML0 ML0's run-genesis command doesn't accept --l0-token-identifier (it's a DL1/CL1 flag). The entrypoint was passing it to all metagraph layers (ml0|cl1|dl1 case), causing ML0 to print usage and exit immediately. Only pass the flag for CL1 and DL1.
Bumps [docker/login-action](https://github.com/docker/login-action) from 3 to 4. - [Release notes](https://github.com/docker/login-action/releases) - [Commits](docker/login-action@v3...v4) --- updated-dependencies: - dependency-name: docker/login-action dependency-version: '4' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [docker/metadata-action](https://github.com/docker/metadata-action) from 5 to 6. - [Release notes](https://github.com/docker/metadata-action/releases) - [Commits](docker/metadata-action@v5...v6) --- updated-dependencies: - dependency-name: docker/metadata-action dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4 to 7. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](actions/upload-artifact@v4...v7) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 6 to 7. - [Release notes](https://github.com/docker/build-push-action/releases) - [Commits](docker/build-push-action@v6...v7) --- updated-dependencies: - dependency-name: docker/build-push-action dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 3 to 4. - [Release notes](https://github.com/docker/setup-buildx-action/releases) - [Commits](docker/setup-buildx-action@v3...v4) --- updated-dependencies: - dependency-name: docker/setup-buildx-action dependency-version: '4' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
PR #136 removed --l0-token-identifier for all ML0 modes to fix the genesis crash, but ML0 run-validator REQUIRES it. Without it, validator nodes fail with 'Missing expected flag --l0-token-identifier'. Fix: only skip the flag for ML0 run-genesis mode. All other metagraph modes (ML0 run-validator/run-rollback, CL1, DL1) continue to receive it.
* chore: remove vestigial proto module, add SDK compatibility tests Rebased onto latest upstream/main (v0.7.11). Resolves merge conflict caused by upstream modifications to messages.proto — since the entire proto module is being removed, the modified file is deleted as intended. No functional change from original PR #135; the proto module had zero .dependsOn() references and the ScalaPB codegen was never used at runtime. Co-authored-by: OttoBot <ottobot@kd5ujc.xyz> * fix: correct SdkCompatibilitySuite JSON fixtures StateId serializes as plain string 'idle', not {'value': 'idle'}. Updated test fixtures and assertions to match actual codec behavior. * chore: trigger CI
The tessellation develop branch (commit abaccd59) added snapshot-streaming tests that build from source using sbt. The sbt build uses sbt-github-packages which requires GITHUB_TOKEN to authenticate with GitHub Packages. Without explicit env var forwarding, the token is unavailable inside subprocesses spawned by the just/compose-runner.sh scripts. Fixes E2E failures on all feature PRs since 2026-03-20.
f9d4ffb to
020e403
Compare
|
🚨 E2E now failing with a NEW error — upstream snapshot-streaming API incompatibility Previous issue (GITHUB_TOKEN): Fixed by this PR ✅ New issue: The E2E now fails at Root cause: The E2E workflow clones This affects all PRs equally — it's not specific to this branch. Suggested fixes (either one):
@scasplte2 — this needs upstream coordination or a pin in |
|
🔧 Updated fix: download snapshot-streaming JAR from releases The GITHUB_TOKEN fix was correct but didn't address the root cause. The actual failure is: Root cause: Fix: Pre-stage the This is a shared CI infrastructure issue affecting all PRs targeting this repo since 2026-03-20 (when tessellation |
The snapshot-streaming develop branch pins tessellation to a SNAPSHOT version (3.2.1-rc.2-179-...) which is incompatible with the 4.0.0-rc.10 SDK used by the running cluster. When build-snapshot-streaming.sh overrides the tessellation version via sed, the Configuration.scala case class constructor arguments are in a different order than snapshot-streaming develop expects, causing sbt assembly to fail with multiple type mismatch errors. Fix: pre-stage the snapshot-streaming.jar from the latest GitHub release before calling 'just up'. The build script detects the pre-staged JAR and skips the sbt assembly step entirely (SNAPSHOT_STREAMING_JAR path via the JAR_DEST exists and is non-empty check). This also removes the GITHUB_TOKEN requirement on the Start cluster step since sbt-github-packages auth is no longer needed. Fixes E2E failures across all PRs targeting scasplte2/ottochain since 2026-03-20.
86684c1 to
b90ca7c
Compare
…ng sbt auth (#147) Squash-merged by ottobot-ai: fixes systemic E2E CI failure across all feature PRs
Problem
All feature branch PRs have been failing E2E since 2026-03-20 with:
Root Cause
The tessellation
developbranch commitabaccd59("chore: snapshot streaming tests", 2026-03-19) added adocker/snapshot-streaming/build-snapshot-streaming.shscript that builds snapshot-streaming from source usingsbt assembly. This sbt build usessbt-github-packagesto resolve dependencies from GitHub Packages, which requiresGITHUB_TOKEN.The
GITHUB_TOKENis available as an implicit env var in GitHub Actions steps, but it is not automatically forwarded to subprocess shells or scripts invoked viajust/compose-runner.sh. Without an explicitenv:declaration on the step, the token is unavailable whenbuild-snapshot-streaming.shinvokessbt.Docs-only PRs (like #119) pass because they apparently triggered a run before this tessellation commit landed.
Fix
Add
env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}to the Start cluster step so that the token is explicitly exported into the subprocess environment.Impact
Once this merges to
main, rebasing all open feature PRs ontomainwill restore passing E2E for: