Repository navigation
Conversation
SLACK_URL pointe sur httpbin, qui n'était pas démarré : chaque notification Slack levait une TransportException dans kernel.terminate. Refs afup#2441
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.
Lié à #2441 (dépréciations avant Symfony 8).
Problème
En test,
SLACK_URLvauthttp://httpbin:8080/status/200(voir.env.dist). Pourtant, les ciblesmake test-functional,test-functional-no-jsettest-functional-jsne démarrent quedbtest,apachephptestetmailcatcher. Elles servent aussi en CI.Chaque notification Slack échouait donc. C'est le cas par exemple au vote d'un talk (
vote_new), qui notifie Slack dans un listenerkernel.terminate:Comme l'exception arrive après l'envoi de la réponse, Symfony essaie d'envoyer une réponse d'erreur et déclenche cette dépréciation :
Les scénarios passaient quand même, parce que la réponse était déjà partie. L'erreur ne se voyait que dans les logs.
Changement
httpbinest ajouté auxstop/up -ddes trois ciblestest-functional*duMakefile. L'image est tirée telle quelle, sans build, donc rien à changer côté CI.Vérification
J'ai lancé
VoteVisiteur.featureetCfp.featureavec httpbin démarré :http_client.INFO: Response: "200 http://httpbin:8080/status/200";Could not resolve host.Hors périmètre
Le même problème peut se produire en prod si Slack est injoignable : une exception dans
kernel.terminate. Ce sera traité à part, en rendantSlackNotifier::sendMessage()tolérant aux erreurs de transport.