Skip to content

Conversation

@plietar
Copy link
Contributor

@plietar plietar commented Dec 2, 2025

If a BuildSpec is passed as the image parameter to a container, constellation will build the image using that specification before starting the container.

The image is built unconditionally. However thanks to Docker's build cache nothing happens on repeated build.

Copy link
Contributor

@EmmaLRussell EmmaLRussell left a comment

Choose a reason for hiding this comment

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

Looks like the tests are failing..?

I know we're missing types all over here, but could we at least have a comment on ConstellationContainer.image that it is either a string or a BuildSpec?


@dataclass
class BuildSpec:
path: str
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
path: str
# Path to Dockerfile
path: str

@codecov
Copy link

codecov bot commented Dec 4, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.41%. Comparing base (ea3120e) to head (b01edee).
⚠️ Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #40      +/-   ##
==========================================
+ Coverage   97.33%   97.41%   +0.08%     
==========================================
  Files          16       16              
  Lines        1686     1704      +18     
  Branches      102      102              
==========================================
+ Hits         1641     1660      +19     
  Misses         35       35              
+ Partials       10        9       -1     

☔ 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.

@plietar
Copy link
Contributor Author

plietar commented Dec 4, 2025

I know we're missing types all over here, but could we at least have a comment on ConstellationContainer.image that it is either a string or a BuildSpec?

Done. It's actually a BuildSpec or ImageReference.

@plietar plietar requested a review from EmmaLRussell December 4, 2025 13:56
If a `BuildSpec` is passed as the image parameter to a container,
constellation will build the image using that specification before
starting the container.

The image is built unconditionally. However thanks to Docker's build
cache nothing happens on repeated build.
@plietar plietar merged commit 96933af into master Dec 4, 2025
9 checks passed
@plietar plietar deleted the build-image branch December 4, 2025 17:00
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