Skip to content

testserver: Modify GetHTTPClient to GetUnauthenticatedHTTPClient, GetAdminAuthenticatedHTTPClient to GetAdminHTTPClient#77732

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
changhanlee:tserver-unauth
Mar 16, 2022
Merged

testserver: Modify GetHTTPClient to GetUnauthenticatedHTTPClient, GetAdminAuthenticatedHTTPClient to GetAdminHTTPClient#77732
craig[bot] merged 1 commit intocockroachdb:masterfrom
changhanlee:tserver-unauth

Conversation

@changhanlee
Copy link
Copy Markdown
Contributor

@changhanlee changhanlee commented Mar 13, 2022

fixes #76241.
See commit message.

Release justification: Low impact, rename refactoring of testserver methods

@changhanlee changhanlee requested a review from a team March 13, 2022 15:20
@changhanlee changhanlee requested review from a team as code owners March 13, 2022 15:20
@changhanlee changhanlee requested review from a team and srosenberg and removed request for a team March 13, 2022 15:20
@cockroach-teamcity
Copy link
Copy Markdown
Member

cockroach-teamcity commented Mar 13, 2022

CLA assistant check
All committers have signed the CLA.

@blathers-crl
Copy link
Copy Markdown

blathers-crl bot commented Mar 13, 2022

Thank you for contributing to CockroachDB. Please ensure you have followed the guidelines for creating a PR.

My owl senses detect your PR is good for review. Please keep an eye out for any test failures in CI.

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is otan.

@blathers-crl blathers-crl bot added the O-community Originated from the community label Mar 13, 2022
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@blathers-crl
Copy link
Copy Markdown

blathers-crl bot commented Mar 13, 2022

Thank you for updating your pull request.

My owl senses detect your PR is good for review. Please keep an eye out for any test failures in CI.

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is otan.

@changhanlee changhanlee force-pushed the tserver-unauth branch 2 times, most recently from 68baac2 to 4e8dfd5 Compare March 13, 2022 21:27
Copy link
Copy Markdown
Contributor

@knz knz left a comment

Choose a reason for hiding this comment

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

Reviewed 18 of 18 files at r1, all commit messages.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @srosenberg)

@knz
Copy link
Copy Markdown
Contributor

knz commented Mar 14, 2022

This change is good. Thank you!

@knz
Copy link
Copy Markdown
Contributor

knz commented Mar 14, 2022

bors r+

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Mar 14, 2022

Build failed:

@changhanlee
Copy link
Copy Markdown
Contributor Author

TFYR

@otan
Copy link
Copy Markdown
Contributor

otan commented Mar 14, 2022

looks like there are merge conflicts - can you resolve them?

@changhanlee
Copy link
Copy Markdown
Contributor Author

Yep, will do.

@blathers-crl
Copy link
Copy Markdown

blathers-crl bot commented Mar 15, 2022

Thank you for updating your pull request.

Before a member of our team reviews your PR, I have some potential action items for you:

  • We notice you have more than one commit in your PR. We try break logical changes into separate commits, but commits such as "fix typo" or "address review commits" should be squashed into one commit and pushed with --force
  • When CI has completed, please ensure no errors have appeared.

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is otan.

@changhanlee
Copy link
Copy Markdown
Contributor Author

@otan I fixed the merge conflict but now the TeamCity build fails. I looked through the build output logs multiple times but cannot understand the issue. I'd appreciate help in understanding the problem.

Also, when handling merge conflicts after approval, is it standard to rebase afterwards (as I have done here)?

@otan
Copy link
Copy Markdown
Contributor

otan commented Mar 15, 2022

i see

[05:00:51][Run unit tests] pkg/ccl/serverccl/statusccl/tenant_test_utils.go:173:27: too many arguments in call to c.tenantHTTPClient
[05:00:51][Run unit tests] 	have (*testing.T, serverIdx, bool)
[05:00:51][Run unit tests] 	want (*testing.T, serverIdx)
[05:00:51][Run unit tests] pkg/ccl/serverccl/statusccl/tenant_status_test.go:889:50: too many arguments in call to helper.testCluster().tenantHTTPClient
[05:00:51][Run unit tests] 	have (*testing.T, number, bool)
[05:00:51][Run unit tests] 	want (*testing.T, serverIdx)
[05:00:51][Run unit tests] pkg/ccl/serverccl/statusccl/tenant_status_test.go:1022:50: too many arguments in call to helper.testCluster().tenantHTTPClient
[05:00:51][Run unit tests] 	have (*testing.T, number, bool)
[05:00:51][Run unit tests] 	want (*testing.T, serverIdx)
[05:00:51][Run unit tests] compilepkg: error running subcommand external/go_sdk/pkg/tool/linux_amd64/compile: exit status 2
[05:00:51][Run unit tests] INFO: Elapsed time: 1083.721s, Critical Path: 693.45s
[05:00:51][Run unit tests] INFO: 6711 processes: 733 internal, 5978 processwrapper-sandbox.

when clicking Build Log

Also, when handling merge conflicts after approval, is it standard to rebase afterwards (as I have done here)?

yep!

@blathers-crl
Copy link
Copy Markdown

blathers-crl bot commented Mar 15, 2022

Thank you for updating your pull request.

Before a member of our team reviews your PR, I have some potential action items for you:

  • We notice you have more than one commit in your PR. We try break logical changes into separate commits, but commits such as "fix typo" or "address review commits" should be squashed into one commit and pushed with --force
  • Please ensure your git commit message contains a release note.
  • When CI has completed, please ensure no errors have appeared.

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is otan.

@changhanlee changhanlee force-pushed the tserver-unauth branch 2 times, most recently from d473771 to fa14dc1 Compare March 15, 2022 11:39
…AdminAuthenticatedHTTPClient to GetAdminHTTPClient

Release justification: Low impact, rename refactoring of testserver methods
Release note (security upgrade): Modifies default testserver method of getting
http unauthenticated clients with a more verbose name to encourage use
of authenticated sessions. The default authenticated admin http client
getter is simplified in turn.
@knz
Copy link
Copy Markdown
Contributor

knz commented Mar 15, 2022

thank you for the change again. When the CI is happy with this, we can merge this

@knz
Copy link
Copy Markdown
Contributor

knz commented Mar 15, 2022

bors r+

@knz
Copy link
Copy Markdown
Contributor

knz commented Mar 15, 2022

bors r+

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Mar 16, 2022

Build succeeded:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

O-community Originated from the community

Projects

None yet

Development

Successfully merging this pull request may close these issues.

testserver: rename GetHTTPClient to GetUnauthenticatedHTTPClient

4 participants