Skip to content

chore: make master match the deployed awsdocker line - #4

Open
Alexanderamiri wants to merge 20 commits into
masterfrom
platform/1-baseline
Open

Alexanderamiri wants to merge 20 commits into
masterfrom
platform/1-baseline

Conversation

@Alexanderamiri

@Alexanderamiri Alexanderamiri commented Oct 24, 2026 •

Copy link
Copy Markdown
Member

Part 1 of 6 (#4 → #5 → #6 → #7 → #8 → #10) in the stack that moves moresleep onto the javaBin platform. Opened for review by the moresleep maintainers; the platform team will not merge it. The full plan is in docs/platform.md (PR 2, #5).

Why

Production does not run master. CloudFormation stack moresleepstack (ECS cluster moresleep-test, 2 Fargate tasks behind Default-ALB for sleepingpill.javazone.no) was last deployed on 2026-08-19 from the awsdocker branch. Only that branch has the webhooks (HOOK_WEB_ADDR), PATH_PREFIX, the 2026 config dates, the CDK stack and the SOPS image.

The platform pipeline (PR 3, #6) deploys whatever is on the default branch. If master stayed behind, the first platform deploy would roll production back by several features.

What

A merge of origin/awsdocker into master (git merge-tree: no conflicts). One deliberate difference from awsdocker: docker-compose.yaml, which awsdocker deleted, is kept. Master's existing Build workflow starts its test database with it, and it is the local dev setup.

Second commit, fix(build): pom.xml declared maven-surefire-plugin twice. The Maven on current GitHub runners rejects that POM, so master's own Build workflow fails before it compiles anything, and the platform's build would fail the same way. The fix keeps only the configured declaration, which is what Maven used anyway.

Third commit, ci(build): maven.yaml pushed ghcr.io/javabin/moresleep:edge on every pull request run, so any open PR could replace the image other repos use for local development (javaBin/submittheforce compose.yaml). It now pushes only for merged code and releases. Action item (not just a heads-up): this stack's own first CI runs (before this commit) overwrote :edge with an image built from PR 4's unmerged branch, with migrations off. :edge has not been restored yet. Ways to fix it: merging this PR rebuilds and pushes :edge from master (master's own Build is broken today, so re-running an old master run doesn't help), or someone with write:packages re-tags the previous digest. Until then, submittheforce's local compose gets that image; the javaBin/submittheforce maintainers should be told.

How the platform piece works

Nothing platform-specific yet. The rule this sets up: on the platform, the default branch is production. Every push to master is built, tested, planned and deployed. Long-lived deploy branches like awsdocker go away.

How verified

  • git merge-tree master awsdocker: clean.
  • The existing Build workflow (maven.yaml: compose Postgres + mvn package with tests) on this PR. Result in the checks below.
  • mvn verify on the merged tree against postgres:17, using the same database and user as docker/postgres (see PR 3).

Merge when

Any time. This changes nothing that runs today: the CDK workflow is manual and takes a ref, and the old Elastic Beanstalk environment is dormant.

🤖 Generated with Claude Code

@Alexanderamiri
Alexanderamiri added this pull request to stack #9 October 24, 2026 13:32
@Alexanderamiri Alexanderamiri changed the title platform/1 baseline chore: make master match the deployed awsdocker line Oct 24, 2026
Production (CloudFormation moresleepstack, last deployed 2026-08-19) runs
the awsdocker branch, not master: webhooks, PATH_PREFIX, the 2026 config
dates, the CDK stack and the SOPS image exist only there. Merge it so
master is what runs in production before the platform pipeline starts
deploying from master. The merge is clean.

docker-compose.yaml, which awsdocker deleted, is kept: master's Build
workflow starts the test database with it, and it is the local dev setup.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Alexanderamiri and others added 2 commits October 24, 2026 15:38
pom.xml declared maven-surefire-plugin twice: an empty entry and the
configured 2.19.1 one. Older Maven merged them with a warning; the Maven on
current GitHub runners rejects the POM ('must be unique'), so every build of
master fails before compiling. Keep only the configured declaration, which
is what Maven used anyway.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
maven.yaml pushed ghcr.io/javabin/moresleep:edge on every pull request
run, so any open PR could replace the image other repos use for local
development (javaBin/submittheforce compose.yaml). Push only for pushes
and releases; pull requests still build and test.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants