Skip to content

ci: truncate and hash deploy name to avoid over-length errors - #211

Merged
AlexAxthelm merged 4 commits into
mainfrom
ci/truncate-deploy-name
Aug 4, 2026
Merged

ci: truncate and hash deploy name to avoid over-length errors#211
AlexAxthelm merged 4 commits into
mainfrom
ci/truncate-deploy-name

Conversation

@AlexAxthelm

Copy link
Copy Markdown
Collaborator

prompted by #208 erroring on deploy for having container name longer than 32 chars

@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown

CD summary 0fc7d59

Frontend: https://witty-mushroom-017a3dc1e-211.westus2.1.azurestaticapps.net

Deployments (4)
service url fqdn
api open pr0211-api.purplegrass-c07d0a94.westus2.azurecontainerapps.io
entity-linkage open pr0211-el.purplegrass-c07d0a94.westus2.azurecontainerapps.io
frontend https://witty-mushroom-017a3dc1e-211.westus2.1.azurestaticapps.net
stitch-llm open pr0211-llm.purplegrass-c07d0a94.westus2.azurecontainerapps.io
Database (1)
db_name postgres_host postgres_port postgres_db
pr0211 stitch-dev.postgres.database.azure.com 5432 pr0211
Jobs (1)
job image postgres_db
db-migrations ghcr.io/rmi/stitch-api:pr0211@sha256:e4fad6d9d4e1eb7122c088f4f22d5f4347a5288489c9a312fc8c258d2177f46a pr0211
Images (4)
build_time commit_time git_sha image image_digest
2026-08-03T13:42:30Z 2026-08-03T13:42:08Z 1fb9b96 ghcr.io/rmi/stitch-api:pr0211 ghcr.io/rmi/stitch-api:pr0211@sha256:e4fad6d9d4e1eb7122c088f4f22d5f4347a5288489c9a312fc8c258d2177f46a
2026-08-03T13:42:30Z 2026-08-03T13:42:08Z 1fb9b96 ghcr.io/rmi/stitch-entity-linkage:pr0211 ghcr.io/rmi/stitch-entity-linkage:pr0211@sha256:fa5bb958166752003515cf22768cdc46bc36f79eb7c8d2956684cb3aec4edff8
2026-08-03T13:42:33Z 2026-08-03T13:42:08Z 1fb9b96 ghcr.io/rmi/stitch-seed:pr0211 ghcr.io/rmi/stitch-seed:pr0211@sha256:9ea05f2225516de89df5acb72c0a570459bccc9add7b1faab9fd7917378721b8
2026-08-03T13:42:30Z 2026-08-03T13:42:08Z 1fb9b96 ghcr.io/rmi/stitch-stitch-llm:pr0211 ghcr.io/rmi/stitch-stitch-llm:pr0211@sha256:f4ece36d9d6e4a539f84e09317342b16c1f47d763f672130dbd061c986988b6a

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the CI deployment naming scheme to avoid Azure Container App name length limits (32 chars), particularly for PR-driven staging/demo deployments.

Changes:

  • Generates a consistent PR token (pr####) and uses it for development PR deployment names.
  • For staging/demo PR deployments, truncates the normalized branch tag and appends a short stable hash to keep names within a fixed budget.
  • Shortens Container App name suffixes for entity-linkage and stitch-llm to reduce total name length.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
.github/workflows/resolve-deployment-context.yml Computes shorter, stable deployment names for PR deployments (incl. truncate + hash for staging/demo).
.github/workflows/close-ci-environment.yml Updates deletion targets to match the shortened Container App name suffixes.
.github/workflows/build-and-deploy.yml Deploys entity-linkage and stitch-llm using the shortened Container App name suffixes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/resolve-deployment-context.yml Outdated
@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown

CD summary b9265f1

Database (1)
db_name postgres_host postgres_port postgres_db
pr_0211 stitch-dev.postgres.database.azure.com 5432 pr_0211
Images (4)
build_time commit_time git_sha image image_digest
2026-08-04T08:53:05Z 2026-08-04T08:52:45Z a428585 ghcr.io/rmi/stitch-api:pr-0211 ghcr.io/rmi/stitch-api:pr-0211@sha256:53826a5ce51e91db54c74f860448a1d353f297598782d2a30cedb5fcb73fef58
2026-08-04T08:53:03Z 2026-08-04T08:52:45Z a428585 ghcr.io/rmi/stitch-entity-linkage:pr-0211 ghcr.io/rmi/stitch-entity-linkage:pr-0211@sha256:1adc7964e6a265d44d26f690f3dd53f94e428278b557622637cd1a8cb97b6f51
2026-08-04T08:53:02Z 2026-08-04T08:52:45Z a428585 ghcr.io/rmi/stitch-seed:pr-0211 ghcr.io/rmi/stitch-seed:pr-0211@sha256:84e11fab0bd84d671a449f9100be19dd10b64babb2074051762ffdf3457faebf
2026-08-04T08:53:08Z 2026-08-04T08:52:45Z a428585 ghcr.io/rmi/stitch-stitch-llm:pr-0211 ghcr.io/rmi/stitch-stitch-llm:pr-0211@sha256:03b635813f36c5b432292eb8a32a0d998b06b1de62400e9e7a50d1a20862a874

@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown

CD summary cb9b655

Database (1)
db_name postgres_host postgres_port postgres_db
pr_0211 stitch-dev.postgres.database.azure.com 5432 pr_0211
Images (4)
build_time commit_time git_sha image image_digest
2026-08-04T12:01:47Z 2026-08-04T12:01:33Z 8258ca9 ghcr.io/rmi/stitch-api:pr-0211 ghcr.io/rmi/stitch-api:pr-0211@sha256:a10b185bf01ca547a155f41e8f464f9a63b137d059d0def75aeb196fab0d0640
2026-08-04T12:01:54Z 2026-08-04T12:01:33Z 8258ca9 ghcr.io/rmi/stitch-entity-linkage:pr-0211 ghcr.io/rmi/stitch-entity-linkage:pr-0211@sha256:2751fdec5cbbaeb2c382369e64fb1678cdd70df2b81efd93f9edd174e6e88a60
2026-08-04T12:01:54Z 2026-08-04T12:01:33Z 8258ca9 ghcr.io/rmi/stitch-seed:pr-0211 ghcr.io/rmi/stitch-seed:pr-0211@sha256:1425ea05f94db468501b3f3347f618f027479c03470604fe7dab7c80713878e2
2026-08-04T12:01:49Z 2026-08-04T12:01:33Z 8258ca9 ghcr.io/rmi/stitch-stitch-llm:pr-0211 ghcr.io/rmi/stitch-stitch-llm:pr-0211@sha256:bfe7de40710210c72174da720ba3a5bf3deec2a03777d42500a41bfd839aec31

@AlexAxthelm
AlexAxthelm marked this pull request as ready for review August 4, 2026 16:19
@AlexAxthelm
AlexAxthelm merged commit b6b56d4 into main Aug 4, 2026
30 checks passed
@AlexAxthelm
AlexAxthelm deleted the ci/truncate-deploy-name branch August 4, 2026 16:26
@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown

CD summary 29dcc30

Frontend: https://witty-mushroom-017a3dc1e-211.westus2.1.azurestaticapps.net

Deployments (4)
service url fqdn
api open pr-0211-api.purplegrass-c07d0a94.westus2.azurecontainerapps.io
entity-linkage open pr-0211-el.purplegrass-c07d0a94.westus2.azurecontainerapps.io
frontend https://witty-mushroom-017a3dc1e-211.westus2.1.azurestaticapps.net
stitch-llm open pr-0211-llm.purplegrass-c07d0a94.westus2.azurecontainerapps.io
Database (1)
db_name postgres_host postgres_port postgres_db
pr_0211 stitch-dev.postgres.database.azure.com 5432 pr_0211
Jobs (1)
job image postgres_db
db-migrations ghcr.io/rmi/stitch-api:pr-0211@sha256:7dff2ec6401d74b2efc8db820574b6978b422c6454770025eac4e75630a2195b pr_0211
Images (4)
build_time commit_time git_sha image image_digest
2026-08-04T16:20:02Z 2026-08-04T16:19:36Z d202132 ghcr.io/rmi/stitch-api:pr-0211 ghcr.io/rmi/stitch-api:pr-0211@sha256:7dff2ec6401d74b2efc8db820574b6978b422c6454770025eac4e75630a2195b
2026-08-04T16:20:08Z 2026-08-04T16:19:36Z d202132 ghcr.io/rmi/stitch-entity-linkage:pr-0211 ghcr.io/rmi/stitch-entity-linkage:pr-0211@sha256:595e20bf15d40014c7e3440c61bd09994a0aae8bf1c33a5471534d7590447fb2
2026-08-04T16:20:00Z 2026-08-04T16:19:36Z d202132 ghcr.io/rmi/stitch-seed:pr-0211 ghcr.io/rmi/stitch-seed:pr-0211@sha256:62315e08c7bdc8f35da69c372e58a2e42114e2ddc061e8bc9e85a31162f8d770
2026-08-04T16:20:06Z 2026-08-04T16:19:36Z d202132 ghcr.io/rmi/stitch-stitch-llm:pr-0211 ghcr.io/rmi/stitch-stitch-llm:pr-0211@sha256:38fc2eb8c79580d351cd874a6c082abcfb855d46aedc0ddc2b2d9a27080a2b0a

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