Skip to content

[chore][ansible] Run Windows tests against current build #6309

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

Merged
merged 31 commits into from
Jun 18, 2025

Conversation

crobert-1
Copy link
Contributor

@crobert-1 crobert-1 commented Jun 12, 2025

Description:

Essentially the same effort as #6284. The functionality of installing the MSI has been split into two files, one for fetching the MSI from the public releases URL, one for fetching the MSI from the locally built artifacts. The split logic is to copy the MSI to ansible's target machine at a set path. Functionality can proceed the same way for both installations from there.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

agent-bundle-windows, msi-custom-actions, and msi-build are all directly copied from https://github.com/signalfx/splunk-otel-collector/blob/main/.github/workflows/win-package-test.yml

@@ -257,6 +359,11 @@ jobs:
- name: Check out the codebase.
uses: actions/checkout@v4

- uses: actions/download-artifact@v4
with:
name: msi-build
Copy link
Contributor Author

@crobert-1 crobert-1 Jun 12, 2025

Choose a reason for hiding this comment

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

For simplicity in Ansible logic, use a single MSI with a preset name, rather than having to pass around variables and parse versions.

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 file is simply tasks moved from otel_win_install.yml for cleaning up the organization of functionality.

Copy link

codecov bot commented Jun 12, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 43.74%. Comparing base (64854c0) to head (174e4ce).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6309      +/-   ##
==========================================
+ Coverage   43.73%   43.74%   +0.01%     
==========================================
  Files         390      390              
  Lines       26995    26995              
==========================================
+ Hits        11806    11810       +4     
+ Misses      14340    14338       -2     
+ Partials      849      847       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@@ -45,23 +45,6 @@
assert:
that: not service_status.changed

- name: Download splunk-otel-collector 0.126.0 MSI
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed version check for the same reason as the linux change. We can revisit if anyone has a strong preference here.

@@ -1,42 +1,18 @@
---

- name: Get splunk-otel-collector latest version
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Deleted lines from this file are simply being moved to the win_download_remote_msi,yml task in the same directory.

@crobert-1 crobert-1 marked this pull request as ready for review June 16, 2025 17:17
@crobert-1 crobert-1 requested review from a team as code owners June 16, 2025 17:17
@crobert-1 crobert-1 merged commit ae23889 into signalfx:main Jun 18, 2025
3 checks passed
@crobert-1 crobert-1 deleted the ansible_windows_test_current_build branch June 18, 2025 20:06
@github-actions github-actions bot locked and limited conversation to collaborators Jun 18, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants