fix: warn when automation-profile add --update given but no existing profile #10666

Merged
HAL9000 merged 2 commits from fix/v360/automation-profile-update-warning into master 2026-04-28 05:14:06 +00:00

2 Commits

Author SHA1 Message Date
HAL9000 c30d52d171 ci: re-trigger CI after transient infrastructure failures
CI / benchmark-publish (push) Failing after 40s
CI / helm (push) Successful in 27s
CI / lint (push) Successful in 1m1s
CI / build (push) Successful in 54s
CI / quality (push) Successful in 1m17s
CI / push-validation (push) Successful in 32s
CI / typecheck (push) Successful in 1m26s
CI / security (push) Successful in 1m40s
CI / integration_tests (push) Successful in 3m53s
CI / e2e_tests (push) Successful in 4m28s
CI / unit_tests (push) Successful in 4m45s
CI / docker (push) Successful in 1m34s
CI / coverage (push) Successful in 10m50s
CI / status-check (push) Successful in 3s
CI / benchmark-publish (pull_request) Has been skipped
CI / lint (pull_request) Successful in 1m0s
CI / coverage (pull_request) Successful in 10m52s
CI / quality (pull_request) Successful in 1m31s
CI / integration_tests (pull_request) Successful in 3m56s
CI / e2e_tests (pull_request) Successful in 4m12s
CI / unit_tests (pull_request) Successful in 4m59s
CI / push-validation (pull_request) Successful in 29s
CI / docker (pull_request) Successful in 1m28s
CI / build (pull_request) Successful in 58s
CI / helm (pull_request) Successful in 36s
CI / typecheck (pull_request) Successful in 1m14s
CI / security (pull_request) Successful in 1m23s
CI / status-check (pull_request) Successful in 3s
2026-04-28 05:00:12 +00:00
Test User bdd3348f46 fix: warn when automation-profile add --update given but no existing profile
When the --update flag is provided to agents automation-profile add but no existing profile with the given name exists, the command now emits a clear warning message to the user before proceeding to create the new profile. This prevents silent no-ops and helps users understand that --update had no effect.

Added a new BDD scenario to automation_profile_cli.feature to verify the warning is displayed when --update is given for a non-existent profile.

ISSUES CLOSED: #8830
2026-04-28 05:00:12 +00:00