Skip to content
This repository was archived by the owner on Jul 11, 2023. It is now read-only.

Conversation

shalier
Copy link
Contributor

@shalier shalier commented Aug 24, 2022

Description:
changes:

  1. Suppress for demo apps G114: Use of net/http serve function that has no support for setting timeouts
  2. Ignore package-comments, known false positive https://golangci-lint.run/usage/false-positives/#exc0015
  3. Change golangci-lint timeout to 20m
  4. Remove pkg/mesh and moves isValidUUID() to pkg/cli/proxy_get.go
  5. Remove unused pkg/k8s/fake folder

Signed-off-by: Shalier Xia shalierxia@microsoft.com

Testing done:

Affected area:

Functional Area
Other [x ]

Please answer the following questions with yes/no.

  1. Does this change contain code from or inspired by another project?

    • Did you notify the maintainers and provide attribution?
  2. Is this a breaking change?

  3. Has documentation corresponding to this change been updated in the osm-docs repo (if applicable)?

@codecov-commenter
Copy link

codecov-commenter commented Aug 24, 2022

Codecov Report

Merging #5037 (45286c8) into main (2d94011) will decrease coverage by 0.02%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #5037      +/-   ##
==========================================
- Coverage   68.71%   68.69%   -0.03%     
==========================================
  Files         215      215              
  Lines       16118    16118              
==========================================
- Hits        11076    11072       -4     
- Misses       4982     4986       +4     
  Partials       60       60              
Flag Coverage Δ
unittests 68.69% <ø> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pkg/certificate/castorage/k8s/k8s.go 81.25% <ø> (ø)
pkg/ticker/ticker.go 86.66% <ø> (ø)
pkg/workerpool/workerpool.go 100.00% <ø> (ø)
pkg/messaging/workqueue.go 89.28% <0.00%> (-10.72%) ⬇️
pkg/certificate/manager.go 78.05% <0.00%> (-0.36%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@shalier shalier force-pushed the g114Lint branch 2 times, most recently from df6264c to 138c030 Compare August 24, 2022 22:25
@jsturtevant
Copy link
Contributor

I think this linter issue occurs because we are running latest linter in CI. There is lots of value to that, but the UI is pretty rough since it doesn't show you all the linter failures in one go and it takes a really long time locally. I fixed a bunch of these last month #4969.

We have the timeout set to 10m in the

timeout: 10m
but looks like it only running for 5. maybe add args: --timeout=10m to
uses: golangci/golangci-lint-action@v3
with:
version: latest
skip-pkg-cache: true
and it will not timeout?

Thanks for addressing them @shalier, this was frustrating when I did it last month :-/

@jsturtevant
Copy link
Contributor

That did make it run for 10 mins but looks like it still timed out :-(

@shalier shalier force-pushed the g114Lint branch 2 times, most recently from 17fb7e4 to 4e9f5bb Compare August 26, 2022 18:26
golints addressed:
1. G114: Use of net/http serve function that has no support for setting timeouts
2. package-comments
3. removes pkg mesh and moves isValidUUID() to pkg/cli/proxy_get.go

Signed-off-by: Shalier Xia <shalierxia@microsoft.com>
Signed-off-by: Shalier Xia shalierxia@microsoft.com
Signed-off-by: Shalier Xia <shalierxia@microsoft.com>
Signed-off-by: Shalier Xia <shalierxia@microsoft.com>
Signed-off-by: Shalier Xia <shalierxia@microsoft.com>
@shalier shalier requested a review from keithmattix August 26, 2022 20:00
@shashankram shashankram merged commit 961c865 into openservicemesh:main Aug 26, 2022
nshankar13 pushed a commit to nshankar13/osm that referenced this pull request Aug 31, 2022
golints addressed:
1. G114: Use of net/http serve function that has no support for setting timeouts
2. package-comments
3. removes pkg mesh and moves isValidUUID() to pkg/cli/proxy_get.go

Signed-off-by: Shalier Xia <shalierxia@microsoft.com>
nshankar13 pushed a commit to nshankar13/osm that referenced this pull request Aug 31, 2022
Fix ingress backend broken SAN (openservicemesh#4914)

Fix ingress backend SAN's, which were getting the trust domain appended to the provided SAN.
This adds an e2e test to catch that going forward.
This also switches the internal builders to use the principal (trust domain appended) vs the identity (no trust domain)

Signed-off-by: nshankar13 <nshankar@microsoft.com>

[backport] cherry-pick 961c865 to release-v1.2

fix golints G114 and package-comments (openservicemesh#5037)

golints addressed:
1. G114: Use of net/http serve function that has no support for setting timeouts
2. package-comments
3. removes pkg mesh and moves isValidUUID() to pkg/cli/proxy_get.go

Signed-off-by: Shalier Xia <shalierxia@microsoft.com>
nshankar13 pushed a commit to nshankar13/osm that referenced this pull request Aug 31, 2022
Fix ingress backend broken SAN (openservicemesh#4914)

Fix ingress backend SAN's, which were getting the trust domain appended to the provided SAN.
This adds an e2e test to catch that going forward.
This also switches the internal builders to use the principal (trust domain appended) vs the identity (no trust domain)

Signed-off-by: nshankar13 <nshankar@microsoft.com>

[backport] cherry-pick 961c865 to release-v1.2

fix golints G114 and package-comments (openservicemesh#5037)

golints addressed:
1. G114: Use of net/http serve function that has no support for setting timeouts
2. package-comments
3. removes pkg mesh and moves isValidUUID() to pkg/cli/proxy_get.go

Signed-off-by: Shalier Xia <shalierxia@microsoft.com>

[backport] cherry-pick df502a7 to release-v1.2

bump version of go to 1.19 (openservicemesh#4972)

Signed-off-by: Sean Teeling <seanteeling@microsoft.com>
nshankar13 pushed a commit to nshankar13/osm that referenced this pull request Aug 31, 2022
Fix ingress backend broken SAN (openservicemesh#4914)

Fix ingress backend SAN's, which were getting the trust domain appended to the provided SAN.
This adds an e2e test to catch that going forward.
This also switches the internal builders to use the principal (trust domain appended) vs the identity (no trust domain)

[backport] cherry-pick 961c865 to release-v1.2

fix golints G114 and package-comments (openservicemesh#5037)

golints addressed:
1. G114: Use of net/http serve function that has no support for setting timeouts
2. package-comments
3. removes pkg mesh and moves isValidUUID() to pkg/cli/proxy_get.go

Signed-off-by: Shalier Xia <shalierxia@microsoft.com>
nshankar13 pushed a commit to nshankar13/osm that referenced this pull request Aug 31, 2022
Fix ingress backend broken SAN (openservicemesh#4914)

Fix ingress backend SAN's, which were getting the trust domain appended to the provided SAN.
This adds an e2e test to catch that going forward.
This also switches the internal builders to use the principal (trust domain appended) vs the identity (no trust domain)

[backport] cherry-pick 961c865 to release-v1.2

fix golints G114 and package-comments (openservicemesh#5037)

golints addressed:
1. G114: Use of net/http serve function that has no support for setting timeouts
2. package-comments
3. removes pkg mesh and moves isValidUUID() to pkg/cli/proxy_get.go

Signed-off-by: Shalier Xia <shalierxia@microsoft.com>
Signed-off-by: nshankar13 <nshankar@microsoft.com>
nshankar13 pushed a commit to nshankar13/osm that referenced this pull request Aug 31, 2022
Fix ingress backend broken SAN (openservicemesh#4914)

Fix ingress backend SAN's, which were getting the trust domain appended to the provided SAN.
This adds an e2e test to catch that going forward.
This also switches the internal builders to use the principal (trust domain appended) vs the identity (no trust domain)

[backport] cherry-pick 961c865 to release-v1.2

fix golints G114 and package-comments (openservicemesh#5037)

golints addressed:
1. G114: Use of net/http serve function that has no support for setting timeouts
2. package-comments
3. removes pkg mesh and moves isValidUUID() to pkg/cli/proxy_get.go

Signed-off-by: Shalier Xia <shalierxia@microsoft.com>
Signed-off-by: nshankar13 <nshankar@microsoft.com>
@shalier shalier deleted the g114Lint branch November 16, 2022 00:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants