Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing / mangled log files under Azure DevOps 'Attachment' section #9865

Closed
2 tasks
ulisesh opened this issue Jul 1, 2022 · 26 comments
Closed
2 tasks

Missing / mangled log files under Azure DevOps 'Attachment' section #9865

ulisesh opened this issue Jul 1, 2022 · 26 comments
Assignees

Comments

@ulisesh
Copy link
Contributor

ulisesh commented Jul 1, 2022

  • This issue is blocking
  • This issue is causing unreasonable pain

Reported by @hoyosjs

Log files used to be available in attachment section (like Pipelines - Run 20220621.9 (azure.com) but you can't see them after
Pipelines - Run 20220621.7 (azure.com))

@ChadNedzlek
Copy link
Member

Given that the build that is referenced is pointing to a commit messing with the STDOUT of tests, and we haven't changed anything in this area in a long time (certainly not in the time frame of this issue), it's because the repository stopped writing output.

I'm going to see if I can find a test in a different repository that has output to verify.

@hoyosjs
Copy link
Member

hoyosjs commented Jul 6, 2022

This one is a private helix run (it's testing internal, these tests are not things that we can open source since they have product dependencies). We haven't changed infra at all and logs still get registered locally.

@ChadNedzlek
Copy link
Member

The commit referenced by the bad build, https://dev.azure.com/dnceng/internal/_git/dotnet-diagnostictests/commit/0e930ad0039f56a4c991a9a4717ff1bed99d1871, includes a bunch of changes to STDOUT.

I'm running #9898 through, which adds a failing test with output to see if it's getting included.

@ChadNedzlek
Copy link
Member

It does look like arcade is missing it on "Trx.Fail1"... so we definitely broke something here... a month ago. Taking a look.

@ChadNedzlek
Copy link
Member

This looks to be a problem with AzDO? The site says it's a 9K file. But when I download it, it's empty. Also, I don't see any of our code mangling the name to "TestResult_{GUID}" anywhere. I'm going to open an IcM

@ChadNedzlek
Copy link
Member

I also don't see any changes near this time frame in either piece of our code that could account for this...

@ChadNedzlek
Copy link
Member

Yup, this is definitely a Azure DevOps change. I made a raw test attachment upload, and it's not returning the contents. It's both messing with the name (prepending the TestResult_{GUID}_ to the name), and failing to save the contents, though the "size" reported is correct. I'm opening an IcM

@ChadNedzlek ChadNedzlek self-assigned this Jul 6, 2022
@missymessa
Copy link
Member

@ChadNedzlek is this going to affect the test reporting functionality, too?

@ChadNedzlek
Copy link
Member

I don't think so. It seems to only affect test attachments. The run attachments are presumably fine (otherwise we'd be getting "zero" passed tests, which we don't appear to be). It's been broken since 6/21, so we'd have noticed by now if that were the case.

@ChadNedzlek
Copy link
Member

The incident has been acknowledged by Azure DevOps, and they will be rolling a fix out in their next rollout. I've asked for a specific date.

@ChadNedzlek
Copy link
Member

ChadNedzlek commented Jul 8, 2022

Current estimate for when this change will be live is approximately 2 weeks. So we'll keep an eye out to make sure everything looks good EOD 6/22.

@ilyas1974
Copy link
Contributor

@ChadNedzlek is there an update on this issue?

@ChadNedzlek
Copy link
Member

I meant to write 7/22 in my last update (since 6/22 is a month in the past). Until they ship the fix for this then, we are just waiting.

@ilyas1974
Copy link
Contributor

@ChadNedzlek Just wanted to follow up and see if Azure DevOps was able to resolve this issue for us as promised?

@hoyosjs
Copy link
Member

hoyosjs commented Jul 26, 2022

We still don't see any attachments (now we see garbage instead of a blank attachment).

@ChadNedzlek
Copy link
Member

It's base64 encoded of the original data. So sounds like we need another IcM.

@ChadNedzlek ChadNedzlek removed their assignment Jul 26, 2022
@ChadNedzlek
Copy link
Member

I moved this out of tracking and unassigned myself, since we're going to need another IcM to fix the new broken behavior.

@ChadNedzlek
Copy link
Member

Or we can reactivate the old one? The name is still messed up, after all.

@MattGal MattGal self-assigned this Jul 26, 2022
@MattGal
Copy link
Member

MattGal commented Jul 26, 2022

I am opening a fresh IcM.

@MattGal MattGal changed the title The missing log file under the Attachment section Missing / mangled log files under Azure DevOps 'Attachment' section Jul 26, 2022
@MattGal
Copy link
Member

MattGal commented Jul 26, 2022

@MattGal
Copy link
Member

MattGal commented Aug 1, 2022

Update: A new fix is supposedly deployed and should roll out by end of week.

@MattGal
Copy link
Member

MattGal commented Aug 9, 2022

Doesn't seem to work retroactively (i.e. the original repro still looks broken) but checking out results from today, the file name and preview contents are correct, so I can finally close this.

Example

Image

@garath
Copy link
Member

garath commented Aug 22, 2022

Reopening. This fix was rolled-back over the weekend due to #10358.

ICM 318952542 has been reactivated.

@garath garath reopened this Aug 22, 2022
@garath garath assigned garath and unassigned MattGal Aug 22, 2022
@garath
Copy link
Member

garath commented Aug 25, 2022

ICM Update: Fix expected in M209, which, if I read the patterns correctly, will start rolling out next week.

@garath
Copy link
Member

garath commented Sep 2, 2022

Fix is rolled out. Test team will complete a retrospective.

@garath garath closed this as completed Sep 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants