Skip to content
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

fix: windows issues #446

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

fix: windows issues #446

wants to merge 9 commits into from

Conversation

peakschris
Copy link

@peakschris peakschris commented Jun 29, 2024

There are multiple issues on windows:

  1. feat: case insensitive diff_test and fix manifest bug bazelbuild/bazel-skylib#527
  2. Tests fail on windows after git clone with default settings #448
  3. chore: buildifier_prebuilt needs bump to 6.1.2 for windows binaries #449
  4. bzlformat_lint_test fails on windows due to createprocess issue #447
  5. release_artifact_tests fail with tar error on windows #450

Issues 2-5 above are all fixed by this PR

Test results (windows)

(still filling in these results)
Before
--enable_runfiles 332 failures
--noenable_run

With buildifier_prebuilt update only
--enable_runfiles 116 failures
--noenable_run 154 failures + skips

With this PR only
--enable_runfiles 34 failures
--noenable_runfiles 122 failures + skips

With this PR and bazelbuild/bazel-skylib#527
--enable_runfiles 0 failures
--noenable_runfiles 85 failures

Future activity

Note: most of the --noenable_runfiles failures are of this form. It seems that bzlformat_lint_test.sh is designed to require runfiles.

INFO: From Testing //tests/shlib_tests/lib_tests/files_tests:bzlformat_lint_test:
==================== Test output for //tests/shlib_tests/lib_tests/files_tests:bzlformat_lint_test:
D:/udu/b/356umzpb/execroot/_main/bazel-out/x64_windows-fastbuild/bin/tests/shlib_tests/lib_tests/files_tests/bzlformat_lint_test.sh: line 14: tests/shlib_tests/lib_tests/files_tests/bzlformat_lint_test_BUILD.bazel.sh: No such file or directory
tests/shlib_tests/lib_tests/files_tests/bzlformat_lint_test_BUILD.bazel.sh failed with 127.
1 lint tests failed.
================================================================================

Look into this:

INFO: From Action tests/bzlrelease_tests/rules_tests/generate_workspace_snippet_tests/archive_sha256:
which: no shasum in (/usr/bin:/usr/bin:/bin:/c/WINDOWS:/c/WINDOWS/System32:/c/WINDOWS/System32/WindowsPowerShell/v1.0)

@peakschris
Copy link
Author

@cgrindel thanks for your review. It looks like a bunch of CI checks failed with an API key error, could you help with that?

cgrindel pushed a commit to bazel-contrib/rules_bazel_integration_test that referenced this pull request Jul 3, 2024
There are four issues when running on windows:

1.
#330
2.
#331
3.
#332
4.
#333

This PR fixes 3 and 4.

There are related PRs in bazel-skylib and bazel-starlib. There is no
dependency -- the PRs can close in any order.
- cgrindel/bazel-starlib#446 (fixes 1)
- bazelbuild/bazel-skylib#527 (fixes 2)

### Test results:
Before:
--enable_runfiles: 0 pass
--noenable_runfiles: 0 pass

After this PR:
--enable_runfiles: 52 pass, 19 failures
--noenable_runfiles: 51 pass, 20 failures (17 are doc diff-tests due to
bazel-starlib)

After this PR, together with wip PRs for 1 and 2:
--enable_runfiles: 71 pass, 0 failures
--noenable_runfiles: 51 pass, 20 failures (all due to bazel-starlib)
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.

2 participants