Skip to content

fix: fail when a fail level different than none is provided - #1649

Merged
RobPasMue merged 12 commits into
mainfrom
fix/failure-when-annotation-limit-reached
Nov 17, 2026
Merged

RobPasMue merged 12 commits into
mainfrom
fix/failure-when-annotation-limit-reached

Conversation

@RobPasMue

Copy link
Copy Markdown
Member

PR #1632 exposed a bug on local testing... Any repo that goes over 10 alerts is affected, whatever the Vale version.

The action now also passes fail_on_error: ${{ inputs.fail-level != 'none' }} to vale-action.

  • fail_level still takes precedence, so it still decides the reviewdog exit code.
  • With fail_on_error set to 'true', vale-action stops discarding that failure. This is the silent faiure we were seeing in some repos...

Comment thread doc-style/action.yml Resolved
@github-actions github-actions Bot added the fix Pull requests related to resolving problems or errors label Nov 6, 2026
@RobPasMue

Copy link
Copy Markdown
Member Author

@ansys/pyansys-core we might have a problem... issues weren't being reported properly with vale lately... it's not #1632's fault. We should enforce this..

Also the annotations in many repos were probably failing because of the checks: write permission I included in 76853a6

@github-actions github-actions Bot added ci Pipelines maintenance related docs Issues related to documentation labels Nov 6, 2026

@SMoraisAnsys SMoraisAnsys 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.

I wasn't understanding the problem until I saw the changes (and vale warnings :D)

LGTM, thanks for fixing that @RobPasMue Once the CI is fixed, I think it can be merged right away.

@RobPasMue

Copy link
Copy Markdown
Member Author

Issues on current repo have been fixed... missing ones are on the other repos we test. I'll start opening PRs on their repos to fix them (at least the error critical issues, not the warnings like in this one)

@jorgepiloto jorgepiloto left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for the hot-fix, @RobPasMue.

@RobPasMue

Copy link
Copy Markdown
Member Author

Opened PRs on other repos:

Once they are merged we should be able to rerun this and merge

greschd pushed a commit to ansys/pyacp that referenced this pull request Nov 10, 2026
ansys/actions `doc-style` now uses Vale 3.25.1 by default (see ansys/actions#1649), which reports new error-level alerts on this repository.

Changes:
- `doc/source/api/ui_objects.rst`: remove trailing whitespace on blank lines between `autoclass` directives, which caused Vale to parse a directive as prose (`Vale.Spelling` on `autoclass`, `Google.Spacing` on `t.P`).
- `doc/source/user_guide/compatibility.rst`: rephrase "from PyACP version 0.5.0 onwards" to "in PyACP version 0.5.0 and later" (`Vale.Spelling`).
@RobPasMue
RobPasMue enabled auto-merge (squash) November 17, 2026 07:32
@RobPasMue
RobPasMue merged commit 9c9767b into main Nov 17, 2026
106 of 109 checks passed
@RobPasMue
RobPasMue deleted the fix/failure-when-annotation-limit-reached branch November 17, 2026 07:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Pipelines maintenance related docs Issues related to documentation fix Pull requests related to resolving problems or errors

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants