Repository navigation
Close the test gaps in the trace exporter and the audit converter - #657
Merged
bar-capsule merged 1 commit intoNov 24, 2026
Conversation
Part of GenAI-Security-Project#284 Refs GenAI-Security-Project#274 Signed-off-by: Saba Siddique <sabasiddiqdev@gmail.com>
sabasiddique1
requested review from
GangGreenTemperTatum,
afogel,
bar-capsule,
fewdisc,
mamicidal,
rocklambros and
sclintonowasp
as code owners
November 20, 2026 21:21
bar-capsule
approved these changes
Nov 24, 2026
bar-capsule
left a comment
Collaborator
There was a problem hiding this comment.
Reviewed at f720120c. On Bun 1.3.11 (macOS), bun run typecheck is clean and bun test gives 1302 pass, 4 skip, 0 fail, matching yours. I broke the covered source 12 ways, one at a time: the new tests caught 11, and 7 of those only they caught. The 12th, reading non-object JSON as an entry, changes nothing visible, since the outcome and posture check skips those lines anyway. Didn't run Linux or Bun 1.3.14.
#349 was closed on 21 Nov, so that conflict is gone. @rocklambros, items 1 to 5 and 7 of #284 have no PR now. @artmaro FYI, merging.
bar-capsule
merged commit Nov 24, 2026
d455aeb
into
GenAI-Security-Project:integration
7 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Item 6 of #284 asks for tests that were missing, so a wrong attribute or a wrong path fails a test. This adds them, and gives the slow converter test a 30 s timeout. No file under
srcchanges.Scope
Against item 6 of #284:
startGuardian. It misses a default endpoint or an absolute path there, because neither writes into the listed directory.30_000as the third argument. It can't fail first here, because that test takes about half a second on my machine.acs.exit_status. No work.test/sample-trace.test.tsalready catches a wrong field, as rocklambros said on the issue.Items 1 to 5 and 7 of #284 are not here. rocklambros split the issue on 2026-10-31: item 6 here, the rest in PR #349. The fix to the test
emits the decision extras whether the mapping lists them or notis in PR #349 too.Credit
PR #349 is drk-ram's. The list of what each test should check is rocklambros's, from Ask 6 of his review of it.
Questions for the reviewer
@bar-capsule, no questions, one thing to know. This has merge conflicts with PR #349 in
test/audit-to-otlp.test.ts: the imports, theOtlpSpantype, and the end of the file. Taking the union resolves it. I'll rebase if #349 merges first. It also conflicts with my PR #656 for #283 inotel-trace-exporter.test.ts, and I'll rebase mine there too.Which issue does this implement
Part of #284
Refs #274
meaning, so it needs no issue
Base branch
integration, because this touches the specification, schemas, a referenceimplementation, an adapter, tests, or CI
main, because every changed path is on the documentation lane allowlist inCONTRIBUTING.md
Type of change
I tested this
uv run pytest -vpasses on my machineuv run mkdocs build --strictpasses on my machineHow I tested
From
reference-implementations/agt, on Bun 1.3.11 and again on Bun 1.3.14:bun run typecheck bun testFrom the repo root,
uv run pytest -vgives 1251 passed and 1 skipped, anduv run mkdocs build --strictpasses. Each new or rewritten test goes red when the source it covers is broken. All of them also pass on top of PR #349 merged withintegration.I ran this on macOS only.
Checklist
git commit -s(required by the DCO)Security