Skip to content

Commit 1927235

Browse files
edburnsCopilot
andauthored
Use --no-snapshot-updates.
This is an absolutely excellent suggestion. Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 1efbf58 commit 1927235

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/run-smoke-test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ jobs:
3636
3737
Execute the prompt at `src/test/prompts/PROMPT-smoke-test.md` with the following critical overrides:
3838
39-
**Critical override — offline build:** The goal of this workflow is to validate the SDK snapshot that was just built and installed locally, not any newer SNAPSHOT that might exist in a remote repository. To ensure Maven does not download a newer timestamped SNAPSHOT, you must run the smoke-test Maven build in offline mode and without `-U`, so that it uses the locally installed artifact. Use `mvn -o clean package` instead of `mvn -U clean package`.
39+
**Critical override — disable SNAPSHOT updates (but allow downloads):** The goal of this workflow is to validate the SDK SNAPSHOT that was just built and installed locally, not any newer SNAPSHOT that might exist in a remote repository. To ensure Maven does not download a newer timestamped SNAPSHOT of the SDK while still allowing it to download any missing plugins or dependencies, you must run the smoke-test Maven build without `-U` and with `--no-snapshot-updates`, so that it uses the locally installed SDK artifact. Use `mvn --no-snapshot-updates clean package` instead of `mvn -U clean package` or `mvn -o clean package`.
4040
41-
**Critical override — do NOT run the jar:** Stop after the `mvn -o clean package` build succeeds. Do NOT execute Step 4 (java -jar) or Step 5 (verify exit code) from the prompt. The workflow will run the jar in a separate deterministic step to guarantee the exit code propagates correctly.
41+
**Critical override — do NOT run the jar:** Stop after the `mvn --no-snapshot-updates clean package` build succeeds. Do NOT execute Step 4 (java -jar) or Step 5 (verify exit code) from the prompt. The workflow will run the jar in a separate deterministic step to guarantee the exit code propagates correctly.
4242
43-
Follow steps 1-3 only: create the `smoke-test/` directory, create `pom.xml` and the Java source file exactly as specified, and build with `mvn -o clean package` (offline and without `-U`).
43+
Follow steps 1-3 only: create the `smoke-test/` directory, create `pom.xml` and the Java source file exactly as specified, and build with `mvn --no-snapshot-updates clean package` (no SNAPSHOT updates and without `-U`).
4444
4545
If any step fails, exit with a non-zero exit code. Do not silently fix errors.
4646
PROMPT_EOF

0 commit comments

Comments
 (0)