Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terraform test: Execute eligible test runs in parallel #36300

Merged
merged 38 commits into from
Feb 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
7572c72
move test eval context to internal/terraform
dsa0x Jan 8, 2025
0b5f5dc
Build and execute tf test file runs in a graph
dsa0x Jan 8, 2025
621f4e1
terminate graph when there is a hard stop request
dsa0x Jan 8, 2025
fab784e
fix tests
dsa0x Jan 8, 2025
e42ab29
move things to terraformtest
dsa0x Jan 14, 2025
e9ec3c2
report all deps errors
dsa0x Jan 15, 2025
7f1a1db
parallelize parallel sequential runs that do not share state or refer…
dsa0x Jan 16, 2025
71be6a8
use GetStateKey
dsa0x Jan 16, 2025
adba883
Connect nodes with the same state key sequentially
dsa0x Jan 16, 2025
91ed0e0
only not connect sequential runs when parallelization is set for both
dsa0x Jan 16, 2025
55ca361
update the test for badreferences
dsa0x Jan 16, 2025
da322dc
remove unneeded test
dsa0x Jan 16, 2025
e6b82f9
check input variable references too
dsa0x Jan 16, 2025
b57b9ee
return diags instead of err
dsa0x Jan 17, 2025
d43e617
include the run's variable references in run.GetReferences
dsa0x Jan 17, 2025
324fb06
include testing scope in run refs parsing
dsa0x Jan 17, 2025
940308b
rename back to EvalContext
dsa0x Jan 17, 2025
50018a3
move MainStateIdentifier to moduletest
dsa0x Jan 17, 2025
9b5cad9
migrate from terraformtest to moduletest/graph, distinguish state key…
dsa0x Jan 17, 2025
ad9786b
rewrite EvalContext
dsa0x Jan 17, 2025
8d8e321
add VariableCaches to EvalContext
dsa0x Jan 18, 2025
b269a8e
add providers into graph
dsa0x Jan 18, 2025
1116628
cache lock synchronization
dsa0x Jan 19, 2025
ad9d9fc
introduce file-level config
dsa0x Jan 20, 2025
2b498e6
copy module config variables for each run
dsa0x Jan 20, 2025
5a18100
move state to EvalContext
dsa0x Jan 20, 2025
a369619
privatize field, mutexify maps
dsa0x Jan 20, 2025
b3a6b99
fix race condition
dsa0x Jan 20, 2025
6567466
fix tests
dsa0x Jan 20, 2025
4fb5dbe
copy module provider config for each run
dsa0x Jan 21, 2025
c90711b
update comments
dsa0x Jan 21, 2025
60ac808
add changelog
dsa0x Jan 21, 2025
16f2707
opt run out of parallelism when it is false
dsa0x Jan 21, 2025
70045fd
add some TODOs, more comments, and addressing PR feedback
dsa0x Jan 22, 2025
0acf68c
revert graph API changes, and use context in the test walker callback…
dsa0x Jan 22, 2025
f677f49
add cancel context to EvalContext
dsa0x Jan 23, 2025
9bce19f
update changelog
dsa0x Feb 4, 2025
9555a29
skip errored before any execution
dsa0x Feb 5, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changes/unreleased/ENHANCEMENTS-20250204-182544.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
kind: ENHANCEMENTS
body: 'Terraform Test: Runs can now be annotated for possible parallel execution.'
time: 2025-02-04T18:25:44.195967+01:00
custom:
Issue: "34180"
Loading
Loading