feat(review): push generated E2E tests as a real PR-branch commit - #4245
Conversation
, #4201) Adds an opt-in review.e2e_test_delivery: commit mode so @gittensory generate-tests pushes the generated Playwright test onto the PR's own head branch instead of only replying with a suggestion comment. Reuses the git/trees -> git/commits -> git/refs write pattern from repo-doc-pr.ts, but PATCHes an existing ref instead of creating one. Delivery is blocked for a confirmed Gittensor miner's PR (#4201): since gittensory never computes the authoritative score itself (an external validator reads the merged PR from GitHub), a maintainer-authored commit on a miner's branch would be indistinguishable from a line the miner wrote, inflating their apparent contribution. That check runs regardless of the repo's delivery config. Also threads the repo's own agentPaused/agentDryRun action mode through the command (previously unchecked), and folds every non-committed outcome (declined, blocked, or comment-only) back to rendering the generated test as a suggestion, so a maintainer never loses the content just because the heavier delivery mode didn't apply.
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
gittensory-ui | db239a7 | Commit Preview URL Branch Preview URL |
Jul 08 2026, 06:31 PM |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4245 +/- ##
=======================================
Coverage 93.78% 93.79%
=======================================
Files 394 395 +1
Lines 36628 36672 +44
Branches 13403 13422 +19
=======================================
+ Hits 34351 34395 +44
Misses 1622 1622
Partials 655 655
🚀 New features to boost your workflow:
|
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-08 18:41:37 UTC
⏸️ Suggested Action - Manual Review
Review summary Nits — 7 non-blocking
Linked issue satisfactionPartially addressed Review context
Contributor next steps
Signal definitions
🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
Summary
review.e2e_test_delivery: commitconfig mode so@gittensory generate-testscan push the AI-generated Playwright test onto the PR's own head branch as a real commit, instead of only replying with a suggestion comment.agentPaused/agentDryRunaction mode through@gittensory generate-tests(previously unchecked, unlike every other action command).Closes #4197
Closes #4201
Scope
type(scope): short summaryConventional Commit format.CONTRIBUTING.mdand does not reintroduce GitHub Pages, VitePress,site/, orCNAME.Validation
git diff --checknpm run actionlintnpm run typechecknpm run test:coveragelocally (unsharded) — 100% branch coverage on every changed/new line in this diff, confirmed via raw lcov BRDA data, not just the summary table.npm run test:workersnpm run build:mcpnpm run test:mcp-packnpm run ui:openapi:checknpm run ui:lintnpm run ui:typechecknpm run ui:buildnpm audit --audit-level=moderateAlso ran (beyond the checklist above, since this repo's
test:cicovers more than the template lists):npm run db:migrations:check,npm run db:schema-drift:check,npm run selfhost:env-reference:check,npm run selfhost:validate-observability,npm run cf-typegen:check,npm run test:engine-parity, the@jsonbored/gittensory-enginepackage's own test suite,npm run build:miner,npm run test:miner-pack,npm run rees:test,npm run ui:openapi:settings-parity,npm run ui:version-audit,npm run docs:drift-check,npm run manifest:drift-check,npm run command-reference:check,npm run ui:test.Safety
.gittensory.yml.exampleandconfig/examples/gittensory.full.ymldocument the newreview.e2e_test_deliveryfield); changelog itself is untouched.Notes
manifest_missing_testssignal) and chore(review): enable + validate E2E test generation end-to-end #4199 (enable + validate end-to-end) are the remaining follow-ups.