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

Run buildkite_pipeline_upload on branch HEAD #1673

Merged

Conversation

mokagio
Copy link
Contributor

@mokagio mokagio commented Oct 30, 2024

See inline comments.

This is an attempt to solve the failure seen in https://buildkite.com/automattic/simplenote-ios/builds/1194 where the injected beta build steps run on the commit that triggered the injecting build, not the commit in which the codebase was when the steps were injected.

@dangermattic
Copy link
Collaborator

dangermattic commented Oct 30, 2024

1 Message
📖 This PR has the Releases label: some checks will be skipped.

Generated by 🚫 Danger

# not the commit that triggered the automation that eventaully called this.
#
# Useful during release automation builds that make additional commits to the release branch.
{ **environment, BUILDKITE_COMMIT: last_git_commit[:commit_hash] }
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not the most elegant solution... One alternative could be to force the release script to checkout release branch, but that seem like limiting the script?

@mokagio mokagio added this to the 4.55 ❄️ milestone Oct 30, 2024
@mokagio mokagio added tooling Related to anything that supports the building & maintaining of the project. Releases labels Oct 30, 2024
@mokagio
Copy link
Contributor Author

mokagio commented Oct 30, 2024

Bypassing CI checks because this change does not run in the standard CI pipeline. We'll validate it next by retrying the complete code freeze pipeline. Same as #1669 and #1670.

@mokagio mokagio changed the base branch from trunk to release/4.55 October 30, 2024 02:26
@mokagio mokagio merged commit a89e590 into release/4.55 Oct 30, 2024
9 of 14 checks passed
@mokagio mokagio deleted the mokagio/checkout-latest-release-branch-in-beta-build branch October 30, 2024 02:26
@wpmobilebot
Copy link
Collaborator

Simplenote Prototype Build📲 You can test the changes from this Pull Request in Simplenote Prototype Build by scanning the QR code below to install the corresponding build.
App NameSimplenote Prototype Build Simplenote Prototype Build
Build Numberpr1673-ee9b7d9-0192db3c-f00a-4239-a240-742a910e6ed8
Version4.55
Bundle IDcom.codality.NotationalFlow.Alpha
Commitee9b7d9
App Center BuildSimplenote - Installable Builds #398
Automatticians: You can use our internal self-serve MC tool to give yourself access to App Center if needed.

@mokagio
Copy link
Contributor Author

mokagio commented Oct 30, 2024

The build I triggered to test this was green, but it was a false positive 😞

The upload to TestFlight succeeded but that's because it uploaded version 4.55.0.1 which originally failed. What it should have uploaded was 4.55.0.2

The logs show the BUILDKITE_COMMIT being successfully overridden:

image

But when the uploaded steps run, the commit the have in their environment is the original one:

image

I guess we have to force checkout the latest release branch from the script after all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Releases tooling Related to anything that supports the building & maintaining of the project.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants