Skip to content

[INFRA-421] support repos with no launch.yaml#197

Open
dmartschenko wants to merge 2 commits into
masterfrom
infra-421
Open

[INFRA-421] support repos with no launch.yaml#197
dmartschenko wants to merge 2 commits into
masterfrom
infra-421

Conversation

@dmartschenko

@dmartschenko dmartschenko commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Clever Coding Standards Agreement

JIRA

https://linear.app/clever/issue/INFRA-421/update-circle-ci-orbs-to-work-with-no-launchyaml-files

About

goci previously only built apps configured via Catapult launch configs. This PR adds support for apps configured for Kubernetes via stack.yaml, and handles repos with a mix of both.

In this PR:

  • Discovers and builds apps from both config/ (Kubernetes) and launch/ (Catapult), merging results with Kubernetes winning when the same app appears in both
  • Kubernetes apps skip the Catapult publish and deploy steps
  • Fails when a Kubernetes config exists for an app but is missing a build command that the legacy Catapult config had — forces migration to be completed explicitly
  • Only errors if both config directories are missing; a missing config/ or launch/ alone is silently ignored

Important

This PR proposes adding a build block to the stack.yaml files for kubernetes apps. It would be configured as such

build:
  command: make build
  dockerfile: Dockerfile
  artifactName: my-app
  dependencies:
    - src/**
    - go.mod

Checklist

  • Increment the version number in VERSION
  • Add release notes

Testing

  • Removed launch.yaml, migrated to new launch-gen, and verified cci builds for slingshot
  • Verified cci builds for groups which has catapult + kubernetes apps

@dmartschenko dmartschenko requested a review from a team as a code owner June 25, 2026 00:52
@dmartschenko dmartschenko requested review from amanda-orin and removed request for a team June 25, 2026 00:52
@andruwm

andruwm commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Kubernetes apps skip the Catapult publish

Will we be fully migrating all envs for an app under the new migration plan? Otherwise, we may still need catapult publish

Comment thread internal/repo/app_config.go
@dmartschenko

Copy link
Copy Markdown
Contributor Author

Will we be fully migrating all envs for an app under the new migration plan? Otherwise, we may still need catapult publish

Say more. I may be missing context here

@andruwm

andruwm commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Will we be fully migrating all envs for an app under the new migration plan? Otherwise, we may still need catapult publish

Say more. I may be missing context here

In the original migration plan, I believe that personal environments were still going to be running on Fargate? If that is the case for the updated migration plan, then we still need catapult builds to be published.

@dmartschenko

Copy link
Copy Markdown
Contributor Author

In the original migration plan, I believe that personal environments were still going to be running on Fargate? If that is the case for the updated migration plan, then we still need catapult builds to be published.

Ahh good call out. Personal environments for migrated apps can easily be supported on k8s. Devs would just specify their personal environment when launching an app from Backstage. Unless there are scale concerns I would opt to route folks to backstage so we're not in a halfsies migration state for each app

@andruwm

andruwm commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

In the original migration plan, I believe that personal environments were still going to be running on Fargate? If that is the case for the updated migration plan, then we still need catapult builds to be published.

Ahh good call out. Personal environments for migrated apps can easily be supported on k8s. Devs would just specify their personal environment when launching an app from Backstage. Unless there are scale concerns I would opt to route folks to backstage so we're not in a halfsies migration state for each app

After the data-stage discussion today, it sounds like we will need to support fargate a while longer. Maybe we should only skip catapult publish if there is no launch config left?

@dmartschenko

Copy link
Copy Markdown
Contributor Author

After the data-stage discussion today, it sounds like we will need to support fargate a while longer. Maybe we should only skip catapult publish if there is no launch config left?

fking datastage... yes I'll make the change to only skip if launch config doesn't exist

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