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

Pin packages #219

Merged
merged 8 commits into from
Jan 3, 2024
Merged

Pin packages #219

merged 8 commits into from
Jan 3, 2024

Commits on Dec 19, 2023

  1. Specification cleanups

    The previous version of Debcrafter didn't catch these mistakes. Now they
    were discovered and fixed.
    Kixunil committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    73e49d7 View commit details
    Browse the repository at this point in the history
  2. Pin packages

    Verifying signatures is not that great because when the keys expire the
    build is broken. We instead pin the packages while still being able to
    verify when the pin is updated. This already has some keys expired so
    the pins are added here.
    Kixunil committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    c8d2d27 View commit details
    Browse the repository at this point in the history
  3. Run tests only if the jobs succeeded.

    The tests were previously running even when build failed which was
    useless and wasteful. This switches it to run only on success.
    Kixunil committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    4d28028 View commit details
    Browse the repository at this point in the history

Commits on Jan 3, 2024

  1. Parallelize CI build

    CI was building packages one after another in a single VM. This is slow,
    has the risk of one package affecting another and makes it harder to
    figure out which job failed. This change adds a preparation job which
    builds the image and gets the list of packages and changes build job
    into matrix depending on the prepare job.
    Kixunil committed Jan 3, 2024
    Configuration menu
    Copy the full SHA
    6f6c9ab View commit details
    Browse the repository at this point in the history
  2. Print journal of service if installation fails

    When a service fails to start the maintainerscript would only print a
    help, not full log. This is annoying when testing in CI as there's no
    way to do that and even in case of local tests it's just one more step.
    
    This change adds a check that would print the log for service packages.
    Although it won't show anything if the failure happened before starting,
    this is OK, it's just debug info.
    Kixunil committed Jan 3, 2024
    Configuration menu
    Copy the full SHA
    abb4eb7 View commit details
    Browse the repository at this point in the history
  3. Use import_files feature of new debcrafter

    Previously imported files had to specified twice - in `build_rules` and
    in `sps` files. This uses the new debcrafter feature to avoid it and
    prepares for heavier CI caching.
    Kixunil committed Jan 3, 2024
    Configuration menu
    Copy the full SHA
    768cd73 View commit details
    Browse the repository at this point in the history
  4. Remove useless dependencies from lnd-genmacaroon

    `lnd-genmacaroon` doesn't use these, it's probably some copy-paste
    mistake.
    Kixunil committed Jan 3, 2024
    Configuration menu
    Copy the full SHA
    561fc23 View commit details
    Browse the repository at this point in the history
  5. Add per-package build cache

    Previously caching was only implemented for container image building but
    not for packages which still took a huge time to rebuild. This
    implements caching so that packages that didn't change aren't rebuilt.
    Kixunil committed Jan 3, 2024
    Configuration menu
    Copy the full SHA
    052fe86 View commit details
    Browse the repository at this point in the history