Repository navigation
Commit bc1a463
fix: align the base-URL test with this trunk, and stop Bandit failing on reporting
Two failures on the promote pull request, both caught by CI on the staged
commits rather than in production.
tests/test_client.py asserted the default base URL is http://localhost:5003.
This trunk's src/agentex/_client.py resolves https://agentex.sgp.scale.com,
which is what stainless.yml configures; production is the stale side of that
pair. The restore in 73ea73e took the whole tests/ tree from production and
so pulled the old assertion back with it -- the one file there where
production was behind rather than ahead. 1739 tests passed and only these two
failed, which is what confined the mistake to this assertion.
Bandit's "Send unified results to logging cluster" step is annotated
`shell: bash {0} # don't fail the job if the logging fails`, but that only
drops `-e`: a step still fails when its LAST command fails, and curl was the
last command. Neither this repo nor the production repo defines
N8N_PRODSEC_ACTIONS_ENDPOINT or _TOKEN, so curl exited 2 ("no URL specified")
and failed the Bandit job on every run. Now it skips with a visible warning
when the endpoint is unset and tolerates a failed POST, matching the intent
already stated in the step. The scan itself is unchanged and still runs.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent 73ea73e commit bc1a463
2 files changed
Lines changed: 20 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
63 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
64 | 72 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
719 | 719 | | |
720 | 720 | | |
721 | 721 | | |
722 | | - | |
| 722 | + | |
723 | 723 | | |
724 | 724 | | |
725 | 725 | | |
| |||
1652 | 1652 | | |
1653 | 1653 | | |
1654 | 1654 | | |
1655 | | - | |
| 1655 | + | |
1656 | 1656 | | |
1657 | 1657 | | |
1658 | 1658 | | |
| |||
0 commit comments