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

test: collect detailed logs for tests in datadog[infeng-752] #9637

Merged
merged 84 commits into from
Jul 17, 2024

Conversation

djanicekpach
Copy link
Contributor

@djanicekpach djanicekpach commented Jul 11, 2024

test: collect detailed logs for tests in datadog[infeng-752]

Ticket

INFENG-752

Description

This PR adds a datadog agent to E2E tests so that we can collect logs from devcluster and any dependency containers running on the machine. Each of these does count towards our billed host count in DataDog so I'll be pretty cautious around this.

The AIS_DD_ENABLE_MONITORING flag can turn this off for all pipelines if we need it. I'll be monitoring pipeline closely on merge-day. I used an ENV variable rather than a pipeline parameter since it is harder to turn things off quickly with pipeline parameters, and they would have required threading a new parameter through half a dozen jobs.

I also created some dashboards in datadog to help with the ease-of-use. See the testing section.

Test Plan

Ran CI and confirmed results showed in datadog when appropriate. Here's what you can see:
Go to the branch test dashboard for my branch: https://app.datadoghq.com/dashboard/vra-jm2-diq/branch-test-info?fromUser=true&refresh_mode=sliding&tpl_var_branch%5B0%5D=djanicek%2Finfeng-752%2Flocal-agent&view=spans&from_ts=1720107273963&to_ts=1720712073963&live=true

You can View Test/Host Details by clicking on a test in the first timeseries graph:
image

This will load a test dashboard: https://app.datadoghq.com/dashboard/spd-5rs-z7w?=&fromUser=false&refresh_mode=sliding&tpl_var_TestName%5B0%5D=%40test.name%3Atest_post_user_api&view=spans&from_ts=1720107353085&to_ts=1720712153085&live=true

You can use the Test Host Information to get host info.
image

You may need to tweak the lookback time. If it's been more than 3 days logs will be gone due to our retention settings, but if not, devcluster, postgres, and other container logs should be available:
image

Checklist

  • Changes have been manually QA'd
  • New features have been approved by the corresponding PM
  • User-facing API changes have the "User-facing API Change" label
  • Release notes have been added as a separate file under docs/release-notes/
    See Release Note for details.
  • Licenses have been included for new code which was copied and/or modified from any external code

@djanicekpach djanicekpach requested a review from a team as a code owner July 11, 2024 15:39
@cla-bot cla-bot bot added the cla-signed label Jul 11, 2024
Copy link

netlify bot commented Jul 11, 2024

Deploy Preview for determined-ui ready!

Name Link
🔨 Latest commit 46855eb
🔍 Latest deploy log https://app.netlify.com/sites/determined-ui/deploys/66981ac7ed534b0008d82d63
😎 Deploy Preview https://deploy-preview-9637--determined-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

codecov bot commented Jul 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 53.32%. Comparing base (274d763) to head (46855eb).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #9637   +/-   ##
=======================================
  Coverage   53.32%   53.32%           
=======================================
  Files        1254     1254           
  Lines      152655   152655           
  Branches     3244     3244           
=======================================
+ Hits        81398    81399    +1     
+ Misses      71105    71104    -1     
  Partials      152      152           
Flag Coverage Δ
backend 44.75% <ø> (+<0.01%) ⬆️
harness 72.84% <ø> (ø)
web 51.55% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

see 1 file with indirect coverage changes

@djanicekpach djanicekpach force-pushed the djanicek/infeng-752/local-agent branch from 5336074 to a968a33 Compare July 16, 2024 18:22
@djanicekpach djanicekpach force-pushed the djanicek/infeng-752/local-agent branch from 8091c01 to 46855eb Compare July 17, 2024 19:25
@djanicekpach djanicekpach merged commit bbd6f8a into main Jul 17, 2024
116 of 120 checks passed
@djanicekpach djanicekpach deleted the djanicek/infeng-752/local-agent branch July 17, 2024 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants