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 startup hooks #1167

Merged
merged 22 commits into from
Feb 11, 2021
Merged

Test startup hooks #1167

merged 22 commits into from
Feb 11, 2021

Conversation

russcam
Copy link
Contributor

@russcam russcam commented Feb 5, 2021

This PR tests that the APM agent startup hook feature is able to configure and setup the agent for ASP.NET Core 3.0, 3.1 and ASP.NET 5, and send APM data to APM server.

A sample ASP.NET (Core) application is included as a target application for startup hooks. Tests start the application, along with a test APM server, make a request to the application, and assert that APM data is captured by APM server.

Startup hook tests run as part of the Tests stage on Linux. A separate Startup Hooks stage is introduced on Windows for testing.

Closes #1073

@apmmachine
Copy link
Contributor

apmmachine commented Feb 5, 2021

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: Pull request #1167 updated

  • Start Time: 2021-02-11T00:34:55.688+0000

  • Duration: 54 min 12 sec

  • Commit: 5763e9e

Test stats 🧪

Test Results
Failed 0
Passed 18118
Skipped 76
Total 18194

Trends 🧪

Image of Build Times

Image of Tests

Steps errors 1

Expand to view the steps failures

Build
  • Took 0 min 30 sec . View more details on here
  • Description: .ci/windows/dotnet.bat

@russcam russcam force-pushed the test/startup-hooks branch from 43d0195 to c022ab0 Compare February 8, 2021 02:21
@codecov-io
Copy link

codecov-io commented Feb 8, 2021

Codecov Report

Merging #1167 (4f0f53b) into master (a01f91b) will increase coverage by 0.39%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1167      +/-   ##
==========================================
+ Coverage   79.44%   79.84%   +0.39%     
==========================================
  Files         160      160              
  Lines        6543     6543              
==========================================
+ Hits         5198     5224      +26     
+ Misses       1345     1319      -26     
Impacted Files Coverage Δ
...rc/Elastic.Apm.Extensions.Hosting/NetCoreLogger.cs 81.81% <ø> (ø)
src/Elastic.Apm/Agent.cs 77.50% <ø> (ø)
.../Elastic.Apm/Config/AbstractConfigurationReader.cs 84.58% <0.00%> (+0.20%) ⬆️
src/Elastic.Apm.Specification/Validator.cs 68.25% <0.00%> (+0.68%) ⬆️
src/Elastic.Apm/Api/Service.cs 94.11% <0.00%> (+5.88%) ⬆️
...c.Apm/Metrics/MetricsProvider/GcMetricsProvider.cs 64.17% <0.00%> (+8.20%) ⬆️
src/Elastic.Apm/Api/Request.cs 100.00% <0.00%> (+10.71%) ⬆️
src/Elastic.Apm/Api/System.cs 100.00% <0.00%> (+54.54%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a01f91b...4f0f53b. Read the comment docs.

@russcam russcam marked this pull request as ready for review February 10, 2021 06:44
@russcam russcam requested a review from gregkalapos February 10, 2021 06:45
@russcam russcam added automated testing Issues related to automated testing v1.8.0 labels Feb 10, 2021
@russcam russcam merged commit 3091b41 into elastic:master Feb 11, 2021
@russcam russcam deleted the test/startup-hooks branch February 11, 2021 01:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
agent-dotnet automated testing Issues related to automated testing v1.8.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test ElasticApmAgent_<Version>.zip on CI
4 participants