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

Follow-up: fix detection of production mac build #294

Merged
merged 1 commit into from
Aug 14, 2023

Conversation

marcdumais-work
Copy link
Contributor

@marcdumais-work marcdumais-work commented Aug 11, 2023

What it does

I noticed an issue after merging PR #272, looking at the Jenkins build log.
image

To save build time, we only proceed with macos signing/notarising when it's detected that the current build is producing official blueprint packages. Unfortunately a little bug was introduced in #272 , that prevents this mechanism from working, resulting in an unsigned/un-notarised macos package [1].

This is the fix.

[1]: note: I killed the Jenkins build before if got far enough to potentially release a bad macos package.

How to test

Unfortunately I think we need to merge to be certain. But I think the fix is simple enough to be validated by looking at the Jenkins linked log above.

Review checklist

Reminder for reviewers

@@ -42,7 +42,7 @@ const signFile = file => {
exports.default = async function (context) {
const running_ci = process.env.BLUEPRINT_JENKINS_CI === 'true';
const releaseDryRun = process.env.BLUEPRINT_JENKINS_RELEASE_DRYRUN === 'true';
const branch = process.env.CHANGE_BRANCH;
const branch = process.env.BRANCH_NAME;
Copy link
Contributor Author

@marcdumais-work marcdumais-work Aug 11, 2023

Choose a reason for hiding this comment

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

This environment variable (BRANCH_NAME) exists both for PRs and when merging to master. CHANGE_BRANCH is only for PR builds it sems. We compare the value of 'branch' to 'master', lower down, as one of the few criteria to proceed with macos signing/notarising.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

PR build:

image

Merging PR to master (production build):
image

To save build time, we only proceed with macos signing/notarizing when it's
detected that the current build is producing official blueprint packages.
Unfortunately a little bug prevents this from working. This is the fix.

Signed-off-by: Marc Dumais <marc.dumais@ericsson.com>
@marcdumais-work marcdumais-work merged commit 90554f9 into master Aug 14, 2023
3 checks passed
@marcdumais-work marcdumais-work deleted the follow-up-mac-signing branch August 14, 2023 13:52
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.

2 participants