ci(stepup-behat): generate HAProxy dev certificate before compose up - #98
Open
kayjoosten wants to merge 1 commit into
Open
ci(stepup-behat): generate HAProxy dev certificate before compose up#98kayjoosten wants to merge 1 commit into
kayjoosten wants to merge 1 commit into
Conversation
Commit 2291d6f stopped committing core/haproxy/haproxy.pem and moved its generation into core/scripts/create_dev_ca.sh, invoked only by start-dev-env.sh. The stepup-behat workflow runs 'docker compose up' directly, so haproxy.pem was missing; Docker created it as a directory and the haproxy container failed to start, taking down TLS routing and every Behat scenario with it. Run create_dev_ca.sh in the Init step, matching start-dev-env.sh's guard.
Contributor
Author
|
CI on this branch now gets 155 Behat scenarios running (53 passing) where |
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.
Problem
stepup-behatCI (and Stepup-Gateway'stest-integration, which brings thestack up the same way) fails: the
haproxycontainer never starts —With no TLS front end, every Behat scenario fails; the headless-Chrome
functional scenarios surface it as
WebSocket\TimeoutException: Empty read; connection dead?because the browser can't load anyhttps://*.dev.openconext.localpage.Cause
Commit 2291d6f (2026-08-12) stopped committing
core/haproxy/haproxy.pemand moved its generation into
core/scripts/create_dev_ca.sh, which is onlyinvoked by
start-dev-env.sh. CI runsdocker compose updirectly, so thefile is missing and Docker auto-creates it as an empty directory.
Fix
Run
create_dev_ca.shin the Init step beforecompose up, guarded the sameway
start-dev-env.shguards it.Verified locally against the Stepup-Gateway functional Behat suite (
devconfmain+ this change): 25 scenarios / 310 steps all pass; without it, 25/25 fail.Supersedes #97 (which chased a wrong
--remote-allow-originslead).