Skip to content

Round-trip pipeline parameters in the test server#5942

Merged
radakam merged 3 commits into
mainfrom
fix-testserver-pipeline-parameters
Jul 17, 2026
Merged

Round-trip pipeline parameters in the test server#5942
radakam merged 3 commits into
mainfrom
fix-testserver-pipeline-parameters

Conversation

@radakam

@radakam radakam commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Changes

The fake pipelines handler decoded the create/update body into pipelines.PipelineSpec, which has no parameters field — it lives on CreatePipeline/EditPipeline and is echoed back on GetPipelineResponse.Parameters. Decode that request-only field separately and mirror it on the stored GetPipelineResponse, matching backend behavior.

Why

Because the test server dropped parameters on read-back, a re-read never returned it and the direct engine planned a perpetual update for any pipeline that set parameters. This gap was found by fuzz testing.

Tests

Adds an acceptance test that deploys a pipeline with parameters, asserts bundle plan is a no-op, and confirms a redeploy issues no update call. Verified to fail without the fix.

@eng-dev-ecosystem-bot

eng-dev-ecosystem-bot commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

Integration test report

Commit: 470cd6c

Run: 29567205623

Env 💚​RECOVERED 🙈​SKIP ✅​pass 🙈​skip Time
💚​ aws linux 4 4 227 1120 4:36
💚​ aws windows 4 4 229 1118 8:49
💚​ aws-ucws linux 4 4 316 1036 5:32
💚​ aws-ucws windows 4 4 318 1034 9:58
💚​ azure linux 4 4 227 1119 4:37
💚​ azure windows 4 4 229 1117 9:00
💚​ azure-ucws linux 4 4 318 1033 6:07
💚​ azure-ucws windows 4 4 320 1031 9:56
💚​ gcp linux 4 4 226 1121 8:29
💚​ gcp windows 4 4 228 1119 9:05
8 interesting tests: 4 RECOVERED, 4 SKIP
Test Name aws linux aws windows aws-ucws linux aws-ucws windows azure linux azure windows azure-ucws linux azure-ucws windows gcp linux gcp windows
💚​ TestAccept 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
🙈​ TestAccept/bundle/invariant/no_drift 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/bundle/resources/vector_search_endpoints/drift/recreated_same_name 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/bundle/resources/vector_search_indexes/recreate/embedding_dimension 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/ssh/connection 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
💚​ TestFetchRepositoryInfoAPI_FromRepo 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
💚​ TestFetchRepositoryInfoAPI_FromRepo/root 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
💚​ TestFetchRepositoryInfoAPI_FromRepo/subdir 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
Top 11 slowest tests (at least 2 minutes):
duration env testname
8:52 aws-ucws windows TestAccept
8:39 azure-ucws windows TestAccept
8:39 gcp windows TestAccept
8:30 azure windows TestAccept
8:23 aws windows TestAccept
6:24 gcp linux TestSecretsPutSecretStringValue
3:04 azure linux TestAccept
2:54 aws linux TestAccept
2:54 azure-ucws linux TestAccept
2:52 aws-ucws linux TestAccept
2:52 gcp linux TestAccept

@radakam radakam changed the title Round-trip pipeline parameters and run_as in the test server Round-trip pipeline parameters in the test server Jul 16, 2026
@radakam
radakam force-pushed the fix-testserver-pipeline-parameters branch from 0106047 to 43d5490 Compare July 16, 2026 10:37
The fake pipelines handler unmarshals the create/update body into
pipelines.PipelineSpec, which has no parameters field (it lives on
CreatePipeline/EditPipeline and is echoed on the top-level
GetPipelineResponse.Parameters). So a re-read never returned it and the direct
engine planned a perpetual update for any pipeline that set parameters.

Decode that request-only field separately and set it on the stored
GetPipelineResponse. Adds an acceptance test that deploys a pipeline with
parameters and asserts the plan is a no-op.
@radakam
radakam force-pushed the fix-testserver-pipeline-parameters branch from 43d5490 to b55cc8d Compare July 16, 2026 10:40
@radakam
radakam marked this pull request as ready for review July 16, 2026 12:20
@radakam
radakam enabled auto-merge July 17, 2026 06:35
@radakam
radakam disabled auto-merge July 17, 2026 07:22
@radakam
radakam enabled auto-merge July 17, 2026 08:39
@radakam
radakam added this pull request to the merge queue Jul 17, 2026
Merged via the queue into main with commit d5d2869 Jul 17, 2026
23 checks passed
@radakam
radakam deleted the fix-testserver-pipeline-parameters branch July 17, 2026 09:21
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.

3 participants