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

Give the build job a unique name with the machine and environment #415

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

klutchell
Copy link
Contributor

This allows us to mark specific build-only jobs as required.

Specifically for cases where tests are defined, but those tests may not be marked as required for an ESR branch to merge, so marking 'Yocto / All jobs' as required for that device is not ideal.

Change-type: patch

@rcooke-warwick
Copy link
Contributor

rcooke-warwick commented Sep 20, 2024

To check I understand right, this is for the case where we have something in a device repo that has tests defined, but we're not deploying finalised ESR releases for - for example:

  • some of the balena-raspberrypi repo device types: raspberrypi0-2w
  • generic-amd64-fs in balena-generic

But on an ESR branch, these aren't required - so a PR might merge without tests passing for these device types - but if that happens then a finalised ESR release won't be deployed, only a draft - isn't that what we want?

What would be worse was if tests DID pass, because then an ESR release would be deployed for a DT we don't guarantee ESR support for? This is why we commented out the ESR regexp on the branch checks for non ESR devices isn't it - there will be no yocto / all jobs at all for them?, e.g: https://github.com/balena-os/balena-intel/blob/master/.github/workflows/surface-pro-6.yml#L11 If we offered ESR for all tested devices this doesn't matter of course.

@klutchell
Copy link
Contributor Author

I think you're right @rcooke-warwick and we don't need this change.

For non-ESR devices nothing will run, build or tests, because the trigger is not enabled for that device type. There is nothing to be gained by allowing a "build only" requirement for devices.

This change on it's own wouldn't impact behaviour in any way, since all it does is add the machine and environment to the build step name. Might still be nice to have though? It's not a bad thing.

This allows us to mark specific build-only jobs as required.

Specifically for cases where tests are defined, but those tests may
not be marked as required for an ESR branch to merge, so marking
'Yocto / All jobs' as required for that device is not ideal.

Change-type: patch
Signed-off-by: Kyle Harding <[email protected]>
@klutchell klutchell force-pushed the kyle/build-unique-name branch from 206089a to 5f430f4 Compare October 3, 2024 12:49
@klutchell klutchell temporarily deployed to balena-staging.com October 3, 2024 12:49 — with GitHub Actions Inactive
@klutchell klutchell temporarily deployed to balena-cloud.com October 3, 2024 13:15 — with GitHub Actions Inactive
@klutchell klutchell temporarily deployed to balena-cloud.com October 3, 2024 13:15 — with GitHub Actions Inactive
@klutchell klutchell temporarily deployed to balena-cloud.com October 3, 2024 13:15 — with GitHub Actions Inactive
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