Skip to content

examples: add noop target proof for spring app#84

Merged
monadic merged 1 commit intomainfrom
codex/springboot-noop-target-proof-sync
Mar 23, 2026
Merged

examples: add noop target proof for spring app#84
monadic merged 1 commit intomainfrom
codex/springboot-noop-target-proof-sync

Conversation

@monadic
Copy link
Copy Markdown
Contributor

@monadic monadic commented Mar 22, 2026

Summary

  • add a Noop-target follow-up path for springboot-platform-app
  • extend the ConfigHub setup and verification scripts with --with-targets and --targets
  • document the proof boundary clearly as ConfigHub apply workflow proof without real cluster delivery

Validation

  • ./scripts/verify.sh
  • cd incubator/springboot-platform-app && ./verify.sh
  • cd incubator/springboot-platform-app && ./confighub-setup.sh --explain --with-targets
  • cd incubator/springboot-platform-app/upstream/app && mvn test

Notes

  • I did not re-run the mutating --with-targets path from the fresh sync worktree, to avoid recreating ConfigHub state again during the sync step
  • this PR is the clean follow-up for the noop-target proof changes from a fresh branch off current main

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5010184271

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".


for env in "${ENVS[@]}"; do
space="$(space_name "${env}")"
${CUB} unit apply --space "${space}" inventory-api --quiet
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Wait for apply completion before finishing --with-targets

In the new Noop-target flow, setup returns immediately after cub unit apply, but the documented next step is ./confighub-verify.sh --targets, which reads unit status synchronously. Elsewhere in this repo, apply is treated as asynchronous: incubator/global-app-layer/realistic-app/apply-live.sh:74-85 polls until ActionResult == "ApplyCompleted" before declaring success. On a normal org with a server worker, a user following the new README sequence can hit a false failure simply because the worker has not finished processing yet.

Useful? React with 👍 / 👎.

Comment on lines +57 to +63
status=$(echo "${unit_json}" | jq -r '.UnitStatus.Status')
sync=$(echo "${unit_json}" | jq -r '.UnitStatus.SyncStatus')
if [[ "${status}" != "Ready" ]]; then
echo "FAIL: ${space}/inventory-api status is ${status}, expected Ready" >&2
errors=$((errors + 1))
else
echo "ok: ${space}/inventory-api status=${status} sync=${sync}"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Check sync/apply result before passing --targets verification

--targets mode currently treats .UnitStatus.Status == "Ready" as the only success condition and never asserts SyncStatus or ActionResult, even though the new docs/contracts say this mode proves the apply completed. The repo's own apply flow in incubator/global-app-layer/realistic-app/apply-live.sh:75-85 treats Ready alone as insufficient and waits specifically for ApplyCompleted. As written, ./confighub-verify.sh --targets can print the new success line while a unit is still out of sync or its most recent apply did not complete.

Useful? React with 👍 / 👎.

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.

1 participant