Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[prebuilds] make sure prebuild and branch commits are the same #10661

Merged
merged 1 commit into from
Jun 15, 2022

Conversation

laushinka
Copy link
Contributor

@laushinka laushinka commented Jun 14, 2022

Description

The issue in #5908 wasn't able to be reproduced, but this PR is to make sure that it doesn't happen.
When a prebuild's commit hash and branch's latest commit hash don't align, then we don't show the prebuild status in /branches.
Some prebuild namings are also improved here.

Related Issue(s)

Fixes #5908

How to test

  1. Trigger a prebuild by pushing a commit.
  2. Check that the commit hash info in the Commit column is consistent with your actual commit.

Release Notes

NONE

Documentation

@laushinka laushinka requested a review from a team June 14, 2022 14:24
@github-actions github-actions bot added the team: webapp Issue belongs to the WebApp team label Jun 14, 2022
@laushinka laushinka marked this pull request as draft June 14, 2022 14:53
@laushinka laushinka force-pushed the laushinka/prebuild-status-indicator-5908 branch from 9e7c6de to 6d547d9 Compare June 14, 2022 15:31
@roboquat roboquat added size/S and removed size/XS labels Jun 14, 2022
@laushinka laushinka marked this pull request as ready for review June 14, 2022 16:06
@laushinka laushinka force-pushed the laushinka/prebuild-status-indicator-5908 branch from 6d547d9 to 036215c Compare June 14, 2022 16:13
@laushinka laushinka requested a review from AlexTugarev June 14, 2022 16:14
Copy link
Member

@AlexTugarev AlexTugarev left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks @laushinka!

This change makes sense. There might be a gap between fetching latest commit via API and getting a push event via webhook to get processed. This will ensure, we're not rendering unrelated items.

@roboquat roboquat merged commit 39e3ed8 into main Jun 15, 2022
@roboquat roboquat deleted the laushinka/prebuild-status-indicator-5908 branch June 15, 2022 08:23
@roboquat roboquat added deployed: webapp Meta team change is running in production deployed Change is completely running in production labels Jun 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployed: webapp Meta team change is running in production deployed Change is completely running in production release-note-none size/S team: webapp Issue belongs to the WebApp team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Prebuild status indicator on "Branches" can be misleading
3 participants