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

Reduce GitLab CI pipeline depth #577

Merged
merged 8 commits into from
Apr 11, 2024
Merged

Commits on Apr 11, 2024

  1. test: rename configure-generators to generate-gitlab-ci

    We will use this script to generate the whole CI config.
    achilleas-k committed Apr 11, 2024
    Configuration menu
    Copy the full SHA
    adc2384 View commit details
    Browse the repository at this point in the history
  2. test/generate-gitlab-ci: add top-level stages to base config

    Add the init, verify, and finish jobs to the base config, so that we can
    generate the top-level gitlab-ci config with all the stages we need.
    achilleas-k committed Apr 11, 2024
    Configuration menu
    Copy the full SHA
    14000e9 View commit details
    Browse the repository at this point in the history
  3. test/generate-gitlab-ci: make config stable

    Sort the image configurations so that the generator is stable.
    achilleas-k committed Apr 11, 2024
    Configuration menu
    Copy the full SHA
    95edcab View commit details
    Browse the repository at this point in the history
  4. gitlab: replace gitlab-ci.yml with the generated one

    Check in the generated gitlab-ci.yml so it becomes the top-level CI
    config.
    achilleas-k committed Apr 11, 2024
    Configuration menu
    Copy the full SHA
    a98b5eb View commit details
    Browse the repository at this point in the history
  5. tools/prepare-source: generate .gitlab-ci.yml

    Generate .gitlab-ci.yml when running prepare-source.  This will make
    sure we catch any changes to image configurations (distros, arches,
    image types) that aren't reflected in the CI config.
    achilleas-k committed Apr 11, 2024
    Configuration menu
    Copy the full SHA
    c2b154e View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    b260f1d View commit details
    Browse the repository at this point in the history
  7. github: run all checks on ubuntu-latest

    The source prep script now runs a python script that import imgtestlib,
    which uses newer python3 features (match).
    Run on ubuntu-latest so we have a newer python version and update all
    runners to match.
    achilleas-k committed Apr 11, 2024
    Configuration menu
    Copy the full SHA
    fc4c601 View commit details
    Browse the repository at this point in the history
  8. github: check source prep before running gitlab CI

    The source preparation script now generates the gitalb-ci.yml and checks
    that it's up to date with new image configurations.  Don't run gitlab CI
    tests if the source prep check doesn't succeed since it might end up
    testing the wrong thing (distros that have been removed, for example).
    
    Also, we need build dependencies to run the script now since it
    compiles and runs the list-images command.
    
    Signed-off-by: Achilleas Koutsou <achilleas@koutsou.net>
    achilleas-k committed Apr 11, 2024
    Configuration menu
    Copy the full SHA
    ec3de25 View commit details
    Browse the repository at this point in the history