[go: up one dir, main page]

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

Linter: Update implementation code #8146

Merged
merged 4 commits into from
Oct 2, 2024

Conversation

JoshVanL
Copy link
Contributor
@JoshVanL JoshVanL commented Sep 26, 2024

Update Dapr implementation code to adhere to new linter rules. All test files have been purposefully omitted to ensure that the implementation code is still functionally correct. A follow-up commit will contain the update to all test code, and removal of the "only new changes linted" from the github linter workflow.

@JoshVanL JoshVanL requested review from a team as code owners September 26, 2024 18:31
JoshVanL added a commit to JoshVanL/dapr that referenced this pull request Sep 26, 2024
Updates all test code to adhear to the knew linter rules.

Branched from dapr#8146 to ensure that no
test changes were made for that PR to test that no implementation
functional changes were made.

Removes rule in github workflows to only test new changes.

Signed-off-by: joshvanl <me@joshvanl.dev>
Update Dapr implementation code to adhere to new linter rules. All test
files have been purposefully omitted to ensure that the implementation
code is still functionally correct. A follow-up commit will contain the
update to all test code, and removal of the "only new changes" linted
from the github linter workflow.

Signed-off-by: joshvanl <me@joshvanl.dev>
@JoshVanL JoshVanL added the autoupdate DaprBot will keep the Pull Request up to date with master branch label Sep 26, 2024
@JoshVanL
Copy link
Contributor Author

/ok-to-test

@JoshVanL
Copy link
Contributor Author

/ok-to-perf

@dapr-bot
Copy link
Collaborator
dapr-bot commented Sep 26, 2024

Dapr E2E test

🔗 Link to Action run

Commit ref: c900e90

✅ Infrastructure deployed

Cluster Resource group name Azure region
Linux Dapr-E2E-dapre2eab46a6780fl eastus
Windows Dapr-E2E-dapre2eab46a6780fw eastus
Linux/arm64 Dapr-E2E-dapre2eab46a6780fla eastus

✅ Build succeeded for linux/amd64

  • Image tag: dapre2eab46a6780fl
  • Test image tag: dapre2eab46a6780fl

✅ Build succeeded for windows/amd64

  • Image tag: dapre2eab46a6780fw
  • Test image tag: dapre2eab46a6780fw

❌ Tests failed on linux/amd64

Please check the logs for details on the error.

❌ Tests failed on windows/amd64

Please check the logs for details on the error.

@dapr-bot
Copy link
Collaborator
dapr-bot commented Sep 26, 2024

Dapr perf test

🔗 Link to Action run

Commit ref: c900e90

✅ Infrastructure deployed

  • Resource group name: Dapr-Perf-daprprf7e25882b33
  • Azure region: eastus

✅ Build succeeded

  • Image tag: daprprf7e25882b33
  • Test image tag: daprprf7e25882b33

❌ Perf tests failed

Please check the logs for details on the error.

@JoshVanL
Copy link
Contributor Author
JoshVanL commented Oct 1, 2024

/ok-to-test

@JoshVanL
Copy link
Contributor Author
JoshVanL commented Oct 1, 2024

/ok-to-perf

@dapr-bot
Copy link
Collaborator
dapr-bot commented Oct 1, 2024

Dapr E2E test

🔗 Link to Action run

Commit ref: c900e90

✅ Infrastructure deployed

Cluster Resource group name Azure region
Linux Dapr-E2E-dapre2e0223640c39l eastus
Windows Dapr-E2E-dapre2e0223640c39w eastus
Linux/arm64 Dapr-E2E-dapre2e0223640c39la eastus

✅ Build succeeded for linux/amd64

  • Image tag: dapre2e0223640c39l
  • Test image tag: dapre2e0223640c39l

✅ Build succeeded for windows/amd64

  • Image tag: dapre2e0223640c39w
  • Test image tag: dapre2e0223640c39w

✅ Tests succeeded on windows/amd64

  • Image tag: dapre2e0223640c39w
  • Test image tag: dapre2e0223640c39w

❌ Tests failed on linux/amd64

Please check the logs for details on the error.

@dapr-bot
Copy link
Collaborator
dapr-bot commented Oct 1, 2024

Dapr perf test

🔗 Link to Action run

Commit ref: c900e90

✅ Infrastructure deployed

  • Resource group name: Dapr-Perf-daprprf84fece3e79
  • Azure region: eastus

✅ Build succeeded

  • Image tag: daprprf84fece3e79
  • Test image tag: daprprf84fece3e79

❌ Perf tests failed

Please check the logs for details on the error.

.golangci.yml Show resolved Hide resolved
.golangci.yml Show resolved Hide resolved
.golangci.yml Outdated Show resolved Hide resolved
pkg/api/errors/pubsub.go Show resolved Hide resolved
Copy link
Contributor
@elena-kolevska elena-kolevska left a comment

Choose a reason for hiding this comment

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

LGTM, provided that Mike's suggestions are accepted

Copy link
Contributor
@elena-kolevska elena-kolevska left a comment

Choose a reason for hiding this comment

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

The typo shaddow made me think there could be other errors on which the tool failed silently, so I did a quick search and found out about the golangci-lint config verify command. It brought a few additional errors we need to fix. I put a few of them as suggestions, and here are two more I can't add as comments in code:

Under linter-settings:

# `check-exported: false` is not  valid anymore, I suggest: 
unused:
    # Mark all exported fields as used.
    exported-fields-are-used: false
# We used to have `allow-case-traling-whitespace: true` which is not allowed anymore. We can either delete the config completely, or force a new line as so:
wsl:
  ...
      # If the number of lines in a case block is equal to or lager than this number,
    # the case *must* end white a newline.
    # https://github.com/bombsimon/wsl/blob/master/doc/configuration.md#force-case-trailing-whitespace
    # Default: 0
    force-case-trailing-whitespace: 1

.golangci.yml Outdated Show resolved Hide resolved
.golangci.yml Outdated Show resolved Hide resolved
.golangci.yml Outdated Show resolved Hide resolved
Signed-off-by: joshvanl <me@joshvanl.dev>
@JoshVanL
Copy link
Contributor Author
JoshVanL commented Oct 2, 2024

Thanks @elena-kolevska @mikeee, please take another look!

Copy link
Member
@mikeee mikeee left a comment

Choose a reason for hiding this comment

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

Lgtm

@JoshVanL JoshVanL merged commit 8b8b605 into dapr:master Oct 2, 2024
20 of 21 checks passed
JoshVanL added a commit to JoshVanL/dapr that referenced this pull request Oct 2, 2024
Updates all test code to adhear to the knew linter rules.

Branched from dapr#8146 to ensure that no
test changes were made for that PR to test that no implementation
functional changes were made.

Removes rule in github workflows to only test new changes.

Signed-off-by: joshvanl <me@joshvanl.dev>
artursouza pushed a commit that referenced this pull request Oct 3, 2024
* Linter: Updates test code for new linter rules

Updates all test code to adhear to the knew linter rules.

Branched from #8146 to ensure that no
test changes were made for that PR to test that no implementation
functional changes were made.

Removes rule in github workflows to only test new changes.

Signed-off-by: joshvanl <me@joshvanl.dev>

* Review comments

Signed-off-by: joshvanl <me@joshvanl.dev>

* Fix app pubsub string

Signed-off-by: joshvanl <me@joshvanl.dev>

---------

Signed-off-by: joshvanl <me@joshvanl.dev>
JoshVanL added a commit to JoshVanL/dapr that referenced this pull request Oct 3, 2024
* Linter: Updates test code for new linter rules

Updates all test code to adhear to the knew linter rules.

Branched from dapr#8146 to ensure that no
test changes were made for that PR to test that no implementation
functional changes were made.

Removes rule in github workflows to only test new changes.

Signed-off-by: joshvanl <me@joshvanl.dev>

* Review comments

Signed-off-by: joshvanl <me@joshvanl.dev>

* Fix app pubsub string

Signed-off-by: joshvanl <me@joshvanl.dev>

---------

Signed-off-by: joshvanl <me@joshvanl.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autoupdate DaprBot will keep the Pull Request up to date with master branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants