-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[META][Windows CI] Getting windows gradle check to green #4924
Comments
Running as Administrator is blocked on windows with #4656. Enforced here. There are a few tests that create symlinks that fail example HierarchyCircuitBreakerServiceTests.testFallbackG1RegionSize I ran everything in |
@mch2 @Poojita-Raj Docker tests and running gradle check with admin |
Listing project wise stats here, ignored means it is already ignored, not a new ignore. WITH admin. rest-api-spec - 1,152 passed, 27 ignored. |
@mch2 what was your process for bypassing the admin check if you don't mind me asking? Did you incorporate it into a script or did you manually run the tests and just not the check file? |
Ran check from intellij with admin: The 9 that fail are in ShardIndexingPressureConcurrentExecutionTests. These also fail from command line, added to list. |
from command line this test passes:
It consistently fails from intellij. |
@scrawfor99 for now i've simply bypassed the check in Working on getting a list of failures without admin. |
Tested |
|
Tested |
Failing for non - Administrator users:
org.opensearch.gradle.tar.SymbolicLinkPreservingTarIT > testTarDoNotPreserveFileTimestamps FAILED org.opensearch.gradle.tar.SymbolicLinkPreservingTarIT > testTar FAILED org.opensearch.gradle.tar.SymbolicLinkPreservingTarIT > testBZip2Tar FAILED org.opensearch.gradle.tar.SymbolicLinkPreservingTarIT > testGZipTar FAILED org.opensearch.gradle.tar.SymbolicLinkPreservingTarIT > testGZipTarDoNotPreserveFileTimestamps FAILED org.opensearch.gradle.tar.SymbolicLinkPreservingTarIT > testBZip2TarDoNotPreserveFileTimestamps FAILED org.opensearch.gradle.tar.SymbolicLinkPreservingTarIT > testBZip2Tar FAILED org.opensearch.gradle.tar.SymbolicLinkPreservingTarIT > testBZip2TarDoNotPreserveFileTimestamps FAILED org.opensearch.gradle.tar.SymbolicLinkPreservingTarIT > testTar FAILED org.opensearch.gradle.tar.SymbolicLinkPreservingTarIT > testTarDoNotPreserveFileTimestamps FAILED org.opensearch.gradle.tar.SymbolicLinkPreservingTarIT > testGZipTar FAILED org.opensearch.gradle.tar.SymbolicLinkPreservingTarIT > testGZipTarDoNotPreserveFileTimestamps FAILED org.opensearch.gradle.tar.SymbolicLinkPreservingTarIT > testBZip2Tar FAILED org.opensearch.gradle.tar.SymbolicLinkPreservingTarIT > testTar FAILED org.opensearch.gradle.tar.SymbolicLinkPreservingTarIT > testTarDoNotPreserveFileTimestamps FAILED org.opensearch.gradle.tar.SymbolicLinkPreservingTarIT > testGZipTarDoNotPreserveFileTimestamps FAILED org.opensearch.gradle.tar.SymbolicLinkPreservingTarIT > testBZip2TarDoNotPreserveFileTimestamps FAILED org.opensearch.gradle.tar.SymbolicLinkPreservingTarIT > testGZipTar FAILED org.opensearch.gradle.tar.SymbolicLinkPreservingTarIT > testGZipTarDoNotPreserveFileTimestamps FAILED org.opensearch.gradle.tar.SymbolicLinkPreservingTarIT > testBZip2Tar FAILED org.opensearch.gradle.tar.SymbolicLinkPreservingTarIT > testTarDoNotPreserveFileTimestamps FAILED org.opensearch.gradle.tar.SymbolicLinkPreservingTarIT > testBZip2TarDoNotPreserveFileTimestamps FAILED org.opensearch.gradle.tar.SymbolicLinkPreservingTarIT > testGZipTar FAILED org.opensearch.gradle.tar.SymbolicLinkPreservingTarIT > testTar FAILED 45 tests completed, 24 failed
|
For Symlink tests here is the summary so far:
I would prefer the first approach as we would still continue to do the tests with regular permissions. You can check for file permissions using |
@saratvemulapalli The question is, do we support symlinks on windows? that's pretty unusual AFAIK, I would be fine with (3) as well |
Dumping all Files.createSymbolicLink locations: Src:
Test code:
|
@dblock @saratvemulapalli I think we can safely go the skip route for All other instances of createSymbolicLink are already skipped. |
BwcTest is the only task within check consistently failing for me now - the following passes for me on main. (had to retry a few times to rule out flakiness).
BwcTest fails because. do not have windows builds for prior versions.
|
@mch2 Is it worth trying to produce a 1-time windows reference build manually with an older version to ensure we exercise the upgrade path in tests before we ship anything? |
I didn't realize bwcTest isn't actually fully executed within check, only a subset, from our docs:
I was able to just get a full passing check on 2.4 so looking to see if that subset is sufficient. If not then yeah we should do a manual build and run all of bwcTest. |
Looking at a successful check run on a 2.4 backport. The bwc tests are running against 1.3.7 and 2.3.1. The tests clone & compile the previous major & minor where running bwcTest alone does not for the additional versions it checks. check runs bwcTestSnapshots (config).
|
Coming from #1448, here is the meta issue tracking all failing tasks/tests on windows gradle check that need to be resolved in order to get gradle check to green.
Cannot run opensearch as root - Grouping failures caused by running as admin:
Should be fixed on reverting #4656
The text was updated successfully, but these errors were encountered: