Skip to content

Remove duplicate job.yml - #86

Merged
ViktorHofer merged 1 commit into
dotnet:masterfrom
trylek:RemoveDuplicateJobYml
Nov 18, 2019
Merged

ViktorHofer merged 1 commit into
dotnet:masterfrom
trylek:RemoveDuplicateJobYml

Conversation

@trylek

@trylek trylek commented Nov 18, 2019

Copy link
Copy Markdown
Member

To simplify repo consolidation I temporarily kept a copy of the
job.yml file under eng/pipelines/coreclr/templates. Now that we
no longer need to maintain compatible YAML code across
non-consolidated CoreCLR vs. consolidated runtime, we can finally
remove this duplication.

Thanks

Tomas

@trylek trylek added the area-Infrastructure-coreclr Only use for closed issues label Nov 18, 2019

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This seems correct but all other path changes are just using absolute paths instead of relative ones. That doesn't seem right.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This is actually interesting. Apart from the fact that the change somehow weirdly fails upon initialization so that I have absolutely no idea what's wrong, this is basically the reason why I waited with the change until the consolidation. For some reason it looks like all the template paths are interpreted in context of the job.yml script, this is why the relative paths no longer work. I would love to figure out how to work around this but so far I haven't found how to do that yet.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I see, I didn't know that.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I would love to figure out how to work around this but so far I haven't found how to do that yet.

I don't think that's possible. I think because yml expands templates in place, and first goes the deepest level and then starts expanding, whenever it expands this templates, the path will now be within the context of job.yml -- it might be a bug, but I don't think there is a way now to do it without absolute paths. Might be worth opening a bug or asking.

To simplify repo consolidation I temporarily kept a copy of the
job.yml file under eng/pipelines/coreclr/templates. Now that we
no longer need to maintain compatible YAML code across
non-consolidated CoreCLR vs. consolidated runtime, we can finally
remove this duplication.

Thanks

Tomas
@trylek trylek changed the title WIP: Remove duplicate job.yml Remove duplicate job.yml Nov 18, 2019
@trylek
trylek requested a review from jashook November 18, 2019 15:40
@trylek

trylek commented Nov 18, 2019

Copy link
Copy Markdown
Member Author

As mentioned in my response to Viktor, one downside of this change is restoring some of the absolute paths; this shouldn't hopefully be a big deal as we no longer have to maintain a version supporting both pre-consolidation and post-consolidation folder layout.

@ViktorHofer
ViktorHofer merged commit 48111e7 into dotnet:master Nov 18, 2019
@ViktorHofer
ViktorHofer deleted the RemoveDuplicateJobYml branch November 18, 2019 23:55
@karelz karelz added this to the 5.0.0 milestone Aug 18, 2020
MichalStrehovsky pushed a commit to MichalStrehovsky/runtime that referenced this pull request Sep 10, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-Infrastructure-coreclr Only use for closed issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants