Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions .github/workflows/daily-community-attribution.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions .github/workflows/dev.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions .github/workflows/smoke-copilot.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions .github/workflows/smoke-pi.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 6 additions & 4 deletions actions/setup/js/awf_reflect.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ const path = require("path");

// AWF API proxy management endpoint for discovering configured LLM providers and available models.
// The api-proxy sidecar exposes /reflect on its management port (port 10000) inside the AWF
// Docker network. From the agent container, the proxy is reachable via the "api-proxy" hostname.
const AWF_API_PROXY_REFLECT_URL = "http://api-proxy:10000/reflect";
// Docker network. The sidecar's fixed container IP (172.30.0.30) is used instead of the
// "api-proxy" DNS hostname to ensure reachability from agent containers (such as Pi) that
// may run in a network context where the Docker service name does not resolve.
const AWF_API_PROXY_REFLECT_URL = "http://172.30.0.30:10000/reflect";
// Path inside the agent container where the reflect payload is persisted. The directory is
// co-located with other AWF firewall observability data so it is included in the agent artifact.
const AWF_REFLECT_OUTPUT_PATH = "/tmp/gh-aw/sandbox/firewall/awf-reflect.json";
Expand Down Expand Up @@ -143,8 +145,8 @@ async function enrichReflectModels(reflectData, timeoutMs, logger) {
* Fetch the AWF API proxy /reflect endpoint and persist the response to disk.
*
* The /reflect endpoint is exposed by the api-proxy sidecar on its management port (10000)
* and returns the list of configured LLM providers together with their available model lists.
* This information is saved to AWF_REFLECT_OUTPUT_PATH so the post-run GitHub Actions step
* at the sidecar's fixed container IP (172.30.0.30) and returns the list of configured LLM
* providers together with their available model lists. This information is saved to AWF_REFLECT_OUTPUT_PATH so the post-run GitHub Actions step
* (awf_reflect_summary.cjs) can include it in the step summary without requiring the
* containers to still be running.
*
Expand Down
2 changes: 1 addition & 1 deletion actions/setup/js/awf_reflect.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const {
describe("awf_reflect.cjs", () => {
describe("constants", () => {
it("exports expected default values", () => {
expect(AWF_API_PROXY_REFLECT_URL).toBe("http://api-proxy:10000/reflect");
expect(AWF_API_PROXY_REFLECT_URL).toBe("http://172.30.0.30:10000/reflect");
expect(AWF_REFLECT_OUTPUT_PATH).toBe("/tmp/gh-aw/sandbox/firewall/awf-reflect.json");
expect(AWF_REFLECT_TIMEOUT_MS).toBe(5000);
expect(AWF_MODELS_URL_TIMEOUT_MS).toBe(3000);
Expand Down
Loading
Loading