Skip to content

Comments

CI: Various small improvments#1116

Merged
troglobit merged 2 commits intomainfrom
ci-fixes
Aug 31, 2025
Merged

CI: Various small improvments#1116
troglobit merged 2 commits intomainfrom
ci-fixes

Conversation

@rical
Copy link
Contributor

@rical rical commented Aug 25, 2025

Description

  • Replace artifacts
  • Re-introduce ci:main tag
  • Build full version on main branch

Checklist

Tick relevant boxes, this PR is-a or has-a:

  • Bugfix
    • Regression tests
    • ChangeLog updates (for next release)
  • Feature
    • YANG model change => revision updated?
    • Regression tests added?
    • ChangeLog updates (for next release)
    • Documentation added?
  • Test changes
    • Checked in changed Readme.adoc (make test-spec)
    • Added new test to group Readme.adoc and yaml file
  • Code style update (formatting, renaming)
  • Refactoring (please detail in commit messages)
  • Build related changes
  • Documentation content changes
    • ChangeLog updated (for major changes)
  • Other (please describe):

Signed-off-by: Richard Alpe <richard@bit42.se>
@rical rical added ci:main Build default defconfig, not minimal and removed ci:main Build default defconfig, not minimal labels Aug 25, 2025
@rical rical force-pushed the ci-fixes branch 4 times, most recently from 82472dd to 80ba446 Compare August 25, 2025 13:22
@rical rical added the ci:main Build default defconfig, not minimal label Aug 25, 2025
@rical rical force-pushed the ci-fixes branch 3 times, most recently from 6493cf8 to bbffcc1 Compare August 25, 2025 14:11
@rical rical removed the ci:main Build default defconfig, not minimal label Aug 25, 2025
@rical rical force-pushed the ci-fixes branch 3 times, most recently from 2675290 to b825d3a Compare August 26, 2025 08:00
Copy link
Contributor

@troglobit troglobit left a comment

Choose a reason for hiding this comment

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

Awesome, not only does it fix #1115, it's also much cleaner and more readable as well! Nice work 💪😎

There are 2 main reasons for this:

1) It's almost impossible to write complex logical expressions in GH
workflows. I wanted to pass "" as flavor when not building _minimal.
So that the end target string would become TARGET + FLAVOR where
FLAVOR is empty, making it x86_64 for example.

As it turns out "" is false in GH workflow logical expressions, this
in conjunction with the limitations the interpreter has made it hard
to actually write sane expressions in the "with:" variables when
calling downstream jobs via workflow calls.

Here's an example of what I was trying to do and could not:

with:
  flavor: ${{ (
    github.event_name == 'pull_request' &&
    contains(github.event.pull_request.labels.*.name, 'ci:main')
  ) && '' || '_minimal' }}

As '' is false, the first sets of expressions always evaluates to
false making the string "_minimal". I tried bracing this in various
ways and to use "null" or various JSON objects, all in vain.

2) It reduces complexity instead of adding additional.

Signed-off-by: Richard Alpe <richard@bit42.se>
@mattiaswal mattiaswal added the ci:main Build default defconfig, not minimal label Aug 30, 2025
@troglobit troglobit merged commit da3bf57 into main Aug 31, 2025
9 of 10 checks passed
@troglobit troglobit deleted the ci-fixes branch August 31, 2025 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:main Build default defconfig, not minimal

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants