Skip to content

Remove Super-Linter action and move flake8 to pre-commit#7861

Merged
DaanHoogland merged 1 commit into
apache:mainfrom
jbampton:remove-super-linter-action
Aug 17, 2023
Merged

Remove Super-Linter action and move flake8 to pre-commit#7861
DaanHoogland merged 1 commit into
apache:mainfrom
jbampton:remove-super-linter-action

Conversation

@jbampton

Copy link
Copy Markdown
Member

Description

This PR removes the Super-Linter action which was running flake8 and moves this check to pre-commit.

We are running an older version of the GitHub Super-Linter which should be updated.

So we can now run flake8 locally with pre-commit to speed up review time. Finding issues on our local machine first instead of waiting for the Super-Linter action to finish when opening a pr.

Also the GitHub Actions policy of the ASF says:

"You MAY use all actions internal to the apache/, github/ and actions/* namespaces without restrictions."

https://infra.apache.org/github-actions-policy.html

Since the most current version of the Super-Linter is no longer under "github/*" we need to remove this action.

"NOTICE: If your use of the super-linter action failed around April 26th, 2023, we changed the organization name from github to super-linter so you will need to update your references to this action from github/super-linter to super-linter/super-linter."

https://github.com/super-linter/super-linter

https://flake8.pycqa.org/en/latest/user/using-hooks.html

https://github.com/PyCQA/flake8

When run locally with pre-commit the flake8 check found some Python files which had issues which I have ignored and these can be cleaned up or processed later if needed.

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

Run all pre-commit checks with:

pre-commit run --all-files

Just test flake8:

pre-commit run flake8 --all-files

@codecov

codecov Bot commented Aug 12, 2023

Copy link
Copy Markdown

Codecov Report

Merging #7861 (e16d3b8) into main (0204377) will decrease coverage by 0.01%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##               main    #7861      +/-   ##
============================================
- Coverage     14.38%   14.38%   -0.01%     
+ Complexity    10074    10072       -2     
============================================
  Files          2747     2747              
  Lines        258922   258922              
  Branches      40318    40318              
============================================
- Hits          37246    37242       -4     
+ Misses       216867   216866       -1     
- Partials       4809     4814       +5     

see 4 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@jbampton

Copy link
Copy Markdown
Member Author

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@jbampton a [SF] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 6759

@weizhouapache weizhouapache added this to the 4.19.0.0 milestone Aug 14, 2023
@DaanHoogland DaanHoogland merged commit b0ae701 into apache:main Aug 17, 2023
@jbampton jbampton deleted the remove-super-linter-action branch August 17, 2023 14:46
@jbampton jbampton mentioned this pull request Aug 17, 2023
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants