Skip to content

Better test deployment cleanup - #1823

Merged
owi92 merged 3 commits into
elan-ev:mainfrom
LukasKalbertodt:better-deploy-cleanup
Oct 29, 2026
Merged

owi92 merged 3 commits into
elan-ev:mainfrom
LukasKalbertodt:better-deploy-cleanup

Conversation

@LukasKalbertodt

Copy link
Copy Markdown
Member

See commits

Before, each PR test deployment created its own "environment". These
were only deactivated, never deleted, which explains why our github
repo has accumulated a ton of environments. This is annoying and
actually slows down a couple workflows.

With this commit, we only use two environments, where `deployment-test`
is used by all test deployments, and `deployment-main` for main. By
sharing the env, we have to manually disable & delete the deployment
(as the action by bobheadxi cannot do what we want).
Since we used one global concurrency group, the following could happen:
- A PR is merged while a deploy step is still running
- The merge of the PR triggers "remove deployment", which is queued
  behind the running deploy step
- The push to main triggers the deploy workflow, but GitHub only allows
  one queued workflow per group, so this replaces the queued
  "remove deployment", which is never executed

Now the concurrency group is per branch/PR.
@LukasKalbertodt LukasKalbertodt added the changelog:nope Not worth mentioning in the changelog label Oct 29, 2026
@github-actions
github-actions Bot temporarily deployed to test-deployment-pr1823 October 29, 2026 11:47 Destroyed
The bobheadxi action defaults the log URL to the commit's checks page,
which does not contain the deploy workflow (it is a `workflow_run`
workflow and thus not associated with the commit/PR). Pointing it at the
actual run makes the deployment entry on PRs useful for finding logs.

@owi92 owi92 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Uuh lgtm, I guess? At least these commits seem reasonable. We'll see when it's merged.

@owi92
owi92 merged commit 1dc03dd into elan-ev:main Oct 29, 2026
6 checks passed

This branch was successfully deployed

1 active deployment
test-deployment-pr1823 — 32f377da Deployed Oct 29, 2026 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog:nope Not worth mentioning in the changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants