Skip to content

Optimize super-linter to validate only Markdown files#8014

Merged
pelikhan merged 3 commits intomainfrom
copilot/update-superlinter-job-speed
Dec 29, 2025
Merged

Optimize super-linter to validate only Markdown files#8014
pelikhan merged 3 commits intomainfrom
copilot/update-superlinter-job-speed

Conversation

Copy link
Contributor

Copilot AI commented Dec 28, 2025

The super-linter job was taking 12m 51s because it ran all linters despite its documented purpose of validating only Markdown files. Other linters (Go, JavaScript, YAML, Shell) already run in separate CI jobs.

Changes

  • Configure super-linter environment variables:

    • VALIDATE_MARKDOWN: "true" - Enable Markdown validation
    • VALIDATE_ALL_CODEBASE: "false" - Disable redundant linters
  • Update workflow description to reflect actual scope: "Markdown quality checks" instead of "comprehensive code quality checks"

Performance Impact

Expected runtime: ~1-2 minutes (down from 12m 51s)

# Before: all linters run by default
env:
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  CREATE_LOG_FILE: "true"

# After: explicit Markdown-only validation
env:
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  CREATE_LOG_FILE: "true"
  VALIDATE_MARKDOWN: "true"
  VALIDATE_ALL_CODEBASE: "false"
Original prompt

Reference: https://github.com/githubnext/gh-aw/actions/runs/20523774507/job/58963412871#step:4:1

Review superlinter project helper and update job to make it faster.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits December 29, 2025 00:01
Configure super-linter to only validate Markdown files by setting:
- VALIDATE_MARKDOWN: "true"
- VALIDATE_ALL_CODEBASE: "false"

This significantly improves performance since other linters (Go, JavaScript,
YAML, Shell) are already covered by separate CI jobs. The workflow comment
already states: "This workflow only validates Markdown files. Other linters
(Go, JavaScript, YAML, Shell, etc.) are handled by separate CI jobs"

Expected performance improvement: ~10-12 minutes faster (from 12m 51s to ~1-2 minutes)

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
…idation

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Review superlinter project helper and update job for speed Optimize super-linter to validate only Markdown files Dec 29, 2025
Copilot AI requested a review from pelikhan December 29, 2025 00:08
@pelikhan pelikhan marked this pull request as ready for review December 29, 2025 00:44
@pelikhan pelikhan merged commit 4b5a07a into main Dec 29, 2025
4 checks passed
@pelikhan pelikhan deleted the copilot/update-superlinter-job-speed branch December 29, 2025 00:44
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