Skip to content

Workspace: add arm toolchain test#8279

Merged
LeFrosch merged 3 commits intobazelbuild:masterfrom
LeFrosch:pull/c36915608d57372d556fad0f708425412b8323ea
Apr 10, 2026
Merged

Workspace: add arm toolchain test#8279
LeFrosch merged 3 commits intobazelbuild:masterfrom
LeFrosch:pull/c36915608d57372d556fad0f708425412b8323ea

Conversation

@LeFrosch
Copy link
Copy Markdown
Collaborator

@LeFrosch LeFrosch commented Apr 9, 2026

Adds an integration test for configuration transitions using the arm toolchain.

LeFrosch added 2 commits April 9, 2026 13:55
# Conflicts:
#	clwb/tests/headlesstests/com/google/idea/blaze/clwb/ExecutionTest.kt
#	testing/src/com/google/idea/testing/headless/HeadlessTestCase.java

# Conflicts:
#	MODULE.bazel.lock
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces support for ARM toolchains and platform_transition_binary by updating the IntelliJ aspect and adding a dedicated headless test. It also refactors BazelVersionRule to support version ranges and adds helper methods for version comparison. Review feedback correctly identifies a logic error in the isAtMost implementation and an unused import in the new test class.

.compare(this.major, major)
.compare(this.minor, minor)
.compare(this.bugfix, bugfix)
.result() < 0;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

critical

The isAtMost method is implemented incorrectly. It should return true if the current version is less than or equal to the provided version. The current implementation with result() < 0 only checks for "less than", which means it will incorrectly return false when the versions are equal. The check should be result() <= 0.

Suggested change
.result() < 0;
.result() <= 0;

* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

This import is unused and can be removed to keep the code clean.

@LeFrosch LeFrosch marked this pull request as ready for review April 9, 2026 12:58
@LeFrosch LeFrosch requested review from mai93 and ujohnny as code owners April 9, 2026 12:58
@github-actions github-actions bot added product: CLion CLion plugin product: IntelliJ IntelliJ plugin product: GoLand GoLand plugin awaiting-review Awaiting review from Bazel team on PRs labels Apr 9, 2026
@LeFrosch LeFrosch merged commit 445cefb into bazelbuild:master Apr 10, 2026
4 checks passed
@LeFrosch LeFrosch deleted the pull/c36915608d57372d556fad0f708425412b8323ea branch April 10, 2026 16:33
@github-project-automation github-project-automation bot moved this from Untriaged to Done in Bazel IntelliJ Plugin Apr 10, 2026
@github-actions github-actions bot removed the awaiting-review Awaiting review from Bazel team on PRs label Apr 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

product: CLion CLion plugin product: GoLand GoLand plugin product: IntelliJ IntelliJ plugin

Projects

Development

Successfully merging this pull request may close these issues.

4 participants