Skip to content

Conversation

Flamefire
Copy link
Collaborator

@Flamefire Flamefire commented Dec 19, 2024

Don't add the toolchain repo by default anymore.

Using $ADD_UBUNTU_TOOLCHAIN_PPA=true allows to still add it for Drone.
For GHA there is the sources matrix entry for this purpose.

Most issues should be fixable by using a suitable Ubuntu version

@Flamefire Flamefire force-pushed the apt-get branch 2 times, most recently from fa6970b to 504f629 Compare December 19, 2024 12:18
@sdarwin
Copy link
Collaborator

sdarwin commented Dec 19, 2024

@Flamefire , please don't break backwards compatibility with all existing drone CI installations, causing CI to switch to red on many repos. Toolchain is not such a terrible mistake. Arguably, it is convenient, and not such a problem.

The variable "$UBUNTU_TOOLCHAIN_DISABLE" already exists.

What could be done: in the example drone.sh file, set "$UBUNTU_TOOLCHAIN_DISABLE" == "true" so that developers start out with the more strict setting if they clone drone.sh as their example.

Optionally: download the whole boost.org superproject, search for drone installations, and submit pull requests to set "$UBUNTU_TOOLCHAIN_DISABLE" == "true", along with other necessary fixes so the tests complete. That would migrate those other repositories to the stricter setting.

Then, when they all generally do not depend on toolchain anymore... the switch is more plausible.

@sdarwin
Copy link
Collaborator

sdarwin commented Dec 19, 2024

Adding to the previous comment - in fact there are difficulties with omitting toolchain.

In order to test new compilers, it forces you to use non-LTS releases of Ubuntu, which themselves are not recommended, and often buggy. It's trading one issue for another.

It means you have to keep toggling your drone.star file, to use different operating system versions. Instead of being able to just set it up and it works for a long time. So the point is, that neither solution is 'perfect'. It is a trade-off both ways.

@Flamefire
Copy link
Collaborator Author

There is now ADD_UBUNTU_TOOLCHAIN_PPA to opt-in for drone jobs

@Flamefire
Copy link
Collaborator Author

In order to test new compilers, it forces you to use non-LTS releases of Ubuntu, which themselves are not recommended, and often buggy. It's trading one issue for another.

It means you have to keep toggling your drone.star file, to use different operating system versions. Instead of being able to just set it up and it works for a long time. So the point is, that neither solution is 'perfect'. It is a trade-off both ways.

This was suggested by @pdimov . The main change is basically just that the default is different so not everyone gets this in every job even when just a few need it.

@Flamefire Flamefire marked this pull request as draft December 19, 2024 12:59
@Flamefire Flamefire changed the title Remove adding ubuntu-toolchain-r-test PPA by default & make apt-get calls more consistent Remove adding ubuntu-toolchain-r-test PPA by default Dec 19, 2024
@codecov
Copy link

codecov bot commented Dec 19, 2024

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.00%. Comparing base (5d6a0e5) to head (9477285).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #252   +/-   ##
=======================================
  Coverage   85.00%   85.00%           
=======================================
  Files           2        2           
  Lines          20       20           
  Branches       12       12           
=======================================
  Hits           17       17           
  Misses          1        1           
  Partials        2        2           

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5d6a0e5...9477285. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Flamefire Flamefire force-pushed the apt-get branch 2 times, most recently from 50d4b47 to 8e7787c Compare October 15, 2025 11:16
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.

2 participants