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

chore: remove underscore prefix from test packages #1503

Merged

Conversation

lkingland
Copy link
Member

Changes

  • 🧹 Remove underscore from test packages

The underscore causes various problems, such as in IDE autocomplete and code analys tasks, because this underscore instructs go tooling to ignore the package. The original purpose of this obfuscation was to work around a CI/CD problem which is no longer affecting us; so this PR removes the workaround.

/kind cleanup

Release Note

Fixes an issue for developers where code in the test package would not be fully supported by some IDEs

@knative-prow knative-prow bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. labels Jan 18, 2023
@knative-prow knative-prow bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 18, 2023
@lkingland lkingland requested review from jrangelramos and removed request for dsimansk and nainaz January 18, 2023 00:39
@knative-prow knative-prow bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jan 18, 2023
@lkingland lkingland marked this pull request as ready for review January 18, 2023 00:44
@knative-prow knative-prow bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jan 18, 2023
@codecov
Copy link

codecov bot commented Jan 18, 2023

Codecov Report

Base: 63.03% // Head: 63.32% // Increases project coverage by +0.28% 🎉

Coverage data is based on head (a5a17aa) compared to base (63aab77).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1503      +/-   ##
==========================================
+ Coverage   63.03%   63.32%   +0.28%     
==========================================
  Files          74       75       +1     
  Lines       10768    10770       +2     
==========================================
+ Hits         6788     6820      +32     
+ Misses       3421     3394      -27     
+ Partials      559      556       -3     
Flag Coverage Δ
integration-tests 53.23% <ø> (-0.03%) ⬇️
unit-tests ?
unit-tests-macos-latest 53.26% <ø> (?)
unit-tests-ubuntu-latest 54.69% <ø> (?)
unit-tests-windows-latest 53.28% <ø> (?)

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

Impacted Files Coverage Δ
knative/logs.go 80.41% <0.00%> (-2.07%) ⬇️
knative/deployer.go 61.31% <0.00%> (-0.17%) ⬇️
docker/docker_client_nonlinux.go 0.00% <0.00%> (ø)
client.go 62.57% <0.00%> (+0.61%) ⬆️
docker/creds/credentials.go 73.06% <0.00%> (+1.34%) ⬆️
docker/docker_client.go 84.87% <0.00%> (+23.52%) ⬆️

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

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@lkingland lkingland force-pushed the lkingland/e2e-test-package-rename branch from f630d7d to 6e9c2f5 Compare January 18, 2023 02:16
@knative-prow knative-prow bot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jan 18, 2023
@lkingland lkingland force-pushed the lkingland/e2e-test-package-rename branch from 7dd95b6 to 678f64a Compare January 18, 2023 03:45
@knative-prow knative-prow bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Jan 18, 2023
@jrangelramos
Copy link
Contributor

/lgtm

@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label Jan 18, 2023
@jrangelramos
Copy link
Contributor

Thanks for going thru this @lkingland

@lkingland lkingland force-pushed the lkingland/e2e-test-package-rename branch from 678f64a to 1be847b Compare January 19, 2023 06:45
@knative-prow knative-prow bot removed the lgtm Indicates that a PR is ready to be merged. label Jan 19, 2023
@matejvasek
Copy link
Contributor

@trisberg any idea why

authentication failed for https://repo.spring.io/release/org/springframework/experimental/spring-aot-maven-plugin/0.12.2/spring-aot-maven-plugin-0.12.2.pom, status: 401 Unauthorized

would happen?

@trisberg
Copy link
Member

Probably due to this - https://spring.io/blog/2022/12/14/notice-of-permissions-changes-to-repo-spring-io-january-2023

@knative-prow knative-prow bot removed the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jan 20, 2023
@knative-prow knative-prow bot added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Jan 20, 2023
Copy link
Contributor

@zroubalik zroubalik left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label Jan 20, 2023
@knative-prow
Copy link

knative-prow bot commented Jan 20, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lkingland, zroubalik

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [lkingland,zroubalik]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow knative-prow bot merged commit 554e74a into knative:main Jan 20, 2023
<compiler-plugin.version>3.10.1</compiler-plugin.version>
<spring-cloud.version>2021.0.3</spring-cloud.version>
<spring-native.version>0.12.1</spring-native.version>
<compiler-plugin.version>3.8.1</compiler-plugin.version>
Copy link
Member

Choose a reason for hiding this comment

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

@lkingland the PR overall is great - thanks! Just curious why we are downgrading here.

lance pushed a commit to lance/func that referenced this pull request Feb 15, 2023
* remove underscore prefix from test packages

* springboot patch attempt
@lkingland lkingland deleted the lkingland/e2e-test-package-rename branch March 6, 2023 03:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm Indicates that a PR is ready to be merged. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants