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

Start removing mage 🎉 #7349

Merged
merged 8 commits into from May 15, 2024
Merged

Start removing mage 🎉 #7349

merged 8 commits into from May 15, 2024

Conversation

jedevc
Copy link
Member

@jedevc jedevc commented May 10, 2024

This PR takes the first step to removing mage from our CI - unfortunately, to do the whole thing is still a little tricky right now.

There are several parts:

  • The CI uses dagger call instead of hack/make.
  • hack/make is removed! All CI jobs that still use it, now directly call go run.
  • All unnecessary mage shim functions are removed. We keep:
    • engine:dev, used for ./hack/dev. Eventually, this should be replaced by ci: use nested dagger for testdev #7223.
    • engine:publish, used during github publishing. This connects the cli+engine publishing together, and ensures that the cli parts are all bumped. This is trickier to remove - we'd want to make our _hack_make.yml script an action, instead of a workflow - then, we can connect it through to other actions.

Note! This PR changes some workflows on main, which don't run in a PR - so there is a chance that these workflows might fail when merged.

@jedevc jedevc requested a review from gerhard May 10, 2024 11:12
@jedevc jedevc force-pushed the start-mage-removal branch 7 times, most recently from 12f4efd to de5412e Compare May 10, 2024 13:01
@jedevc jedevc requested a review from matipan May 10, 2024 13:02
@jedevc jedevc added the area/ci label May 10, 2024
@jedevc jedevc marked this pull request as ready for review May 10, 2024 14:20
@jedevc jedevc force-pushed the start-mage-removal branch 2 times, most recently from a7e8455 to 4209693 Compare May 10, 2024 14:26
@gerhard
Copy link
Member

gerhard commented May 14, 2024

Picking this up now since I have some related changes coming up and it would be best to have this merged before then.

Signed-off-by: Justin Chadwell <me@jedevc.com>
Signed-off-by: Justin Chadwell <me@jedevc.com>
Signed-off-by: Justin Chadwell <me@jedevc.com>
Signed-off-by: Justin Chadwell <me@jedevc.com>
Signed-off-by: Justin Chadwell <me@jedevc.com>
Signed-off-by: Justin Chadwell <me@jedevc.com>
@jedevc
Copy link
Member Author

jedevc commented May 14, 2024

Rebased, and also realized that we had missed bumping every runner in the last "improving release" PR - specifically the release job was still using v0.11.2.

Also, call the arguments what they are: functions, FTW!

Signed-off-by: Gerhard Lazu <gerhard@dagger.io>
No, not even when running with race.

Signed-off-by: Gerhard Lazu <gerhard@dagger.io>
Copy link
Member

@gerhard gerhard left a comment

Choose a reason for hiding this comment

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

This now looks good to me!

If you agree with the changes @jedevc, it's OK to merge as soon as all checks pass. We can follow-up with improvements 💪


Related:

@jedevc jedevc merged commit 3de7bc1 into dagger:main May 15, 2024
94 checks passed
@jedevc jedevc deleted the start-mage-removal branch May 15, 2024 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants