question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Helix arcade reporter creates URLs for HTML attachments of any .log file found, but doesn't upload them

See original GitHub issue
  • Is this issue blocking: no, users can work around by getting relevant .log files copied into the HELIX_WORKITEM_UPLOAD_ROOT path.
  • Is this issue causing unreasonable pain : debatable, but it’s a bug.

@alexperovich FYI.

Summary:

As mentioned in this PR, the ASP.NET team expects .log files to all be specially uploaded, but unless files outside the regular console and harness log (and various XML-based test results) are put into the appropriate path, they don’t get uploaded.

Further, it’s entirely possible that users have .log files inside their Helix work item folder that are large and undesired for propagation, so forcibly trying to upload these doesn’t make sense to me.

Relevant code snippets:

This line: https://github.com/dotnet/arcade/blob/master/src/Microsoft.DotNet.Helix/Sdk/tools/azure-pipelines/reporter/test_results_reader/__init__.py#L81 Chooses HELIX_WORKITEM_ROOT as the folder to do a recursive walk on, and this line: https://github.com/dotnet/arcade/blob/master/src/Microsoft.DotNet.Helix/Sdk/tools/azure-pipelines/reporter/test_results_reader/__init__.py#L44 Constructs a bunch of URLs without uploading them (upload IS automatic when contained in the upload root path)

Since the listdir() call isn’t recursive, this doesn’t even traverse HELIX_WORKITEM_UPLOAD_ROOT and thus the files don’t get included unless they’re in two places currently.

Thoughts on fix:

I’ll defer to @alexperovich here but my thought is to only upload .log files from HELIX_WORKITEM_UPLOAD_ROOT and if this variable is undefined to either upload them itself or to print out “not uploading .log file because…” (this is only important for certain ancient, non-updated Helix clients).

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
alexperovichcommented, Jan 27, 2020

PRs into arcade will use whatever changes you have made. There isn’t a real way to test locally, but you can make a PR and use the build to see what it does.

0reactions
chcostacommented, Jan 29, 2020

Per discussion with @HaoK , this is low priority for their team.

Given the feedback, from @ChadNedzlek , that fixing this the right way would not be a minor investment; closing this issue and we can re-evaluate if the impact grows or this becomes problematic.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Reference of a attachment file on html field is in...
The problem is that this uuid string is not referenced on the attachment list, so we cannot identify which of the attachments is...
Read more >
Show Attachments in Pop-ups with Arcade Expression...
Configure the pop-up to display the attachment URL as an image. Steps to view attachments as photos in your web map pop-up: Part...
Read more >
My attachment serve has error with Couldn't find ...
I found that my attachment_controller file was gone. It seems to happen some times when I have Atom open and switch between branches....
Read more >
Popup media group from Arcade Array
Solved: I am trying to determine how to create a popup Media Group of images from an Arcade array of image URLs. The...
Read more >
Blocking .html & .htm attachments in O365 : r/sysadmin
I've seen a big uptick in phishing e-mails with .html and .htm extensions using base64 regex / javascript to obfuscate phishing.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found