Skip to content

test: clear two test-only CodeQL alerts - #184

Merged
rng1995 merged 1 commit into
mainfrom
fix/christopherk/codeql-test-alerts
Oct 13, 2026
Merged

rng1995 merged 1 commit into
mainfrom
fix/christopherk/codeql-test-alerts

Conversation

@chrisknvidia

Copy link
Copy Markdown
Collaborator

Clears two open CodeQL alerts on main. Both are in tests; no product code changes.

  • py/incomplete-url-substring-sanitization (tests/test_provider_config.py): the no-credential test checked that build.nvidia.com appeared somewhere in the setup message. It now checks the exact Get a key: https://build.nvidia.com line, which is stricter.
  • py/clear-text-storage-sensitive-data (tests/test_harbor_local_sandbox.py): the bwrap host-home test wrote a value named secret to a file in the host home. The test only needs recognizable text to prove the sandbox can't read that file, so it now writes a plain marker. The assertions are unchanged apart from the name.

The three py/redos alerts in validators/security.py and the test_schema.py alert are fixed on PR #28, which edits those files.

Verified: ruff check and both test files pass (204 passed, 5 skipped; the bwrap tests skip on macOS and run on Linux CI).

🤖 Generated with Claude Code

py/incomplete-url-substring-sanitization in test_provider_config.py:
the no-credential test checked that "build.nvidia.com" appeared
somewhere in the setup message. It now checks the exact
"  Get a key: https://build.nvidia.com" line, which is stricter.

py/clear-text-storage-sensitive-data in test_harbor_local_sandbox.py:
the bwrap host-home test wrote a value named `secret` to a file in the
host home. The test only needs recognizable text to prove the sandbox
cannot read that file, so the value is now a plain marker.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
@rng1995
rng1995 merged commit 0b564d4 into main Oct 13, 2026
17 checks passed
@rng1995
rng1995 deleted the fix/christopherk/codeql-test-alerts branch October 13, 2026 08:10
rng1995 added a commit that referenced this pull request Oct 14, 2026
Brings in #184, #187 (SkillSpector version in the HTML report), #188
(GPT-6.1 Sol / Claude Opus 5.5 defaults, reasoning effort, structured
output, token sizing, refusal fallback), #191 (multiline catalog
descriptions), #193 (Docker agent bootstrap) and #199 (per-step token
runtime-failure detection). Conflicts:

- .gitleaks.toml: keep every allowlist from both sides (the PR's three
  history allowlists and main's Bedrock model ID allowlist).
- CHANGELOG.md: every entry from both sides under Unreleased, one Added,
  Changed, Fixed and Security heading each; the shared docs entry once.
- deduplication/intra_skill/intra_skill_validator.py: the client keeps the
  PR's LLM_VERIFY_MAX_TOKENS and gains main's medium reasoning effort.
- deduplication/intra_skill/llm_analyzer.py: the PR's bounded prompt and
  verdict parsing, with main's structured-output schema request.
- embedding/registry.py: keep the PR's _embed_texts refactor (main only
  reformatted the old loop); main's multiline-description check merged.
- inference/__init__.py: export both sides' names.
- reporting/html.py: the PR's run-status tables plus main's SkillSpector
  version helper; is_tier2_validator_name stays in run_status.py.
- tier3/eval_core/llm_judge.py: drop _is_native_openai_chat_url (removed
  by main) and _configured_secret_values (moved by the PR).
- tier3/harbor/collector.py: keep the PR's shared-metric pass lift and
  main's judge-model helpers; _compute_lift takes main's per-trial rewards
  and the PR's keyword-only N/A lists, and its overall uses the paired
  scores with the PR's N/A-aware basket check; lift.json keeps the PR's
  _paired_lift.
- tier3/harbor/local_agents.py: the PR's SkillEvaluatorCodex (subagent
  rollouts, setup network errors) now extends main's bootstrap-aware
  installed_agents.SkillEvaluatorCodex; NVIDIA Build Claude Code keeps
  SetupNetworkErrorAgent on main's SkillEvaluatorClaudeCode.
- tier3/harbor/runner.py: imports from both sides; Docker uses main's
  DOCKER_AGENT_IMPORT_PATHS, other Harbor backends the PR's
  HARBOR_AGENT_IMPORT_PATHS; agent kwargs from main's _harbor_agent_kwargs.
- tier3/harbor/templates/eval.py: the PR's skill-metric N/A helpers and
  allow_not_applicable judges, with main's 16,384-token judge ceiling and
  judge_model_used / reasoning effort / fallback provenance.
- utils/tool_runner.py: main's pinned SkillSpector v2.12.0 hint plus the
  PR's scanner hints.
- validators/security.py: imports from both sides.
- tests/inference/test_llm_client.py: keep both sides' tests.
- tests/test_harbor_local_mode.py: main's parametrized Docker route check
  plus the PR's Codex subclass assertion.
- tests/tier3/test_judge_parse_robustness.py: the PR's partial-salvage
  assertions plus main's new provenance and refusal tests.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
@rng1995 rng1995 mentioned this pull request Oct 20, 2026
11 tasks done
chrisknvidia added a commit that referenced this pull request Oct 30, 2026
* test: clear two test-only CodeQL alerts

Signed-off-by: Christopher Kevin <[email protected]>
chrisknvidia pushed a commit that referenced this pull request Oct 30, 2026
Brings in #184, #187 (SkillSpector version in the HTML report), #188
(GPT-6.1 Sol / Claude Opus 5.5 defaults, reasoning effort, structured
output, token sizing, refusal fallback), #191 (multiline catalog
descriptions), #193 (Docker agent bootstrap) and #199 (per-step token
runtime-failure detection). Conflicts:

- .gitleaks.toml: keep every allowlist from both sides (the PR's three
  history allowlists and main's Bedrock model ID allowlist).
- CHANGELOG.md: every entry from both sides under Unreleased, one Added,
  Changed, Fixed and Security heading each; the shared docs entry once.
- deduplication/intra_skill/intra_skill_validator.py: the client keeps the
  PR's LLM_VERIFY_MAX_TOKENS and gains main's medium reasoning effort.
- deduplication/intra_skill/llm_analyzer.py: the PR's bounded prompt and
  verdict parsing, with main's structured-output schema request.
- embedding/registry.py: keep the PR's _embed_texts refactor (main only
  reformatted the old loop); main's multiline-description check merged.
- inference/__init__.py: export both sides' names.
- reporting/html.py: the PR's run-status tables plus main's SkillSpector
  version helper; is_tier2_validator_name stays in run_status.py.
- tier3/eval_core/llm_judge.py: drop _is_native_openai_chat_url (removed
  by main) and _configured_secret_values (moved by the PR).
- tier3/harbor/collector.py: keep the PR's shared-metric pass lift and
  main's judge-model helpers; _compute_lift takes main's per-trial rewards
  and the PR's keyword-only N/A lists, and its overall uses the paired
  scores with the PR's N/A-aware basket check; lift.json keeps the PR's
  _paired_lift.
- tier3/harbor/local_agents.py: the PR's SkillEvaluatorCodex (subagent
  rollouts, setup network errors) now extends main's bootstrap-aware
  installed_agents.SkillEvaluatorCodex; NVIDIA Build Claude Code keeps
  SetupNetworkErrorAgent on main's SkillEvaluatorClaudeCode.
- tier3/harbor/runner.py: imports from both sides; Docker uses main's
  DOCKER_AGENT_IMPORT_PATHS, other Harbor backends the PR's
  HARBOR_AGENT_IMPORT_PATHS; agent kwargs from main's _harbor_agent_kwargs.
- tier3/harbor/templates/eval.py: the PR's skill-metric N/A helpers and
  allow_not_applicable judges, with main's 16,384-token judge ceiling and
  judge_model_used / reasoning effort / fallback provenance.
- utils/tool_runner.py: main's pinned SkillSpector v2.12.0 hint plus the
  PR's scanner hints.
- validators/security.py: imports from both sides.
- tests/inference/test_llm_client.py: keep both sides' tests.
- tests/test_harbor_local_mode.py: main's parametrized Docker route check
  plus the PR's Codex subclass assertion.
- tests/tier3/test_judge_parse_robustness.py: the PR's partial-salvage
  assertions plus main's new provenance and refusal tests.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants