Skip to content

Allow runtime image in workload API#3772

Open
slyt3 wants to merge 8 commits intostacklok:mainfrom
slyt3:issue-3676-runtime-image-api
Open

Allow runtime image in workload API#3772
slyt3 wants to merge 8 commits intostacklok:mainfrom
slyt3:issue-3676-runtime-image-api

Conversation

@slyt3
Copy link
Contributor

@slyt3 slyt3 commented Feb 11, 2026

I added runtime_config to workload to create and update API requests for #3676; It now passes the runtime image override into the build/retriever flow and stores it in RunConfig, updated API docs and tests

Allow runtime_config in create and update workload API requests.
Wire runtime overrides through image retrieval and persist them in RunConfig.
Update API docs and tests for stacklok#3676.

Signed-off-by: Mantas Suminas <mantas.sumin@gmail.com>
@github-actions github-actions bot added the size/S Small PR: 100-299 lines changed label Feb 11, 2026
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 97e8aa6d9d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@codecov
Copy link

codecov bot commented Feb 11, 2026

Codecov Report

❌ Patch coverage is 91.89189% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 66.55%. Comparing base (60f23f5) to head (a638c4d).

Files with missing lines Patch % Lines
pkg/runner/protocol.go 83.33% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3772      +/-   ##
==========================================
- Coverage   66.57%   66.55%   -0.02%     
==========================================
  Files         432      432              
  Lines       42215    42246      +31     
==========================================
+ Hits        28103    28117      +14     
- Misses      11970    11990      +20     
+ Partials     2142     2139       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Avoid invalid protocol Dockerfiles when runtime override omits builder_image by merging missing fields with base runtime config. Add tests for merged behavior and override precedence.

Signed-off-by: slyt3 <mantas.sumin@gmail.com>
Trim builder_image and ignore empty runtime_config payloads to avoid forwarding meaningless overrides.
@slyt3 slyt3 requested a review from lujunsan as a code owner February 11, 2026 13:00
@github-actions github-actions bot added size/S Small PR: 100-299 lines changed and removed size/S Small PR: 100-299 lines changed labels Feb 11, 2026
@slyt3 slyt3 marked this pull request as draft February 11, 2026 13:03
Add explicit returns after fatal nil guards so staticcheck can prove dereferences are safe.
@github-actions github-actions bot added size/S Small PR: 100-299 lines changed and removed size/S Small PR: 100-299 lines changed labels Feb 11, 2026
Signed-off-by: slyt3 <mantas.sumin@gmail.com>
@github-actions github-actions bot added size/S Small PR: 100-299 lines changed and removed size/S Small PR: 100-299 lines changed labels Feb 11, 2026
@slyt3
Copy link
Contributor Author

slyt3 commented Feb 11, 2026

I fixed the failing verify check separately: docs/server/swagger.json had an EOF newline mismatch; this is docs formatting only, not part of the #3676 runtime_config logic.

@slyt3 slyt3 marked this pull request as ready for review February 11, 2026 13:17
@github-actions github-actions bot added size/S Small PR: 100-299 lines changed and removed size/S Small PR: 100-299 lines changed labels Feb 11, 2026
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1e6e895eee

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Append additional_packages to base runtime defaults and filter blank package entries in API requests to avoid malformed build config.
@github-actions github-actions bot added size/S Small PR: 100-299 lines changed and removed size/S Small PR: 100-299 lines changed labels Feb 11, 2026
@github-actions github-actions bot removed the size/S Small PR: 100-299 lines changed label Feb 11, 2026
@github-actions github-actions bot added the size/S Small PR: 100-299 lines changed label Feb 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/S Small PR: 100-299 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant