Skip to content

Conversation

@rickystewart
Copy link
Collaborator

The test.xml produced by rules_go changed with the latest upgrade; this change restores the previous behavior.

Epic: DEVINF-1477
Closes #156597
Release note: none

@rickystewart rickystewart requested a review from rail October 31, 2025 18:14
@rickystewart rickystewart requested a review from a team as a code owner October 31, 2025 18:14
@cockroach-teamcity
Copy link
Member

This change is Reviewable

The `test.xml` produced by `rules_go` changed with the latest upgrade;
this change restores the previous behavior.

Epic: DEVINF-1477
Closes cockroachdb#156597
Release note: none
@rickystewart
Copy link
Collaborator Author

bors r=rail

craig bot pushed a commit that referenced this pull request Oct 31, 2025
155133: scbuild: allow multiple column renames r=rafiss a=rafiss

Please review each commit individually.

informs #148340

### schemaexpr: add isComputed to ColumnLookupFn

### scbuild: move function definitions to helpers.go

### schemaexpr: add iterColsWithLookupFn

This function allows the computed column validation to be used from the
declarative schema changer -- it uses a lookup function to access
columns rather than referring to the table descriptor directly.

### scbuild: use ValidateComputedColumnExpressionWithLookup function

This validates the computed column by referencing the builder state
rather than the table descriptor. The table descriptor would not reflect
the schema changes that are being staged by the declarative schema
changer.

### scplan: relax constraint for cleaning up non-index-backed constraints

This rule was matching all non-index-backed constraints, but it only
needs to apply to UNIQUE WITHOUT INDEX constraints.

### scplan: tighten rule for transient check constraints

This rule was only needed for the ALTER COLUMN TYPE op, so the rule is
updated to only apply in that case.

### scbuild: allow multiple column renames

This includes new dependency rules so that we fully remove the old name
before allowing a new column to take on that name, and another one to
make sure that a name is available before we create a computed column
expression that uses that name.

Release note: None

156472: kvserver: add destroy replica to TestReplicaLifecycleDataDriven  r=pav-kv a=arulajmani

See individual commits for details.

156584: copy: fix vectorized auto commit behavior r=yuzefovich a=yuzefovich

When we implemented the vectorized INSERT which supports COPY in some cases, we missed one condition for auto-committing the txn that is present in the regular `tableWriterBase` path. Namely, we need to check whether the deadline that might be set on the txn hasn't expired yet, and if it has, we shouldn't be auto-committing and should be leaving it up to the connExecutor (which will try to refresh the deadline). The impact of the bug is that often if COPY took longer than 40s (controlled via `server.sqlliveness.ttl`), we'd hit the txn retry error and propagate it to the client.

Fixes: #155300.

Release note (bug fix): Previously, the "atomic" COPY command (controlled via `copy_from_atomic_enabled`, which is `true` by default) could encounter RETRY_COMMIT_DEADLINE_EXCEEDED txn errors if the whole command took 1 minute or more. This was the case only when the vectorized engine was used for COPY and is now fixed.

156620: roachtest: deflake multi-store-remove r=tbg a=tbg

The test was checking on replication by asserting that the number of ranges
times the replication factor is equal to the number of replicas.

Replicas can persist after no longer being part of a range (waiting for
replicaGC), which is why this test was flaky.

I first tried to fix it by lowering the replicaGC queue's interval at
which it checks ranges (defaults to 12h), but looking more closely at
what the test was doing, I decided to change that instead by no longer
caring about what replicas each store reports. What matters is what
the meta ranges report, and now the test checks replication similar
to how many other tests do, by querying ranges_no_leases.

Fixes #146435.
Fixes #147763.
Fixes #156447.

Epic: none


156654: sql: add optimizer_use_max_frequency_selectivity session setting r=mgartner a=mgartner

The `optimizer_use_max_frequency_selectivity` session setting has been
added. It is enabled by default. Disabling it reverts the selectivity
improvements added in #151409.

Release note: None


156673: build: update `MungeTestXML` and `MergeTestXMLs` behavior r=rail a=rickystewart

The `test.xml` produced by `rules_go` changed with the latest upgrade; this change restores the previous behavior.

Epic: DEVINF-1477
Closes #156597
Release note: none

156685: sql: append copies of system column descriptors r=bghal a=bghal

Previously, the shared descriptors common to system columns meant
changes in one could cause side-effects in another. This was of
particular concern for the schema changer removing the `ColumnHidden`
element during a table drop and consequently exposing the column in
other tables. This change appends copies to avoid that side-effect.

Part of: #139605

Release note: None


Co-authored-by: Rafi Shamim <rafi@cockroachlabs.com>
Co-authored-by: Arul Ajmani <arulajmani@gmail.com>
Co-authored-by: Yahor Yuzefovich <yahor@cockroachlabs.com>
Co-authored-by: Tobias Grieger <tobias.b.grieger@gmail.com>
Co-authored-by: Marcus Gartner <marcus@cockroachlabs.com>
Co-authored-by: Ricky Stewart <ricky@cockroachlabs.com>
Co-authored-by: Brendan Gerrity <brendan.gerrity@cockroachlabs.com>
@craig
Copy link
Contributor

craig bot commented Oct 31, 2025

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Oct 31, 2025

@craig craig bot merged commit 88240a3 into cockroachdb:master Oct 31, 2025
24 checks passed
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.

ci: MungeTestXML behavior is now incorrect after rules_go upgrade

3 participants