Skip to content

fix(test): stabilize graph intelligence windows and regenerate config docs#191

Open
jonathanhaaswriter wants to merge 6 commits intomainfrom
fix/ci-main-failures
Open

fix(test): stabilize graph intelligence windows and regenerate config docs#191
jonathanhaaswriter wants to merge 6 commits intomainfrom
fix/ci-main-failures

Conversation

@jonathanhaaswriter
Copy link
Copy Markdown
Collaborator

Problem

CI on main is failing with two issues:

  1. Test shard 0 failures: TestGraphIntelligenceAgentActionEffectivenessEndpoint and TestGraphIntelligenceUnifiedExecutionTimelineEndpoint use hardcoded March 2026 dates for test fixtures, but the handlers call report builders without setting Now, causing time.Now() to be used internally. As real time advances past those fixture dates + the trend/window period, the data falls outside the query window and tests fail.

  2. config-docs-drift: docs/CONFIG_ENV_VARS.md was not regenerated after AWS_REGION gained an additional empty-string default from the OpenSearch region config field.

Fix

  • Replace hardcoded time.Date() values with time.Now().UTC()-relative offsets in three tests: agent-action-effectiveness, playbook-effectiveness, and unified-execution-timeline.
  • Regenerate CONFIG_ENV_VARS.md via make config-docs.

… docs

Use time.Now()-relative dates in agent-action-effectiveness, playbook-
effectiveness, and unified-execution-timeline endpoint tests so they
remain valid regardless of when CI runs. Regenerate CONFIG_ENV_VARS.md
to reflect the additional empty-string default for AWS_REGION.
Test and others added 4 commits April 1, 2026 09:29
The security-source-scan workflow was passing all shard packages to
gosec in a single invocation, causing consistent 15-minute timeouts.
Align with the CI workflow pattern of scanning packages one-by-one,
merging JSON reports afterward. Bump timeout to 20 minutes for
headroom.
# Conflicts:
#	internal/graph/vendor_risk_test.go
for path in sorted(glob.glob('${tmp_dir}/report-*.json')):
with open(path) as f:
data = json.load(f)
merged.extend(data.get('Issues') or [])
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new merge step only carries forward Issues from each per-package JSON report and rewrites the shard artifact as {"Issues": [...]}. gosec also emits analyzer/build failures under Golang errors (for example on parser/type-check problems), so if one package cannot be analyzed, that signal is now discarded and the shard can appear clean with no indication coverage was incomplete. The previous single-report flow at least preserved those errors in the uploaded artifact. I’d recommend aggregating Golang errors as well, and ideally failing or at least surfacing them in the summary step.

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