Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
214 commits
Select commit Hold shift + click to select a range
d2c98f0
add upgrade guide to 7.0.0 branch (#13790)
NickElliot Apr 28, 2025
8489ea3
feat(bigtable): rename instance to instance_name for table_iam resour…
ron-gal Jun 25, 2025
b435160
cherry-pick "feat(bigtable): rename instance to instance_name for tab…
c2thorn Jul 1, 2025
c8f9ad2
fix: (storagetransfer) path validation for GCS path source and sink (…
gurusai-voleti Jul 2, 2025
7d64c0a
fix: (storage) data type change for retention_period (#14442)
gurusai-voleti Jul 8, 2025
6b14a0c
sync major release feature branch july 9th (#14485)
NickElliot Jul 10, 2025
78e4e30
Update beta api endpoint from v1beta1 to v1beta as v1beta1 will be de…
haiyanmeng Jul 11, 2025
00fd0ee
Delete notebooks location (#14479)
trodge Jul 14, 2025
87f7bfd
Sync 7.0.0 feature branch 7.0.0 jul17 (#14558)
c2thorn Jul 18, 2025
c4267dd
Remove enable_flow_logs from google_compute_subnetwork (#14612)
hao-nan-li Jul 24, 2025
3fdf5ec
Mark `load_balancing_scheme` field required. (#14624)
hao-nan-li Jul 28, 2025
5399983
Merge branch 'FEATURE-BRANCH-major-release-7.0.0' into sync-main-FEAT…
NickElliot Jul 28, 2025
fd6f9b8
syncing removal of validation to v3 schema
NickElliot Jul 28, 2025
5c71b63
Sync feature branch 7.0.0 jul 28 (#14664)
c2thorn Jul 29, 2025
041869f
cloudfunctions2: changed `service` argument in `service_config` of `g…
ramonvermeulen Jul 29, 2025
6ac3ef3
remove dependsOn field as it is not supported for workerpools and fix…
paridhishah18 Jul 31, 2025
d6bf6c4
vertexai: marked `enable_secure_private_service_connect` in `google_v…
ramonvermeulen Aug 1, 2025
ef471f9
Sync feature branch 7.0.0 aug 04 (#14736)
c2thorn Aug 5, 2025
4ba5c47
make event_type required in `google_cloudfunctions2_function` resourc…
c2thorn Aug 8, 2025
f5d9753
Changed default on disable_on_destroy to false (#14790)
c2thorn Aug 11, 2025
c4de62f
Set SecureSourceManager Instance and Repository deletion_policy defau…
ericpang777 Aug 12, 2025
2c144bf
Deprecate Cloud TPU google_tpu_node resoruce (#14794)
zoeyai-google Aug 12, 2025
62ce3fa
resolve sync conflicts
NickElliot Aug 12, 2025
62abbd8
remove default vals and custom code for `publicRepository` in artifac…
NickElliot Aug 12, 2025
36fc509
`google_vertex_ai_index` fields made required (#14786)
NickElliot Aug 12, 2025
1b941a1
Merge branch 'FEATURE-BRANCH-major-release-7.0.0' into sync-main-FEAT…
NickElliot Aug 13, 2025
dfb6c46
Sync feature branch 7.0.0 aug 12 (#14827)
c2thorn Aug 13, 2025
856b9af
remove google_beyondcorp_application (#14798)
NickElliot Aug 14, 2025
fb33ae4
Remove `project` from `google_service_account_key` (#14784)
NickElliot Aug 14, 2025
edca413
fix bigtable Table IAM instance_name panic (#14864)
c2thorn Aug 14, 2025
ffc76c4
Fix partial match regexes (#14866)
NickElliot Aug 15, 2025
216ba63
convert storage transfer job file from .tmpl (#14867)
NickElliot Aug 15, 2025
bb28eed
changed mirrored_resources nested objects to set (#14871)
NickElliot Aug 18, 2025
7b090ac
add deletion protection to alloydb cluster (#14796)
NickElliot Aug 18, 2025
40b7846
Remove post_startup_script_config field from google_colab_runtime_tem…
NickElliot Aug 18, 2025
eb796f4
Convert advertised_ip_ranges from List to Set (#14854)
amanMahendroo Aug 19, 2025
2c103c0
Merge commit '22a40032828fb18bbb472f686e94fed8b93b254d' into 7.0.0-sync
c2thorn Aug 19, 2025
f269c3a
7.0.0 sync 8/19 (#14904)
c2thorn Aug 19, 2025
6593c62
Update go.mod and go.sum (#14894)
shrishty Aug 20, 2025
6a26598
Add support to pause google_cloud_tasks_queue resources (#14278)
liaodaniel Aug 20, 2025
1de36cd
tgc-revival: add google_backup_dr_backup_vault and google_backup_dr_b…
zli82016 Aug 20, 2025
0dd2f1c
write-only: use `CamelizeProperty` for the expander property variable…
ramonvermeulen Aug 20, 2025
de01f82
Remove hardcoded values that are handled by the API (#11423)
karolgorc Aug 20, 2025
0c59673
Fix Lustre timeout failures (#14878)
stephanecharite Aug 20, 2025
3d112f0
container: Removed instance type from resourceManagerTags test (#14834)
wyardley Aug 20, 2025
343c1d7
updated organization security policies (#14914)
maxi-cit Aug 20, 2025
6374aaf
Revert " provider: eliminated the need to manually add `*_wo` and `*_…
ScottSuarez Aug 20, 2025
c657f7b
Add resource_manager_tags support to Backend Service api (#14902)
axelkossek Aug 20, 2025
776b3e4
tgc-revival: add TGCIgnoreTerraformEncoder and TGCIgnoreTerraformCust…
zli82016 Aug 20, 2025
239b775
container: Used zonal cluster for network config test (#14847)
wyardley Aug 20, 2025
f31b254
Remove the default value of view.use_legacy_sql in google_bigquery_ta…
wj-chen Aug 20, 2025
35f331e
Adding restoreBackup support for sql db instance using backupdr_backu…
aditikumarii-google Aug 20, 2025
17fa04e
upgrade dcl to 1.82.0 gkehub binauthz removal (#14916)
c2thorn Aug 20, 2025
b9d7b73
Add resource_manager_tags support to Backend Bucket api (#14901)
axelkossek Aug 21, 2025
4b274d4
Add singular data source for retrieving an NPM package from an Artifa…
bestefreund Aug 21, 2025
bc461dd
tgc-revival: add beyondcorp resources (#14919)
zli82016 Aug 21, 2025
201fe03
Deprecation of Field allow_fewer_zone_deployment (#14887)
NA2047 Aug 21, 2025
0756cee
Remove `configmanagement.binauthz` field in google_gke_hub_feature_me…
haiyanmeng Aug 21, 2025
00d53eb
Update membership_data.go (#14940)
melinath Aug 21, 2025
4efcbb9
fixed issue where a failed creation on container_node_pool would resu…
ScottSuarez Aug 21, 2025
e2e1d51
remove default_from_api from credit_types and subaccounts in google_b…
NickElliot Aug 21, 2025
eed48c1
Breaking Change: Remove allow_fewer_zones_deployment from Memorystore…
NA2047 Aug 21, 2025
63cb195
workbench: Make install-monitoring-agent settable but unmodifiable (#…
bcreddy-gcp Aug 21, 2025
c4a23a8
Revert " provider: eliminated the need to manually add `*_wo` and `*_…
melinath Aug 21, 2025
4cf8df0
tgc-revival: add google_apigee_instance (#14924)
zli82016 Aug 21, 2025
7b15bdc
Standardized required_with behavior for write-only fields (#14941)
melinath Aug 21, 2025
c42046f
fix other scenario for node_pool not exist (#14943)
ScottSuarez Aug 21, 2025
9ab437d
Improve test data ingestion (#14944)
shuyama1 Aug 21, 2025
87b4ef0
allows difftest tests to be skipped if they fail, not pass (#14915)
luckyswaminathan Aug 22, 2025
570a8c3
Merge commit '87b4ef0a14e7b29a18b81105f3ccd7e2d894a278' into 7.0.0-sync
c2thorn Aug 22, 2025
1edf717
last merge conflict
c2thorn Aug 22, 2025
73a1e53
7.00.0 sync 8-22 (#14949)
c2thorn Aug 22, 2025
13886db
Merge feature branch major release 7.0.0 (#14962)
c2thorn Aug 22, 2025
fd62c38
Plugin Framework feature branch merge (#14977)
c2thorn Aug 25, 2025
983fcee
Fix 7.0.0 upgrade guide (#14959)
NickElliot Aug 25, 2025
cc93af2
note: removed deprecated status for field detect_md5hash (#14641)
gurusai-voleti Aug 26, 2025
d102272
Add provisioned_throughput to the public documentation for instance t…
chenir0219 Aug 26, 2025
409394a
FEAT: Add support for Multi-Region Services in cloudrunv2 (#14592)
rafaeltello Aug 26, 2025
b63fca5
Remove 7.0.0 TC testing (#14991)
c2thorn Aug 26, 2025
c6747a9
SWP: Add support for value "EXPLICIT_ROUTING_MODE" on field "routing_…
victorsantos-cit Aug 26, 2025
0011d37
feat: (storage) added field credentials_secret in storage transfer jo…
gurusai-voleti Aug 26, 2025
86efcca
`teamcity`: use ModularMagician repo for testing purposes in `weeklyD…
BBBmau Aug 26, 2025
34e26e7
altered datasource url usage (#14880)
luckyswaminathan Aug 26, 2025
a161067
compute: canonicalize backend.group self-links to avoid spurious diff…
victorsantos-cit Aug 26, 2025
b363509
Add Terraform support for GCS in Global Internal Load Balancers (#14679)
SCSAndre Aug 26, 2025
3427eb2
add vacation for zhenhua (#14992)
zli82016 Aug 26, 2025
5375627
tgc-revival: add cloudasset feed resources (#14934)
zli82016 Aug 26, 2025
23e0f84
add GKE default disk_type notes (#14930)
translucens Aug 26, 2025
ed24432
Fix typo on word 'Certificate' for map description (#14859)
naheedtayab Aug 26, 2025
214ebd8
added qos support (#14929)
raazanand Aug 26, 2025
bdbcf3a
Add unique index support in Firestore (#14682)
HansiMou Aug 26, 2025
ff3aee6
artifactregistry: added `registry_uri` as attribute to `google_artifa…
ramonvermeulen Aug 26, 2025
c588b8a
Upgrade DCL 1.83.0 (#14935)
zli82016 Aug 27, 2025
43cd12a
logging: update documentation for `include_children` in `google_loggi…
ramonvermeulen Aug 27, 2025
3edb536
Add IAP for global forwarding rule (#14947)
bryan0515 Aug 27, 2025
7a17e40
GKE Multi-Subnet additional_ip_ranges_config: Change test subnet and …
gnossen Aug 27, 2025
68a864c
Promote update_strategy field in google_compute_network_peering to v1…
shrishty Aug 27, 2025
2746d98
Ignore parallelstore Instance update_time changes in importstateverif…
melinath Aug 27, 2025
cacf081
Fix non-idempotent behavior in google_compute_region_network_endpoint…
wojtekolesinski Aug 27, 2025
a419b91
Add create_time field in backups (#14951)
aditikumarii-google Aug 27, 2025
aea7d7c
feat: enable default_from_api flag for ODB Network related fields in …
nimish-khurana Aug 27, 2025
c30a428
Added missing update_time importstateverify ignore for notebooks inst…
melinath Aug 27, 2025
e94584a
fix storage bucket retention_period migration crash (#15000)
c2thorn Aug 27, 2025
3765e56
Fix HA Policy update test flakiness (#14960)
uberferg Aug 27, 2025
b49a4ed
Update BackupPlan.yaml to move resource type field to GA (#14984)
gitika-yadav Aug 27, 2025
ff818d3
Changes to sql testAccSqlDatabaseInstance_updateFromBackupDR function…
aditikumarii-google Aug 27, 2025
546c24c
Add resource_manager_tags support to Region Backend Service api (#14837)
axelkossek Aug 27, 2025
3128bac
Modify test file generation to use resource ImportPath (#15002)
roaks3 Aug 27, 2025
921e62c
`teamcity`: set `RELEASE_DIFF` as environment variable instead of pa…
BBBmau Aug 27, 2025
4f2a679
feat(storagetransfer): add service_account to google_storage_transfer…
kautikdk Aug 27, 2025
8819c95
Fixed TestAccApigeeSecurityAction_apigeeSecurityActionFull test setup…
melinath Aug 27, 2025
0005201
sql: Add `consumer_network_status`, `ip_address`, and `status` fields…
jbuck Aug 28, 2025
f84cf65
Compute public delagated sub prefix list support (#14264)
malhotrasagar2212 Aug 28, 2025
3e1b542
Update unit test - AutomaticManagement is no longer supported on the …
shumiao Aug 28, 2025
6bb6bdc
update go.mod and go.sum (#14926)
JessieYee Aug 28, 2025
d6166b5
autogeneration of tests for singular datasources (#14872)
luckyswaminathan Aug 28, 2025
a941c02
fixing custom performance pool, since totalIops will be returned by s…
Mehul3217 Aug 28, 2025
b9257d5
Removed changes that were left out of v7 release (#15013)
melinath Aug 28, 2025
085498d
Remove unused TerraformResourceDirectory and TerraformProviderModule …
roaks3 Aug 28, 2025
69880d9
Update provider generation to use generic naming for imports (#15008)
roaks3 Aug 28, 2025
a964c38
Document deprecated GKE Enterprise fields. (#14932)
bradhoekstra Aug 28, 2025
aa4edf7
`teamcity`: `RELEASE_DIFF` == "true" (#15016)
BBBmau Aug 28, 2025
e0ff702
Fix for desired_auto_created_endpoints incorrect update (#14777)
NA2047 Aug 29, 2025
bee5162
MMv1 field: changed `write_only` to `write_only_legacy` and marked fi…
ramonvermeulen Aug 29, 2025
fceafaf
Bumped version for GKE Hub Feature test to fix test failures (#15032)
melinath Aug 30, 2025
b6cb99b
Fixed typo in TestAccApigeeSecurityAction_apigeeSecurityActionFull co…
melinath Aug 30, 2025
c02ebf9
Adds UnitKind provider for SaasRuntime (#14910)
g-dreva Sep 2, 2025
8e982f5
Marked osconfigv2_policy_orchestrator example as beta-only (#15033)
melinath Sep 2, 2025
196839f
Skip openidconnect call for user email if universe_domain detected (#…
c2thorn Sep 2, 2025
6b83964
Fix google_container_cluster test failing at transparent_hugepage (#1…
VeraQin Sep 2, 2025
faa7118
feat: (storage) added field aws_s3_compatible_data_source for google_…
gurusai-voleti Sep 2, 2025
f5e24c4
Correct documentation for disable_on_destroy default breaking change …
c2thorn Sep 2, 2025
2dab011
Bump UA to dev7 (#15049)
rileykarson Sep 2, 2025
78ad34e
(GA) support for SM-GKE Auto rotation (#15040)
dargudear-google Sep 2, 2025
9fd482b
VPCFlowLogs - Add Organization Support (#14885)
maayanbeltzer Sep 2, 2025
cc70cc8
osconfig: fix permadiff where `patch_config.yum.minimal` doesn't send…
ramonvermeulen Sep 2, 2025
afd5011
Migrate from gsutil to gcloud storage (#15053)
copybara-service[bot] Sep 2, 2025
58550b1
Fixes issue #24052 related to google_chronicle_reference_list resourc…
ankitgoyal0301 Sep 2, 2025
a80f496
Wait for SA creation in bigquery connection tests (#15031)
melinath Sep 3, 2025
fd2ed72
REGION URL MAP: add support for header_action and path_matcher.header…
victorsantos-cit Sep 3, 2025
a8d5fd7
Added consentConfig to healthcare FHIR store. (#15039)
canuck3141 Sep 3, 2025
daa32c0
Make contributor membership checker warn instead of fail (#15051)
trodge Sep 3, 2025
b175083
bigtable: IAM resources were not able to upgrade to `v7.X.X` without …
ramonvermeulen Sep 3, 2025
227a097
fix bug that causes updates on no-cp clusters without sa keys changin…
HarshalNeelkamal Sep 3, 2025
c166d33
Added missing google-beta lines to beta test (#15034)
melinath Sep 3, 2025
1a00987
tgc-revival: add cloudbuild resources (#14953)
zli82016 Sep 3, 2025
488e4ed
skip TestAccResourceFWPubsubLiteReservation_basic test (#15056)
NickElliot Sep 3, 2025
158793f
Add singular data source for retrieving a Python package from an Arti…
bestefreund Sep 4, 2025
2235055
API implementation for fetch Resource Type of data source references …
kushallunkad-google Sep 4, 2025
e0af072
Add support for `networksecurity.googleapis.com/BackendAuthentication…
laurenz-k Sep 4, 2025
5a0cf38
Update launch stage for GPU on WorkerPools from ALPHA to BETA (#15058)
kminsu-google Sep 4, 2025
b0ae3d7
Update Secure Source Manager deletion policy comment (#14998)
ericpang777 Sep 4, 2025
defbc8d
add final_backup_config field to google_sql_database_instance (#14891)
JessieYee Sep 4, 2025
983a15d
fix TestAccContainerCluster_withNodeConfigKubeletConfigSettingsInNode…
shuyama1 Sep 4, 2025
44ced68
Add a new resource google_discovery_engine_acl_config (#14875)
jialei-chen Sep 4, 2025
70c7077
Add support for topology manager and memory manager (#14754)
ndixita Sep 4, 2025
d74edc1
publicca: use `RawURLEncoding` instead of `URLEncoding` for unpadded …
ramonvermeulen Sep 5, 2025
ca38991
Update google_bigquery_table schema change detection to take into acc…
wj-chen Sep 5, 2025
53b4fe1
tgc-revival: add google_clouddeploy_custom_target_type (#15071)
zli82016 Sep 5, 2025
f261d71
Saasruntime autogen release (#15061)
g-dreva Sep 5, 2025
53b287e
fetchforresourceType bpa added (#15043)
kushallunkad-google Sep 8, 2025
a534009
update DATA_GOVERNANCE field (#15045)
rajeshgupthar Sep 8, 2025
e3f9ae6
Adding support for extended attributes in workforce pool provider (#1…
googankushjain Sep 8, 2025
c58392b
diff-processor: add doc detector for ephemeral attributes (#15075)
ramonvermeulen Sep 8, 2025
fe64002
Remove send_empty_value for suspended and disableRollbackIfRolloutPen…
zli82016 Sep 8, 2025
6f1f501
workbench: Make report-notebook-metrics but unmodifiable (#15080)
bcreddy-gcp Sep 8, 2025
b834fdc
workbench: Fix issue with apply failing with labels was null (#15055)
bcreddy-gcp Sep 8, 2025
2f06c6f
Make allow_global_access conditionally immutable for INTERNAL_MANAGED…
JamesDuncanNz Sep 8, 2025
d6be8f0
Add Big Query Data Policy V2 resource (#14979)
ankitiit84 Sep 8, 2025
a0f35aa
Add a new field app_type to resource search engine. (#14874)
jialei-chen Sep 9, 2025
8dc43a2
Fixes a test issue for Firebase App Hosting (#15069)
bkendall Sep 9, 2025
f9e3358
Feature gap: Add labels and label_fingerprint fields to `google_compu…
Cezarus27 Sep 9, 2025
0cce7b6
tgc-revival: add networksecurity resources (#15073)
zli82016 Sep 9, 2025
59c0dba
Secret Manager: Fix panic in SecretVersion flatten when AccessSecretV…
victorsantos-cit Sep 9, 2025
a714407
Add new encryption_spec field (#15068)
rohanchawla23 Sep 9, 2025
8eded53
Pinned codeql action to a specific hash (#15104)
melinath Sep 9, 2025
9d1ce86
Removed unused gitkeep file (#14599)
melinath Sep 9, 2025
8564692
Update enrolled_teams.yml (#15105)
melinath Sep 10, 2025
64def5a
Made pinned versions for codeql steps match (#15110)
melinath Sep 10, 2025
19190d8
Added validationConfig to healthcare FHIR store. (#15057)
canuck3141 Sep 10, 2025
d480235
runV2: add support for value "connector" on field "vpcAccess" on reso…
victorsantos-cit Sep 10, 2025
7f60c4b
Add proxy to VMware admin cluster resources. (#14908)
veraz0818 Sep 10, 2025
aa289e7
fix(google_sql_database_instance): Connection Pool requires Enterpris…
AdamSkarboJonsson Sep 10, 2025
9b1a11e
google_datastream_stream: Add support for projectID field in SourceHi…
benjamin-maynard Sep 10, 2025
93ef242
Add subPath field to volume mounts (#15060)
whaught Sep 10, 2025
e045265
Add google secure source manager hook resource (#15050)
ericzzzzzzz Sep 11, 2025
52e9c67
Added GET data source references functionality (#15087)
kushallunkad-google Sep 11, 2025
3ed6187
Skip the acceptance test for Dialogflow CMEK (#15113)
zhihaos Sep 11, 2025
c4be68f
Use map instead of BAC API type as intermediate type for TGC cai2hcl …
laurenz-k Sep 11, 2025
eb45d62
Fix devsite link w prod link in google_memorystore_instance_desired_u…
rileykarson Sep 11, 2025
757ebf8
make label updatable for google_compute_instance under initialize_par…
chenir0219 Sep 11, 2025
13543ac
All squash support (#15115)
raazanand Sep 11, 2025
0d89fcf
dialogflow: support non-global endpoints for `google_dialogflow_conve…
ramonvermeulen Sep 11, 2025
84686f1
Fixed intelligenceconfig resource variant patterns (#15119)
melinath Sep 11, 2025
634129d
List and cache InstanceGroupManagers instead of getting them separate…
martin-guillen Sep 11, 2025
1a52c1d
Add nil check to exprOptions.RecaptchaOptions in `google_compute_secu…
rileykarson Sep 11, 2025
0464191
Add singular data source for retrieving a Maven artifact from an Arti…
bestefreund Sep 12, 2025
6506c38
add default provider value plan modifiers/small utils upgrades to fwp…
NickElliot Sep 12, 2025
3a1254e
Add nil check and fix type assertion to flattenCloudSchedulerJobHttpT…
seitarof Sep 12, 2025
15470c4
Made acceptance tests set empty string for compatibility with pre-7.X…
melinath Sep 12, 2025
fb180df
Update IAM template docs to cover WIF principals (#15131)
cherriford Sep 12, 2025
4c62573
tgc-revival: add networksecurity resources (#15133)
zli82016 Sep 12, 2025
137e0b9
Use us-west2 for one google_cloud_scheduler_job test (#15135)
zli82016 Sep 12, 2025
211119c
Container warnings (#15118)
tatsiak Sep 15, 2025
ad70e38
feat: (storage) added timeouts for bucket_iam resources (#15062)
gurusai-voleti Sep 15, 2025
958af83
Add Data Source Interconnect Location (#15065)
NandiniAgrawal15 Sep 15, 2025
d8b6962
tgc-revival: decide the cai identifier automatically (#15085)
zli82016 Sep 15, 2025
dd02040
Promote cipher fields to GA in `google_compute_vpn_tunnel` resource (…
Gorlami96 Sep 15, 2025
85e5a04
Add vacation for trodge (#15146)
trodge Sep 15, 2025
1182f2f
Feature gap: Add skip_guest_os_shutdown for scheduling in instance (#…
Cezarus27 Sep 16, 2025
8059e0b
Add Feature Service attachment tunneling config (#14602)
Dawid212 Sep 16, 2025
c879c95
Update membership_data.go (#15153)
melinath Sep 16, 2025
3e114d4
PF: import function and timeouts (#15145)
c2thorn Sep 16, 2025
ac9adbe
Add support for `google_cloud_run_v2_service` to TGC (#15132)
q2w Sep 17, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion .ci/magician/cloudbuild/community.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ func (cb *Client) ApproveDownstreamGenAndTest(prNumber, commitSha string) error
}

if buildId == "" {
return fmt.Errorf("Failed to find pending build for PR %s", prNumber)
fmt.Printf("WARNING: Failed to find pending build for PR %s\nThis build may have been approved already.\n", prNumber)
return nil
}

err = approveBuild(PROJECT_ID, buildId)
Expand Down
47 changes: 31 additions & 16 deletions .ci/magician/cmd/collect_nightly_test_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,24 +30,25 @@ import (
)

const (
NightlyDataBucket = "nightly-test-data"
nightlyDataBucket = "nightly-test-data"
tcTimeFormat = "20060102T150405Z0700"
)

var cntsRequiredEnvironmentVariables = [...]string{
"TEAMCITY_TOKEN",
}

type TestInfo struct {
Name string `json:"name"`
Status string `json:"status"`
Service string `json:"service"`
ErrorMessage string `json:"error_message"`
LogLink string `json"log_link`
ProviderVersion string `json:"provider_version"`
QueuedDate string `json:"queuedDate"`
StartDate string `json:"startDate"`
FinishDate string `json:"finishDate"`
Duration int `json:"duration"`
Name string `json:"name"`
Status string `json:"status"`
Service string `json:"service"`
ErrorMessage string `json:"error_message"`
LogLink string `json:"log_link"`
ProviderVersion string `json:"provider_version"`
QueuedDate time.Time `json:"queued_date"`
StartDate time.Time `json:"start_date"`
FinishDate time.Time `json:"finish_date"`
Duration int `json:"duration"`
}

// collectNightlyTestStatusCmd represents the collectNightlyTestStatus command
Expand Down Expand Up @@ -168,17 +169,31 @@ func createTestReport(pVersion provider.Version, tc TeamcityClient, gcs Cloudsto
if testResult.Status == "FAILURE" || testResult.Status == "UNKNOWN" {
errorMessage = convertErrorMessage(testResult.ErrorMessage)
}

queuedTime, err := time.Parse(tcTimeFormat, build.QueuedDate)
if err != nil {
return fmt.Errorf("failed to parse QueuedDate: %v", err)
}
startTime, err := time.Parse(tcTimeFormat, build.StartDate)
if err != nil {
return fmt.Errorf("failed to parse StartDate: %v", err)
}
finishTime, err := time.Parse(tcTimeFormat, build.FinishDate)
if err != nil {
return fmt.Errorf("failed to parse FinishDate: %v", err)
}
Comment on lines +173 to +184
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

The logic for parsing QueuedDate, StartDate, and FinishDate is duplicated. This makes the code harder to read and maintain. Consider extracting this logic into a helper function. For example:

func parseTime(layout, value, fieldName string) (time.Time, error) {
    t, err := time.Parse(layout, value)
    if err != nil {
        return time.Time{}, fmt.Errorf("failed to parse %s: %w", fieldName, err)
    }
    return t, nil
}


testInfoList = append(testInfoList, TestInfo{
Name: testResult.Name,
Status: testResult.Status,
Service: serviceName,
ErrorMessage: errorMessage,
LogLink: logLink,
ProviderVersion: pVersion.String(),
ProviderVersion: strings.ToUpper(pVersion.String()),
Duration: testResult.Duration,
QueuedDate: build.QueuedDate,
StartDate: build.StartDate,
FinishDate: build.FinishDate,
QueuedDate: queuedTime,
StartDate: startTime,
FinishDate: finishTime,
})
}
}
Expand All @@ -193,7 +208,7 @@ func createTestReport(pVersion provider.Version, tc TeamcityClient, gcs Cloudsto

// Upload test status data file to gcs bucket
objectName := fmt.Sprintf("test-metadata/%s/%s", pVersion.String(), testStatusFileName)
err = gcs.WriteToGCSBucket(NightlyDataBucket, objectName, testStatusFileName)
err = gcs.WriteToGCSBucket(nightlyDataBucket, objectName, testStatusFileName)
if err != nil {
return err
}
Expand Down
6 changes: 3 additions & 3 deletions .ci/magician/cmd/create_test_failure_ticket.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ func getTestInfoList(pVersion provider.Version, date time.Time, gcs Cloudstorage
objectName := fmt.Sprintf("test-metadata/%s/%s", pVersion.String(), testStatusFileName)

var testInfoList []TestInfo
err := gcs.DownloadFile(NightlyDataBucket, objectName, testStatusFileName)
err := gcs.DownloadFile(nightlyDataBucket, objectName, testStatusFileName)
if err != nil {
return testInfoList, err
}
Expand Down Expand Up @@ -506,13 +506,13 @@ func storeErrorMessage(pVersion provider.Version, gcs CloudstorageClient, errorM

// upload file to GCS
objectName := fmt.Sprintf("test-errors/%s/%s/%s", pVersion.String(), date, fileName)
err = gcs.WriteToGCSBucket(NightlyDataBucket, objectName, fileName)
err = gcs.WriteToGCSBucket(nightlyDataBucket, objectName, fileName)
if err != nil {
return "", fmt.Errorf("failed to upload error message file %s to GCS bucket: %w", objectName, err)
}

// compute object view path
link := fmt.Sprintf("https://storage.cloud.google.com/%s/%s", NightlyDataBucket, objectName)
link := fmt.Sprintf("https://storage.cloud.google.com/%s/%s", nightlyDataBucket, objectName)
return link, nil
}

Expand Down
1 change: 0 additions & 1 deletion .ci/magician/cmd/test_terraform_vcr.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,6 @@ func execTestTerraformVCR(prNumber, mmCommitSha, buildID, projectID, buildStep,
}

notRunBeta, notRunGa := notRunTests(tpgRepo.UnifiedZeroDiff, tpgbRepo.UnifiedZeroDiff, replayingResult)

postReplayData := postReplay{
RunFullVCR: runFullVCR,
AffectedServices: sort.StringSlice(servicesArr),
Expand Down
13 changes: 8 additions & 5 deletions .ci/magician/github/membership_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ var (
"melinath": {
vacations: []Vacation{
{
startDate: newDate(2025, 6, 26),
endDate: newDate(2025, 7, 7),
startDate: newDate(2025, 9, 17),
endDate: newDate(2025, 9, 22),
},
},
},
Expand Down Expand Up @@ -140,13 +140,17 @@ var (
startDate: newDate(2025, 8, 7),
endDate: newDate(2025, 8, 10),
},
{
startDate: newDate(2025, 9, 18),
endDate: newDate(2025, 9, 28),
},
},
},
"zli82016": {
vacations: []Vacation{
{
startDate: newDate(2025, 1, 15),
endDate: newDate(2025, 2, 9),
startDate: newDate(2025, 8, 27),
endDate: newDate(2025, 9, 2),
},
},
},
Expand All @@ -155,7 +159,6 @@ var (
// This is for new team members who are onboarding
trustedContributors = map[string]struct{}{
"bbasata": struct{}{},
"jaylonmcshan03": struct{}{},
"malhotrasagar2212": struct{}{},
}
)
6 changes: 3 additions & 3 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@05963f47d870e2cb19a537396c1f668a348c7d8f # v3.24.8
uses: github/codeql-action/init@3c3833e0f8c1c83d449a7478aa59c036a9165498 # v3.29.11
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -44,7 +44,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@05963f47d870e2cb19a537396c1f668a348c7d8f # v3.24.8
uses: github/codeql-action/autobuild@3c3833e0f8c1c83d449a7478aa59c036a9165498 # v3.29.11

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
Expand All @@ -57,6 +57,6 @@ jobs:
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
uses: github/codeql-action/analyze@3c3833e0f8c1c83d449a7478aa59c036a9165498 # v3.29.11
with:
category: "/language:${{matrix.language}}"
15 changes: 8 additions & 7 deletions docs/content/reference/field.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,11 @@ Example:
sensitive: true
```

### `write_only`
Set to true to enable write-only functionality for this field.
If true, the write-only fields will be automatically generated by the code generator (`<field_name>_wo` and `<field_name>_wo_version`).
When the write-only variant of a field is used, it means that its value will be obscured in Terraform output as well as not be stored in state.
This field is meant to replace `sensitive` as it doesn't store the value in state.
See [Ephemerality in Resources - Use Write-only arguments](https://developer.hashicorp.com/terraform/language/resources/ephemeral/write-only) for more information.
### `write_only_legacy` (deprecated)
If true, the field is considered "write-only", which means that its value will
be obscured in Terraform output as well as not be stored in state. This field is meant to replace `sensitive` as it doesn't store the value in state.
See [Ephemerality in Resources - Use Write-only arguments](https://developer.hashicorp.com/terraform/language/resources/ephemeral/write-only)
for more information.

Write-only fields are only supported in Terraform v1.11+. Because the provider supports earlier Terraform versions, write only fields must be paired with (mutually exclusive) `sensitive` fields covering the same functionality for compatibility with those older versions.
This field cannot be used in conjuction with `immutable` or `sensitive`.
Expand All @@ -122,9 +121,11 @@ This field cannot be used in conjuction with `immutable` or `sensitive`.
Example:

```yaml
write_only: true
write_only_legacy: true
```

**Deprecated**: This field is deprecated and will be removed in a future release.

### `ignore_read`
If true, the provider sets the field's value in the resource state based only
on the user's configuration. If false or unset, the provider sets the field's
Expand Down
Loading
Loading