Skip to content

Convert Dagger's CI to a module #6137

Closed

Description

@sipsma

Now that we have Zenith we can move off internal/mage and instead implement all our own CI as a module.

There's a very stale attempt in the ci/ dir of the dagger repo.

There's also some external modules that are more recent attempts here:

The idea would be to update ci/ to have all the equivalent functionality of internal/mage and then remove mage entirely


It would be very nice if we could do this piece-by-piece rather than all at once.

The best route I currently see would be to maintain common code in internal/mage, make use of that as much as possible in the ci/ module and then convert workflows under .github/workflows over to the ci/ module one-by-one.

Then once we finally convert everything we can just delete internal/mage and move common code entirely into the ci/ dir.

An alternative approach would be convert all of internal/mage over to run in a module and then refactor it from there. I don't have strong feelings either way on this approach vs. the above; it mostly comes down to which is more tractable in practice.


Misc things to keep in mind:

  1. We need to maintain the use of the previous "stable" version of dagger to build the dev one. In the new module approach, the "stable" dagger would no longer be controlled via a go.mod in internal/mage and instead just be a CLI from our previous release.
  2. The above implies updates will be needed to ./hack/dev. It would be nice to get rid of ./hack/dev entirely, but that may require changes slightly outside the scope of this effort, so I don't think we need to tackle removing it right away. That can be a follow up

This is also all a bit high-level, happy to help clarify further and discuss more as needed 🙂

Activity

  1. helderco commented on Nov 21, 2023

    @helderco
    Contributor

    Python tasks are already being migrated in #6117, so it should be a dependency of the ci module for coordinating what's needed in GHA.

  2. helderco commented on May 10, 2024

    @helderco
    Contributor

    This was done in:

    With numerous follow-ups, but on a more recent progress:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions