test(miner-discovery): end-to-end fixture-driven discovery scenario across the full Phase 1 pipeline#4416
Closed
joaovictor91123 wants to merge 1 commit into
Closed
Conversation
…cross the full Phase 1 pipeline (JSONbored#2311)
Contributor
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Contributor
Contributor
Author
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.
Summary
test/integration/miner-discovery-pipeline.test.tsbuilds a 6-repo candidate batch (fetchCandidateIssuesWithSummary) and ranks it (rankMetadataOpportunities): one AI-PR-banned repo (fully excluded, costing exactly one policy-doc fetch and zero issue-listing calls), one with no.gittensory-miner.yml(neutral goal-model default, doesn't error), one matching the repo'spreferredLabels(ranks highest), one matching the repo'sblockedPaths(collapses to zero via the goal-model short-circuit), one stale issue (ranks lower via the freshness factor), and one repo contributing two title-overlapping issues (ranks lower via the in-batch duplicate-risk signal).owner/repo#issueNumber(not a "contains" check), plus the isolatedlaneFit/freshness/dupRiskvalue behind each differentiator, so a future refactor of any one module's weights/matching logic that breaks the composed behavior fails this test even if every per-module unit suite still passes.test/fixtures/ai-policy/banned-ai-usage.md,allowed-silent.md) and the establishedvi.stubGlobal("fetch", ...)call-counting pattern fromtest/unit/opportunity-fanout-ai-policy.test.ts.Scope
type(scope): short summaryConventional Commit format, for examplefix(api): restore profile access checks.test/integration/.CONTRIBUTING.mdand does not reintroduce GitHub Pages, VitePress,site/, orCNAME.Validation
git diff --checknpm run actionlint— not run; no workflow files touched.npm run typecheck(clean)vitest runacross the new file plus every existing unit suite for the modules it composes (opportunity-fanout,ai-policy-map,miner-goal-lane-fit,opportunity-ranker,opportunity-metadata-signals,opportunity-freshness): 137/137 tests pass. This is a test-only change undertest/integration/, which Codecov'scodecov/patchgate does not count, so there is no line/branch coverage obligation for this diff.npm run test:workers— not run; no Cloudflare Worker code touched.npm run build:mcp/npm run test:mcp-pack— not run; unrelated to this change (also currently fail locally on this Windows machine for an unrelated, pre-existingspawnSync("npm", ...)reason, independent of this diff).npm run ui:openapi:check/ui:lint/ui:typecheck/ui:build— not run; noapps/gittensory-uifiles touched.npm audit --audit-level=moderate— not run; no dependency changes.If any required check was skipped, explain why:
git diff --check) are green.Safety
UI Evidence
Not applicable; test-only change.
Notes
test/integration/miner-discovery-pipeline.test.ts.