Repository navigation
learn: retrospective learnings #589
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
Open
oss-engineer-bot
wants to merge
1
commit into
main
Choose a base branch
from
ai/learning-distill-pr
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| # Learning journal 2026-12-03 | ||
|
|
||
| ### 2026-12-03: Configuration and authentication — Kernel's single proxy plus bypass list cannot express Go's per-destination NO_PROXY routing | ||
| **Context:** In PR #607, the warehouse's proxy decision was applied to every kernel destination (CloudFetch storage, OAuth), so NO_PROXY entries for those hosts were lost. Translating NO_PROXY into the kernel's bypass list was lossy: it has no ports, and a leading dot also bypasses the apex. The remaining gap is tracked in #611. | ||
| **Rule:** When forwarding proxy env to a backend that takes one proxy URL and a host-only bypass list, give the warehouse Go's exact http.ProxyFromEnvironment decision, route storage/OAuth hosts with HTTPS_PROXY, pass built-in loopback entries through the same warehouse-conflict filter, document each approximation, and assert per-destination proxy/direct decisions in tests. | ||
|
|
||
| ### 2026-12-03: Configuration and authentication — Reject an unsupported proxy only when a destination actually selects it | ||
| **Context:** In PR #607, an env socks4:// HTTPS_PROXY failed the connection even when NO_PROXY bypassed the warehouse. A PAT query with inline results needs no proxy in that case, so the reviewer asked for the eager rejection to be removed. | ||
| **Rule:** Validate an unsupported proxy scheme lazily, only when a destination's routing decision selects that proxy, and add a bypassed-warehouse test row that expects success. | ||
|
|
||
| ### 2026-12-03: Configuration and authentication — Read proxy env from the same once-per-process snapshot as http.ProxyFromEnvironment | ||
| **Context:** In PR #607, the warehouse decision came from http.ProxyFromEnvironment, which caches the env once per process. The fallback proxy and bypass list came from live os.Getenv reads, so the two could disagree if the env changed later. | ||
| **Rule:** Whenever driver code reads HTTP(S)_PROXY/NO_PROXY next to http.ProxyFromEnvironment, read them once with a sync.Once right after the stdlib snapshot, and document that later env changes don't apply. | ||
|
|
||
| ### 2026-12-03: Verification and dependencies — Setter-only cgo tests don't prove native feature support | ||
| **Context:** In PR #607, new kernel_test.go rows called a C setter that stores the SOCKS URL without validating it. Those rows passed against the old kernel that rejects SOCKS, so they proved nothing. The feature also needed KERNEL_REV moved to a merged kernel commit, with published bindings to follow in a release. | ||
| **Rule:** Don't add tests that only marshal arguments through a storing C setter as evidence of native support; prove the feature through a pinned KERNEL_REV source build or wire tests, and treat moving the published bindings pin as a separate release prerequisite. | ||
|
|
||
| ### 2026-12-03: Verification and dependencies — Test the go.mod minimum Go version with GOTOOLCHAIN=local and go-version-file | ||
| **Context:** PR #609 lowered go.mod to 1.26.11. It replaced hardcoded setup-go versions in CI and bot prompts with go-version-file: go.mod, and added min/latest matrix lanes with GOTOOLCHAIN=local. The Go cache key now comes from steps.setup-go.outputs.go-version. | ||
| **Rule:** Point setup-go at go-version-file: go.mod instead of a hardcoded version, set GOTOOLCHAIN=local in the minimum-version lane so Go can't auto-switch to a newer toolchain, and build cache keys from the resolved setup-go output version. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🟡 Medium — L-0090, L-0091, L-0095 and the L-0042 rewrite/4× bump (#581, #605, #608) come from a 2026-12-01 journal that isn't in the repo or this PR, and no 2026-12-03 entry covers them. The rebuild seems to have dropped it. Re-add
journal/2026-12-01.mdso these lessons can be traced to a source, or drop them until it's restored.🔀 Found by Claude Opus 5.5 · the judge couldn't confirm it