Uh oh!
There was an error while loading. Please reload this page.
Correctly translate paths to local requirements.txt file in environment dependencies - #2736
Conversation
| trace $CLI bundle validate | ||
| trace $CLI bundle deploy | ||
| trace jq -s '.[] | select(.path=="/api/2.2/jobs/create") | .body.environments' out.requests.txt |
There was a problem hiding this comment.
Q: do you assert on the request payload because it includes the expanded wheel path?
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
pietern
commented
Apr 17, 2025
(adding copilot to see if it corrects the typos) |
There was a problem hiding this comment.
Copilot reviewed 9 out of 11 changed files in this pull request and generated 1 comment.
Files not reviewed (2)
- acceptance/bundle/environments/dependencies/requirements.txt: Language not supported
- acceptance/bundle/environments/dependencies/script: Language not supported
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
| dyn.AnyIndex(), | ||
| dyn.Key("spec"), | ||
| dyn.Key("dependencies"), | ||
| dyn.AnyIndex(), |
There was a problem hiding this comment.
nit: NewPatternFromString("resources.jobs.*.environments[*].spec.dependencies[*]") is slightly more readable if #2734 lands first.
There was a problem hiding this comment.
Btw, all patterns in this path visitor package can be rewritten.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| dyn.AnyIndex(), | ||
| dyn.Key("spec"), | ||
| dyn.Key("dependencies"), | ||
| dyn.AnyIndex(), |
There was a problem hiding this comment.
Btw, all patterns in this path visitor package can be rewritten.
## Release v0.249.0 ### CLI * Added `exclude-from` and `include-from` flags support to sync command ([#2660](#2660)) ### Bundles * Correctly translate paths to local requirements.txt file in environment dependencies ([#2736](#2736)) * Check for running resources with --fail-on-active-runs before any mutative operation during deploy ([#2743](#2743))
…nt dependencies (#2736) ## Changes Correctly translate paths to local requirement.txt file in environment dependencies ## Why At the moment we don't translate paths to requirements.txt files which makes it impossible to reference local path to such files in environment dependencies. This PR fixes this ``` dependencies: - -r ../requirements.txt ``` ## Tests Added acceptance test <!-- If your PR needs to be included in the release notes for next release, add a separate entry in NEXT_CHANGELOG.md as part of your PR. --> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
## Release v0.249.0 ### CLI * Added `exclude-from` and `include-from` flags support to sync command ([#2660](#2660)) ### Bundles * Correctly translate paths to local requirements.txt file in environment dependencies ([#2736](#2736)) * Check for running resources with --fail-on-active-runs before any mutative operation during deploy ([#2743](#2743))
Changes
Correctly translate paths to local requirement.txt file in environment dependencies
Why
At the moment we don't translate paths to requirements.txt files which makes it impossible to reference local path to such files in environment dependencies. This PR fixes this
Tests
Added acceptance test