flutter/docs/infra
auto-submit[bot] 4372bfbc6c
Reverts "Add workspace (#169451)" (#169468)
<!-- start_original_pr_link -->
Reverts: flutter/flutter#169451
<!-- end_original_pr_link -->
<!-- start_initiating_author -->
Initiated by: matanlurey
<!-- end_initiating_author -->
<!-- start_revert_reason -->
Reason for reverting: Broke a number of post-submit tests
(ios_app_extension, packages_autoroller).
<!-- end_revert_reason -->
<!-- start_original_pr_author -->
Original PR Author: mosuem
<!-- end_original_pr_author -->

<!-- start_reviewers -->
Reviewed By: {matanlurey}
<!-- end_reviewers -->

<!-- start_revert_body -->
This change reverts the following previous change:
Reland after #169357.

Switch Flutter to use pub workspaces as a preparation to unpin selected
packages.

Assumptions:

1. No packages in this repository are published to pub.dev --> We can
use `any` dependencies in most local pubspecs, as the global constraint
defines the version. An exception are the packages used outside of this
repo with an `sdk` dependency, namely `flutter_localizations`,
`flutter_test`, and `flutter`.
2. The "universes" `{flutter_tools}` and `{flutter,
flutter_localizations, flutter_goldens}` can use different packages
versions, as they are not resolved together. --> We do not need to
upgrade them in sync, we can first do one "universe", then the other.

Based on these assumptions, we use
https://github.com/mosuem/pubspec_merger.dart to merge all packages in
the `flutter` universe into a top-level pub workspace.

The `flutter` and `flutter_tools` workspaces being separate also ensures
that changes to `flutter` will not inadvertently break `flutter_tools`,
with not-so-nice consequences for our users which would be unable to run
`flutter upgrade`.

There is a third "top-level" pubspec besides `./pubspec.yaml` and
`packages/flutter_tools/pubspec.yaml`, namely
`packages/flutter_tools/.../widget_preview_scaffold/pubspec.yaml`. This
is an artifact due to it living under `flutter_tools`, so it can't be
part of the `./pubspec.yaml` workspace. Moving it would be a larger
change, and out of the scope of this PR.

This required a rewrite of the update-packages tool, but the main
functionality stays the same, as well as the argument names, to ensure a
seamless transition.

## Pre-launch Checklist

- [x] I read the [Contributor Guide] and followed the process outlined
there for submitting PRs.
- [x] I read the [Tree Hygiene] wiki page, which explains my
responsibilities.
- [x] I read and followed the [Flutter Style Guide], including [Features
we expect every widget to implement].
- [x] I signed the [CLA].
- [x] I listed at least one issue that this PR fixes in the description
above.
- [x] I updated/added relevant documentation (doc comments with `///`).
- [x] I added new tests to check the change I am making, or this PR is
[test-exempt].
- [x] I followed the [breaking change policy] and added [Data Driven
Fixes] where supported.
- [x] All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel
on [Discord].

<!-- Links -->
[Contributor Guide]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#overview
[Tree Hygiene]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md
[test-exempt]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#tests
[Flutter Style Guide]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md
[Features we expect every widget to implement]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md#features-we-expect-every-widget-to-implement
[CLA]: https://cla.developers.google.com/
[flutter/tests]: https://github.com/flutter/tests
[breaking change policy]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#handling-breaking-changes
[Discord]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Chat.md
[Data Driven Fixes]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Data-driven-Fixes.md

<!-- end_revert_body -->

Co-authored-by: auto-submit[bot] <flutter-engprod-team@google.com>
2025-05-26 14:07:27 +00:00
..
Adding-a-new-Test-Shard.md [wiki migration] Infra team pages (#148718) 2024-05-21 18:17:10 +00:00
Autorollers.md Delete and update stale documentation regarding engine/engine hash. (#164324) 2025-02-27 22:49:58 +00:00
Autosubmit-bot.md Misc docs cleanup and fixes (#155501) 2024-09-24 20:03:08 +00:00
Ci-Best-Practices.md Add a page describing best CI practices for flutter-org repos (#169364) 2025-05-23 18:34:05 +00:00
Dashboards.md [wiki migration] Infra team pages (#148718) 2024-05-21 18:17:10 +00:00
Experimental-Branch.md Add documentation for experimental branches, update artifacts. (#169109) 2025-05-20 20:14:13 +00:00
Flutter-FirebaseLab-Tests.md [wiki migration] Infra team pages (#148718) 2024-05-21 18:17:10 +00:00
Flutter-Framework-Gardener-Rotation.md Remove/replace the team label with c: contributor-productivity. (#168702) 2025-05-13 23:48:07 +00:00
Flutter-Infrastructure-Foundation.md [wiki migration] Infra team pages (#148718) 2024-05-21 18:17:10 +00:00
Flutter-Installation-Bundles.md [wiki migration] Leftover wiki pages and links (#148989) 2024-05-28 15:12:10 +00:00
GitHub-Action-Workflows.md [wiki migration] Leftover wiki pages and links (#148989) 2024-05-28 15:12:10 +00:00
How-to-add-a-new-integration-test-to-Framework-CI.md Misc docs cleanup and fixes (#155501) 2024-09-24 20:03:08 +00:00
How-to-download-a-timeline-from-a-benchmark.md [wiki migration] Infra team pages (#148718) 2024-05-21 18:17:10 +00:00
Landing-Changes-With-Autosubmit.md Misc docs cleanup and fixes (#155501) 2024-09-24 20:03:08 +00:00
merge_queue.md Prettier merge_queue.md (#158969) 2024-11-18 19:32:23 +00:00
Packages-Gardener-Rotation.md Remove/replace the team label with c: contributor-productivity. (#168702) 2025-05-13 23:48:07 +00:00
README.md Add documentation for experimental branches, update artifacts. (#169109) 2025-05-20 20:14:13 +00:00
Reducing-Test-Flakiness.md Misc docs cleanup and fixes (#155501) 2024-09-24 20:03:08 +00:00
Rolling-Dart.md Fix link to engine docs (#167346) 2025-04-17 21:35:39 +00:00
Security.md Remove flutter engine repo links (#167481) 2025-04-24 15:15:21 +00:00
Understanding-a-LUCI-build-failure.md Fix ISSUE_TEMPLATE Ordering: 10 < 9, but 10 > 09 (#166455) 2025-04-03 00:24:34 +00:00
Understanding-Google-Testing.md A few more updates to Google-Testing. (#168000) 2025-04-30 03:21:25 +00:00
Updating-dependencies-in-Flutter.md Reverts "Add workspace (#169451)" (#169468) 2025-05-26 14:07:27 +00:00

Infrastructure and Internal CI/CD Tooling

This is an index of team-facing documentation for topics relating to Engineering Productivity (also known as EngProd, and including topics relating to our CI infrastructure, security, autorollers, etc).