Skip to content

Backport app-block validation fix to Theme Check 3.x - #1409

Closed
NathanPJF wants to merge 2 commits into
nferguson/theme-check-3x-backport-basefrom
nferguson/theme-check-3x-app-block-backport
Closed

NathanPJF wants to merge 2 commits into
nferguson/theme-check-3x-backport-basefrom
nferguson/theme-check-3x-app-block-backport

Conversation

@NathanPJF

Copy link
Copy Markdown
Contributor

CLI 5.0.x and 4.9.x ship Theme Check 3.30.1, which reports valid app blocks as missing local theme blocks when their host also allows @theme. This backports the app-block validation fix from #1391 to 3.x without introducing Theme Check 4's custom-check consent requirement.

The production helper matches upstream commit 0dcea3cd31361de8bd2c7be7205f847a5127d210. Includes its 13 app-host fixtures, a Vitest adapter for the older test harness, and a patch changeset. Covers section and nested app blocks, immediate-host permissions, named local blocks, missing theme blocks, and diagnostic severity and highlights.

Decisions before release

  • Maintenance base: this draft targets nferguson/theme-check-3x-backport-base, a review branch anchored at the exact 3.30.1 tag. There is no existing 3.x maintenance branch. A maintainer needs to confirm the release branch/base before merging or publishing. The patch also applies to 3.31.0, which still has this bug, but that base includes unrelated changes.
  • Stable CLI behavior: the full upstream fix also reports errors for app blocks in hosts without @app, including placements previously accepted silently. That can change theme check and theme push --strict from success to failure. The CLI release owner needs to approve this behavior for a patch release or agree a narrower scope.
  • Consumers: publish the approved 3.x packages before updating CLI stable dependencies. Language-server diagnostics also need a compatible 2.x language-server maintenance release. Confirm whether CLI 4.9 remains supported.

Validation

  • Full theme-check-common suite: 122 files, 5,378 tests passed.
  • Focused JSONMissingBlock suite: 22 passed; restoring the old production helper causes 11 failures.
  • Type checking, parser/common builds, formatting, and diff checks passed.
  • Changesets release-plan generation passed. Package versions remain unpublished.

Tracks CLI-13. The corresponding main-line CLI update is 2492683. CLI stable dependency updates and packaged CLI/language-server validation remain follow-up work after the maintenance release.

@NathanPJF

Copy link
Copy Markdown
Contributor Author

Closing in favor of waiting for Shopify CLI 5.1.0 to deliver the main-line Theme Check updates. We are not pursuing a Theme Check 3.x backport.

@NathanPJF NathanPJF closed this Nov 20, 2026
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