From 1ed885329daf0e51b27c12cd5e6839102b69a12c Mon Sep 17 00:00:00 2001 From: Nicolas Vuillamy Date: Sat, 16 Dec 2023 15:48:57 +0100 Subject: [PATCH] Enhance MegaLinter config + Check for changes CI job error management (#340) * Enhance MegaLinter config * changelog & build * trivyignore * CI: Upload expected sources as artifact if Check for changes job fails * fix --------- Co-authored-by: Nicolas Vuillamy --- .github/workflows/lint.yml | 11 +++++++++++ .github/workflows/mega-linter.yml | 2 +- .mega-linter.yml | 4 +--- .trivyignore | 2 ++ CHANGELOG.md | 16 ++++++++++++++++ docs/CHANGELOG.md | 16 ++++++++++++++++ 6 files changed, 47 insertions(+), 4 deletions(-) create mode 100644 .trivyignore diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 7e38d32c..92474aa0 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -40,3 +40,14 @@ jobs: npm run dev:pre-commit git --no-pager diff [[ 0 -eq $(git status --porcelain | wc -l) ]] + + # Upload Mega-Linter artifacts + - name: Archive production artifacts + if: failure() + uses: actions/upload-artifact@v3 + with: + name: Expected sources + path: | + docs/ + groovy/ + lib/ diff --git a/.github/workflows/mega-linter.yml b/.github/workflows/mega-linter.yml index 03399a28..b3c82a00 100644 --- a/.github/workflows/mega-linter.yml +++ b/.github/workflows/mega-linter.yml @@ -55,7 +55,7 @@ jobs: # Upload Mega-Linter artifacts - name: Archive production artifacts - if: ${{ success() }} || ${{ failure() }} + if: success() || failure() uses: actions/upload-artifact@v3 with: name: Mega-Linter reports diff --git a/.mega-linter.yml b/.mega-linter.yml index a7595099..b35efde9 100644 --- a/.mega-linter.yml +++ b/.mega-linter.yml @@ -6,15 +6,13 @@ FILTER_REGEX_EXCLUDE: (lib/example|\.github|\.vscode|pull_request_template|docs/ DISABLE: - COPYPASTE - CSS +JAVASCRIPT_DEFAULT_STYLE: prettier DISABLE_LINTERS: - JAVASCRIPT_STANDARD - - REPOSITORY_TRIVY - - SPELL_PROSELINT DISABLE_ERRORS_LINTERS: - REPOSITORY_SEMGREP FLAVOR_SUGGESTIONS: false JAVASCRIPT_ES_FILE_NAME: "LINTER_DEFAULT" -PRINT_ALL_FILES: false GITHUB_STATUS_REPORTER: false PRE_COMMANDS: - continue_if_failed: false diff --git a/.trivyignore b/.trivyignore new file mode 100644 index 00000000..d1c6f2d5 --- /dev/null +++ b/.trivyignore @@ -0,0 +1,2 @@ +DS002 +DS026 diff --git a/CHANGELOG.md b/CHANGELOG.md index b6a026ee..dfc2df60 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,22 @@ ## UNRELEASED +- Add your updates here :) + +## [14.0.0] 2023-12-16 + +- Fix data race on stdout capture which was corrupting the responses for overlapping requests by using a capturing plugin. +- Fix data race on threads read and write which could result in missed cancellations and re-enable cancellation processing. +- Ensure that threads are always removed in the case of write response exception. +- Switch to jackson to enable efficient JSON encoding and decoding including raw embedding of CodeNarc result to avoid unnecessary processing. +- Split out HTTP filters to their own files. +- Use typed variables instead of def per linter recommendation. +- Add early test for missing base directory to avoid running linter unnecessarily. +- Fix parse failures for files which contain classes that only non-zero argument constructors. +- Add gzip compression to reduce size of network traffic to improve performance +- CI: Enhance MegaLinter config +- CI: Upload expected sources as artifact if Check for changes job fails + ## [13.0.2] 2023-12-07 - Remove useless console.log in sources. diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index b6a026ee..dfc2df60 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -2,6 +2,22 @@ ## UNRELEASED +- Add your updates here :) + +## [14.0.0] 2023-12-16 + +- Fix data race on stdout capture which was corrupting the responses for overlapping requests by using a capturing plugin. +- Fix data race on threads read and write which could result in missed cancellations and re-enable cancellation processing. +- Ensure that threads are always removed in the case of write response exception. +- Switch to jackson to enable efficient JSON encoding and decoding including raw embedding of CodeNarc result to avoid unnecessary processing. +- Split out HTTP filters to their own files. +- Use typed variables instead of def per linter recommendation. +- Add early test for missing base directory to avoid running linter unnecessarily. +- Fix parse failures for files which contain classes that only non-zero argument constructors. +- Add gzip compression to reduce size of network traffic to improve performance +- CI: Enhance MegaLinter config +- CI: Upload expected sources as artifact if Check for changes job fails + ## [13.0.2] 2023-12-07 - Remove useless console.log in sources.