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

TEST Golangci lint GitHub action integ #2

Open
wants to merge 39 commits into
base: main
Choose a base branch
from

Conversation

zijun726911
Copy link
Owner

What type of PR is this?

Which issue does this PR fix:

What does this PR do / Why do we need it:

If an issue # is not available please add repro steps and logs from aws-gateway-controller showing the issue:

Testing done on this change:

Automation added to e2e:

Will this PR introduce any new dependencies?:

Will this break upgrades or downgrades. Has updating a running cluster been tested?:

Does this PR introduce any user-facing change?:


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

mikhail-aws and others added 30 commits November 15, 2023 13:33
…es (aws#506)

* Add linter config

* Doc: Update deployment doc prefix lists

Add IPv4 and IPv6 prefix list Ids to security group ingress onboarding step instead of the specific IP range used by the Lattice network.

* Doc: Update development doc with prefix lists

Add IPv4 and IPv6 prefix list Ids to security group ingress onboarding step instead of the specific IP range used by the Lattice network.

* ci: Use mattn/goveralls instead of shogo821/goveralls

* ci: Use mattn/goveralls instead of shogo821/goveralls

* doc: update overview page for v1

* Doc: Update readme

* doc: add link to SG docs in deploy

* nit: space and wording cleanup
…ws#504)

* - Removed deprecated annotation  `application-networking.k8s.aws/lattice-vpc-association: "true"`
- Improve the section "Set up single-cluster/VPC service-to-service communications" in getstarted.md

* Address PR comments

* address PR comments

* Address PR comments

---------

Co-authored-by: Zijun Wang <[email protected]>
* Fix target group leaking and e2etest

* Fix grpcurl runner

* Fix unit test

* Fix more flaky/buggy e2e test cases

* Rollback conditional

* Address PR comments
* - pass defaultServiceNetwork env variable
- fix e2e test issue

* pass defaultServiceNetwork env variable

---------

Co-authored-by: Zijun Wang <[email protected]>
* Add linter config

* Doc: Update deployment doc prefix lists

Add IPv4 and IPv6 prefix list Ids to security group ingress onboarding step instead of the specific IP range used by the Lattice network.

* Doc: Update development doc with prefix lists

Add IPv4 and IPv6 prefix list Ids to security group ingress onboarding step instead of the specific IP range used by the Lattice network.

* ci: Use mattn/goveralls instead of shogo821/goveralls

* ci: Use mattn/goveralls instead of shogo821/goveralls

* doc: update overview page for v1

* Doc: Update readme

* doc: add link to SG docs in deploy

* nit: space and wording cleanup

* Docs: Major doc folder structure update

* doc: add code of conduct

* doc: Move api reference back to top-level nav

* doc: fix merge conflict
* Fix e2e tests and examples to be compatible w/ latest CRDs

* Fix empty rule matching behavior
* Update Gateway resource docs and fix markdown styles
* add target group policy controller and status updates
* Docs: move envvar section and fix links
* Fix for leaking target groups on service delete due to listener delete race condition
* add log level env variable and update helm

* update LOG_LEVEL env var in environment.md
* Release artifacts for v1.0.1

* Add deploy-v1.0.1.yaml
* bak

* bak

* bak

* ci: Use mattn/goveralls instead of shogo821/goveralls

# Conflicts:
#	hack/toolchain.sh

* - Add new multi cluster doc, diagram and remove outdated ones
- fix broken image link in the doc

* Minor change

* Address PR comments

* Address PR comments

* Address PR comments

* Address PR comments

* Address PR comments

* Address PR comments

---------

Co-authored-by: Zijun Wang <[email protected]>
* Improve presubmit workflow and add docs guide
zijun726911 and others added 8 commits November 28, 2023 13:56
…deploy.md in sync (aws#548)

* make recommended-inline-policy.json content and the one shown in the deploy.md in sync

* fix doc issue

---------

Co-authored-by: Zijun Wang <[email protected]>
* - add more settings in k8s yaml to prevent privileges escalation
- change image repo url from m7r9p7b3 to aws-application-networking-k8s

* Minor change

---------

Co-authored-by: Zijun Wang <[email protected]>
* Add service export/import documentations
* - First step to enable Golangci-lint
- Change code base on Golangci-lint error message

* Address PR comments

* Address few PR comments

---------

Co-authored-by: Zijun Wang <[email protected]>
- Change code base on Golangci-lint error message
@coveralls
Copy link

coveralls commented Dec 1, 2023

Pull Request Test Coverage Report for Build 7054193842

Warning: This coverage report may be inaccurate.

We've detected an issue with your CI configuration that might affect the accuracy of this pull request's coverage report.
To ensure accuracy in future PRs, please see these guidelines.
A quick fix for this PR: rebase it; your next report should be accurate.

  • 204 of 734 (27.79%) changed or added relevant lines in 45 files are covered.
  • 10 unchanged lines in 5 files lost coverage.
  • Overall coverage decreased (-3.2%) to 36.625%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/deploy/lattice/listener_synthesizer.go 0 1 0.0%
pkg/config/ec2_metadata.go 0 2 0.0%
pkg/controllers/eventhandlers/serviceimport.go 1 3 33.33%
pkg/controllers/eventhandlers/vpc_association_policy.go 0 2 0.0%
pkg/controllers/gatewayclass_controller.go 0 2 0.0%
pkg/deploy/lattice/rule_manager.go 1 3 33.33%
pkg/gateway/model_build_targetgroup.go 10 12 83.33%
pkg/controllers/serviceexport_controller.go 0 3 0.0%
pkg/gateway/model_build_rule.go 15 18 83.33%
pkg/apis/applicationnetworking/v1alpha1/authpolicy_types.go 0 4 0.0%
Files with Coverage Reduction New Missed Lines %
pkg/aws/services/vpclattice.go 1 51.11%
pkg/deploy/lattice/service_manager.go 1 70.67%
pkg/gateway/model_build_rule.go 1 81.07%
pkg/gateway/model_build_targetgroup.go 1 68.35%
pkg/k8s/policyhelper/policy.go 6 11.63%
Totals Coverage Status
Change from base Build 6882732830: -3.2%
Covered Lines: 3739
Relevant Lines: 10209

💛 - Coveralls

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.

6 participants