Symfony packages are not tagged anymore when nothing changes between versions

Since Symfony version 2, the project’s code has been managed as a Git mono-repository. Having all the code in one place is very convenient: from changes across the board to centralized issues, it makes everyone’s life much easier. Since Symfony 4, the mono-repository is only used for development and not used anymore as a Composer project dependency (symfony/symfony). Instead, projects now depend on individual packages (symfony/console, symfony/http-kernel, …). It is a great optimization as it saves some significant bandwith by not downloading code you will never use. It also allows Symfony 4 to automatically enable or disable features based on your dependencies. The mono-repository is still the single source of truth though as the individual packages are automatically updated thanks to a technique known as Git subtree splits. Whenever we create a new release, we are tagging the mono-repository and then, tags are automatically created for each individual package. But as the number of Symfony components grows, it also means that we are creating more “empty” tags. Even if a package has had no changes since the last patch release, we are still creating a new tag. It has one big advantage: you can easily spot in the composer show output if all Symfony packages are up-to-date. Creating tags when no changes occur is also wasting resources: CIs updating dependencies, developers downloading new versions even if they don’t need to, time spent waiting for the downloads, … We are wasting human resources, but also infrastructure resources. Talking about optimizing infrastructure resources, we have worked hard to optimize our CI pipelines to avoid redundant activities as much as possible. Today, we are going one step further. Starting with the next releases, we won’t create tags anymore for packages when they had no changes since the last patch release as we consider the benefits far more important than the inconvenience of not having all Symfony packages using the same patch version. It also has one side-effect: sometimes, we tag a release with a major regression in one component. Even if we fix it right away, we are always reluctant to tag a new release right away to avoid creating many new empty tags. No more. When such regressions happen, we will now be able to quickly create a new release. Besides the main Symfony repository, we will do the same for Symfony Contracts, Symfony Polyfills, and Twig. That’s maybe a baby step, but a good one nonetheless to protect our planet.

                Sponsor the Symfony project.

http://feedproxy.google.com/~r/symfony/blog/~3/jZ8-oz3uKx8/symfony-packages-are-not-tagged-anymore-when-nothing-changes-between-versions

Létrehozva 4y | 2021. márc. 10. 11:20:11


Jelentkezéshez jelentkezzen be

EGYÉB POSTS Ebben a csoportban

Symfony 7.3.0-BETA2 released

Symfony 7.3.0-BETA2 has just been released. This is a pre-release version of Symfony 7.3. If you want to test it in your own applications before its final release, run the following commands:

2025. máj. 10. 13:10:15 | Symfony
New in Symfony 7.3: Mailer Security Improvements

The Symfony Mailer component provides many security-related features like signing and encrypting email messages. In Symfony 7.3 we're pushing those features even further to give you greater control an

2025. máj. 9. 9:20:10 | Symfony
SymfonyOnline June 2025: Detect Hidden Defects: Check Your PHP Tests

SymfonyOnline June 2025 is almost here, starting in almost 2 months on:

June 10-11: Workshop days. It is possible to attend 1 two-day training or 2 one-day trainings. June 12-13: Online confe

2025. máj. 8. 14:40:19 | Symfony
New in Symfony 7.3: JsonPath Component

Contributed by Alexandre Daubois in

2025. máj. 8. 10:10:10 | Symfony
SymfonyOnline June 2025: Combining Turbo, LiveComponent & Stimulus... the Right Way?

SymfonyOnline June 2025 is almost here, starting in almost 2 months on:

June 10-11: Workshop days. It is possible to attend 1 two-day training or 2 one-day trainings. June 12-13: Online confe

2025. máj. 7. 13:10:15 | Symfony
New in Symfony 7.3: New and Improved Console Helpers

Symfony 7.3 introduces powerful improvements to the Console component, beyond the much-anticipated invokable commands and input attributes. This version also brings new helpers and features designed t

2025. máj. 7. 8:30:04 | Symfony
New in Symfony 7.3: Static Error Pages

Contributed by Loick Piera in

2025. máj. 6. 9:20:10 | Symfony