8000 Migrate SBT to mill by sequencer · Pull Request #3357 · chipsalliance/chisel · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Migrate SBT to mill #3357

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

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Migrate SBT to mill #3357

wants to merge 8 commits into from

Conversation

sequencer
Copy link
Member

Maintaining two build system is a burden. This PR migrates SBT to Mill for simpler build flow management. There are things to be done:

  • mima check
  • ci test&release
  • micro-site release
  • scala doc site release

Contributor Checklist

  • Did you add Scaladoc to every public function/method?
  • Did you add at least one test demonstrating the PR?
  • Did you delete any extraneous printlns/debugging code?
  • Did you specify the type of improvement?
  • Did you add appropriate documentation in docs/src?
  • Did you request a desired merge strategy?
  • Did you add text to be included in the Release Notes for this change?

Type of Improvement

  • Feature (or new API)
  • API modification
  • API deprecation
  • Backend code generation
  • Performance improvement
  • Bugfix
  • Documentation or website-related
  • Dependency update
  • Internal or build-related (includes code refactoring/cleanup)

Desired Merge Strategy

  • Squash: The PR will be squashed and merged (choose this if you have no preference).
  • Rebase: You will rebase the PR onto master and it will be merged with a merge commit.

Release Notes

Reviewer Checklist (only modified by reviewer)

  • Did you add the appropriate labels? (Select the most appropriate one based on the "Type of Improvement")
  • Did you mark the proper milestone (Bug fix: 3.5.x or 3.6.x depending on impact, API modification or big change: 5.0.0)?
  • Did you review?
  • Did you check whether all relevant Contributor checkboxes have been checked?
  • Did you do one of the following when ready to merge:
    • Squash: You/ the contributor Enable auto-merge (squash), clean up the commit message, and label with Please Merge.
    • Merge: Ensure that contributor has cleaned up their commit history, then merge with Create a merge commit.

@sequencer sequencer added the Internal Internal change, does not affect users, will be included in release notes label Jun 13, 2023
@sequencer sequencer force-pushed the mill_migration branch 2 times, most recently from a2d94d0 to 4dc1688 Compare June 15, 2023 19:43
Comment on lines 167 to 137
needs: [ci, std, integration, doc, website, scala-cli-template]
needs: [test, mima, doc, website, scala-cli-template]
Copy link
Contributor

Choose a reason for hiding this comment

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

Splitting out mima from CI is a good idea, but do not combine ci, std, and integration, they are split on purpose because then they can run in parallel on separate runners and CI is a lot faster.

Copy link
Member Author
@sequencer sequencer Jun 29, 2023

Choose a reason for hiding this comment

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

I see, I think integration can keep, but std seem only exist one test, so I prefer moving it to integration.

- name: Setup GPG (for Publish)
uses: olafurpg/setup-gpg@v3
- name: Publish
run: sbt ci-release
run: ./mill -i io.kipp.mill.ci.release.ReleaseModule/publishAll
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this do the right thing for publishing SNAPSHOTs vs. publishing actual releases?

Copy link
Contributor
@jackkoenig jackkoenig Jun 28, 2023

Choose a reason for hiding this comment

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

Also publishAll is almost certainly not right, see the unipublish in SBT, we are intentionally only publishing 2 projects, the plugin and unipublish. Unipublish combines the build artifacts of all subprojects into a single jar (not a fat jar, regular dependencies remain dependencies). There is no support for this built-in (I asked on Gitter) so it will require some manual logic in the mill build just like I had to write in the SBT build.

Copy link
Member Author

Choose a reason for hiding this comment

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

I see, I can custom and rewrite that publish flow in mill.
But I'm out of office this week, will do it next week.

@sequencer
Copy link
Member Author
sequencer commented Jun 29, 2023

question to @jackkoenig, How do I handle the microsite? Some possible replacement:

@sequencer
Copy link
Member Author
sequencer commented Jul 11, 2023

Discussed in the dev-meeting, we should keep the website content and migrate to other static website generator.
(personally preference: https://antora.org/)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Internal Internal change, does not affect users, will be included in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0