Skip to content

Conversation

@jsoriano
Copy link
Member

@jsoriano jsoriano commented Mar 3, 2023

When looking for the repository root in Windows, if the command hasn't been called inside a git repository, the search will loop forever, hanging the process. Same thing happens when looking for package root.

Finalization condition is based on checking all parent directories till root, but root was checked with "/", that will never be the case in Windows.

Changed to take into account the volume name and the OS-specific path separator.

Add step to buildkite pipeline to run unit tests on Windows.

Fixes #1100.

When looking for the repository root in Windows, if the command hasn't
been called inside a git repository, the search will loop forever.

Finalization condition is based on checking al parent directories till
root, but root was checked with "/", that will never be the case in
Windows.

Changed to take into account the volume name and the OS-specific path
separator.
@jsoriano jsoriano requested a review from a team March 3, 2023 11:24
@jsoriano jsoriano self-assigned this Mar 3, 2023
@elasticmachine
Copy link
Collaborator

elasticmachine commented Mar 3, 2023

💚 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

  • Start Time: 2023-03-06T13:25:41.832+0000

  • Duration: 2 min 56 sec

🤖 GitHub comments

Expand to view the GitHub comments

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

  • /test : Re-trigger the build.

@jsoriano jsoriano force-pushed the find-repo-root-windows branch 6 times, most recently from 609795e to c2c9511 Compare March 6, 2023 13:13
Co-Authored-By: Mario Rodriguez Molins <mario.rodriguez@elastic.co>
@jsoriano jsoriano force-pushed the find-repo-root-windows branch from c2c9511 to 89ef17a Compare March 6, 2023 13:25
@jsoriano jsoriano marked this pull request as ready for review March 6, 2023 14:38
Copy link
Contributor

@mrodm mrodm left a comment

Choose a reason for hiding this comment

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

Thanks for adding the step for Windows 👍

@mrodm
Copy link
Contributor

mrodm commented Mar 8, 2023

/test

@jsoriano jsoriano merged commit 365c717 into elastic:main Mar 10, 2023
@jsoriano jsoriano deleted the find-repo-root-windows branch March 10, 2023 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

elastic-package starts but does nothing Windows 11

3 participants