Conversation
…nches Agent-Logs-Url: https://github.com/github/gh-aw/sessions/9cd399bf-aee7-4e05-b57b-3908892d1a7f Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
safe-outputs.create-pull-request.allowed-base-branches
|
@copilot ensure the field is present in the main JSON schema, and add a workflow integration test |
|
@copilot ensure the field is present in the main JSON schema, and add a workflow integration test |
There was a problem hiding this comment.
Pull request overview
Adds a targeted regression test to ensure ValidateMainWorkflowFrontmatterWithSchemaAndLocation accepts safe-outputs.create-pull-request.allowed-base-branches, preventing gh aw compile schema validation from rejecting the field as unknown.
Changes:
- Added a new unit test covering
safe-outputs.create-pull-request.allowed-base-branchesacceptance in main workflow frontmatter schema validation.
Show a summary per file
| File | Description |
|---|---|
pkg/parser/schema_location_test.go |
Adds a regression test ensuring allowed-base-branches is accepted under safe-outputs.create-pull-request. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 1/1 changed files
- Comments generated: 1
| "permissions": map[string]any{ | ||
| "contents": "read", | ||
| "pull-requests": "read", | ||
| }, | ||
| "engine": map[string]any{ | ||
| "id": "copilot", | ||
| "model": "gpt-5.4", | ||
| }, | ||
| "network": map[string]any{ | ||
| "allowed": []any{"defaults"}, | ||
| }, | ||
| "tools": map[string]any{ | ||
| "edit": map[string]any{}, | ||
| "bash": true, | ||
| }, |
There was a problem hiding this comment.
This regression test includes several unrelated schema fields (permissions/engine/network/tools). That makes the test more likely to fail due to future schema changes in those areas rather than the intended safe-outputs.create-pull-request.allowed-base-branches validation. Consider trimming frontmatter to only the minimal fields required for a valid workflow plus the safe-outputs.create-pull-request.allowed-base-branches shape (similar to the smaller fixtures used in other tests in this file) so the test isolates the regression being covered.
| "permissions": map[string]any{ | |
| "contents": "read", | |
| "pull-requests": "read", | |
| }, | |
| "engine": map[string]any{ | |
| "id": "copilot", | |
| "model": "gpt-5.4", | |
| }, | |
| "network": map[string]any{ | |
| "allowed": []any{"defaults"}, | |
| }, | |
| "tools": map[string]any{ | |
| "edit": map[string]any{}, | |
| "bash": true, | |
| }, |
🧪 Test Quality Sentinel ReportTest Quality Score: 80/100✅ Excellent test quality
Test Classification Details
Observations✅
|
There was a problem hiding this comment.
✅ Test Quality Sentinel: 80/100. Test quality is excellent — 0% of new tests are implementation tests (threshold: 30%). The regression test enforces a clear behavioral contract (valid config is accepted by the schema validator). Optional: consider adding a negative-case companion test to fully cover the contract.
Agent-Logs-Url: https://github.com/github/gh-aw/sessions/26060a2d-7a7c-48d8-84cd-98443f32de78 Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Addressed in fd99d12. Added a parser schema test that asserts
Implemented in fd99d12. The update includes both requested checks: (1) schema-level assertion that Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
safe-outputs.create-pull-request.allowed-base-branchessafe-outputs.create-pull-request.allowed-base-branches
|
✅ Smoke CI completed successfully! |
gh aw compilewas reported to rejectallowed-base-branchesundersafe-outputs.create-pull-requestas an unknown property. This PR adds targeted coverage to ensure schema validation and compile behavior continue to accept that field.Regression coverage
pkg/parser/schema_location_test.go:TestValidateMainWorkflowFrontmatterWithSchemaAndLocation_AcceptsAllowedBaseBranchesInCreatePullRequestsafe-outputs.create-pull-request.allowed-base-branches: [main, release/*]Main JSON schema coverage
pkg/parser/schema_test.go:TestMainWorkflowSchema_CreatePullRequestAllowedBaseBranchesallowed-base-branchesis present undersafe-outputs.create-pull-requestinmain_workflow_schema.jsonwith the expectedarray[string]shape.Workflow integration coverage
pkg/cli/compile_integration_test.go:TestCompileSafeOutputsCreatePullRequestAllowedBaseBranchesallowed-base-branchescompiles successfully and the generated lock file includes handler config containingallowed_base_branches.Scope
🤖 Smoke CI passed — run 24807327721