Repository navigation
Exclude vendored YAML from ESLint custom rules - #75806
Conversation
Co-authored-by: gh-aw-bot <[email protected]>
|
@copilot Keep the linting rule, and remove the vendored copy from the work queue JavaScript. There should be no third-party dependencies at runtime. |
The vendored parser is loaded by the shipped work-queue provisioning code to validate remote workflow YAML, and the existing runtime test explicitly denies npm imports. Removing it without weakening validation therefore needs a replacement boundary: migrate that parsing/validation into the Go runtime, or implement and maintain a first-party YAML parser for the JS consumers. Please specify which direction is intended; simply replacing the bundle with |
|
@copilot The implementation should not have to parse workflows. We need to remove that requirement, remove the vendored YAML module, and find another approach. If needed, it can parse workflow headers and GitHub metadata or manifests to extract the necessary information. No other source includes it. It did not bring a copy of the YAML module into the codebase when we removed it. |
Co-authored-by: pelikhan <[email protected]>
Work-queue provisioning no longer parses workflow YAML or loads/copies |
| const contracts = []; | ||
| for (const line of contents.split(/\r?\n/)) { | ||
| const field = /^\s*GH_AW_WORK_QUEUE_CONTRACT:\s*(.*?)\s*$/.exec(line); | ||
| if (!field) continue; | ||
| const stamp = /^"([a-f0-9]{64})"$/.exec(field[1])?.[1]; | ||
| if (!stamp) return undefined; | ||
| contracts.push(stamp); | ||
| } | ||
| return contracts.length && new Set(contracts).size === 1 ? contracts[0] : undefined; |
|
@copilot required work queue metadata should be inserted in the gh-aw-manifest by the compiler so that it can be parsed easily. |
Triage
|
|
PR triage: category=bug | risk=medium | total=48 | breakdown=impact 22, urgency 18, quality 8 | action=defer | batch=pr-batch:quality-copilot
|
|
@copilot fix ci conflicts |
Co-authored-by: pelikhan <[email protected]>
Fixed the CI failures by aligning the work-queue test fixtures with manifest-only provisioning and correcting Markdown registry parsing. Focused and final validation passed. Commit: |
|
Copilot assignment requested for the following outstanding work:
Once you start work, post this work summary as a PR comment without the leading Copilot mention, including the Sous-chef head, work, and state lines below, to record that the assignment is running. Apply the necessary fixes on this PR's existing branch, reply to each listed review thread and resolve it when addressed. Ignore feedback already answered or resolved; stop when only human review or CI remains. Do not merge or trigger CI. Sous-chef requested-head: cfd050c
|
Assignment running: update the branch with Sous-chef requested-head: cfd050c |
…nore-for-vendored-files # Conflicts: # .github/workflows/artifacts-summary.lock.yml # .github/workflows/daily-compiler-quality.lock.yml # .github/workflows/daily-evals-report.lock.yml # .github/workflows/daily-firewall-report.lock.yml # .github/workflows/daily-issues-report.lock.yml # .github/workflows/daily-observability-report.lock.yml # .github/workflows/daily-regulatory.lock.yml # .github/workflows/daily-repo-chronicle.lock.yml # .github/workflows/daily-secrets-analysis.lock.yml # .github/workflows/daily-team-evolution-insights.lock.yml # .github/workflows/daily-token-consumption-report.lock.yml # .github/workflows/deep-report.lock.yml # .github/workflows/engine-conformance-agy.lock.yml # .github/workflows/engine-conformance-aider.lock.yml # .github/workflows/engine-conformance-atomic.lock.yml # .github/workflows/engine-conformance-claude.lock.yml # .github/workflows/engine-conformance-codex.lock.yml # .github/workflows/engine-conformance-copilot.lock.yml # .github/workflows/engine-conformance-crush.lock.yml # .github/workflows/engine-conformance-cursor.lock.yml # .github/workflows/engine-conformance-deepseek-harness.lock.yml # .github/workflows/engine-conformance-factory.lock.yml # .github/workflows/engine-conformance-gemini.lock.yml # .github/workflows/engine-conformance-goose.lock.yml # .github/workflows/engine-conformance-kiro.lock.yml # .github/workflows/engine-conformance-mini-swe-agent.lock.yml # .github/workflows/engine-conformance-opencode.lock.yml # .github/workflows/engine-conformance-pi.lock.yml # .github/workflows/engine-conformance-pydantic-ai.lock.yml # .github/workflows/eslint-miner.lock.yml # .github/workflows/eslint-monster.lock.yml # .github/workflows/eslint-refiner.lock.yml # .github/workflows/repo-tree-map.lock.yml # .github/workflows/smoke-work-queue-worker.lock.yml # pkg/workflow/awf_config_conformance_registry_formal_test.go Co-authored-by: gh-aw-bot <[email protected]>
Co-authored-by: pelikhan <[email protected]>
| const contents = await readWorkerFile({ ...options, path: profile.workflow, ref: profile.ref }); | ||
| if (assignmentInputType(contents) !== "string") throw queueError("policy_missing", "approved worker route must accept the work_queue_assignment string input"); | ||
| if (profile.logical_contract && workerContract(contents) !== profile.logical_contract) throw queueError("policy_missing", "worker route does not carry its compiler-derived logical contract"); | ||
| await readWorkerFile({ ...options, path: profile.workflow, ref: profile.ref }); |
|
@copilot merge main, fix ci failures |
Co-authored-by: pelikhan <[email protected]>
|
🎉 This pull request is included in a new release. Release: |
The vendored
[email protected]copy inactions/setup/js/work_queue_yaml.cjstriggers unactionable diagnostics from custom ESLint rules. Exclude that file without broadening the ignore to authored setup code.eslint-factory/eslint.config.cjs: