elastic / elastic/beats

Enable Go integration tests on `main` for Windows and Mac

Open
#43,508 2 comments 0 reactions 0 assignees View on GitHub
Stalled Team:Elastic-Agent-Data-Plane
Dominant language
Go
Stars
12.7k
Forks
5k
Avg merge
2d 15m
Merged PRs (30d)
385

Description

Our Go integration tests (`mage GoIntegTest`) are not running on Windows nor MacOs.

Looking at a recent run from main (https://github.com/elastic/beats/commit/019fe1d13bb8edc552ddea00420a16376c5f4a13) I can see there is no Go integration test for Windows or Mac

![Image](https://github.com/user-attachments/assets/67bf575f-a1a2-4d3e-90cf-b618ea5e9c04)

Running a subset of them, I got the following tests failing:
- TestFilestreamCleanInactive
- TestFilestreamCanMigrateIdentity/native_to_fingerprint
- TestFilestreamCanMigrateIdentity/path_to_fingerprint
- TestFilestreamCanMigrateIdentity/path_to_native
- TestFilestreamMigrateIdentityCornerCases
- TestFilestreamTakeOverFromLogInput

Some are recent, but others are older, e.g `TestFilestreamCleanInactive` is about 1 year old.

Contributor guide

Open the contributing guide

Research direction

Start with the main-branch run linked in the issue and the `mage GoIntegTest` entry point to determine why Windows and macOS are missing. Reproduce the listed Filestream failures, including `TestFilestreamCleanInactive` and the `TestFilestreamCanMigrateIdentity` cases. Done means Go integration tests run on both platforms and the reported failures are resolved.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
ci-cd, testing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.