Repository navigation
fix(#25): capturer le code de sortie du script IA au lieu de le subir (bash -e) - #26
Merged
Merged
Conversation
This was referenced Oct 26, 2026
Contributor
Author
|
Complément après relecture : la première version capturait TOUS les codes non nuls — l'exit 1 (erreur technique Ollama) aurait étiqueté la PR |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Refs #25
Résumé
.github/workflows/maj-branches-reutilisable.yml: l'appel au script de résolution IA sortait avec « … ; code=0 ». GitHub exécute les blocsrun:avecbash -e: quandresoudre_conflits_ia.pysort avec 2 (« conflit non simple », issue #25), le shell se termine avant lecode=0et le job échoue — la PR en conflit ne reçoit ni l'étiquetteconflitni le commentaire. Reproduit sur Gcm4 (run 40286826825, PR #329) et en sandbox (bash -euo pipefail).Correctif :
Le code 1 (erreur technique Ollama) reste bloquant : seul le code 2 attendu est capturé. Nouveau test
tests/test_maj_branches_workflow.py(2 tests) verrouillant le motif « || code=$? » pour empêcher la régression.Tests
uv run --locked pytest -q: 128 passed.yamllint --strict: vert.py_compile scripts/*.py: vert.Limites
@main) qu'après la fusion de cette PR dansdev, puis la PRdev→main(jamais fusionnées par moi).conflitposée sur une vraie PR en conflit) ne se vérifie qu'en production, au prochain push dansdevd'un dépôt appelant avec une PR en conflit.