Skip to content

Conversation

@om7057
Copy link

@om7057 om7057 commented Feb 4, 2026

Runs markdown-spellcheck and markdownlint on individual .features/pending/*.md files during features-validate, catching errors early before release.

Fixes #15149

Motivation

When generating the new features document for release, it can fail markdown lint and spelling checks. Currently, these checks only run on the combined output (docs/new-features.md) during release time. If individual feature files in .features/pending/*.md have lint or spelling errors, they're not caught until the release CI runs, causing unexpected failures.

This PR addresses the first part of the issue: validating individual feature documents early so contributors can fix issues before release.

Modifications

Modified the features-validate target in Makefile to:

  1. Added $(TOOL_MDSPELL) as a dependency
  2. Added spell check (mdspell) on individual .features/pending/*.md files
  3. Added markdown lint (markdownlint) on individual feature files before they are combined

Verification

Tested locally by running:

make features-validate

@om7057
Copy link
Author

om7057 commented Feb 4, 2026

@Joibel I have addressed the issue #15149 new-features.md should be lintable and spell checked, partially in this PR, kindly check once.

@om7057 om7057 force-pushed the issue-15149-fix-1 branch 2 times, most recently from 262d779 to 96a2191 Compare February 4, 2026 20:14
Runs markdown-spellcheck on individual .features/pending/*.md files during
features-validate, catching spelling errors early before release.

Spell check is non-blocking (warning only) since feature files contain
author names and GitHub usernames that trigger false positives.

Fixes argoproj#15149

Signed-off-by: om7057 <[email protected]>
@om7057 om7057 force-pushed the issue-15149-fix-1 branch from 96a2191 to ec8af7b Compare February 4, 2026 20:27
@Joibel Joibel self-assigned this Feb 5, 2026
features-validate: hack/featuregen/featuregen $(TOOL_MARKDOWNLINT) $(TOOL_MDSPELL)
# Validate all pending feature documentation files
$< validate
# Spell check individual feature files before they are combined (warning only, does not fail build)
Copy link
Member

Choose a reason for hiding this comment

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

Why do we want this to not fail the build?

Copy link
Author

@om7057 om7057 Feb 5, 2026

Choose a reason for hiding this comment

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

Okay @Joibel. It's set to warning-only since there are existing spelling issues in pending files (e.g., author names not in the dictionary). Happy to make it fail the build if it's preferred, please let me know.

@om7057
Copy link
Author

om7057 commented Feb 7, 2026

@Joibel Could you please review the changes?

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.

new-features.md should be lintable and spell checked

2 participants