Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 6, 2025

The self-hosted-runner.yml workflow was failing yamllint validation due to formatting issues that prevented proper GitHub Actions processing.

Changes

YAML formatting compliance:

  • Added document start marker (---)
  • Fixed bracket spacing: branches: [ main ]branches: [main]
  • Quoted truthy value: on:"on":"
  • Removed trailing whitespace on lines 60, 110

Line length compliance (80 char limit):

# Before: 109 characters
echo "- **OS**: $(cat /etc/os-release | grep PRETTY_NAME | cut -d= -f2 | tr -d '\"')" >> $GITHUB_STEP_SUMMARY

# After: Split with intermediate variables
OS_REL="/etc/os-release"
OS_NAME=$(cat $OS_REL | grep PRETTY_NAME | cut -d= -f2 | tr -d '\"')
echo "- **OS**: $OS_NAME" >> $GITHUB_STEP_SUMMARY

Long conditionals:

# Before: 118 characters
if: ${{ contains(github.event.head_commit.message, '[test-runner]') || github.event_name == 'workflow_dispatch' }}

# After: Block scalar notation
if: >-
  ${{ contains(github.event.head_commit.message, '[test-runner]')
  || github.event_name == 'workflow_dispatch' }}

Applied similar fixes to memory, disk, and result variable assignments. No functional changes to workflow execution.

Original prompt

Fix Self-Hosted Runner Validation workflow failure (issue #734)

The self-hosted-runner.yml workflow is failing validation. Please analyze the workflow, identify issues, and implement fixes.

References:

Please ensure runner validation passes after your fix.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Fix self-hosted runner validation workflow failure Fix YAML validation errors in self-hosted-runner.yml workflow Nov 6, 2025
Copilot AI requested a review from endomorphosis November 6, 2025 21:23
Copilot finished work on behalf of endomorphosis November 6, 2025 21:23
@endomorphosis endomorphosis marked this pull request as ready for review November 6, 2025 21:31
@endomorphosis endomorphosis merged commit 6463f71 into main Nov 6, 2025
5 of 6 checks passed
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.

2 participants