-
Notifications
You must be signed in to change notification settings - Fork 368
Use pre-agent-steps to restore APM bundle after checkout #27850
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,7 +4,8 @@ | |
| # | ||
| # This shared workflow creates a dedicated "apm" job (depending on activation) that | ||
| # packs packages using microsoft/apm-action and uploads the bundle as an artifact. | ||
| # The agent job then downloads and unpacks the bundle as pre-steps. | ||
| # The agent job then downloads and unpacks the bundle as pre-agent-steps, | ||
| # so restore runs after any user checkout steps. | ||
|
Comment on lines
+7
to
+8
|
||
| # | ||
| # Documentation: https://github.com/microsoft/APM | ||
| # | ||
|
|
@@ -64,7 +65,7 @@ jobs: | |
| path: ${{ steps.apm_pack.outputs.bundle-path }} | ||
| retention-days: '1' | ||
|
|
||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good change — using |
||
| steps: | ||
| pre-agent-steps: | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The rename from |
||
| - name: Download APM bundle artifact | ||
| uses: actions/download-artifact@v8.0.1 | ||
| with: | ||
|
|
@@ -83,13 +84,13 @@ steps: | |
| ## APM Packages | ||
|
|
||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Doc update is consistent with the code change. "pre-agent-steps (after user checkout steps)" nicely clarifies the timing guarantee for readers. |
||
| These packages are installed via a dedicated "apm" job that packs and uploads a bundle, | ||
| which the agent job then downloads and unpacks as pre-steps. | ||
| which the agent job then downloads and unpacks as pre-agent-steps (after user checkout steps). | ||
|
|
||
| ### How it works | ||
|
|
||
| 1. **Pack** (`apm` job): `microsoft/apm-action` installs packages and creates a bundle archive, | ||
| uploaded as a GitHub Actions artifact. | ||
| 2. **Unpack** (agent job pre-steps): the bundle is downloaded and unpacked via | ||
| 2. **Unpack** (agent job pre-agent-steps): the bundle is downloaded and unpacked via | ||
| `microsoft/apm-action` in restore mode, making all skills and tools available to the AI agent. | ||
|
|
||
| ### Package format | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ Good clarification — noting that restore runs after checkout steps makes the execution order explicit and removes ambiguity for workflow authors.