Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uv #8194

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft

Uv #8194

wants to merge 4 commits into from

Conversation

GeoWill
Copy link
Collaborator

@GeoWill GeoWill commented Dec 18, 2024

CI isn't quite there yet.

Also I got sucked into making BundleOptions work on the trigger cdk. I'm not sure this is the best approach. It feels quite brittle and like it will be hard to debug when it breaks. Just calling uv export before cdk synth or cdk deploy is probably a better bet. However I've left the commit in so that it's there if wanted.

Assuming the synth step of CI is fixed then next step would be to push to the development branch and see if the deploy steps work. Then doing some playing to check if the CI importers run. Then maybe the requirements dir can be deleted.

I haven't thought past that.

The version of ruff installed by uv wants to change a file too...
This is pretty hacky, and basically involved fighting round permissions
issues inside the lambda handler. I couldn't find much prior art apart
from https://github.com/aws-samples/amazon-bedrock-serverless-prompt-chaining/blob/e583e865e8f140f93ff582e1ab17670feebdbf28/stacks/util.py#L18

Not sure if this is the best way to go, or if we'd be better off calling
uv export in CI, and documenting the fact you need to call 'uv export' if
you want to run 'cdk synth' locally.

we could even have scripts/cdk-synth.sh which created and removed the
necessary requirements.txt.
@coveralls
Copy link

Coverage Status

coverage: 71.847% (+0.01%) from 71.837%
when pulling 228c30f on uv
into eebe8c7 on master.

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.

2 participants