Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

chore: Remove global externalURL watcher#64058

Merged
eseliger merged 7 commits into
mainfrom
es/07-25-choreremoveglobalexternalurlwatcher
Jul 31, 2024
Merged

chore: Remove global externalURL watcher#64058
eseliger merged 7 commits into
mainfrom
es/07-25-choreremoveglobalexternalurlwatcher

Conversation

@eseliger

Copy link
Copy Markdown
Member

This removes the need to register a global URL watcher. Instead, the conf package now returns a cached version, and also makes a copy of it so it's impossible to accidentally modify it.

This makes it safe in non-cmd/frontend packages to use this.

Test plan: All tests are still passing.

eseliger commented Jul 24, 2024

Copy link
Copy Markdown
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @eseliger and the rest of your teammates on Graphite Graphite

@eseliger eseliger force-pushed the es/07-25-cleanupmoveazureopenaiproviderconfigvalidationtorightplace branch from affc579 to 90487b1 Compare July 24, 2024 23:50
@eseliger eseliger force-pushed the es/07-25-choreremoveglobalexternalurlwatcher branch from 8989049 to 9acee90 Compare July 24, 2024 23:50
@eseliger eseliger force-pushed the es/07-25-cleanupmoveazureopenaiproviderconfigvalidationtorightplace branch from 90487b1 to c7a5454 Compare July 25, 2024 00:19
@eseliger eseliger force-pushed the es/07-25-choreremoveglobalexternalurlwatcher branch from 9acee90 to 2c8eefc Compare July 25, 2024 00:19
@eseliger eseliger force-pushed the es/07-25-cleanupmoveazureopenaiproviderconfigvalidationtorightplace branch from c7a5454 to 2533b27 Compare July 28, 2024 14:44
@eseliger eseliger force-pushed the es/07-25-cleanupmoveazureopenaiproviderconfigvalidationtorightplace branch from 19f7a4e to 0505dfd Compare July 30, 2024 17:22
@eseliger eseliger force-pushed the es/07-25-choreremoveglobalexternalurlwatcher branch from bc77455 to 5fb3e86 Compare July 30, 2024 17:22
@github-actions

Copy link
Copy Markdown
Contributor

Caution

License checking failed, please read: how to deal with third parties licensing.

@eseliger eseliger force-pushed the es/07-25-cleanupmoveazureopenaiproviderconfigvalidationtorightplace branch from 0505dfd to c23518b Compare July 30, 2024 23:28
@eseliger eseliger force-pushed the es/07-25-choreremoveglobalexternalurlwatcher branch from 5fb3e86 to 3863570 Compare July 30, 2024 23:29
@eseliger eseliger force-pushed the es/07-25-cleanupmoveazureopenaiproviderconfigvalidationtorightplace branch from c23518b to c27ecf9 Compare July 31, 2024 01:04
@eseliger eseliger force-pushed the es/07-25-choreremoveglobalexternalurlwatcher branch from 3863570 to edcb05b Compare July 31, 2024 01:05
@eseliger eseliger force-pushed the es/07-25-cleanupmoveazureopenaiproviderconfigvalidationtorightplace branch from c27ecf9 to 48432a2 Compare July 31, 2024 01:20
@eseliger eseliger force-pushed the es/07-25-choreremoveglobalexternalurlwatcher branch from edcb05b to cc245dd Compare July 31, 2024 01:20
eseliger added 6 commits July 31, 2024 01:34
This takes less hoops to find what we support, and we don't extend this any time soon.

Test plan:

CI passes.
These functions return StoreOpts, but that wasn't immediately clear, so adding this small tweak here.

Test plan: Ci passes.
This code was using a strange pattern that isn't actually observed or controlled by our worker mechanisms, so switching it to return proper goroutines.

Test plan:

CI passes, would like a thorough review on the licensecheck code.
Since we don't do the enterprise/oss split anymore, this global package is no longer required and we can move the code to where it's actually used.

Test plan: Go compiler doesn't complain, and integration tests are still passing.
This doesn't blow up, but golangci-lint complains about it so following best practices here.

Test plan: Go test still passes, linter doesn't complain anymore.
This validation was done in the azure oauth provider, which mixes two completely separate domains.

Test plan: CI, code review.
@eseliger eseliger force-pushed the es/07-25-cleanupmoveazureopenaiproviderconfigvalidationtorightplace branch from 48432a2 to 1f5bb9d Compare July 31, 2024 01:37
This removes the need to register a global URL watcher. Instead, the conf package now returns a cached version, and also makes a copy of it so it's impossible to accidentally modify it.

This makes it safe in non-cmd/frontend packages to use this.

Test plan: All tests are still passing.
@eseliger eseliger force-pushed the es/07-25-choreremoveglobalexternalurlwatcher branch from cc245dd to 2193422 Compare July 31, 2024 01:37
Base automatically changed from es/07-25-cleanupmoveazureopenaiproviderconfigvalidationtorightplace to main July 31, 2024 01:43
@eseliger eseliger merged commit 35dcea1 into main Jul 31, 2024
@eseliger eseliger deleted the es/07-25-choreremoveglobalexternalurlwatcher branch July 31, 2024 01:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla-signed team/product-platform team/source Tickets under the purview of Source - the one Source to graph it all

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants