Skip to content

[chore][ci] improve Build gotestsum for Windows#43020

Merged
atoulme merged 3 commits into
open-telemetry:mainfrom
paulojmdias:chore/ci_windows_gotestsum
Sep 28, 2025
Merged

[chore][ci] improve Build gotestsum for Windows#43020
atoulme merged 3 commits into
open-telemetry:mainfrom
paulojmdias:chore/ci_windows_gotestsum

Conversation

@paulojmdias
Copy link
Copy Markdown
Member

@paulojmdias paulojmdias commented Sep 26, 2025

Description

Seems the CI for scoped-tests-matrix (windows-latest) is failing due to the Build gotestsum on Windows error.

Run make "$(${PWD} -replace '\\', '/')/.tools/gotestsum"
make: *** No rule to make target 'D:/a/opentelemetry-collector-contrib/opentelemetry-collector-contrib/.tools/gotestsum'.  Stop.
Error: Process completed with exit code 1.

See https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/18048822328/job/51369899669?pr=43018 and https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/18050658515/job/51371803867?pr=43019

I think we can simplify the Build gotestsum task into a single one using the working-directory definition, and this should fix the issue.

Found the issue in:

Signed-off-by: Paulo Dias <paulodias.gm@gmail.com>
@paulojmdias paulojmdias marked this pull request as ready for review September 26, 2025 22:33
@paulojmdias paulojmdias requested a review from a team as a code owner September 26, 2025 22:33
@atoulme atoulme added os:windows Run Windows Enable running windows test on a PR labels Sep 26, 2025
@pjanotti
Copy link
Copy Markdown
Contributor

Hi @paulojmdias, yes this can be reduced to one single step but I think that we need to fix the target itself, this was introduced by my change to be able to run generate on Windows. Looking...

@pjanotti
Copy link
Copy Markdown
Contributor

@paulojmdias let's revert my previous PR while we investigate the proper fix, but to your point: yes, let's merge those 2 steps into a single one.

atoulme pushed a commit that referenced this pull request Sep 27, 2025
)

This broke build of `gotestsum` in the `scoped-tests`, see #43020 

cc @paulojmdias @atoulme
@paulojmdias
Copy link
Copy Markdown
Member Author

@pjanotti Yes, the revert was fixed the pipeline issue. I will let this PR open if even make sense for you to make those steps in a single one 👍

@atoulme atoulme merged commit 01af656 into open-telemetry:main Sep 28, 2025
220 checks passed
@github-actions github-actions Bot added this to the next release milestone Sep 28, 2025
atoulme added a commit to atoulme/opentelemetry-collector-contrib that referenced this pull request Sep 28, 2025
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->

Seems the CI for `scoped-tests-matrix (windows-latest)` is failing due
to the `Build gotestsum on Windows` error.

```sh
Run make "$(${PWD} -replace '\\', '/')/.tools/gotestsum"
make: *** No rule to make target 'D:/a/opentelemetry-collector-contrib/opentelemetry-collector-contrib/.tools/gotestsum'.  Stop.
Error: Process completed with exit code 1.
```

See
https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/18048822328/job/51369899669?pr=43018
and
https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/18050658515/job/51371803867?pr=43019

I think we can simplify the `Build gotestsum` task into a single one
using the `working-directory` definition, and this should fix the issue.

Found the issue in:
-
open-telemetry#43018
-
open-telemetry#43019

Signed-off-by: Paulo Dias <paulodias.gm@gmail.com>
Co-authored-by: Antoine Toulme <atoulme@splunk.com>
atoulme added a commit to atoulme/opentelemetry-collector-contrib that referenced this pull request Sep 28, 2025
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->

Seems the CI for `scoped-tests-matrix (windows-latest)` is failing due
to the `Build gotestsum on Windows` error.

```sh
Run make "$(${PWD} -replace '\\', '/')/.tools/gotestsum"
make: *** No rule to make target 'D:/a/opentelemetry-collector-contrib/opentelemetry-collector-contrib/.tools/gotestsum'.  Stop.
Error: Process completed with exit code 1.
```

See
https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/18048822328/job/51369899669?pr=43018
and
https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/18050658515/job/51371803867?pr=43019

I think we can simplify the `Build gotestsum` task into a single one
using the `working-directory` definition, and this should fix the issue.

Found the issue in:
-
open-telemetry#43018
-
open-telemetry#43019

Signed-off-by: Paulo Dias <paulodias.gm@gmail.com>
Co-authored-by: Antoine Toulme <atoulme@splunk.com>
@paulojmdias paulojmdias deleted the chore/ci_windows_gotestsum branch September 28, 2025 07:48
if: runner.os != 'Windows'
run: make "$PWD/.tools/gotestsum"
working-directory: ${{ github.workspace }}
run: make .tools/gotestsum
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The target needs to be the full path, as it is it breaks the step.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Fixing the target via #43036

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

os:windows Run Windows Enable running windows test on a PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants