Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Fail sample validation when Bicep warns that PostgreSQL TLS settings are unsupported

Aperta
#2,053 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
75/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
github-actions
Ambito
ci-cd, testing

Direzione di ricerca

Start with .github/scripts/validate_bicep.py and the existing .github/workflows/validate-bicep.yaml; add focused standard-library unittest fixtures beside the validator and run them before compilation in the workflow. Cover the listed diagnostic, path, unrelated-warning, and normal-error cases. Done means the PostgreSQL TLS warnings fail validation even when Bicep exits zero, while unrelated warnings remain allowed and normal error handling and samples' strict validation are preserved.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

What content needs to be created or modified?

The Bicep validation job can pass while the compiler emits BCP036 Warning for an unsupported PostgreSQL tls value.

Describe the solution you'd like

In the existing validator, fail BCP036/BCP037 diagnostics directly naming tls in the PostgreSQL demo even when Bicep exits zero. Match the diagnostic's actual source path as well as the compiled sample path; do not promote warnings from unrelated imported files. Do not rely on fixed line numbers or fail every lint warning. Preserve normal error/nonzero handling.

Add standard-library unittest fixtures for clean output, exit-zero TLS warnings, both diagnostic codes, source attribution, relative/absolute paths, unrelated properties/codes/files, and normal errors. Run them before compilation in the existing workflow. Coordinate semantics with samples without weakening its separate strict validation.

Where should the new material be placed?

.github/scripts/validate_bicep.py, focused tests beside it, and .github/workflows/validate-bicep.yaml.

The associated pull request from the Radius code repo, if applicable

N/A. Split from https://github.com/radius-project/docs/pull/2041.

Additional context

The original false-green run is https://github.com/radius-project/docs/actions/runs/38964910127/job/117188865986.

Lingua principale
Bicep
Stelle
27
Fork
51
Merge medio
1g 7h
PR unite (30g)
20

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di radius-project/docs

Tutte le issue di radius-project/docs

Issue simili

Altre issue su DevOps

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.