Skip to content

acc: merge repls.json into ACC_REPLS and move it out of the test directory - #6264

Merged
denik merged 4 commits into
mainfrom
denik/do-not-upload-outputs
Aug 17, 2026
Merged

acc: merge repls.json into ACC_REPLS and move it out of the test directory#6264
denik merged 4 commits into
mainfrom
denik/do-not-upload-outputs

Conversation

@denik

@denikdenik commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Why

Both files were created inside the test directory, so bundle deploy uploaded them to the workspace. They also carried the same data in two formats: repls.json from the harness to diff.py, ACC_REPLS from the scripts back to the harness.

Having it in test directory made file count less stable in #5720

Changes

A single file at $ACC_REPLS, outside the test directory. Every line is one replacement encoded as a JSON object: "Old" for a regular expression from the harness, "Literal" for a value added by add_repl.py. Scripts no longer write the file directly - they use the new add_repl helper, which works under MSYS_NO_PATHCONV=1. diff.py and sort_lines.py --repl now apply the script replacements too.

@eng-dev-ecosystem-bot

eng-dev-ecosystem-bot commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator

Integration test report

Commit: cd69ff5

Run: 32017879365

Env🟨​KNOWN🔄​flaky💚​RECOVERED🙈​SKIP✅​pass🙈​skipTime
🟨​aws linux314340113120:19
🟨​aws windows31429111469:34
🟨​azure linux314339113114:17
🟨​azure windows2114290114610:49
💚​gcp linux15340113114:48
💚​gcp windows1529111469:25
8 interesting tests: 4 SKIP, 3 KNOWN, 1 RECOVERED
Test Nameaws linuxaws windowsazure linuxazure windowsgcp linuxgcp windows
💚​TestAccept💚​R💚​R💚​R💚​R💚​R💚​R
🙈​TestAccept/bundle/invariant/no_drift🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S
🙈​TestAccept/bundle/resources/vector_search_endpoints/drift/recreated_same_name🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S
🙈​TestAccept/bundle/resources/vector_search_indexes/recreate/embedding_dimension🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S
🙈​TestAccept/ssh/connection🙈​S🙈​S🙈​S🙈​S🙈​S🙈​S
🟨​TestFetchRepositoryInfoAPI_FromRepo🟨​K🟨​K🟨​K🟨​K🙈​S🙈​S
🟨​TestFetchRepositoryInfoAPI_FromRepo/root🟨​K🟨​K🟨​K🟨​K
🟨​TestFetchRepositoryInfoAPI_FromRepo/subdir🟨​K🟨​K🟨​K🔄​f
Top 11 slowest tests (at least 2 minutes):
durationenvtestname
12:51aws linuxTestAccept/bundle/config-remote-sync/multiple_resources/DATABRICKS_BUNDLE_ENGINE=terraform
7:59gcp windowsTestAccept
7:40azure windowsTestAccept
7:07aws windowsTestAccept
6:26gcp linuxTestAccept/bundle/config-remote-sync/multiple_resources/DATABRICKS_BUNDLE_ENGINE=direct
6:17azure linuxTestAccept/bundle/config-remote-sync/multiple_resources/DATABRICKS_BUNDLE_ENGINE=terraform
5:26gcp linuxTestAccept/bundle/config-remote-sync/multiple_resources/DATABRICKS_BUNDLE_ENGINE=terraform
4:37azure linuxTestAccept/bundle/config-remote-sync/multiple_resources/DATABRICKS_BUNDLE_ENGINE=direct
3:52aws linuxTestAccept
3:52gcp linuxTestAccept
3:47azure linuxTestAccept

Comment threadacceptance/acceptance_test.go Outdated
for line := range lines {
line = strings.TrimSpace(line)
if len(line) == 0 {
if len(line) == 0 || strings.HasPrefix(line, "{") {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is it possible for the user's replacement to start with {? Like if I am replacing something like {myjson...} with [MYJSON]?

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

Yes, and it was broken — the line was taken for a harness entry and the replacement was silently dropped. Fixed in 6c523a4: every line in the file is now a JSON object ("Old" for a harness regex, "Literal" for a value from a script), so nothing sniffs a prefix. The harness skips the lines it wrote by their count instead. selftest/acc_repls covers {"a": 1}, a value with a colon, and one with quotes and backslashes.

Written by Claude Code.

return result


def add_repl(value, repl):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Add an error if the repl starts with {?

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

Not needed anymore — those values work now, so an error would reject a legitimate one. See 6c523a4.

Written by Claude Code.

@denik
denikforce-pushed the denik/do-not-upload-outputs branch from 2f141ab to c747d10CompareAugust 17, 2026 08:14
@denik
denik enabled auto-merge August 17, 2026 08:18
@denik
denik added this pull request to the merge queueAug 17, 2026
@github-merge-queue
github-merge-queueBot removed this pull request from the merge queue due to failed status checks Aug 17, 2026
…ctory
Both files were created inside the test directory, so bundle deploy uploaded
them to the workspace. There is now a single file at $ACC_REPLS, outside the
test directory: the harness writes its replacements there as one JSON object
per line, add_repl.py appends "<value>:<NAME>" lines as before.
Co-authored-by: Isaac
Every line is now a JSON object: "Old" for a regular expression from the harness,
"Literal" for a value added by add_repl.py. Previously the two kinds were told apart
by a leading "{", so a value starting with "{" was silently dropped.
The harness skips the lines it wrote itself by their count instead.
Co-authored-by: Isaac
The deploy summary from #5720 counts uploaded files, and repls.json was one of
them.
Co-authored-by: Isaac
@denik
denikforce-pushed the denik/do-not-upload-outputs branch from c747d10 to cd69ff5CompareAugust 17, 2026 09:57
@denik
denik added this pull request to the merge queueAug 17, 2026
@denik
denik removed this pull request from the merge queue due to a manual request Aug 17, 2026
@denik
denik added this pull request to the merge queueAug 17, 2026
Merged via the queue into main with commit 13bbb25Aug 17, 2026
26 checks passed
@denik
denik deleted the denik/do-not-upload-outputs branch August 17, 2026 11:37
denik added a commit that referenced this pull request Aug 17, 2026
## Why
Two tests assert `Files: N uploaded`, which is not stable on Windows:
- `bundle/lifecycle/prevent-destroy` is the only test that redirects
`bundle deploy`
output away from `output.txt`, so nothing writes to `output.txt` between
the two
deploys. Its mtime stays put on Linux and macOS, but on Windows the
last-write-time
update on the still-open handle lands late and the file looks modified,
giving
`Files: 3` instead of `2`. Deterministic, both engines.
- `bundle/artifacts/shell/cmd` only runs on Windows, so `-update`
elsewhere skips it.
#6264 took repls.json out of the
synced tree
and moved the four sibling shell tests from 6 to 5, leaving this one
stale at 6.
## Changes
Add `-qq` to those deploys. The count is noise in both: prevent-destroy
asserts the
`prevent_destroy` error, and shell/cmd asserts which shell ran the build
via
`out.shell.txt`.
Sign up for freeto 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.

3 participants

@denik@eng-dev-ecosystem-bot@shreyas-goenka