Skip to content

Conversation

@rickystewart
Copy link
Collaborator

Prior to this change, the FIPS build did not have FIPS mode enabled by default. This PR addresses this via a change to rules_go. We still need to fix rules_go so that GOFIPS140=v1.0.0 will work, but that requires more tweaking (see discussion).

Release note: none
Epic: DEVINF-1477

@cockroach-teamcity
Copy link
Member

This change is Reviewable

Prior to this change, the FIPS build did not have FIPS mode enabled by
default. This PR addresses this via a change to `rules_go`. We still
need to fix `rules_go` so that `GOFIPS140=v1.0.0` will work, but that
requires more tweaking (see [discussion](bazel-contrib/rules_go#4449 (comment))).

Release note: none
Epic: DEVINF-1477
@rickystewart rickystewart marked this pull request as ready for review November 6, 2025 18:18
@rickystewart rickystewart requested a review from a team as a code owner November 6, 2025 18:19
@rickystewart rickystewart requested a review from rail November 6, 2025 18:19
@rickystewart
Copy link
Collaborator Author

bors r=rail

@craig
Copy link
Contributor

craig bot commented Nov 6, 2025

@craig craig bot merged commit a053744 into cockroachdb:master Nov 6, 2025
23 of 25 checks passed
rickystewart added a commit to rickystewart/cockroach that referenced this pull request Nov 7, 2025
This removes an unnecessary debugging switch that was accidentally
flipped in cockroachdb#156976, making builds unnecessarily verbose.

Release note: none
Epic: none
craig bot pushed a commit that referenced this pull request Nov 7, 2025
157067: allocator: change rebalanceStores receiver to *clusterState r=wenyihu6 a=tbg

Change rebalanceStores from *allocatorState to *clusterState receiver and
add rng and dsm as parameters. This enables direct testing of rebalanceStores
from cluster_state_test.go without instantiating allocatorState.

Also update ensureAnalyzedConstraints and computeCandidatesForRange to
use *clusterState receiver.

I intentionally didn't move methods around to avoid large diffs and merge conflicts.
At some point, I'll do a "mostly moving things around" PR when we don't have as
much inflight.

The upshot of the refactor is that we can now use `TestClusterState` to exercise `rebalanceStores`.

I added a TODO to also print the trace output. This is turning into a bigger yak shave
than I anticipated (we need to pare down the default trace output to make sure it's
deterministic and not noisy), so I'll send that separately.

Once I have that, I'll start adding store health logic to the allocator while adding
suitable tests.

Informs #156776.

Epic: CRDB-55052

157078: build: update rules_go r=rail a=rickystewart

This removes an unnecessary debugging switch that was accidentally flipped in #156976, making builds unnecessarily verbose.

Release note: none
Epic: none

Co-authored-by: Tobias Grieger <[email protected]>
Co-authored-by: Ricky Stewart <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants