Skip to content

Conversation

@lurtz
Copy link
Contributor

@lurtz lurtz commented Jul 25, 2025

Using --help should not be an exceptional case. Instead it is always valid to use.

@lurtz lurtz marked this pull request as ready for review July 25, 2025 14:39
@lurtz lurtz force-pushed the exit_gracefully_when_help_is_requested branch from 996892f to 19054b0 Compare July 28, 2025 12:10
@lurtz
Copy link
Contributor Author

lurtz commented Jul 28, 2025

TODO: Markus Hosch if Rust and C++ example applications need to behave similar

UPDATE: Agreed to deal with these fixes in an additional pull request.

@FScholPer
Copy link

@lurtz Please add an issue with bugfix template

@lurtz lurtz force-pushed the exit_gracefully_when_help_is_requested branch from a51c904 to ce51580 Compare August 8, 2025 16:00
@lurtz lurtz changed the title Exit gracefully when help is requested Exit gracefully when help is requested and install correct bazel version Aug 8, 2025
@lurtz lurtz mentioned this pull request Aug 25, 2025
Comment on lines 31 to 33
- name: Install Bazel until we can use fixed container image with Bazel pre-installed
run: |
sudo apt-get update && sudo apt-get install -y --allow-downgrades bazel=$(cat .bazelversion)
Copy link
Contributor

Choose a reason for hiding this comment

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

We do not want to install Bazel here. Either we would use one of the preexisting GitHub Actions to use Bazelisk - or assume its installed in the dev-container.

See for example:

 uses: bazel-contrib/setup-bazel@0.15.0
        with:
          bazelisk-cache: true
          disk-cache: ${{ github.workflow }}
          repository-cache: true

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The container ships bazel 8.3.0, but this code still build with bazel 7.5.0 (see #58). For this reason bazel is downgraded. The alternative is to merge the other PR.

I did not dare to upgrade bazel here, because I do not know if that will cause trouble at BMW

Copy link
Contributor

Choose a reason for hiding this comment

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

its now pinned, so you can drop this commit if you want, then we can go with the other commit.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

do you see the change to use the devcontainer image later in time? At the moment it is still not possible to create version tags for the score/devcontainer and I would like to reintroduce the devcontainer in CI, when it is possible. I thought that creation of versions would be done quicker.

Copy link
Contributor

Choose a reason for hiding this comment

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

I do not know about the dev-container and what its goals are

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The source is here: https://github.com/eclipse-score/devcontainer

The original request here: eclipse-score/score#1256

The goal is to decouple host and development / CI environment. Thus you always use the tools provided by the devcontainer image to build and test the code.

E.g. in the Github Action you now specified that it runs on Ubuntu 24.04. Thus to exactly reproduce what CI did, I also have to run Ubuntu 24.04 (which is also used by the devcontainer). If CI and developers use the same image there is no chance they have different OS versions or tooling, when the container images are specified with fixed versions, which we do not have yet.

Using --help should not be an exceptional case. Instead it is always valid to use.
@lurtz lurtz force-pushed the exit_gracefully_when_help_is_requested branch from ce51580 to dddd63c Compare September 1, 2025 14:16
@lurtz lurtz changed the title Exit gracefully when help is requested and install correct bazel version Exit gracefully when help is requested Sep 1, 2025
@Rahul-Sutariya
Copy link
Contributor

Under Integration

@castler castler closed this in 32520b3 Sep 4, 2025
@lurtz lurtz deleted the exit_gracefully_when_help_is_requested branch September 25, 2025 14:33
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.

4 participants