Skip to content

ci: build diagnostics before api in the back-merge workflow - #3457

Merged
eduardoformiga merged 2 commits into
devfrom
fix/back-merge-build-diagnostics
Aug 18, 2026
Merged

eduardoformiga merged 2 commits into
devfrom
fix/back-merge-build-diagnostics

Conversation

@eduardoformiga

Copy link
Copy Markdown
Member

What's the purpose of this pull request?

The automated Back-merge main to dev job failed after graduating 4.6.0. core generate shells out to the CLI, which loads compiled @faststore/api. Since #3389 that package imports @faststore/diagnostics at runtime, and the workflow never built diagnostics, so generate died with MODULE_NOT_FOUND on dist/es/index.mjs.

This run does not need to be re-executed — the 4.6.0 sync is already in #3456. The YAML change is for the next CD on main (workflow_run reads this file from dev, the default branch).

How it works?

Build @faststore/diagnostics before @faststore/api in the regenerate step, matching the existing explicit chain (api → cli → core generate).

How to test it?

  • Confirm the added pnpm --filter @faststore/diagnostics build runs before api build in .github/workflows/back-merge.yml
  • After merge, the next successful CD on main should open the back-merge PR instead of failing at codegen

References

Checklist

PR Title and Commit Messages

Made with Cursor

core generate loads the compiled api package, which now imports
@faststore/diagnostics at runtime. Without this dist, the automated
main → dev back-merge fails with MODULE_NOT_FOUND.
@eduardoformiga
eduardoformiga requested a review from a team as a code owner August 18, 2026 18:06
@eduardoformiga
eduardoformiga requested review from hellofanny and renatamottam and removed request for a team August 18, 2026 18:06
@coderabbitai

coderabbitai Bot commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Review was skipped due to path filters

⛔ Files ignored due to path filters (1)
  • .github/workflows/back-merge.yml is excluded by none and included by none

CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including **/dist/** will override the default block on the dist directory, by removing the pattern from both the lists.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 0ef796f1-240d-45cb-9a97-48608230f559

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands.

@codesandbox-ci

codesandbox-ci Bot commented Aug 18, 2026 •

Copy link
Copy Markdown

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@pkg-pr-new

pkg-pr-new Bot commented Aug 18, 2026

Copy link
Copy Markdown

Open in StackBlitz

@faststore/api

npm i https://pkg.pr.new/vtex/faststore/@faststore/api@553ba4e

@faststore/cli

npm i https://pkg.pr.new/vtex/faststore/@faststore/cli@553ba4e

@faststore/components

npm i https://pkg.pr.new/vtex/faststore/@faststore/components@553ba4e

@faststore/core

npm i https://pkg.pr.new/vtex/faststore/@faststore/core@553ba4e

@faststore/diagnostics

npm i https://pkg.pr.new/vtex/faststore/@faststore/diagnostics@553ba4e

@faststore/lighthouse

npm i https://pkg.pr.new/vtex/faststore/@faststore/lighthouse@553ba4e

@faststore/sdk

npm i https://pkg.pr.new/vtex/faststore/@faststore/sdk@553ba4e

@faststore/ui

npm i https://pkg.pr.new/vtex/faststore/@faststore/ui@553ba4e

commit: 553ba4e

@eduardoformiga
eduardoformiga merged commit b486e07 into dev Aug 18, 2026
7 checks passed
@eduardoformiga
eduardoformiga deleted the fix/back-merge-build-diagnostics branch August 18, 2026 18:09
@sonar-workflows

Copy link
Copy Markdown

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.

1 participant