Closed fvankrieken closed 4 months ago
Nice, though I do wonder if we're conflating template variables and env variables. Wondering if we might either:
1) just set the recipe's env
variables into the environment at the beginning of a build. Might makes sense to have some dcpy functionality to set env vars, for various reasons
2) or just call these vars
instead of env
, and don't bother putting them in the os.environ
In any case, I do really like capturing vars in the recipe, esp if we upload the recipe file to edm-publishing
, just to make it explicit what went into the build.
Thoughts @damonmcc @sf-dcp ?
Nice, though I do wonder if we're conflating template variables and env variables. Wondering if we might either:
- just set the recipe's
env
variables into the environment at the beginning of a build. Might makes sense to have some dcpy functionality to set env vars, for various reasons- or just call these
vars
instead ofenv
, and don't bother putting them in the os.environIn any case, I do really like capturing vars in the recipe, esp if we upload the recipe file to
edm-publishing
, just to make it explicit what went into the build.Thoughts @damonmcc @sf-dcp ?
Yeah separating env and template vars seems like a good distinction. Especially since env often contains secrets - not that bash env vars are making it into the recipe's env
field, but just seems good to keep that distinction explicit and make sure nobody makes some unfortunate assumptions
Nice, though I do wonder if we're conflating template variables and env variables. Wondering if we might either:
- just set the recipe's
env
variables into the environment at the beginning of a build. Might makes sense to have some dcpy functionality to set env vars, for various reasons- or just call these
vars
instead ofenv
, and don't bother putting them in the os.environIn any case, I do really like capturing vars in the recipe, esp if we upload the recipe file to
edm-publishing
, just to make it explicit what went into the build. Thoughts @damonmcc @sf-dcp ?Yeah separating env and template vars seems like a good distinction. Especially since env often contains secrets - not that bash env vars are making it into the recipe's
env
field, but just seems good to keep that distinction explicit and make sure nobody makes some unfortunate assumptions
There are multiple cases where "input" vars still need to be made part of the bash env for the rest of the build, so maybe we should move all of that to template vars, and then export the entire vars
field, rather than the targeted way it's being done for version and version_prev for devdb in the github action in this pr (and pluto as well, though currently no changes in this PR)
@fvankrieken I kinda lean towards
so maybe we should move all of that to template vars, and then export the entire vars field
Just for consistency across the entire build process. But I don't have a strong opinion, and I'm happy if you want to get this in and we can let it percolate.
Going to make that env/var tweak, then re-run devdb build before merging
build all on the latest commit of this branch. FacDB is failing due to change in schema of source dataset that @sf-dcp is working on.
I also left out FacDB of commit 6 because I didn't want to collide with anything @sf-dcp is doing
Relatively straightforward. Waiting @damonmcc's version pinning of devdb tests
Commits