acr icon indicating copy to clipboard operation
acr copied to clipboard

ACR Tasks `task.yaml` expansion evaluation for debugging

Open SteveLasker opened this issue 4 years ago • 2 comments

What is the problem you're trying to solve When debugging tasks, it's very tedious to debug the results of go templating. When errors occur, the line numbers don't reflect the numbers of the tasks.yaml authored, rather the expanded line numbers which can send you to very different areas. There are additional challenges with - in . notation, or other character escaping.

Describe the solution you'd like

  • A way to see the expanded go template, with line numbers that match the actual error line numbers.
  • The ability to get the results of the yaml expansion without the actual execution --dry-run or some such equivalent

Additional context Add any other context or screenshots about the feature request here.

SteveLasker avatar Oct 27 '20 19:10 SteveLasker

Ideally it would be good if we could just spit out the expanded yaml on the client. The issue here is that there are secrets. Overall you are hitting the parts that need improvements for faster iteration.

sajayantony avatar Oct 28 '20 00:10 sajayantony

Yup, faster iteration (aka debugging) is definitely the core issue. Queued up for next semester

SteveLasker avatar Oct 28 '20 00:10 SteveLasker