You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
var_sources not accessible when inside an across task #8191
I have 2 dummy var_sources defined. I am using across to iterate over one of the dummy vars but I get the following error when trying to also access the other dummy var inside the task. The same thing happens with accessing vault var_sources inside across.
failed to interpolate template: missing source 'dummyvar2' in var: dummyvar2:testkey
Having trouble finding the code right now, but the issue is likely with the "var scope" setup when running the across step. We must be forgetting to pull in the var_sources when creating the "local scope" for the across sub-steps, or something like that. Like I said, can't find the code relevant code right now so this won't make sense to anyone else except future me 😅 This is mostly a note for my future self.
Activity
timota commentedon Mar 30, 2022
Actually issue that
var_sourcesare not rendered if called insideacrossstep. As an example:in this case
paramscould not be interpolated with an errorsame happened when you define script in-line (same as original snippet above this post).
BUT
when
paramsare defined infile: pps/tasks/test-var.ymlONLY - they are interpolated and rendered properly. eg:Looks like something broken during pipeline processing, but works if all secrets used/defined inside dynamic task file.
timota commentedon Jun 22, 2022
any updates on this issue ?
it completely eliminates benefits of
var_sourcesiomarcovalente commentedon Jun 23, 2022
related to concourse/rfcs#29
schmurfy commentedon Jul 2, 2024
I finally tried
acrossand stumbled on this, now I am sad :(Across is a really nice feature.
taylorsilva commentedon Jan 7, 2025
Leaving this open, we should still get this fixed. Not on the roadmap. Anyone is free to make a PR fixing this, I'll review it.
taylorsilva commentedon Jul 30, 2025
Having trouble finding the code right now, but the issue is likely with the "var scope" setup when running the across step. We must be forgetting to pull in the var_sources when creating the "local scope" for the across sub-steps, or something like that. Like I said, can't find the code relevant code right now so this won't make sense to anyone else except future me 😅 This is mostly a note for my future self.
taylorsilva commentedon Jul 30, 2025
Ah, this might be the general area to start looking at:
concourse/atc/exec/across_step.go
Lines 122 to 125 in 79611f1
fix(atc): retain var_sources visibility inside across interpolation s…
fix(atc): retain var_sources visibility inside across interpolation s…