Skip to content

feat: auto-open devnet PR in infra-kubernetes on release#279

Merged
guglez merged 3 commits into
mainfrom
feat/auto-deploy-devnet
May 22, 2026
Merged

feat: auto-open devnet PR in infra-kubernetes on release#279
guglez merged 3 commits into
mainfrom
feat/auto-deploy-devnet

Conversation

@guglez
Copy link
Copy Markdown
Contributor

@guglez guglez commented May 22, 2026

Summary

Adds a new open-devnet-pr job to the existing release workflow. After a successful Docker build on a v* tag, it automatically opens a PR in ChainSafe/infra-kubernetes bumping the canton-middleware-api image tag for validator-dev1.

How it works:

  1. Triggers only on release tags (v*), runs after build-and-push succeeds
  2. Checks out infra-kubernetes using INFRA_GH_TOKEN secret
  3. Updates canton-middleware-api.image.tag via yq
  4. Opens a PR on branch chore/bump-canton-middleware-api-<version>

Safeguards:

  • Version format validated (v0.0.0 pattern) to prevent injection
  • Skips if no file changes (idempotent re-runs)
  • --force-with-lease push + graceful PR duplicate handling

Required secret: INFRA_GH_TOKEN — already added to this repo.

Closes ChainSafe/infrastructure-general#1246

🤖 Generated with Claude Code

After a successful Docker build on a v* tag, open a PR in
ChainSafe/infra-kubernetes bumping canton-middleware-api image tag
for validator-dev1.

Refs ChainSafe/infrastructure-general#1246

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

force-with-lease on a freshly-created local branch with no upstream
tracking ref is unreliable — use plain git push -u origin instead.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented May 22, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (main@95a07a7). Learn more about missing BASE report.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #279   +/-   ##
=======================================
  Coverage        ?   30.69%           
=======================================
  Files           ?      130           
  Lines           ?    10056           
  Branches        ?        0           
=======================================
  Hits            ?     3087           
  Misses          ?     6702           
  Partials        ?      267           
Flag Coverage Δ
unittests 30.69% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

- Enable allow_auto_merge on infra-kubernetes repo
- Add gh pr merge --auto --squash after PR creation
- Split pr create and pr merge to avoid masking merge failures

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
@guglez guglez enabled auto-merge (squash) May 22, 2026 16:21
@guglez guglez requested a review from sadiq1971 May 22, 2026 16:21
@guglez guglez merged commit 04e9300 into main May 22, 2026
2 checks passed
@guglez guglez deleted the feat/auto-deploy-devnet branch May 22, 2026 17:16
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.

3 participants