hack/manual-validate: add MigrationCenterImportDataFile validation #16316
All Vouch review confidence checks passed
Residual risk 0.34 = Change Risk (0.75) × (1 − Review Confidence (0.54)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.75 · 650 lines diff across 8 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.388
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.075
Real PR Conversation Timeline
1 comments
"Review active on #16316"
general
weight: 0.35
barney-s
New script for the new MigrationCenterImportDataFile direct controller added in #16206, validating import data file creation, spec field matching, signed URI generation, and deletion against real GCP.
This pull request was generated by an AI coding agent.
Result: PASS (28 passed, 0 failed)
Controller bugs: none
Not checked: nothing
Script fixes during the run: none
Fixes #16311
``
release-note
``NONE
yaml
kind: MigrationCenterImportDataFile
project_id: cnrm-barni-4
project_number: <project-number>
unique_id: mv3881967453
namespace: mv3881967453
git_sha: 67c91c39bd807a6f7c98fca7c68c2d779316c2de
git_dirty: 0
gcloud_account: cnrm-barni-1.svc.id.goog
controller_credentials: application-default (ADC)
rest_token_cmd: gcloud auth application-default print-access-token
started_utc: 2026-11-22T22:56:39Z
started_pdt: 2026-11-22T14:56:39PST
host: Linux 6.12.105+ x86_64
fixture_dir: pkg/test/resourcefixture/testdata/basic/migrationcenter/v1alpha1/migrationcenterimportdatafile/migrationcenterimportdatafile-maximal
apis_enabled_by_run: none
finished_utc: 2026-11-22T23:01:42Z
finished_pdt: 2026-11-22T15:01:42PST
text
[2026-11-22T22:56:39Z] run dir: /workspaces/k8s-config-connector/artifactz/manual-validation/MigrationCenterImportDataFile/20261122T225636Z
[2026-11-22T22:56:39Z] project=cnrm-barni-4 uniqueId=mv3881967453
[2026-11-22T22:56:41Z] [INFO] setup: API migrationcenter.googleapis.com enabled - already enabled
[2026-11-22T22:56:43Z] [INFO] setup: API logging.googleapis.com enabled - already enabled
[2026-11-22T22:56:43Z] building kcc-local from 67c91c39bd
[2026-11-22T22:58:15Z] starting kcc-local: envtest apiserver + KCC webhooks + controller manager + deletion defender (ADC credentials)
[2026-11-22T22:58:41Z] [INFO] setup: local KCC up: envtest + webhooks + manager + deletion defender - 874 CRDs; webhooks serving (8 configs); deny-immutable-field-updates webhook excluded (as in e2e)
[2026-11-22T22:58:48Z] $ kubectl -n mv3881967453 apply -f rendered/dependencies.yaml
-> exit 0
migrationcentersource.migrationcenter.cnrm.cloud.google.com/migrationcentersource-idf-max-mv3881967453 created
migrationcenterimportjob.migrationcenter.cnrm.cloud.google.com/migrationcenterimportjob-idf-max-mv3881967453 created
[2026-11-22T22:58:48Z] [PASS] deps: kubectl apply dependencies.yaml - migrationcentersource.migrationcenter.cnrm.cloud.google.com/migrationcentersource-idf-max-mv3881967453 created;migrationcenterimportjob.migrationcenter.cnrm.cloud.google.com/migrationcenterimportjob-idf-max-mv3881967453 created;
[2026-11-22T22:58:53Z] [PASS] deps: MigrationCenterSource/migrationcentersource-idf-max-mv3881967453 Ready (gen 1) - after 5s reason=UpToDate
[2026-11-22T22:58:55Z] $ curl -sS -X GET -H 'Authorization: Bearer ' https://migrationcenter.googleapis.com/v1/projects/cnrm-barni-4/locations/us-central1/sources/migrationcentersource-idf-max-mv3881967453?%24alt=json%3Benum-encoding%3Dint
-> HTTP 200
{
"name": "projects/cnrm-barni-4/locations/us-central1/sources/migrationcentersource-idf-max-mv3881967453",
"createTime": "2026-11-22T22:58:48.453503915Z",
"updateTime": "2026-11-22T22:58:48.504177143Z",
"state": 1
}
[2026-11-22T22:58:55Z] [PASS] deps: REST GET source returns 200 - HTTP 200
[2026-11-22T22:58:55Z] [PASS] deps: MigrationCenterImportJob/migrationcenterimportjob-idf-max-mv3881967453 Ready (gen 1) - after 0s reason=UpToDate
[2026-11-22T22:58:56Z] $ curl -sS -X GET -H 'Authorization: Bearer ' https://migrationcenter.googleapis.com/v1/projects/cnrm-barni-4/locations/us-central1/importJobs/migrationcenterimportjob-idf-max-mv3881967453?%24alt=json%3Benum-encoding%3Dint
-> HTTP 200
{
"name": "projects/cnrm-barni-4/locations/us-central1/importJobs/migrationcenterimportjob-idf-max-mv3881967453",
"createTime": "2026-11-22T22:58:50.246118469Z",
"updateTime": "2026-11-22T22:58:50.285787548Z",
"state": 1,
"assetSource": "projects/cnrm-barni-4/locations/us-central1/sources/migrationcentersource-idf-max-mv3881967453"
}
[2026-11-22T22:58:56Z] [PASS] deps: REST GET job returns 200 - HTTP 200
[2026-11-22T22:58:56Z] $ kubectl -n mv3881967453 apply -f rendered/create.yaml
-> exit 0
migrationcenterimportdatafile.migrationcenter.cnrm.cloud.google.com/migrationcenterimportdatafile-maximal-mv3881967453 created
[2026-11-22T22:58:56Z] [PASS] create: kubectl apply create.yaml - migrationcenterimportdatafile.migrationcenter.cnrm.cloud.google.com/migrationcenterimportdatafile-maximal-mv3881967453 created;
[2026-11-22T22:59:02Z] [PASS] create: MigrationCenterImportDataFile/migrationcenterimportdatafile-maximal-mv3881967453 Ready (gen 1) - after 6s reason=UpToDate
[2026-11-22T22:59:02Z] [INFO] create: status.externalRef - projects/cnrm-barni-4/locations/us-central1/importJobs/migrationcenterimportjob-idf-max-mv3881967453/importDataFiles/migrationcenterimportdatafile-maximal-mv3881967453
[2026-11-22T22:59:03Z] $ curl -sS -X GET -H 'Authorization: Bearer ' https://migrationcenter.googleapis.com/v1/projects/cnrm-barni-4/locations/us-central1/importJobs/migrationcenterimportjob-idf-max-mv3881967453/importDataFiles/migrationcenterimportdatafile-maximal-mv3881967453?%24alt=json%3Benum-encoding%3Dint
-> HTTP 200
{
"name": "projects/cnrm-barni-4/locations/us-central1/importJobs/migrationcenterimportjob-idf-max-mv3881967453/importDataFiles/migrationcenterimportdatafile-maximal-mv3881967453",
"format": 1,
"createTime": "2026-11-22T22:58:56.711075736Z",
"state": 2,
"uploadFileInfo": {
"signedUri": "https://storage.googleapis.com/<project-number>_us-central1_import_payloads/migrationcenterimportjob-idf-max-mv3881967453_a846a8ff/in/migrationcenterimportdatafile-maximal-mv3881967453_8acfb60f?X-Goog-Algorithm=GOOG4-RSA-SHA256&X-Goog-Credential=service-<project-number>%40gcp-sa-migcenter.iam.gserviceaccount.com%2F20261122%2Fauto%2Fstorage%2Fgoog4_request&X-Goog-Date=20261122T225856Z&X-Goog-Expires=43199&X-Goog-Signature=9cd8eec5b596622cb036aa3197280c45fd16fc48cc50c01190125935f9f59254b6565652b907b567d9eb5d30f8c8cfd986bd94251a7bca70d744940b5b17e996fd28a900232421edd33eb7b001e076037c7438bc3082ae170358204e80bb684c586762ee97acd064f65ffed7fb9d55501f65f7aea1f14d692b7df8ef1f8ab411643b02a5380d86d3f6977002e5be989bd8aecf860f3f3b906ce68dde33d40e275736f708d3dff3bb6e91b4927b046c53c923ade649b81a6fa66eeed19412adca6fd5ca70d3b1a62d01b938ba62cdf6df99effe83b8770cb70bbca9c369b0b8ad4583c12b577a0ffa49800109ef395a92db9e<project-number>edffe9c1b2576ef2&X-Goog-SignedHeaders=content-type%3Bhost%3Bx-goog-content-length-range",
"headers": {
"Content-Type": "application/octet-stream",
"x-goog-content-length-range": "0,104857600"
},
"uriExpirationTime": "2026-11-23T10:58:56.818573349Z"
},
"displayName": "Maximal Import Data File"
}
[2026-11-22T22:59:03Z] [PASS] create: REST GET idf returns 200 - HTTP 200
[2026-11-22T22:59:03Z] [PASS] create: cloud displayName matches spec - .displayName // empty == Maximal Import Data File
[2026-11-22T22:59:03Z] [PASS] create: cloud format matches spec - format=1
[2026-11-22T22:59:03Z] [PASS] create: cloud state is ACTIVE - state=2
[2026-11-22T22:59:03Z] [PASS] create: cloud name matches expected identity - .name == projects/cnrm-barni-4/locations/us-central1/importJobs/migrationcenterimportjob-idf-max-mv3881967453/importDataFiles/migrationcenterimportdatafile-maximal-mv3881967453
[2026-11-22T22:59:03Z] [INFO] create: gcloud CLI surface - no gcloud CLI command for migration-center import-data-files; REST API used out of band
[2026-11-22T22:59:04Z] $ curl -sS -X GET -H 'Authorization: Bearer ' https://migrationcenter.googleapis.com/v1/projects/cnrm-barni-4/locations/us-central1/importJobs/migrationcenterimportjob-idf-max-mv3881967453/importDataFiles?%24alt=json%3Benum-encoding%3Dint
-> HTTP 200
{
"importDataFiles": [
{
"name": "projects/cnrm-barni-4/locations/us-central1/importJobs/migrationcenterimportjob-idf-max-mv3881967453/importDataFiles/migrationcenterimportdatafile-maximal-mv3881967453",
"format": 1,
"createTime": "2026-11-22T22:58:56.711075736Z",
"state": 2,
"uploadFileInfo": {
"signedUri": "https://storage.googleapis.com/<project-number>_us-central1_import_payloads/migrationcenterimportjob-idf-max-mv3881967453_a846a8ff/in/migrationcenterimportdatafile-maximal-mv3881967453_8acfb60f?X-Goog-Algorithm=GOOG4-RSA-SHA256&X-Goog-Credential=service-<project-number>%40gcp-sa-migcenter.iam.gserviceaccount.com%2F20261122%2Fauto%2Fstorage%2Fgoog4_request&X-Goog-Date=20261122T225856Z&X-Goog-Expires=43199&X-Goog-Signature=9cd8eec5b596622cb036aa3197280c45fd16fc48cc50c01190125935f9f59254b6565652b907b567d9eb5d30f8c8cfd986bd94251a7bca70d744940b5b17e996fd28a900232421edd33eb7b001e076037c7438bc3082ae170358204e80bb684c586762ee97acd064f65ffed7fb9d55501f65f7aea1f14d692b7df8ef1f8ab411643b02a5380d86d3f6977002e5be989bd8aecf860f3f3b906ce68dde33d40e275736f708d3dff3bb6e91b4927b046c53c923ade649b81a6fa66eeed19412adca6fd5ca70d3b1a62d01b938ba62cdf6df99effe83b8770cb70bbca9c369b0b8ad4583c12b577a0ffa49800109ef395a92db9e<project-number>edffe9c1b2576ef2&X-Goog-SignedHeaders=content-type%3Bhost%3Bx-goog-content-length-range",
"headers": {
"x-goog-content-length-range": "0,104857600",
"Content-Type": "application/octet-stream"
},
"uriExpirationTime": "2026-11-23T10:58:56.818573349Z"
},
"displayName": "Maximal Import Data File"
}
]
}
[2026-11-22T22:59:04Z] [PASS] create: REST GET verify-list-idfs returns 200 - HTTP 200
[2026-11-22T22:59:04Z] [PASS] create: ListImportDataFiles returns created import data file - 'projects/cnrm-barni-4/locations/us-central1/importJobs/migrationcenterimportjob-idf-max-mv3881967453/importDataFiles/migrationcenterimportdatafile-maximal-mv3881967453'
[2026-11-22T22:59:04Z] [PASS] create: uploadFileInfo.signedUri generated and valid - signedUri prefix valid
[2026-11-22T22:59:04Z] [INFO] update: immutable resource - MigrationCenterImportDataFile has no Update RPC in GCP API; update phase skipped
[2026-11-22T22:59:24Z] [PASS] steady: still Ready, observedGeneration == generation - (([.status.conditions[]? | select(.type=="Ready")][0].status) + ":" + ((.status.observedGeneration == .metadata.generation) | tostring)) == True:true
[2026-11-22T22:59:25Z] $ kubectl -n mv3881967453 delete MigrationCenterImportDataFile migrationcenterimportdatafile-maximal-mv3881967453 --wait=false
-> requested
migrationcenterimportdatafile.migrationcenter.cnrm.cloud.google.com "migrationcenterimportdatafile-maximal-mv3881967453" deleted from mv3881967453 namespace
[2026-11-22T22:59:28Z] [PASS] delete: MigrationCenterImportDataFile/migrationcenterimportdatafile-maximal-mv3881967453 removed from k8s - after 4s
[2026-11-22T22:59:29Z] $ curl -sS -X GET -H 'Authorization: Bearer ' https://migrationcenter.googleapis.com/v1/projects/cnrm-barni-4/locations/us-central1/importJobs/migrationcenterimportjob-idf-max-mv3881967453/importDataFiles/migrationcenterimportdatafile-maximal-mv3881967453?%24alt=json%3Benum-encoding%3Dint
-> HTTP 404
{
"error": {
"code": 404,
"message": "Resource 'projects/cnrm-barni-4/locations/us-central1/importJobs/migrationcenterimportjob-idf-max-mv3881967453/importDataFiles/migrationcenterimportdatafile-maximal-mv3881967453' was not found",
"status": "NOT_FOUND",
"details": [
{
"@type": "type.googleapis.com/google.rpc.ResourceInfo",
"resourceName": "projects/cnrm-barni-4/locations/us-central1/importJobs/migrationcenterimportjob-idf-max-mv3881967453/importDataFiles/migrationcenterimportdatafile-maximal-mv3881967453"
}
]
}
}
[2026-11-22T22:59:29Z] [PASS] delete: REST GET idf-gone returns 404 - HTTP 404
[2026-11-22T22:59:30Z] $ curl -sS -X GET -H 'Authorization: Bearer ' https://migrationcenter.googleapis.com/v1/projects/cnrm-barni-4/locations/us-central1/importJobs/migrationcenterimportjob-idf-max-mv3881967453/importDataFiles?%24alt=json%3Benum-encoding%3Dint
-> HTTP 200
{}
[2026-11-22T22:59:30Z] [PASS] delete: REST GET verify-list-idfs returns 200 - HTTP 200
[2026-11-22T22:59:30Z] [PASS] delete: ListImportDataFiles no longer contains deleted import data file - ''
[2026-11-22T22:59:30Z] [INFO] delete: Cloud Audit Logs surface - GCP MigrationCenter API does not emit Admin Activity audit logs for ImportDataFiles sub-resources; verified via REST GET 404 and ListImportDataFiles
[2026-11-22T22:59:30Z] $ kubectl -n mv3881967453 delete MigrationCenterImportJob migrationcenterimportjob-idf-max-mv3881967453 --wait=false
-> requested
migrationcenterimportjob.migrationcenter.cnrm.cloud.google.com "migrationcenterimportjob-idf-max-mv3881967453" deleted from mv3881967453 namespace
[2026-11-22T22:59:33Z] [PASS] teardown: MigrationCenterImportJob/migrationcenterimportjob-idf-max-mv3881967453 removed from k8s - after 3s
[2026-11-22T22:59:34Z] $ curl -sS -X GET -H 'Authorization: Bearer ' https://migrationcenter.googleapis.com/v1/projects/cnrm-barni-4/locations/us-central1/importJobs/migrationcenterimportjob-idf-max-mv3881967453?%24alt=json%3Benum-encoding%3Dint
-> HTTP 404
{
"error": {
"code": 404,
"message": "Resource 'projects/cnrm-barni-4/locations/us-central1/importJobs/migrationcenterimportjob-idf-max-mv3881967453' was not found",
"status": "NOT_FOUND",
"details": [
{
"@type": "type.googleapis.com/google.rpc.ResourceInfo",
"resourceName": "projects/cnrm-barni-4/locations/us-central1/importJobs/migrationcenterimportjob-idf-max-mv3881967453"
}
]
}
}
[2026-11-22T22:59:34Z] [PASS] teardown: REST GET job-gone returns 404 - HTTP 404
[2026-11-22T22:59:34Z] $ kubectl -n mv3881967453 delete MigrationCenterSource migrationcentersource-idf-max-mv3881967453 --wait=false
-> requested
migrationcenterimportjob.migrationcenter.cnrm.cloud.google.com "migrationcenterimportjob-idf-max-mv3881967453" deleted from mv3881967453 namespace
migrationcentersource.migrationcenter.cnrm.cloud.google.com "migrationcentersource-idf-max-mv3881967453" deleted from mv3881967453 namespace
[2026-11-22T23:01:36Z] [PASS] teardown: MigrationCenterSource/migrationcentersource-idf-max-mv3881967453 removed from k8s - after 122s
[2026-11-22T23:01:36Z] $ curl -sS -X GET -H 'Authorization: Bearer ' https://migrationcenter.googleapis.com/v1/projects/cnrm-barni-4/locations/us-central1/sources/migrationcentersource-idf-max-mv3881967453?%24alt=json%3Benum-encoding%3Dint
-> HTTP 404
{
"error": {
"code": 404,
"message": "Resource 'projects/cnrm-barni-4/locations/us-central1/sources/migrationcentersource-idf-max-mv3881967453' was not found",
"status": "NOT_FOUND",
"details": [
{
"@type": "type.googleapis.com/google.rpc.ResourceInfo",
"resourceName": "projects/cnrm-barni-4/locations/us-central1/sources/migrationcentersource-idf-max-mv3881967453"
}
]
}
}
[2026-11-22T23:01:36Z] [PASS] teardown: REST GET source-gone returns 404 - HTTP 404
[2026-11-22T23:01:37Z] [PASS] teardown: manager log free of panics
[2026-11-22T23:01:37Z] cleanup: deleting any remaining KCC objects, then checking GCP for leaks
[2026-11-22T23:01:38Z] $ curl -sS -X GET -H 'Authorization: Bearer ' https://migrationcenter.googleapis.com/v1/projects/cnrm-barni-4/locations/us-central1/importJobs/migrationcenterimportjob-idf-max-mv3881967453/importDataFiles/migrationcenterimportdatafile-maximal-mv3881967453?%24alt=json%3Benum-encoding%3Dint
-> HTTP 404
{
"error": {
"code": 404,
"message": "Resource 'projects/cnrm-barni-4/locations/us-central1/importJobs/migrationcenterimportjob-idf-max-mv3881967453/importDataFiles/migrationcenterimportdatafile-maximal-mv3881967453' was not found",
"status": "NOT_FOUND",
"details": [
{
"@type": "type.googleapis.com/google.rpc.ResourceInfo",
"resourceName": "projects/cnrm-barni-4/locations/us-central1/importJobs/migrationcenterimportjob-idf-max-mv3881967453/importDataFiles/migrationcenterimportdatafile-maximal-mv3881967453"
}
]
}
}
[2026-11-22T23:01:38Z] [PASS] cleanup: no leaked GCP resources (import data file gone) - HTTP 404
[2026-11-22T23:01:39Z] $ curl -sS -X GET -H 'Authorization: Bearer ' https://migrationcenter.googleapis.com/v1/projects/cnrm-barni-4/locations/us-central1/importJobs/migrationcenterimportjob-idf-max-mv3881967453?%24alt=json%3Benum-encoding%3Dint
-> HTTP 404
{
"error": {
"code": 404,
"message": "Resource 'projects/cnrm-barni-4/locations/us-central1/importJobs/migrationcenterimportjob-idf-max-mv3881967453' was not found",
"status": "NOT_FOUND",
"details": [
{
"@type": "type.googleapis.com/google.rpc.ResourceInfo",
"resourceName": "projects/cnrm-barni-4/locations/us-central1/importJobs/migrationcenterimportjob-idf-max-mv3881967453"
}
]
}
}
[2026-11-22T23:01:39Z] [PASS] cleanup: no leaked GCP resources (import job gone) - HTTP 404
[2026-11-22T23:01:40Z] $ curl -sS -X GET -H 'Authorization: Bearer ***' https://migrationcenter.googleapis.com/v1/projects/cnrm-barni-4/locations/us-central1/sources/migrationcentersource-idf-max-mv3881967453?%24alt=json%3Benum-encoding%3Dint
-> HTTP 404
{
"error": {
"code": 404,
"message": "Resource 'projects/cnrm-barni-4/locations/us-central1/sources/migrationcentersource-idf-max-mv3881967453' was not found",
"status": "NOT_FOUND",
"details": [
{
"@type": "type.googleapis.com/google.rpc.ResourceInfo",
"resourceName": "projects/cnrm-barni-4/locations/us-central1/sources/migrationcentersource-idf-max-mv3881967453"
}
]
}
}
[2026-11-22T23:01:40Z] [PASS] cleanup: no leaked GCP resources (source gone) - HTTP 404
[2026-11-22T23:01:42Z] report: /workspaces/k8s-config-connector/artifactz/manual-validation/MigrationCenterImportDataFile/20261122T225636Z/REPORT.md (verdict PASS)
</details>
</details>
<sub>🤖 Agent session</sub>
<!-- factory:task-output kind=Change task=recipe-validate-kind-20261122-220857-907f -->