Skip to content

Conversation

@Mia-Cross
Copy link
Contributor

No description provided.

@Mia-Cross Mia-Cross self-assigned this Oct 22, 2025
@Mia-Cross Mia-Cross added tests container Container issues, bugs and feature requests labels Oct 22, 2025

func createContainerWithImage(metaKey string, registryImageMetaKey string) core.BeforeFunc {
return core.ExecStoreBeforeCmd(metaKey, fmt.Sprintf(
"scw container container create namespace-id={{ .ContainerNamespace.ID }} name=%s registry-image={{ (index .%s 0).FullName }}:latest port=80 deploy=true -w",
Copy link
Member

Choose a reason for hiding this comment

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

Would it be possible to have registry image passed as a key?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In the current implementation, I have modified the StoreImageInMeta function to have enough checks and to make sure that the full identifier for the image is stored in the Meta. Therefore, when the template is rendered here, we can be certain that the value is correct.

@codecov-commenter
Copy link

codecov-commenter commented Oct 23, 2025

Codecov Report

❌ Patch coverage is 4.44444% with 43 lines in your changes missing coverage. Please review.
✅ Project coverage is 57.43%. Comparing base (06bd350) to head (87c7bf2).
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
internal/testhelpers/helpers_registry.go 0.00% 42 Missing ⚠️
internal/namespaces/registry/v1/custom_image.go 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5072      +/-   ##
==========================================
- Coverage   57.44%   57.43%   -0.02%     
==========================================
  Files         307      308       +1     
  Lines       67083    67125      +42     
==========================================
+ Hits        38535    38551      +16     
- Misses      27113    27140      +27     
+ Partials     1435     1434       -1     

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

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Mia-Cross Mia-Cross force-pushed the container_add_tests_for_update branch from 7a8bbf6 to 87c7bf2 Compare October 27, 2025 14:48
@github-actions github-actions bot added the registry Managed Container Registry issues, bugs and feature requests label Oct 27, 2025
@Mia-Cross Mia-Cross marked this pull request as ready for review October 27, 2025 15:38
@Mia-Cross Mia-Cross requested a review from a team as a code owner October 27, 2025 15:38
@remyleone remyleone added this pull request to the merge queue Oct 27, 2025
Merged via the queue into scaleway:master with commit c660690 Oct 27, 2025
16 checks passed
@Mia-Cross Mia-Cross deleted the container_add_tests_for_update branch October 28, 2025 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

container Container issues, bugs and feature requests registry Managed Container Registry issues, bugs and feature requests tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants