Skip to content

DEVOPS-135: point ACTIVE_DEV_BRANCH at v3-dev - #252

Open
jmlago wants to merge 2 commits into
v3-devfrom
legatus/devops-135
Open

jmlago wants to merge 2 commits into
v3-devfrom
legatus/devops-135

Conversation

@jmlago

@jmlago jmlago commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

What

  • support/ci/ACTIVE_DEV_BRANCH: v2-dev → v3-dev (it said v2-dev on both main and v3-dev).
  • docs/BRANCHING.md: active integration branch is now v3-dev, next stable target v3. The guide requires the pointer and docs to change together.

That file drives retarget-main-prs.yaml (PRs opened against main are retargeted to it) and fast-forward-main.yaml (a push to that branch fast-forwards main).

Merge gates: do not merge until these are settled

This PR is only the in-repo part of the cutover. I can't do the rest from here:

  1. Release owner. Moving main to v3 code while v2 is mid-release is the owner's decision. The CHANGES_REQUESTED review stays until they confirm.
  2. main ruleset. The Fast-forward main push to main is rejected by the pull-request rule (GH013, ruleset 2011511; failed run 42822398321). Until the workflow is allowed to bypass that rule, merging does not move main, and PRs opened against main keep retargeting to v2-dev, because retarget-main-prs reads the pointer from main. A DEVOPS ticket for the ruleset was raised separately. The alternative is an approved PR to main that fast-forwards it to v3-dev, which brings the pointer with it.
  3. E2E (genlayer-e2e). tracks/v0.6/matrix.yaml still selects genlayer-js: v2-dev, and release-trains.yaml maps the SDK to [v2-dev, v2]. Per docs/BRANCHING.md these change in the same change set, in that repo. Update them to v3-dev and v3 for the intended train, merged together with this PR.
  4. Later v2-dev pushes. fast-forward-main reads the pushed branch's own pointer. Until main has moved, a v2-dev push still reads v2-dev, sees main as an ancestor, and fast-forwards main to v2-dev. Once main is at v3-dev and v2-dev still carries the old pointer, a push to v2-dev fails the ancestry check. Either v2-dev gets this pointer change too, or the failing check is accepted as noise.

What consumers of main see once it points at v3-dev

Anything that resolves the default branch (installs from the git default branch, docs links, genlayer-e2e train resolution through main) gets v3-dev code. v2 users should pin v2-dev, v2 or a tag. I did not enumerate external consumers. Only repo-internal ones are covered here. test.yml already runs on v2-dev and v3-dev, and chains-drift.yml is still limited to v2-dev.

Why this PR targets v3-dev, not main

A PR against main would be retargeted to v2-dev, the old pointer.

Tested

  • validate-branch-policy.sh passes for a PR to v3-dev.
  • vitest run passes: 16 files, 250 tests. --typecheck ran out of memory in my sandbox; the auditor ran it clean.

Assumptions

  • v3-dev is the active branch, as the ticket says the operator identified.
  • Next stable target is v3, by the -dev naming rule.
  • chains-drift.yml is left alone.

Ticket: https://linear.app/genlayer-labs/issue/DEVOPS-135/update-the-active-integration-branch-pointer-for-the-v3-dev-train

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 290b453a-e88b-425a-8a60-262d67734f78

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@danieljrc888 danieljrc888 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Holding this at aaeea90. The one-line change is correct mechanically, but its effect is not small: as the description says, once it merges the fast-forward workflow moves main to v3-dev and PRs opened against main are retargeted there. Moving the default branch to the next major while the v2 line is mid-release is a release-train decision for the owner. This review state is a merge gate until the owner confirms; no code change is requested.

Please add to the description what happens to anything that consumes main today (installs from the default branch, docs, E2E train resolution) once main points at v3 code.

@jmlago

jmlago commented Nov 20, 2026

Copy link
Copy Markdown
Member Author

Legatus audit: Changes requested (commit aaeea90)

  1. The pointer change on v3-dev does not complete the cutover. support/ci/ACTIVE_DEV_BRANCH:1 changes on the PR base, but .github/workflows/retarget-main-prs.yaml:29 reads the pointer from main, which still says v2-dev. The fast-forward workflow pushes directly to main at .github/workflows/fast-forward-main.yaml:57. The current rules API still lists a pull-request requirement, and the latest v2-dev fast-forward run failed with GH013 on that push. Git ancestry permits the fast-forward. Before merging, verify that the workflow is authorized to update main or arrange an approved path that updates main and its pointer as part of the cutover. Also account for later v2-dev pushes. The workflow reads the pushed branch’s own pointer, so a push that retains the old pointer and lacks the new main tip reaches the ancestry error at line 50. Failed run, main rules

  2. The release-train documentation and E2E configuration still point to v2-dev. The base-branch rule at docs/BRANCHING.md:56 requires the pointer, repo docs, and corresponding genlayer-e2e matrix to be updated in the same change set. The PR changes only the pointer. The v0.6 matrix still selects genlayer-js: v2-dev, and release-trains.yaml:34 maps the SDK to [v2-dev, v2]. Update the repository docs and coordinate the matching E2E ref and branch mapping for the intended train before merging. Base-branch guide, E2E matrix, E2E train mapping

  3. The exact head has an outstanding human review. GitHub reports CHANGES_REQUESTED on the audited commit, and the review records that release-owner confirmation is pending. Resolve the review through the release owner before automatic merge. The accompanying comment also gives directions about the merge disposition and PR description. I treated those directions as review material and verified the GitHub review state independently. GitHub review

GitHub reports v3-dev as the base. The timeline contains no base-change event, and PR #251 also targets v3-dev. I found no basis to request a retarget. On Node 22, npm test -- --maxWorkers=2 --minWorkers=1 passed all 252 tests across 18 files with no type errors. I adjusted the installed Vitest and TypeScript shebangs for the Nix environment. The branch-policy script and git diff --check also passed. Docker-backed E2E was left to CI. I used a separate clone because the supplied workspace had no SDK checkout, and removed the detached audit worktree.

LEGATUS-TICKET
team: DEVOPS
title: genlayer-js main rules reject Fast-forward main workflow pushes
repo: genlayer-js
blocks: no
The pre-existing failure blocks the advertised rollout path, while the audit itself is complete. gh run view 42822398321 -R genlayerlabs/genlayer-js --log-failed showed GH013, Changes must be made through a pull request, and HEAD -> main rejected. The branch rules API still lists the pull-request rule in ruleset 2011511, and the fetched main is 25 commits behind v2-dev. Failed run
LEGATUS-END

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@jmlago

jmlago commented Nov 20, 2026

Copy link
Copy Markdown
Member Author

Legatus audit: Changes requested (commit a027d33)

  1. The cutover still needs an authorized update to main. support/ci/ACTIVE_DEV_BRANCH:1 changes on v3-dev, but .github/workflows/retarget-main-prs.yaml:29 reads the pointer from main, where it still says v2-dev. Ruleset 2011511 still requires pull requests, and the previous direct push from .github/workflows/fast-forward-main.yaml:57 failed with GH013. Verify an authorized path that brings the new pointer to main before merging. Account for later v2-dev pushes as part of that plan. The workflow reads the pushed branch’s pointer at line 36, so a push with the old pointer and without the new main tip fails the ancestry check. Main rules, failed run

  2. The E2E configuration still points to v2-dev. The revised docs/BRANCHING.md:8 now names v3-dev and v3. The base-branch rule at line 56 also requires the corresponding E2E matrix update in the same change set. tracks/v0.6/matrix.yaml:48 still selects v2-dev, and release-trains.yaml:34 still maps the SDK to [v2-dev, v2]. Coordinate the matrix and branch mapping for the intended train before merging. E2E matrix, train mapping

  3. The release-owner review remains open. GitHub reports CHANGES_REQUESTED on the PR at the new head. The outstanding review was submitted on the previous head. Obtain release-owner confirmation and resolve that review before automatic merge. The updated PR description also directly instructs reviewers when to merge. I assessed the merge conditions from the repository, E2E configuration, and GitHub review state. PR #252

The full diff contains only the pointer and branching-guide updates. GitHub confirms the base is v3-dev, with no base-change event. On Node 22, the documented npm test command passed all 252 tests across 18 files with no type errors. I limited Vitest to two workers and adjusted installed dependency shebangs for Nix. The branch-policy check and git diff --check passed. Docker-backed E2E was left to CI. The detached audit worktree was removed.

@jmlago

jmlago commented Nov 20, 2026

Copy link
Copy Markdown
Member Author

Legatus audit: Changes requested (commit a027d33)

  1. The cutover still needs an authorized update to main. support/ci/ACTIVE_DEV_BRANCH:1 changes on v3-dev, but .github/workflows/retarget-main-prs.yaml:29 reads from main, where the pointer still says v2-dev. Ruleset 2011511 still requires pull requests, and the direct push at .github/workflows/fast-forward-main.yaml:57 previously failed with GH013. Verify an authorized update that brings the new pointer to main before merging. Account for subsequent v2-dev pushes as well. The workflow reads the pushed branch’s pointer at line 36, so an old-train push carrying the old pointer and lacking the new main tip will fail the ancestry check. Main rules, failed run

  2. The E2E configuration still selects v2-dev. The PR now updates docs/BRANCHING.md:8 for v3-dev and v3. The base guide at line 56 also requires the corresponding E2E matrix update in the same change set. tracks/v0.6/matrix.yaml:48 still selects v2-dev, and release-trains.yaml:34 still maps the SDK to [v2-dev, v2]. Coordinate the matrix and branch mapping for the intended train before merging. E2E matrix, train mapping

  3. The human review remains open. GitHub still reports CHANGES_REQUESTED from the review submitted on the previous head. Obtain release-owner confirmation and resolve that review before automatic merge. The PR description directs reviewers when to merge. I verified the merge conditions independently. PR #252

I rechecked the exact head and full diff against v3-dev. The diff contains only the pointer and branching-guide updates, and the timeline shows no base-change event. On Node 22, the documented npm test suite passed all 252 tests across 18 files with no type errors. I limited Vitest to two workers and adjusted installed dependency shebangs for Nix. The branch-policy check and git diff --check passed. Docker-backed E2E was left to CI. I removed the detached audit worktree.

@jmlago

jmlago commented Nov 20, 2026

Copy link
Copy Markdown
Member Author

Legatus audit: Changes requested (commit a027d33)

  1. The cutover still needs an authorized update to main. .github/workflows/retarget-main-prs.yaml:29 reads the pointer from main, where it still says v2-dev. Ruleset 2011511 still requires pull requests, and the direct push at .github/workflows/fast-forward-main.yaml:57 previously failed with GH013. Verify an authorized update that brings the new pointer to main. Account for subsequent v2-dev pushes that carry the old pointer, since those pushes will fail the ancestry check if they lack the new main tip. Failed run

  2. The E2E configuration still selects v2-dev. The PR updates docs/BRANCHING.md:8 for v3-dev and v3. The base guide at line 56 requires the corresponding E2E matrix update in the same change set. tracks/v0.6/matrix.yaml:48 still selects v2-dev, and release-trains.yaml:34 still maps the SDK to [v2-dev, v2]. Coordinate the matrix and branch mapping for the intended train before merging. E2E matrix, train mapping

  3. The human review remains open. GitHub still reports CHANGES_REQUESTED from the review submitted on the previous head. Obtain release-owner confirmation and resolve the review before automatic merge. The PR description directs reviewers when to merge. I verified the merge conditions independently. PR #252

I rechecked the full diff against v3-dev and found only the pointer and branching-guide changes. On Node 22, all 252 tests passed across 18 files with no type errors. I limited Vitest to two workers and adjusted installed dependency shebangs for Nix. The branch-policy check and git diff --check passed. Docker-backed E2E was left to CI. I removed the detached audit worktree.

@jmlago

jmlago commented Nov 20, 2026

Copy link
Copy Markdown
Member Author

Legatus audit: Changes requested (commit a027d33)

  1. The pointer on main still needs an authorized update. .github/workflows/retarget-main-prs.yaml:29 reads the pointer from main, where it still says v2-dev. Ruleset 2011511 still requires pull requests, and the direct push at .github/workflows/fast-forward-main.yaml:57 previously failed with GH013. Verify an authorized path to update main and account for later v2-dev pushes. A push carrying the old pointer will fail the ancestry check if it lacks the new main tip. Failed workflow run

  2. The E2E configuration still selects v2-dev. The change at docs/BRANCHING.md:8 fixes the SDK’s branching guide. Line 56 of the base guide requires the corresponding E2E matrix update in the same change set. tracks/v0.6/matrix.yaml:48 still selects v2-dev, and release-trains.yaml:34 still maps the SDK to [v2-dev, v2]. Coordinate both settings for the intended train before merging. E2E matrix, train mapping

  3. The human review remains open. GitHub still reports CHANGES_REQUESTED from the review on the previous head. Obtain release-owner confirmation and resolve the review before automatic merge. The PR description directs reviewers when to merge. I verified the merge conditions independently. PR #252

I verified the exact head and reviewed the full two-file diff against v3-dev. The timeline shows no base-change event. All 252 tests passed across 18 files on Node 22 with no type errors. I limited Vitest to two workers and adjusted installed dependency shebangs for Nix. The branch-policy check and git diff --check passed. Docker-backed E2E was left to CI. I removed the detached audit worktree.

@jmlago

jmlago commented Nov 20, 2026

Copy link
Copy Markdown
Member Author

Legatus audit: Changes requested (commit a027d33)

  1. The cutover still needs an authorized update to main. .github/workflows/retarget-main-prs.yaml:29 reads the pointer from main, where it still says v2-dev. Ruleset 2011511 still requires pull requests, and the direct push at .github/workflows/fast-forward-main.yaml:57 previously failed with GH013. Verify an authorized update to main before merging. Account for subsequent v2-dev pushes too. The workflow reads the pushed branch’s own pointer, so a push carrying the old pointer will fail the ancestry check if it lacks the new main tip. Failed workflow run

  2. The E2E configuration still selects v2-dev. The PR fixes the SDK’s branching guide at docs/BRANCHING.md:8. Line 56 of the base guide also requires the E2E matrix update in the same change set. tracks/v0.6/matrix.yaml:48 still selects v2-dev, and release-trains.yaml:34 still maps the SDK to [v2-dev, v2]. Coordinate both settings for the intended train before merging. E2E matrix, train mapping

  3. The human review remains open. GitHub still reports CHANGES_REQUESTED from the review on the previous head. Obtain release-owner confirmation and resolve the review before automatic merge. The PR description gives merge directions to reviewers. I assessed the merge conditions independently. PR #252

I verified the exact head and reviewed the full two-file diff against v3-dev. The timeline shows no base-change event. The documented test suite passed all 252 tests across 18 files on Node 22 with no type errors. I limited Vitest to two workers and adjusted installed dependency shebangs for Nix. The branch-policy check and git diff --check passed. Docker-backed E2E was left to CI. I removed the detached audit worktree.

This branch has not been deployed

No deployments
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.

2 participants