Fail sample validation when Bicep warns that PostgreSQL TLS settings are unsupported
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 75/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Bicep
- Estrellas
- 27
- Forks
- 51
- Merge medio
- 1 d 8 h
- PR fusionados (30 d)
- 37
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de radius-project/docs
-
bug triaged
Dificultad 1/5 Menos de una hora Aptitud para principiantes 86/100
radius-project/docs#1953 ·
Los mantenedores suelen responder en 1 día
-
triaged
Dificultad 1/5 Menos de una hora Aptitud para principiantes 68/100
radius-project/docs#1439 ·
Los mantenedores suelen responder en 1 día
-
clarify reliance on bicepAbiertotriaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
radius-project/docs#1224 · 6 comentarios ·
Los mantenedores suelen responder en 1 día
-
triaged
Dificultad 1/5 Menos de una hora Aptitud para principiantes 70/100
radius-project/docs#1104 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
radius-project/docs#2080 ·
Los mantenedores suelen responder en 1 día
Todos los issues de radius-project/docs
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
openziti/helm-charts#427 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
canonical/craft-actions#146 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
MicrosoftLearning/eShopOnWeb#466 ·
-
ci enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
blocked
Dificultad 1/5 Menos de una hora Aptitud para principiantes 73/100
fullsend-ai/agents#1908 · 2 comentarios · 1 reacción ·
Los mantenedores suelen responder en 1 día