Skip to content

Conversation

@jumski
Copy link
Contributor

@jumski jumski commented Nov 16, 2025

  • Remove push trigger (CI only runs on PRs, merge queue validates main)
  • Replace nx-set-shas with hardcoded origin/main base
  • Fixes issue where topmost PR in stack tested against wrong base causing red main
  • Keep changeset-release/** exclusion (workspace:* deps make CI redundant)

@changeset-bot
Copy link

changeset-bot bot commented Nov 16, 2025

🦋 Changeset detected

Latest commit: 1f7d0ef

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 8 packages
Name Type
@pgflow/client Patch
@pgflow/demo Patch
@pgflow/core Patch
@pgflow/dsl Patch
@pgflow/edge-worker Patch
@pgflow/example-flows Patch
@pgflow/website Patch
pgflow Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor Author

jumski commented Nov 16, 2025

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • merge:queue - adds this PR to the back of the merge queue
  • hotfix:queue - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@nx-cloud
Copy link

nx-cloud bot commented Nov 16, 2025

View your CI Pipeline Execution ↗ for commit 1f7d0ef

Command Status Duration Result
nx affected -t verify-exports --base=origin/mai... ✅ Succeeded 2s View ↗
nx affected -t build --configuration=production... ✅ Succeeded 29s View ↗
nx affected -t lint typecheck test --parallel -... ✅ Succeeded 6m 56s View ↗
nx affected -t test:e2e --parallel --base=origi... ✅ Succeeded 5m 9s View ↗

☁️ Nx Cloud last updated this comment at 2025-11-16 21:19:46 UTC

Copy link

@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.

ℹ️ 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 on lines +45 to +48
- name: Set Nx base for affected commands
run: |
echo "NX_BASE=origin/main" >> $GITHUB_ENV
echo "NX_HEAD=HEAD" >> $GITHUB_ENV

Choose a reason for hiding this comment

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

P1 Badge Set NX_BASE to ref that is never fetched

The workflow now hardcodes NX_BASE=origin/main (lines 45‑48), but the preceding checkout only fetches the PR ref. With actions/checkout@v4 the default ref for pull_request is refs/pull/*/merge, so no origin/main remote is created unless fetched explicitly. On PR runs pnpm nx affected ... --base=origin/main will fail with fatal: ambiguous argument 'origin/main' because that ref does not exist in the local clone, breaking all CI jobs. Please fetch the main branch or derive base/HEAD with an action before setting these env vars.

Useful? React with 👍 / 👎.

- Remove push trigger (CI only runs on PRs, merge queue validates main)
- Replace nx-set-shas with hardcoded origin/main base
- Fixes issue where topmost PR in stack tested against wrong base causing red main
- Keep changeset-release/** exclusion (workspace:* deps make CI redundant)
@jumski jumski force-pushed the 11-16-fix_ci_use_origin_main_as_nx_affected_base_for_stacked_prs branch from 17752d0 to 1f7d0ef Compare November 16, 2025 21:10
@github-actions
Copy link
Contributor

🔍 Preview Deployment: Website

Deployment successful!

🔗 Preview URL: https://pr-369.pgflow.pages.dev

📝 Details:

  • Branch: 11-16-fix_ci_use_origin_main_as_nx_affected_base_for_stacked_prs
  • Commit: 8641bef02c765ed07fb6adff10672e15fafb6a19
  • View Logs

_Last updated: _

@graphite-app
Copy link
Contributor

graphite-app bot commented Nov 16, 2025

Merge activity

  • Nov 16, 9:23 PM UTC: jumski added this pull request to the Graphite merge queue.
  • Nov 16, 9:30 PM UTC: CI is running for this pull request on a draft pull request (#370) due to your merge queue CI optimization settings.
  • Nov 16, 9:30 PM UTC: Merged by the Graphite merge queue via draft PR: #370.

graphite-app bot pushed a commit that referenced this pull request Nov 16, 2025
- Remove push trigger (CI only runs on PRs, merge queue validates main)
- Replace nx-set-shas with hardcoded origin/main base
- Fixes issue where topmost PR in stack tested against wrong base causing red main
- Keep changeset-release/** exclusion (workspace:* deps make CI redundant)
@graphite-app graphite-app bot closed this Nov 16, 2025
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