Skip to content

[CI] Trigger FakePG integration test for Stacked PRs - #4613

Merged
wwwjn merged 1 commit into
pytorch:mainfrom
wwwjn:ci/restore-ciflow-pg-routing
Sep 15, 2026
Merged

wwwjn merged 1 commit into
pytorch:mainfrom
wwwjn:ci/restore-ciflow-pg-routing

Conversation

@wwwjn

@wwwjn wwwjn commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • restore CIFlow tag routing so stacked PRs are tested independently of their base branch
  • automatically apply ciflow/fake-pg only to ready, non-draft PRs with relevant code or test changes
  • use each ciflow/fake-pg/* tag to run both broad 1-GPU Fake PG coverage and the 8-GPU real_pg_required subset
  • add ciflow/real-pg as the opt-in trigger for the full 8-GPU Real PG suite
  • document the integration-test cadence and reusable execution_mode input

Why

The historical ciflow/8gpu label and moving tag allowed integration CI to run on stacked PRs whose base was not main. After that label was repurposed as an opt-in full-suite trigger, stacked PRs could miss required integration coverage. PR #4322 exposed this gap: its PR checks passed, but five model configurations failed immediately after landing on main.

This change separates the two responsibilities:

  • ciflow/fake-pg is automatically managed and triggers both Fake PG coverage and the real_pg_required Real PG subset for normal and stacked PRs.
  • ciflow/real-pg is manually applied when the full 8-GPU suite is desired before landing.

The full Real PG suite continues to run after pushes to main, on schedule, and through manual or Real PG reusable workflow invocations.

Failing post-merge run: https://github.com/pytorch/torchtitan/actions/runs/34625822895/job/103350597237

Testing

  • changed-file pre-commit hooks pass
  • all modified workflow and Probot configuration files parse as valid YAML
  • verified the event routing conditions for Fake PG tags (Fake PG plus the Real PG required subset), Real PG tags, main pushes, schedules, manual dispatches, and reusable workflow calls

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Sep 11, 2026
@wwwjn wwwjn changed the title [CI] Split Fake PG and Real PG CIFlow triggers [CI] Trigger FakePG integration test for Stacked PRs Sep 11, 2026
@wwwjn wwwjn added the ciflow/real-pg Run the full 8-GPU Real PG integration suite label Sep 11, 2026
@pytorch-bot

pytorch-bot Bot commented Sep 11, 2026

Copy link
Copy Markdown

Warning: Unknown label ciflow/real-pg.
Currently recognized labels are

  • ciflow/b200
  • ciflow/h100.8
  • ciflow/rl

Please add the new label to .github/pytorch-probot.yml

@@ -1,5 +1,7 @@
ciflow_push_tags:
- ciflow/b200
- ciflow/fake-pg

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.

why and when do we need this tag?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Why: The current stacked PR is not triggering 1 fake PG tests. This tag is mimicing the original ciflow/8gpu behavior in #2114 which is proofed to be stack-PR safe.

When: The bot will label this tag automatically for all the PRs (normal PR and stacked PR), but we need this tag today because torchtitan repo has a lot of PR stacks. The bot converts the automatically applied ciflow/fake-pg label into a moving ciflow/fake-pg/<PR> tag pointing at each stacked PR's head and kick of CI when ciflow/fake-pg/<PR> is updated.

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.

gh stack seems fine with the tests? Agreed that ghstack may have problem.

@wwwjn
wwwjn force-pushed the ci/restore-ciflow-pg-routing branch from 34f7e7f to dd5d1bf Compare September 14, 2026 18:01
@@ -1,5 +1,7 @@
ciflow_push_tags:
- ciflow/b200
- ciflow/fake-pg

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.

gh stack seems fine with the tests? Agreed that ghstack may have problem.

@wwwjn
wwwjn merged commit 7f52207 into pytorch:main Sep 15, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/real-pg Run the full 8-GPU Real PG integration suite CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants