Skip to content

Conversation

@gregkalapos
Copy link
Contributor

@gregkalapos gregkalapos commented Jan 18, 2022

Solves #1566

  • Adding .NET 6 in CI
  • Installing the VS2022 version of vs BuildTools
  • Running all tests on .NET 6 as well (where applicable)

@gregkalapos gregkalapos self-assigned this Jan 18, 2022
@ghost
Copy link

ghost commented Jan 18, 2022

💚 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 preview

Expand to view the summary

Build stats

  • Reason: null

  • Start Time: 2022-01-26T15:32:24.164+0000

  • Duration: 91 min 22 sec

  • Commit: 06762db

Test stats 🧪

Test Results
Failed 0
Passed 24113
Skipped 136
Total 24249

🤖 GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

  • run benchmark tests : Run the benchmark test.

  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)


dotnet nuget add source --name nuget.org https://api.nuget.org/v3/index.json

:: Build solution. Add `--verbosity detailed` for more detailed logs
Copy link
Contributor Author

@gregkalapos gregkalapos Jan 25, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Took out verbose logging - it turned out to generate huge noise when I need to look at logs from a failed build. I'd prefer to keep it without verbose logs and only turn it on once we really need it.

# Install visualstudio2019 and workloads needed to build ASP.NET and .NET Core apps
Invoke-WebRequest -UseBasicParsing `
-Uri "https://download.visualstudio.microsoft.com/download/pr/cb1d5164-e767-4886-8955-2df3a7c816a8/b9ff67da6d68d6a653a612fd401283cc213b4ec4bae349dd3d9199659a7d9354/vs_BuildTools.exe" `
-Uri "https://download.visualstudio.microsoft.com/download/pr/ce8663b0-08ed-410a-9f5d-4f9469d1b2cb/73271b3d53a4e50e65e2e918a8c1100d2681c17bc418e03513c9f0554609ff8a/vs_BuildTools.exe" `
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This updates it to the vs 2022 version.

dir("${BASE_DIR}"){
powershell label: 'Install test tools', script: '.ci\\windows\\test-tools.ps1'
retry(3) {
bat label: 'Build', script: '.ci/windows/dotnet.bat'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of building it once and then running test.bat in a separate step we can do the whole thing in test.bat.

@gregkalapos gregkalapos requested a review from a team January 25, 2022 19:01
@gregkalapos
Copy link
Contributor Author

elastic/apm-integration-testing#1412 takes care of failing integration tests.

Copy link
Member

@v1v v1v left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neat!

:: LogFilePath property
::
dotnet test -c Release --no-build ^
dotnet test -c Release ^
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Out of curiosity, if the test.bat does also run the build, are the dotnet sln remove needed for the building?

Copy link
Contributor Author

@gregkalapos gregkalapos Jan 25, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that's intentional.

Those projects that we remove with dotnet sln remove need more than what we have in this context (e.g. ASP.NET Classic), so the dotnet tool isn't enough for those. We use those projects in the Windows .NET Framework stage.

I only know this from experience. If we don't remove those, it'll fail - I saw it :) . Prior to this PR removing happened in the dotnet.bat file.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Greg for the clarification :)

@gregkalapos gregkalapos mentioned this pull request Jan 26, 2022
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