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

chore: remove F39 workflow and refactor matrixes #718

Merged
merged 9 commits into from
Feb 20, 2025

Conversation

p5
Copy link
Member

@p5 p5 commented Feb 18, 2025

This removes the F39 workflow since it's disabled now 39 is EOL
Also refactors the matrix out of the reusable build, which makes it far easier when we come to deprecating the unofficial desktops.

Once merged, I'll make a F42 draft PR where we actually stop building for these DEs in F42+.

@p5 p5 changed the title chore: deprecate F39 workflow and unofficial desktops chore: remove F39 workflow and refactor manifests Feb 18, 2025
@p5 p5 changed the title chore: remove F39 workflow and refactor manifests chore: remove F39 workflow and refactor matrixes Feb 19, 2025
Comment on lines +19 to 30
strategy:
fail-fast: false
matrix:
image_name:
- base
- silverblue
- kinoite
- sericea
- onyx
- lazurite
- vauxite
with:
Copy link
Member Author

@p5 p5 Feb 19, 2025

Choose a reason for hiding this comment

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

Once F42 is out, we can simply duplicate this workflow and remove the images we don't wish to build.
Saves us trying to create a matrix which has different behaviour for 3 different fedora versions:

  • 40 - use sericea, onyx naming etc
  • 41 - switch to *-atomic naming
  • 42 - remove unofficial images

Comment on lines +30 to +40
include:
- image_name: base
source_image_name: base-atomic
- image_name: onyx
source_image_name: budgie-atomic
- image_name: sericea
source_image_name: sway-atomic
- image_name: lazurite
source_image_name: lxqt-atomic
- image_name: vauxite
source_image_name: xfce-atomic
Copy link
Member Author

Choose a reason for hiding this comment

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

From F42+, we can switch to the *-atomic naming wherever used upstream, so this will only be used in F41 workflows.

Comment on lines -24 to -47
strategy:
fail-fast: false
matrix:
fedora_version:
- ${{ inputs.fedora_version }}
image_name:
- silverblue
- kinoite
- sericea
- onyx
- base
- lazurite
- vauxite
include:
- image_name: base
source_image: ${{ inputs.fedora_version == '41' && 'base-atomic' || '' }}
- image_name: sericea
source_image: ${{ inputs.fedora_version == '41' && 'sway-atomic' || '' }}
- image_name: onyx
source_image: ${{ inputs.fedora_version == '41' && 'budgie-atomic' || '' }}
- image_name: lazurite
source_image: ${{ inputs.fedora_version == '41' && 'lxqt-atomic' || '' }}
- image_name: vauxite
source_image: ${{ inputs.fedora_version == '41' && 'xfce-atomic' || '' }}
Copy link
Member Author

Choose a reason for hiding this comment

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

All matrix logic is in the parent workflows so you don't need any conditionals here

Comment on lines 34 to 48
- name: Matrix Variables
shell: bash
env:
MATRIX_SOURCE_IMAGE: ${{ matrix.source_image }}
MATRIX_IMAGE_NAME: ${{ matrix.image_name }}
IMAGE_NAME: ${{ inputs.image_name }}
FEDORA_VERSION: ${{ inputs.fedora_version }}
SOURCE_IMAGE_NAME: ${{ inputs.source_image_name }}
run: |
if [[ -z $MATRIX_SOURCE_IMAGE ]]; then
echo "MATRIX_SOURCE_IMAGE empty"
SOURCE_IMAGE=$MATRIX_IMAGE_NAME
else
echo "MATRIX_SOURCE_IMAGE not empty"
SOURCE_IMAGE=$MATRIX_SOURCE_IMAGE
SOURCE_IMAGE=$IMAGE_NAME
if [[ "$SOURCE_IMAGE_NAME" != "" ]]; then
SOURCE_IMAGE=$SOURCE_IMAGE_NAME
fi

echo "SOURCE_ORG=fedora-ostree-desktops" >> $GITHUB_ENV
echo "IMAGE_NAME=$MATRIX_IMAGE_NAME-main" >> $GITHUB_ENV
echo "IMAGE_NAME=$IMAGE_NAME-main" >> $GITHUB_ENV
echo "SOURCE_IMAGE=$SOURCE_IMAGE" >> $GITHUB_ENV
Copy link
Member Author

Choose a reason for hiding this comment

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

This can be removed when F41 is EOL'd. It's needed so we can keep the old "sericea" etc naming convention for the existing images

@p5 p5 marked this pull request as ready for review February 19, 2025 17:09
@p5 p5 requested a review from castrojo as a code owner February 19, 2025 17:09
@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Feb 19, 2025
@p5 p5 requested a review from bsherman February 20, 2025 01:02
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Feb 20, 2025
@castrojo castrojo enabled auto-merge February 20, 2025 17:51
@castrojo castrojo disabled auto-merge February 20, 2025 17:52
@castrojo castrojo merged commit 7db8703 into main Feb 20, 2025
30 checks passed
@castrojo castrojo deleted the deprecate-unofficial-desktop-environments branch February 20, 2025 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm This PR has been approved by a maintainer size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants