Skip to content

Conversation

@EliSchleifer
Copy link
Member

@EliSchleifer EliSchleifer commented Nov 6, 2025

  1. Build CLI for Windows x64 with gnu stack
  2. Add smoke tests and artifact uploads for windows builds of analytics-cli.exe
  3. confirm binary works correctly on actual windows machine. CLI is actually build cross tooling on linux machine

Smoke Tests passing on all platforms (including windows) :
https://github.com/trunk-io/analytics-cli/actions/runs/19517735811

@trunk-io
Copy link

trunk-io bot commented Nov 6, 2025

😎 Merged successfully - details.

@codecov-commenter
Copy link

codecov-commenter commented Nov 7, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.81%. Comparing base (ee3daf4) to head (df5daca).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #822      +/-   ##
==========================================
+ Coverage   73.58%   73.81%   +0.22%     
==========================================
  Files          72       72              
  Lines       16168    16168              
==========================================
+ Hits        11898    11935      +37     
+ Misses       4270     4233      -37     

☔ 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.

@trunk-staging-io
Copy link

trunk-staging-io bot commented Nov 7, 2025

Static BadgeStatic BadgeStatic BadgeStatic Badge

View Full Report ↗︎Docs

@trunk-io
Copy link

trunk-io bot commented Nov 7, 2025

Static BadgeStatic BadgeStatic BadgeStatic Badge

View Full Report ↗︎Docs

@EliSchleifer
Copy link
Member Author

Ok - everything is building now and smoke tests are running. There is no special code perse to support windows besides the build structure here to make it build.

I think with the caveat that windows will be experimental for now. We should be able to at least safely land this and cut a pre-release for customer testing

- name: Upload Bundle CLI artifact (Windows)
uses: actions/upload-artifact@v4
if: matrix.platform.target != 'x86_64-unknown-illumos'
if: ${{ matrix.platform.target != 'x86_64-unknown-illumos' && contains(matrix.platform.os-name, 'windows') }}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Since we are already checking for windows, the illumos check here is redundant.

Copy link
Member Author

Choose a reason for hiding this comment

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

good catch

platform:
- os-name: linux-x86_64
runs-on: ubuntu-latest
runs-on: public-amd64-4xlarge-dind-germany
Copy link
Collaborator

Choose a reason for hiding this comment

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

public runners are free in this repo and require less support from platform (we've had a few issues pop up with internal runners because of incompatible changes). Why make this change?

Copy link
Member Author

Choose a reason for hiding this comment

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

the GH supplied runners run out of disk space no matter which way I sliced it. If we need larger runners - we have to pay for that. We do use these in other places - so felt reasonable to take that on.

Copy link
Collaborator

@gnalh gnalh Nov 20, 2025

Choose a reason for hiding this comment

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

We explicitly removed them from this repo because of various issues we kept hitting and limited internal support. We can add them back in temporarily but it'll require more support from platform is issues do pop up again. @pat-trunk-io for viz.

target: aarch64-apple-darwin

- os-name: windows-x86_64
runs-on: public-amd64-4xlarge-dind-germany
Copy link
Collaborator

Choose a reason for hiding this comment

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

same runner question here

Copy link
Member Author

Choose a reason for hiding this comment

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

same

artifact-name: aarch64-apple-darwin

- os-name: windows-x86_64
runs-on: public-amd64-4xlarge-dind-germany
Copy link
Collaborator

Choose a reason for hiding this comment

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

same runner question

Copy link
Member Author

Choose a reason for hiding this comment

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

same

@EliSchleifer
Copy link
Member Author

added -experimental to the release .zip naming structure.

Copy link
Collaborator

@gnalh gnalh left a comment

Choose a reason for hiding this comment

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

Approving, but support will be limited for this functionality.

@trunk-io trunk-io bot merged commit c3e0ee3 into main Nov 20, 2025
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants