Repository navigation
Prevent theme telemetry failures from replacing command results - #8907
Merged
gonzaloriestra merged 1 commit intoOct 19, 2026
Merged
gonzaloriestra merged 1 commit into
gonzaloriestra merged 1 commit into
Conversation
4 tasks done
gonzaloriestra
added this pull request to stack #8908
October 15, 2026 11:55
gonzaloriestra
marked this pull request as ready for review
October 15, 2026 12:05
gonzaloriestra
force-pushed
the
gonzalo/theme-telemetry-guard
branch
from
October 15, 2026 12:12
85cc4f0 to
9496642
Compare
gonzaloriestra
removed this pull request from stack #8908
October 15, 2026 12:12
gonzaloriestra
changed the base branch from
main
to
gonzalo/json-theme-metafields-pull
October 15, 2026 12:34
gonzaloriestra
added this pull request to stack #8925
October 15, 2026 12:34
gonzaloriestra
force-pushed
the
gonzalo/theme-telemetry-guard
branch
from
October 15, 2026 13:33
9496642 to
9b059e1
Compare
gonzaloriestra
force-pushed
the
gonzalo/theme-telemetry-guard
branch
2 times, most recently
from
October 15, 2026 14:10
f216458 to
557041a
Compare
gonzaloriestra
force-pushed
the
gonzalo/theme-telemetry-guard
branch
from
October 15, 2026 14:33
557041a to
f61eeff
Compare
gonzaloriestra
force-pushed
the
gonzalo/theme-telemetry-guard
branch
from
October 15, 2026 15:11
f61eeff to
00b9dfe
Compare
isaacroldan
approved these changes
Oct 15, 2026
gonzaloriestra
force-pushed
the
gonzalo/theme-telemetry-guard
branch
2 times, most recently
from
October 16, 2026 08:15
0d779bf to
b9f35d1
Compare
gonzaloriestra
force-pushed
the
gonzalo/theme-telemetry-guard
branch
from
October 16, 2026 08:40
b9f35d1 to
580b711
Compare
gonzaloriestra
force-pushed
the
gonzalo/theme-telemetry-guard
branch
2 times, most recently
from
October 16, 2026 11:08
17eddcf to
4eb3155
Compare
gonzaloriestra
force-pushed
the
gonzalo/theme-telemetry-guard
branch
2 times, most recently
from
October 16, 2026 11:32
4d72f07 to
6de5e15
Compare
karreiro
approved these changes
Oct 16, 2026
karreiro
left a comment
Contributor
There was a problem hiding this comment.
Thank you for putting this PR together, @gonzaloriestra!
gonzaloriestra
force-pushed
the
gonzalo/theme-telemetry-guard
branch
2 times, most recently
from
October 19, 2026 08:44
8a2220e to
bf390d0
Compare
github-merge-queue
Bot
removed this pull request from the merge queue because a pull request earlier in the stack was removed
Oct 19, 2026
gonzaloriestra
force-pushed
the
gonzalo/theme-telemetry-guard
branch
from
October 19, 2026 11:02
bf390d0 to
c87a3c3
Compare
Contributor
|
| Changeset | Package |
|---|---|
theme-check-json-contract.md |
'@shopify/cli': major |
theme-profile-environments.md |
'@shopify/cli': major |
Contributor
Differences in type declarationsWe detected differences in the type declarations generated by Typescript for this branch compared to the baseline ('main' branch). Please, review them to ensure they are backward-compatible. Here are some important things to keep in mind:
New type declarationsWe found no new type declarations in this PR Existing type declarationspackages/cli-kit/dist/public/node/base-command.d.ts@@ -21,6 +21,7 @@ declare abstract class BaseCommand extends Command {
static descriptionWithoutMarkdown(): string | undefined;
static analyticsNameOverride(): string | undefined;
static analyticsStopCommand(): string | undefined;
+ private jsonOutputFromFlags;
catch(error: Error & {
skipOclifErrorHandling: boolean;
}): Promise<void>;
@@ -36,6 +37,7 @@ declare abstract class BaseCommand extends Command {
}, TGlobalFlags extends FlagOutput, TArgs extends ArgOutput>(options?: Input<TFlags, TGlobalFlags, TArgs>, argv?: string[]): Promise<ParserOutput<TFlags, TGlobalFlags, TArgs> & {
argv: string[];
}>;
+ protected runWithParsedOutput<T>(flags: FlagOutput, execute: () => T): T;
protected environmentsFilename(): string | undefined;
protected parseEnvironmentFlags<TFlags extends FlagOutput, TGlobalFlags extends FlagOutput, TArgs extends ArgOutput>(environment: JsonMap, options: Input<TFlags, TGlobalFlags, TArgs>, explicitFlags: FlagOutput): Promise<FlagOutput>;
protected validateNonTTYFlags(flags: FlagOutput): void;
packages/cli-kit/dist/cli/api/graphql/admin/generated/metafield_definitions_by_owner_type.d.ts@@ -2,9 +2,14 @@ import * as Types from './types.js';
import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
export type MetafieldDefinitionsByOwnerTypeQueryVariables = Types.Exact<{
ownerType: Types.MetafieldOwnerType;
+ after?: Types.InputMaybe<Types.Scalars['String']['input']>;
}>;
export type MetafieldDefinitionsByOwnerTypeQuery = {
metafieldDefinitions: {
+ pageInfo: {
+ hasNextPage: boolean;
+ endCursor?: string | null;
+ };
nodes: {
key: string;
name: string;
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
WHY are these changes introduced?
Fixes https://github.com/shop/issues-develop/issues/23693
A telemetry error can replace a completed theme command's result or hide its original error.
WHAT is this pull request doing?
Catch failures while collecting theme analytics and report them through debug logging. Preserve the command's result and original error. Cover failures in data compilation and public and sensitive metadata collection.
The stack's shared changeset is included in #8924.
How to manually test your changes?
Temporarily make
compileData()inpackages/cli-kit/src/public/node/analytics.tsthrow an error. Runpnpm shopify theme info --store <your-store>with an authenticated store and confirm the command still completes. Repeat with an invalid theme selector and confirm the original command error is preserved. RestorecompileData()afterward.Checklist
patchfor bug fixes ·minorfor new features ·majorfor breaking changes) and added a changeset withpnpm changeset add