Repository navigation
Relais dev → main : sorties #5 (transport HTTP), #6 (lots/contre-pression), #34 (apply async) - #50
Merged
Merged
Conversation
…ocle - outputs/elasticsearch_bulk.py : un seul client NDJSON paramétrable par sortie (chemin, actions, _id, en-têtes, rapport par élément), analyse items[] (4xx → DLQ, 429/5xx transitoire rendu à l'appelant), batch_size et réessais (0 par défaut, parité indexer RsysLogstach) ; - outputs/__init__.py : registre des sorties (enregistrer/sortie_par_nom) ; - dlq.py : portée de RsysLogstach (rotation/purge/gzip), le socle des sorties en a besoin (#2) ; - tests : 100 % de couverture du nouveau code (faux serveur httpx), DLQ portée, imports croisés étendus aux sous-paquets ; - i18n : 8 nouvelles chaînes, en_US traduite, catalogues régénérés.
…h_bulk implémente le contrat - ElasticsearchBulkOutput sous-classe Output (#4) : cycle de vie open/send(batch)/flush/close, capacités déclarées, registre commun ; - API par document envoyer() conservée pour la parité avec l'indexer RsysLogstach (#160), options du bloc output{} (hosts, index, user, password, ssl, cacert, batch_size, retry_max/backoff, dlq_path) ; - méthodes asynchrones journalisées à la main (décorateur async : #37).
… conformité
- outputs/opensearch.py : quelques lignes (plugin, capacités complètes,
chemin _bulk natif), inscrite au registre sous le nom du plugin du
output{} du .conf ;
- tests unitaires (faux serveur) : compilation depuis un .conf, options
de connexion câblées, _id déterministe, DLQ (format identique
RsysLogstach), health ;
- banc de conformité en conteneur : tests/test_integration_opensearch.py
(PYSTASHTEMPLATE_OPENSEARCH_URL) + workflow conformite-opensearch.yml
(runner ubuntu-latest, Docker garanti) ;
- docs/sorties.md : page de doc avec gabarit de pipeline d'exemple et
table de parité des options avec l'indexer RsysLogstach.
…h-bulk Sorties agnostiques #11 : client commun elasticsearch_bulk + DLQ du socle
- TransportHTTP : pool aiohttp keep-alive, TLS/mTLS, authentifications (basic, Bearer, ApiKey, en-têtes libres), gzip, réessais backoff exponentiel avec jitter, Retry-After respecté, aucun réessai sur 4xx définiitf, TransportErreur sur réseau épuisé - aiohttp en dépendance directe ; cryptography en dev (certificats de test) - tests : faux serveur (200/4xx/429/5xx/timeout), serveur TCP brut pour le gzip, mTLS complet, couverture du module à 100 %
…t lié à sa boucle)
…feat/12-sortie-opensearch
Les msgstr vides/flous laissés par #43 font échouer test_anglais_complet et test_aucune_traduction_approximative sur dev ; traductions ajoutées, drapeaux fuzzy retirés, placeholders conservés.
…par défaut seulement à ~1 s)
feat(#5): transport HTTP asynchrone commun des sorties
- async def apply et apply_events, sémantique inchangée (l'appelant await) - tests convertis (_run = asyncio.run, convention du dépôt sans pytest-asyncio) - CHANGELOG : note de migration (changement d'API), README à jour - couverture maintenue (99,69 %), audit loguru à 0
feat(#34): PipelineInterpreter.apply / apply_events asynchrones
…httpx avec verify=<chemin> ET cert= ne présente pas le certificat client (mTLS refusé, banc #160)
…feat/12-sortie-opensearch
…ssion # Conflicts: # lang/ar_AR.po # lang/bn_BD.po # lang/cs_CZ.po # lang/da_DK.po # lang/de_DE.po # lang/el_GR.po # lang/en_US.po # lang/fa_IR.po # lang/fi_FI.po # lang/fr_FR.po # lang/he_IL.po # lang/hi_IN.po # lang/hu_HU.po # lang/id_ID.po # lang/it_IT.po # lang/ja_JP.po # lang/ko_KR.po # lang/locale/en_US/LC_MESSAGES/pystashtemplate.mo # lang/messages.pot # lang/nb_NO.po # lang/nl_NL.po # lang/pl_PL.po # lang/pt_BR.po # lang/ro_RO.po # lang/ru_RU.po # lang/sv_SE.po # lang/th_TH.po # lang/tr_TR.po # lang/uk_UA.po # lang/vi_VN.po # lang/zh_CN.po
Sortie opensearch #12 : sous-classe de référence, registre et banc de conformité
Sorties #6 : lots, contre-pression et arrêt propre (Lotisseur + MoteurSorties)
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.
Relais de
devversmainaprès les fusions #45, #48 et #49. Vérifications Garde + Qualité attendues vertes.