Skip to content

fix(ci): dump docker compose state on failure and fix keycloak healthcheck - #2542

Merged
shikanime merged 3 commits into
mainfrom
fix/playwright-keycloak-flake
Aug 24, 2026
Merged

fix(ci): dump docker compose state on failure and fix keycloak healthcheck#2542
shikanime merged 3 commits into
mainfrom
fix/playwright-keycloak-flake

Conversation

@shikanime

@shikanime shikanime commented Aug 21, 2026

Copy link
Copy Markdown
Member

Issues liées

#2541
#2543


Quel est le comportement actuel ?

Le run de merge-queue 32459083785 (PR #2537) échoue de façon intermittente sur les shards Playwright : les 4 shards (strategy.matrix.shard: [1,2,3,4], runs-on: runner-playwright) démarrent chacun leur propre stack complète, JVM Keycloak 26 incluse, en parallèle sur un même runner. Keycloak dépasse alors le budget du healthcheck et docker compose up avorte avec le conteneur dso-console_keycloak en Error. En cas d'échec, aucun log docker n'est remonté : le diagnostic est impossible depuis CI.

Par ailleurs, le healthcheck Keycloak de docker-compose.ci.yml cible le mauvais port (8080 au lieu de 9000) — cf. #2543 — : il ne valide jamais la santé réelle du conteneur.

Quel est le nouveau comportement ?

  • Bloc Dump docker compose state on failure (step if: failure()) : docker compose ps -a, logs --no-color keycloak, et docker inspect dso-console_keycloak (OOMKilled/ExitCode) — pour trancher OOM vs timeout directement depuis l'échec CI.
  • Correction du healthcheck Keycloak dans docker-compose.ci.yml : port 80809000 (corrige 🐛 [BUG] - Healthcheck keycloak CI sur le mauvais port (8080 au lieu de 9000) #2543) et drapeau fsS-fsS (typo).

Cette PR introduit-elle un breaking change ?

Non.

Autres informations

Discussion liée : #2540. Run de référence : https://github.com/cloud-pi-native/console/actions/runs/32459083785

@shikanime shikanime added the CI/CD CI/CD stuffs label Aug 21, 2026
@shikanime shikanime self-assigned this Aug 21, 2026
@shikanime shikanime added this to the 9.24.5 milestone Aug 21, 2026
@github-actions github-actions Bot added the built label Aug 21, 2026
@shikanime
shikanime force-pushed the fix/playwright-keycloak-flake branch from e351539 to 613d7da Compare August 21, 2026 08:54
@shikanime
shikanime marked this pull request as ready for review August 21, 2026 08:57
iliesmrf
iliesmrf previously approved these changes Aug 21, 2026
@shikanime
shikanime added this pull request to the merge queue Aug 21, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Aug 21, 2026
@shikanime
shikanime added this pull request to the merge queue Aug 21, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Aug 21, 2026
@shikanime
shikanime force-pushed the fix/playwright-keycloak-flake branch from 613d7da to b6dbabf Compare August 21, 2026 12:29
Signed-off-by: William Phetsinorath <william.phetsinorath-open@interieur.gouv.fr>
Change-Id: Ifdc20eb6771981647bd97bb1c33028c06a6a6964
@shikanime
shikanime force-pushed the fix/playwright-keycloak-flake branch from 205f6c7 to 1a7e3e3 Compare August 21, 2026 13:31
@cloud-pi-native-sonarqube

Copy link
Copy Markdown

@shikanime
shikanime requested a review from KepoParis August 21, 2026 13:59
@shikanime shikanime changed the title fix(ci): throttle Playwright shards and surface keycloak boot logs on failure fix(ci): dump docker compose state on failure Aug 24, 2026
@shikanime shikanime changed the title fix(ci): dump docker compose state on failure fix(ci): dump docker compose state on failure and fix keycloak healthcheck Aug 24, 2026
@shikanime
shikanime added this pull request to the merge queue Aug 24, 2026
if: ${{ failure() }}
run: |
docker compose -f ./docker/docker-compose.ci.yml ps -a
docker compose -f ./docker/docker-compose.ci.yml logs --no-color keycloak

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: à la rigueur autant dumper tout le monde non ?

command: start-dev --import-realm
healthcheck:
test: [CMD, curl, --head, fsS, "http://localhost:8080/health/ready"]
test: [CMD, curl, --head, -fsS, "http://localhost:9000/health/ready"]

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

praise: Bien trouvé ! 👍

Merged via the queue into main with commit e3e7008 Aug 24, 2026
34 checks passed
@shikanime
shikanime deleted the fix/playwright-keycloak-flake branch August 24, 2026 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

built CI/CD CI/CD stuffs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants