Skip to content

CI: run on main and fix check-changes base for Sturmgeist fork#2

Closed
timfox wants to merge 1 commit intomainfrom
cursor/sturmgeist-main-ci-sync-bee0
Closed

CI: run on main and fix check-changes base for Sturmgeist fork#2
timfox wants to merge 1 commit intomainfrom
cursor/sturmgeist-main-ci-sync-bee0

Conversation

@timfox
Copy link
Copy Markdown
Owner

@timfox timfox commented Apr 17, 2026

Summary

The fork uses main as the default branch while upstream ET: Legacy still uses master. GitHub Actions was only listening on master, so pushes and PRs to main did not run CI. The pre-build step also invoked check-changes against origin/master, which does not exist on this fork.

Changes

  • Trigger CI on pushes and pull requests to both main and master, and compare formatting against origin/main in the pixi step.
  • Extend ETLBuild and machine-image workflows so branch guards accept main as well as master (upload, docker, SignPath snapshot conditions, Discord failure notify, Linux/Android build machines).
  • Add .upstream-remote-branch containing origin/main so misc/check-changes.py (via etl_lib) uses the correct merge base, and remove that path from .gitignore so the file is tracked for the fork.
  • release.sh: allow running on main or master and push the current branch name instead of hard-coding master.

Verification

  • actionlint v1.7.7 was run locally on .github/workflows/*.yml with no findings.

After merge, confirm the Actions tab shows a CI run for main on the next push.

Open in Web Open in Cursor 

Track default upstream ref in .upstream-remote-branch (origin/main) and
stop ignoring it so pixi check-changes and local tooling resolve the base
branch. Extend GitHub Actions triggers and branch guards to accept main
alongside master. Update release.sh to push the current branch when on
main or master.

Co-authored-by: Tim Fox <timfox@outlook.com>
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7fbb737f39

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/ci.yml
- name: Check changes
run: |
pixi run check-changes --github "origin/master"
pixi run check-changes --github "origin/main"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Use branch-specific base for check-changes

The workflow now runs on both main and master (pull_request/push at lines 13-16), but this step always compares against origin/main. Because check-changes passes that value into etl_lib.get_commits() (which uses git rev-list ...<base> symmetric-difference logic), runs triggered from master can include unrelated commits from main and report formatting failures on files not touched by the master change. Please select the base ref dynamically from the triggering branch (or PR base branch) so master events are compared to origin/master.

Useful? React with 👍 / 👎.

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