Skip to content

[WIP] Fix failing GitHub Actions job Integration: Workflow Misc Part 2 - #58044

Merged
pelikhan merged 2 commits into
mainfrom
copilot/fix-integration-workflow-misc-part-2
Sep 2, 2026
Merged

[WIP] Fix failing GitHub Actions job Integration: Workflow Misc Part 2#58044
pelikhan merged 2 commits into
mainfrom
copilot/fix-integration-workflow-misc-part-2

Conversation

Copilot AI commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Thanks for asking me to work on this. I will get started on it and keep this PR's description up to date as I form a plan and make progress.

Fix the failing GitHub Actions job "Integration: Workflow Misc Part 2"
Analyze the Actions logs, identify the root cause of the failure, and implement a fix.
Check run ID: 100436146203
Job URL: https://github.com/github/gh-aw/actions/runs/33686785846/job/100436146203

…h test assertion

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI requested a review from pelikhan September 2, 2026 22:51
@pelikhan
pelikhan marked this pull request as ready for review September 2, 2026 22:52
Copilot AI balanced review requested due to automatic review settings September 2, 2026 22:52
@pelikhan
pelikhan merged commit d9ca7f0 into main Sep 2, 2026
2 checks passed
@pelikhan
pelikhan deleted the copilot/fix-integration-workflow-misc-part-2 branch September 2, 2026 22:52

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Imported sample precedence and intentional-failure documentation remain incorrect.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Fixes integration failures involving imported workflow validation and malformed engine-auth errors.

Changes:

  • Allows selected feature flags in shared workflows.
  • Adds imported-feature validation tests.
  • Updates the expected engine-auth schema error.
File summaries
File Review
pkg/workflow/imported_engine_auth_integration_test.go Updates the expected schema error.
pkg/workflow/features_import_test.go Tests allowed and unsupported imported features.
pkg/parser/schema_validation.go Must fix sample-precedence behavior; validation errors should use NewValidationError with actionable examples.
pkg/constants/constants.go Must not claim imported intentional-failure support until classification resolves imports.
Review details

Suppressed comments (2)

pkg/parser/schema_validation.go:115

  • intentional-failure is not currently import-safe. Its consumers (IsIntentionalFailure, used by health and logs reporting) read only the main Markdown file's frontmatter and never resolve imports, so declaring this flag solely in a shared file still counts failures normally. Either keep this key forbidden or update classification to resolve merged imports and cover that behavior with a test.
	"intentional-failure": {},

pkg/parser/schema_validation.go:128

  • The unsupported-key branch lists valid names but omits a concrete correction example and bypasses the structured validation-error format used for parser validation. Returning NewValidationError keeps this actionable while preserving the substring asserted by the test.
	for key := range featuresMap {
		if _, ok := sharedWorkflowAllowedFeaturesFields[key]; !ok {
			return fmt.Errorf("field 'features' in shared workflows can only include import-safe fields samples and intentional-failure; found unsupported key: %s", key)
  • Files reviewed: 4/4 changed files
  • Comments generated: 3
  • Review effort level: Balanced

Comment on lines +490 to +492
// The features field is partially import-safe: shared workflows may contribute
// the import-safe features.samples and features.intentional-failure flags, but
// other feature keys are rejected.
// import from shared workflows. Other feature keys are configuration/experimental
// settings intended only for main workflows and are rejected.
var sharedWorkflowAllowedFeaturesFields = map[string]struct{}{
"samples": {},
Comment on lines +120 to +133
func validateSharedWorkflowFeaturesField(featuresValue any) error {
featuresMap, ok := featuresValue.(map[string]any)
if !ok {
return errors.New("field 'features' cannot be used in shared workflows (only features.samples and features.intentional-failure are import-safe)")
}

for key := range featuresMap {
if _, ok := sharedWorkflowAllowedFeaturesFields[key]; !ok {
return fmt.Errorf("field 'features' in shared workflows can only include import-safe fields samples and intentional-failure; found unsupported key: %s", key)
}
}

return nil
}
@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.88.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants