Share the Go e2e harness through golang_e2e_matrix: go(), the file-proxy publisher, Machine/ChmodGuard and the grant mocks are copied across 5 suites
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 22/100
- Tipo de issue
- Refatoração
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Domínio
- testing-qa
Direção de pesquisa
Start with crates/socket-patch-cli/tests/golang_e2e_matrix/mod.rs, which already holds the toolchain gate, then compare the local go(), stage() and Machine/ChmodGuard copies in e2e_golang_build.rs and e2e_vendor_golang_build.rs. Move the shared helpers into the matrix module, keep GOFLAGS pinned and GOWORK removed unless a caller sets them, and check that the hosted_build GOFLAGS=-mod=mod cases still set it explicitly. Done when the five Go suites pass with SOCKET_PATCH_GO_E2E_REQUIRED=1 and no assertion has been weakened.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
[agent] Filed by the scheduled architecture audit (audit-cli-tests). Register: register.
Kind: refactor. Register ID: T65.
Problem
Every Go suite already includes golang_e2e_matrix/mod.rs for the toolchain gate, yet each one re-writes the rest of the harness. The two suites below are e2e_golang_build.rs (build) and e2e_vendor_golang_build.rs (vendor_build).
go()runner, 4 local copies plusgolang_e2e_matrix::go_envs.- build L74-L82 and vendor_build L103 are identical.
- The
Machinevariants have drifted:- hosted_build L97-L112
- workspace_build L77-L93:```` this one pins
GOFLAGS=""and removes `GOWORK`, and hosted doesn't.
- File-GOPROXY
publish+ module zip, 5 copies.- build L86 and L344.
- hosted_build L147-L178 and workspace_build L135-L166`````` are the same code apart from names.
- vendor_build.
stage()andgo_env. build L86-L152 and vendor_build L120 differ only in comments.MachineandChmodGuard.ChmodGuard+Dropare md5-identical in hosted_build L136 and workspace_build L119-L127.Machinediffers only by amachines/subdirectory. Separately, build and vendor_build keep a non-panic-safechmod_writable/walkdirinstead.harvest_sums×2. It has drifted ongo_directive()vs a hard-codedgo 1.18.- Hosted grant JSON and
mount_sumdb×3. See workspace_build L511-L550``````` and hosted_state L67-L105.````````goZipDirhashH1appears in exactly these three files. - Day-2 env.
day2_envandday2are 2 copies. - gopatch path.
smod()/socket_module()are 2 copies, and thepatch.socket.dev/gopatch/literal appears in 6 files.
Proposed change
Move into golang_e2e_matrix:
- a
Proxy(publish, zip, harvest_sums); Machine+ChmodGuard(replacingchmod_writable/walkdir);- one
go(cmd_dir, env)that always pinsGOFLAGSand removesGOWORKunless the caller sets them; day2_env;mount_go_grant/mount_sumdb;- a
SOCKET_GO_MODULEconstant.
Then delete the local copies. The workspace go() behavior (pinning GOFLAGS) becomes the default. Check that hosted_build's GOFLAGS=-mod=mod cases still set it explicitly.
Size
6 test files plus golang_e2e_matrix/mod.rs. Roughly −250 lines.
Acceptance criteria
- The Go suites (
e2e_golang_build,e2e_golang_hosted_build,e2e_golang_hosted_state,e2e_golang_workspace_build,e2e_vendor_golang_build) pass unchanged on the go-compatibility matrix rows, withSOCKET_PATCH_GO_E2E_REQUIRED=1. - No assertion is weakened.
- Linguagem predominante
- Rust
- Estrelas
- 9
- Forks
- 2
- Merge médio
- 1d 8h
- PRs com merge (30d)
- 309
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de SocketDev/socket-patch
-
Windows unit tests fail on main: pnpm-registry-overrides fixtures are checked out as CRLF (mixes CRLF and LF line endings)Talvez já em andamento @mikolalysenko assumiu hoje. Abertaagent:claimed agent:triaged ci-janitor priority:p1
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 85/100
SocketDev/socket-patch#2238 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
agent:triaged arch-audit priority:p3 refactor
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 83/100
SocketDev/socket-patch#1860 ·
Mantenedores costumam responder em até 1 dia
-
agent:triaged arch-audit priority:p3 refactor
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
SocketDev/socket-patch#1838 ·
Mantenedores costumam responder em até 1 dia
-
Nightly: pnpm11_registry_route_is_cleaned_up_when_a_patch_is_not_needed fails on Windows (pnpm records the RUNNER~1 short path as a second importer)Talvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Abertaagent:triaged ci-janitor priority:p1
Dificuldade 3/5 Meio dia Facilidade para iniciantes 42/100
SocketDev/socket-patch#2235 ·
Mantenedores costumam responder em até 1 dia
-
Agent mode reports a gem whose installed file was edited as "not installed on this host" / "not found on disk", `apply --check` says to run `apply`, and `rollback` exits 1 with "modified after patching" on every runTalvez já em andamento @mikolalysenko assumiu hoje. Abertaagent:claimed agent:triaged bug bughunt pm:bundler priority:p1 ux
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 18/100
SocketDev/socket-patch#2231 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
Todas as issues de SocketDev/socket-patch
Issues semelhantes
-
area: cli good first issue type: feature
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
-
[Bug] Windows Ghidra provider rejects a PATH-only JDK: bare `java.exe` probe fails with Win32 87Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 1 dia
-
renaming a provider to a taken name fails with a raw sql errorTalvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Abertaarea:storage kind:bug priority:p3 ready
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
Mantenedores costumam responder em até 1 dia
-
bug bugfix
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
storytold/photocraft#16975 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
expo/exact#1716 · 1 comentário ·
Mantenedores costumam responder em até 1 dia