Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deployment: add context lint rules #15413

Merged
merged 2 commits into from
Dec 18, 2024
Merged

deployment: add context lint rules #15413

merged 2 commits into from
Dec 18, 2024

Conversation

jmank88
Copy link
Contributor

@jmank88 jmank88 commented Nov 25, 2024

  • This PR adds some context rules to the linter for the deployment module.
  • Introduces a fix that lets the golangci-lint-action run in all the affected modules and upload the corresponding reports.
  • Lint runs (checks) are consolidated and are not running twice
  • ci-scripts.yml (lint and tests) for core/scripts moved to the ci-core.yml workflow.

@jmank88 jmank88 requested a review from chudilka1 November 25, 2024 23:46
Copy link
Contributor

github-actions bot commented Nov 26, 2024

AER Report: CI Core ran successfully ✅

aer_workflow , commit

AER Report: Operator UI CI ran successfully ✅

aer_workflow , commit

@chudilka1 chudilka1 force-pushed the deployment-lint-context branch 9 times, most recently from 8d738b5 to 49634f6 Compare November 26, 2024 12:14
@chudilka1 chudilka1 force-pushed the deployment-lint-context branch 18 times, most recently from 5d969e2 to 09e67dc Compare November 27, 2024 10:09
@jmank88 jmank88 requested review from chainchad, HenryNguyen5 and a team December 18, 2024 14:41
RensR
RensR previously approved these changes Dec 18, 2024
@jmank88 jmank88 added this pull request to the merge queue Dec 18, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 18, 2024
@jmank88 jmank88 added this pull request to the merge queue Dec 18, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 18, 2024
@chudilka1 chudilka1 added this pull request to the merge queue Dec 18, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 18, 2024
@chudilka1 chudilka1 added this pull request to the merge queue Dec 18, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 18, 2024
…ctly upload reports

Update golangci-lint action to go through all dirs if no working directory set

Update paths to linter reports

Restore producing test coverage report for each unit test run

Remove test files fail_test.go and polished the workflows

Get list of affected files

Map affected files to modules

Update lint working directory for uploading step

Update lint working directory for uploading step

Removed duplicated runs of golangci-lint

Move running tests for core/scripts module to ci-core.yaml workflow

Remove test files

Move validation of golangci results to a non-matrix job

Add filter for affected files in core/scripts. Move related tests to a separate job

Update SonarQube to pick up coverage reports for core/scripts test runs
@chudilka1 chudilka1 dismissed stale reviews from RensR, krehermann, Atrax1, and themself via 7ba33dc December 18, 2024 17:38
@chudilka1 chudilka1 force-pushed the deployment-lint-context branch from d037ce6 to 7ba33dc Compare December 18, 2024 17:38
@cl-sonarqube-production
Copy link

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

@jmank88 jmank88 added this pull request to the merge queue Dec 18, 2024
filters: |
non-integration-tests:
- '**'
- '!integration-tests/**'
non-ignored:
- '**'
- '!docs/**'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why remove this? This will include docs/** in changes to NOT ignore I think?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There are files under docs/ which are read by go source code.

Merged via the queue into develop with commit 8cc06ab Dec 18, 2024
190 checks passed
@jmank88 jmank88 deleted the deployment-lint-context branch December 18, 2024 18:29
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.

7 participants