Skip to content

Conversation

@cameroncooke
Copy link
Contributor

@cameroncooke cameroncooke commented Jan 12, 2026

Hide the “Missing Git metadata” build details while an artifact is still uploading/processing.

We currently hide the app info block, showing build metadata is missing while not showing the app info looks strange, this PR address that by hiding all sidebar blocks when app is being processed regardless to whether we have data to show individual blocks.

Refs EME-691

@cameroncooke cameroncooke requested a review from a team as a code owner January 12, 2026 19:13
@linear
Copy link

linear bot commented Jan 12, 2026

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jan 12, 2026
@cameroncooke cameroncooke force-pushed the cameroncooke/01-12-when_uploading_hide_missing_git_data_eme-691_ branch from 6b055ba to 0a5775a Compare January 12, 2026 19:35
Copy link
Contributor Author

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

@cameroncooke cameroncooke force-pushed the cameroncooke/01-12-when_uploading_hide_missing_git_data_eme-691_ branch from b2d8412 to 5a1a19e Compare January 12, 2026 20:29
Comment on lines +27 to +30
/* App info + status check info + VCS info - only show when artifact is processed */
if (buildDetailsData.state !== BuildDetailsState.PROCESSED) {
return null;
}
Copy link

Choose a reason for hiding this comment

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

Bug: The change hides VCS metadata for builds with a FAILED status, removing valuable debugging context, as this data is available at upload time, not post-processing.
Severity: HIGH

🔍 Detailed Analysis

The code change hides the entire build metadata sidebar, including VCS information, when a build's status is FAILED. The underlying assumption is that VCS data is only available after a build is PROCESSED. However, backend analysis shows that VCS metadata is provided during the initial upload and is available even if the build subsequently fails processing. Since FAILED is a terminal state, hiding this information permanently removes critical debugging context like commit SHA, branch, and PR number, which are essential for diagnosing the failure. The test changes in the PR confirm this new, undesirable behavior.

💡 Suggested Fix

Modify the condition to show the BuildVcsInfo component for builds in a FAILED state, in addition to PROCESSED. The sidebar should only be hidden for transient states like UPLOADING or PROCESSING where metadata might genuinely be unavailable. The logic should not treat FAILED as a transient state.

🤖 Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.

Location:
static/app/views/preprod/buildDetails/sidebar/buildDetailsSidebarContent.tsx#L27-L30

Potential issue: The code change hides the entire build metadata sidebar, including VCS
information, when a build's status is `FAILED`. The underlying assumption is that VCS
data is only available after a build is `PROCESSED`. However, backend analysis shows
that VCS metadata is provided during the initial upload and is available even if the
build subsequently fails processing. Since `FAILED` is a terminal state, hiding this
information permanently removes critical debugging context like commit SHA, branch, and
PR number, which are essential for diagnosing the failure. The test changes in the PR
confirm this new, undesirable behavior.

Did we get this right? 👍 / 👎 to inform future reviews.
Reference ID: 8499253

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point, but this is in-fact the requirement.

@cameroncooke cameroncooke requested a review from trevor-e January 12, 2026 20:38
@cameroncooke cameroncooke merged commit 477f45e into master Jan 12, 2026
55 checks passed
@cameroncooke cameroncooke deleted the cameroncooke/01-12-when_uploading_hide_missing_git_data_eme-691_ branch January 12, 2026 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants