feat: wrap API payload in metadata envelope (Story 1.6)#8
Merged
Conversation
Restructure the API payload from flat format to `{ meta, results }`
envelope. The `meta` object includes workflow/job names from GitHub
Actions env vars, optional framework auto-detection, and an optional
`test-job-name` action input for display name overrides.
- Add MetaEnvelope interface, restructure ApiPayload to envelope format
- Add detectFramework() with CTRF tool-name and JUnit path heuristics
- Expose toolName from CTRF parser in ParsedTestRun
- Add test-job-name optional input to action.yml
- 34 new tests (193 total), 0 regressions
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
{ summary, suites, repository, git, ciRunId }to envelope{ meta, results }formattool.name, JUnit uses file-path heuristics (vitest, jest, pytest, maven-surefire)test-job-nameaction input for overriding the display name in TestGlancemetaincludesworkflowandjobfromGITHUB_WORKFLOW/GITHUB_JOBenv varsTest plan
pnpm test— all passpnpm lint— cleanpnpm typecheck— cleanpnpm build— dist rebuiltNote
After this ships, the SaaS API's Zod schema will reject the new payload format. Story 3.6 must be deployed first to add backward-compatible envelope support.