Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

WIP: CI: add spellcheck #3421

Merged
merged 44 commits into from
Jul 14, 2021
Merged

WIP: CI: add spellcheck #3421

merged 44 commits into from
Jul 14, 2021

Conversation

TriplEight
Copy link
Contributor

@TriplEight TriplEight commented Jul 6, 2021

WIP: revert the debug commit and allow_failure: true before merging!

  • add spellcheck job to CI

This suggests that the test first should be fixed/dictionary filled.

Reference:
Hunspell manual: http://manpages.ubuntu.com/manpages/bionic/man5/hunspell.5.html
Built-in hunspell affix file into cargo-spellcheck: https://github.com/drahnr/cargo-spellcheck/blob/master/hunspell-data/en_US.aff

@TriplEight TriplEight added A3-in_progress Pull request is in progress. No review needed at this stage. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. labels Jul 6, 2021
@github-actions github-actions bot added A0-please_review Pull request needs code review. and removed A3-in_progress Pull request is in progress. No review needed at this stage. labels Jul 6, 2021
@drahnr
Copy link
Contributor

drahnr commented Jul 6, 2021

It would be preferable to only check the changed files for spelling mistakes, so we are not facing a giant 10k dictionary to be fixed upfront

.gitlab-ci.yml Outdated Show resolved Hide resolved
.gitlab-ci.yml Outdated Show resolved Hide resolved
@TriplEight TriplEight requested a review from drahnr July 12, 2021 16:53
@TriplEight TriplEight self-assigned this Jul 13, 2021
@TriplEight TriplEight changed the title WIP: CI: add spellcheck CI: add spellcheck Jul 13, 2021
@TriplEight TriplEight added the D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit. label Jul 13, 2021
README.md Outdated Show resolved Hide resolved
@@ -193,7 +197,7 @@ Basically we need to test the correctness of data flow through state FSMs descri
- Wait until the data should have been pruned.
- The data is no longer available.

- Forkfulness of the relay chain is taken into account
- Fork-awareness of the relay chain is taken into account
Copy link
Member

Choose a reason for hiding this comment

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

I don't think they mean the same, forkfulness is the correct term here

Copy link
Contributor

Choose a reason for hiding this comment

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

The implementation is fork-aware, so this doesn't express the same thing indeed, forkfulness is still a mouthful and not very clear.

@@ -13,7 +13,7 @@

// You should have received a copy of the GNU General Public License
// along with Polkadot. If not, see <http://www.gnu.org/licenses/>.
//! Autogenerated weights for frame_system
//! Autogenerated weights for `frame_system`
Copy link
Member

@ordian ordian Jul 13, 2021

Choose a reason for hiding this comment

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

TriplEight and others added 3 commits July 13, 2021 22:29
Co-authored-by: Andronik Ordian <write@reusable.software>
Co-authored-by: Andronik Ordian <write@reusable.software>
Co-authored-by: Andronik Ordian <write@reusable.software>
@TriplEight TriplEight added A3-in_progress Pull request is in progress. No review needed at this stage. and removed A0-please_review Pull request needs code review. labels Jul 13, 2021
@TriplEight TriplEight changed the title CI: add spellcheck WIP: CI: add spellcheck Jul 13, 2021
@TriplEight TriplEight merged commit 8a6af44 into master Jul 14, 2021
@TriplEight TriplEight deleted the 3x8_add_spellcheck branch July 14, 2021 17:22
- git fetch origin +${CI_DEFAULT_BRANCH}:${CI_DEFAULT_BRANCH}
- time cargo spellcheck check -vvv --cfg=scripts/gitlab/spellcheck.toml --checkers hunspell --code 1
-r $(git diff --name-only ${CI_COMMIT_SHA} ${CI_DEFAULT_BRANCH})
-r $(git diff --name-only ${CI_COMMIT_SHA} $(git merge-base ${CI_COMMIT_SHA} ${CI_DEFAULT_BRANCH}))
Copy link
Contributor

Choose a reason for hiding this comment

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

🎉

@ordian ordian mentioned this pull request Aug 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A3-in_progress Pull request is in progress. No review needed at this stage. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants