[self-care:server-go-logging] Extract ADX visibility digest comparison with diagnostic logging
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 62/100
- Tipo di issue
- Refactoring
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- go
- Ambito
- observability-sre
Direzione di ricerca
Inizia da server/internal/adxingest/client.go, in particolare da Client.Verify e dalla funzione proposta checkVisibleDigests. Esamina i test unitari diretti per ogni modalità di errore di visibilità elencata, quindi esegui go -C server test ./.... La modifica è completata quando Verify rimane identico nel comportamento, i log diagnostici espongono solo codici di motivo fissi e conteggi e l’intera suite di test superata.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Extracts the ADX projection visibility comparison from Client.Verify into checkVisibleDigests in server/internal/adxingest/client.go. Behavior is unchanged, and the comparison now has debug logging and direct unit tests.
Action: Reviewer should confirm Verify is behavior-identical and that the new tests cover each visibility-failure mode; acceptance is a green go -C server test ./....
Summary
- Subsystem:
server/internal/adxingest(next afterinternal/admission/service.goin the stable path rotation; earlier files had recently been refactored). - Refactor boundary: the post-query step of
Verify(decode Table/RowDigest rows, sort, compare against expectedtable:digestentries) is now a pure function. The one intentional internal difference is that sorting no longer reorders the caller'sexpectedslice; it was local toVerify, so there is no observable change. - Diagnostics: three
cao:adx:clientdebug logs, reusing the existing package logger, one per failure reason (unexpected_shape,non_string_cell,digest_mismatch). Each logs only fixed reason codes and integer counts. Nothing logged is secret, user-authored, or a raw row, digest, table name, or URL. Logging is off by default and has no effect on control flow.
Tests added
TestCheckVisibleDigests runs real values through the production function. Cases:
- exact match, order independence, unsorted expected
- nothing expected or visible
- missing, unexpected, wrong-digest and wrong-table rows
- short and extra-column rows
- non-string table and digest cells
TestCheckVisibleDigestsDoesNotReorderExpected verifies the caller's slice is untouched. No mocks, fakes, or stubs.
Validation
gofmt -l server/internal/adxingest: cleango -C server vet ./...: cleango -C server test ./...: all packages pass- Diff scanned for secrets: none
Control Plane
- Correlation ID:
46139721156-5007 - Central repository:
githubnext/gh-cao - Control plane run: https://github.com/githubnext/gh-cao/actions/runs/46139721156
[!NOTE]
This was originally intended as a pull request, but the git push operation failed.Original error: ERR_VALIDATION: pushSignedCommits: refusing unsigned push for branch 'self-care/server-go-logging-adx-visibility-14b1bd465a4945b9': GitHub did not verify the initial commit signature; refusing to publish branch 'self-care/server-go-logging-adx-visibility-14b1bd465a4945b9'
Workflow Run: View run details and download bundle artifact
The bundle file is available in the
agentartifact in the workflow run linked above.
Create the pull request manually
# Download the artifact from the workflow run
gh run download '46140098759' -n agent -D '/tmp/agent-46140098759'
# Resolve the bundle source ref, fetch it into a temporary ref, then create the local branch
bundle_path='/tmp/agent-46140098759/aw-githubnext-gh-cao-self-care-server-go-logging-adx-visibility.bundle'
temp_ref='refs/bundles/create-pr-self-care-server-go-logging-adx-visibility-14b1bd465a4945b9-0d9f8b97'
target_ref='refs/heads/self-care/server-go-logging-adx-visibility-14b1bd465a4945b9'
bundle_source_ref=$(git bundle list-heads "$bundle_path" | awk '$2 ~ /^refs\/heads\// { print $2 }')
if [ -z "$bundle_source_ref" ]; then
bundle_source_ref=$(git bundle list-heads "$bundle_path" | awk '$2 == "HEAD" { print $2 }')
fi
if [ "$(printf '%s\n' "$bundle_source_ref" | sed '/^$/d' | wc -l | tr -d ' ')" != "1" ]; then
echo "Expected exactly one bundle source ref, found: $bundle_source_ref" >&2
exit 1
fi
git fetch "$bundle_path" "${bundle_source_ref}:${temp_ref}"
git update-ref "$target_ref" "$temp_ref"
git checkout 'self-care/server-go-logging-adx-visibility-14b1bd465a4945b9'
# Ensure the working tree matches the updated branch
git reset --hard
# Remove the temporary bundle ref
git update-ref -d "$temp_ref"
# Push the branch to the target remote
git push 'origin' 'self-care/server-go-logging-adx-visibility-14b1bd465a4945b9'
# Create the pull request
gh pr create --title '[self-care:server-go-logging] Extract ADX visibility digest comparison with diagnostic logging' --base 'main' --head 'self-care/server-go-logging-adx-visibility-14b1bd465a4945b9' --repo 'githubnext/gh-cao'
Generated by SelfCare / Server Go Logging · copilot · routed: sonnet55 high · ~72 AIC · ⌖ ~2 AIC · ⊞ 9.1K · history
- expires on Dec 5, 2026, 11:40 AM UTC
- Lingua principale
- JavaScript
- Stelle
- 23
- Fork
- 8
- Merge medio
- 7h 18m
- PR unite (30g)
- 426
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di githubnext/gh-cao
-
agentic-workflows self-care self-care:dashboard-debug-logging
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
githubnext/gh-cao#21781 ·
I maintainer di solito rispondono entro 1 giorno
-
agentic-workflows self-care self-care:dashboard-debug-logging
Difficoltà 2/5 1-3 ore Idoneità per principianti 90/100
githubnext/gh-cao#21768 ·
I maintainer di solito rispondono entro 1 giorno
-
[repo-assist:maintenance] githubnext/gh-cao maintenance dashboard-readme-mobile-command reviewApertarepo-assist repo-assist:maintenance
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
githubnext/gh-cao#21758 ·
I maintainer di solito rispondono entro 1 giorno
-
agentic-workflows pull-request-fallback self-care self-care:reactive-ui-expert
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
githubnext/gh-cao#21740 ·
I maintainer di solito rispondono entro 1 giorno
-
agentic-workflows pull-request-fallback self-care self-care:reactive-ui-expert
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
githubnext/gh-cao#21728 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di githubnext/gh-cao
Issue simili
-
Bug Nethernet Tests
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
JSPrismarine/JSPrismarine#3949 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
Jason-Vaughan/TangleClaw#3360 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
documentation good first issue
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
OWASP/cve-lite-cli#1880 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
MetaMask/eth-phishing-detect#317371 ·
I maintainer di solito rispondono entro 1 giorno
-
Docs: explain the Human Eval YAML export and connect viewer ratings to the LLM judge calibration guideForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno