Closed Bug 1774669 Opened 2 years ago Closed 2 years ago

automate openh264 notarization

Categories

(Release Engineering :: Release Automation: Signing, task)

Tracking

(firefox105 fixed)

RESOLVED FIXED
Tracking Status
firefox105 --- fixed

People

(Reporter: mozilla, Assigned: gbrown)

References

Details

Attachments

(3 files)

We already have openh264 builds and signing. The mac signing tasks need to also notarize and change how they sign. Manual steps here.

Bonus points for also adding a way to easily trigger these, outside of add-new-jobs? Might be a simple action.

We also have to fix builds: https://treeherder.mozilla.org/jobs?repo=try&revision=111139712c46b0a9f78f2d437e6109382f64d045
(win64 is the only platform build to go green when I s,python,python3, in gittool.py to fix git clone bustage on all platforms)

Assignee: nobody → gbrown

:jrmuizel - I'm seeing build errors on win64-aarch and win-x86 (only); are those expected by any chance? Any advice?

https://treeherder.mozilla.org/jobs?repo=try&revision=5d595590d1a9dccf9dc81fc126781d20df83810c

Flags: needinfo?(jmuizelaar)

It looks like the build errors are caused by CFLAGS not being set by the makefile. I don't understand why this would be happening.

Shouldn't that CFLAGS just be the initial value that gets appended to here: https://github.com/cisco/openh264/blob/2e637867315ffeda3cd8970825ec86acc3fc4a30/build/msvc-common.mk#L32

Attachment #9281719 - Attachment description: Bug 1774669 - (WIP) Fix openh264 builds; r= → Bug 1774669 - Fix openh264 builds; r=
Keywords: leave-open
Pushed by gbrown@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/b156dc2e7afe
Fix openh264 builds; r=releng-reviewers,aki
Keywords: leave-open

I think the Windows builds are OK now, but I'm happy to modify if anyone has ideas for improvement.

Flags: needinfo?(jmuizelaar)

Looks like the reason that CFLAGS is being overwritten is by design: https://www.gnu.org/software/make/manual/make.html#Override-Directive

Instead of setting it using a command line argument we should use an environment variable.

See Also: → 1776269
See Also: → 1588081

The CFLAGS thing needs fixing otherwise we'll be building Windows builds without optimization.

(In reply to Jeff Muizelaar [:jrmuizel] from comment #12)

The CFLAGS thing needs fixing otherwise we'll be building Windows builds without optimization.

Thanks!

By using environment variables, the earlier _HAS_EXCEPTIONS hack
can be removed.

Keywords: leave-open
Pushed by gbrown@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/96db82c97618
Move Windows openh264 CFLAGS to env; r=aki
See Also: → 1043911
See Also: → 1513000
Keywords: leave-open

(In reply to Aki Sasaki [:aki] (he/him) (UTC-6) from comment #0)

Bonus points for also adding a way to easily trigger these, outside of add-new-jobs? Might be a simple action.

An action was added in bug 1513000; some of it remains: https://searchfox.org/mozilla-central/source/taskcluster/gecko_taskgraph/actions/openh264.py

Start using the mac_notarize_single_file behavior for openh264 signing.

Pushed by gbrown@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/75285656feb8
Use notarization for openh264 signing; r=releng-reviewers,hneiva
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED

Verified in https://firefox-ci-tc.services.mozilla.com/tasks/N4tBI5XqTtqQPkVax_LGfw

...
2022-07-29 13:12:14,013 - scriptworker_client.utils - INFO -    Status Code: 0
2022-07-29 13:12:14,013 - scriptworker_client.utils - INFO - Status Message: Package Approved
2022-07-29 13:12:14,014 - scriptworker_client.utils - INFO - ['xcrun', 'altool', '--notarization-info', '669f40cf-03ee-405e-9e43-4b98decc0bfa', '-u', 'release_notarization@mozilla.com', '--password', '********'] in / exited 0
2022-07-29 13:12:14,015 - iscript.mac - INFO - /builds/scriptworker/artifacts/private/openh264/openh264-macosx64-2e1774ab6dc6c43debb0b5b628bdf122a391d521.zip notarized
2022-07-29 13:12:14,015 - iscript.mac - INFO - Done signing single files.
exit code: 0
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: