Skip to content

Remove monorepo #1030

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

Merged
merged 10 commits into from
Jul 28, 2025
Merged

Remove monorepo #1030

merged 10 commits into from
Jul 28, 2025

Conversation

mosuem
Copy link
Collaborator

@mosuem mosuem commented Jul 24, 2025

No description provided.

@mosuem mosuem requested a review from osa1 July 24, 2025 14:46
Copy link
Member

@osa1 osa1 left a comment

Choose a reason for hiding this comment

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

I thought mono_repo is how we manage CI workflows in the ecosystem packages, but I just realized that https://github.com/dart-lang/core doesn't use mono_repo. Are we migrating away from mono_repo? Or do I misremember and mono_repo wasn't the standard way of doing this?

I think we should follow the rest of the ecosystem packages. If they're migrating away from mono_repo and/or won't be using mono_repo in the future we should also drop it.

cc @devoncarew who may have opinions on this.

I also just filed #1031, do we want integrate that change into this PR, or do we want to do it separately?

@mosuem
Copy link
Collaborator Author

mosuem commented Jul 24, 2025

I also just filed #1031, do we want integrate that change into this PR, or do we want to do it separately?

I integrated it.

Are we migrating away from mono_repo?

In the end, it's personal preference - some package maintainers prefer it. It does not have the benefits which led to it's development anymore, features such as running only when certain files are touched is now possible with standard Github features. I personally think it is quite complicated and has little to no benefits, and most dart-lang monorepos (core, tools, labs, native, i18n, ...) we don't use it anymore.

@mosuem
Copy link
Collaborator Author

mosuem commented Jul 24, 2025

It seems like protoc_plugin does not support dart2js?

@mosuem mosuem requested a review from osa1 July 24, 2025 15:15
@osa1
Copy link
Member

osa1 commented Jul 24, 2025

It seems like protoc_plugin does not support dart2js?

Sorry I also realized this too late -- we need to skip golden tests in the browser as they read files (which we can't do in a browser). I'll figure out how to skip them.

In the meantime feel free to revert the commit to test on the browsers, we can cherry-pick it later.

@devoncarew
Copy link
Collaborator

As a drive-by comment, here's where I switched dart-lang/web from mono_repo to straight github workflow files; it also tests across vm and browsers / dart2wasm. dart-lang/web#428

@mosuem mosuem enabled auto-merge (squash) July 24, 2025 16:00
@osa1
Copy link
Member

osa1 commented Jul 25, 2025

@mosuem since your branch is on this repo (instead of a fork) I can take this from here if you prefer that or don't have the time.

@mosuem mosuem disabled auto-merge July 25, 2025 11:16
@mosuem mosuem requested a review from osa1 July 25, 2025 11:48
Copy link
Member

@osa1 osa1 left a comment

Choose a reason for hiding this comment

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

In a previous revision of this CL you had continue-on-error or similar. What happened to that?

Will the current setup will collect as many results as possible before failing? Otherwise it gets really annoying when a formatting error blocks your test results.

- 'benchmarks/**'
- 'tool/setup.sh'
schedule:
- cron: '0 0 * * 0' # weekly
Copy link
Member

Choose a reason for hiding this comment

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

Why do we want to run this periodically?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Just to check - in case some dependency update brings in a bug or similar. Also it's very low effort.

- run: dart analyze --fatal-infos

- run: dart format --output=none --set-exit-if-changed .
if: ${{matrix.run-tests && (success() || failure()) }}
Copy link
Member

Choose a reason for hiding this comment

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

Is matrix.run-tests ever false? It looks hard-coded above.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

run-tests is true only for the stable sdk, so we don't test on dev. Feel free to change that if needed.

Copy link
Member

Choose a reason for hiding this comment

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

Thanks. I'm not sure why we would want to analyze but not test. I think we should either run all of the steps or none of the steps (i.e. don't test with dev). I'll update.

I don't like that the build can go red on its own (with no changes to the repo) with periodic jobs and trying with new versions of deps, but it's not a new issue in this repo. Probably not a big deal.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I don't like that the build can go red on its own (with no changes to the repo) with periodic jobs and trying with new versions of deps, but it's not a new issue in this repo. Probably not a big deal.

That's just a problem of packages without pinned dependencies, and it's better to test for it than to have it happen silently.

@mosuem
Copy link
Collaborator Author

mosuem commented Jul 28, 2025

In a previous revision of this CL you had continue-on-error or similar. What happened to that?

That has the problem that it sets the check to success, so gives a green checkmark in the UI, regardless of whether any step failed or not.

Will the current setup will collect as many results as possible before failing? Otherwise it gets really annoying when a formatting error blocks your test results.

Yes it does, it runs through all the checks, not stopping when of them fails.

Copy link
Member

@osa1 osa1 left a comment

Choose a reason for hiding this comment

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

Thanks!

@osa1 osa1 merged commit 33b782f into master Jul 28, 2025
11 checks passed
@osa1 osa1 deleted the removeMonorepo branch July 28, 2025 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants