forked from typetools/checker-framework
-
Notifications
You must be signed in to change notification settings - Fork 18
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
Increase dependency review severity requirement and work around dataflow test failures #852
Merged
Merged
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
16aa4f5
Use gradlew debug to see why dataflow fails
Ao-senXiong f58ec40
Move delete lines to doLast block and see if it works
Ao-senXiong dbf6172
Stacktrace for nonjunit test as well
Ao-senXiong babd5ee
Add --info --stacktrace --scan for both tests
Ao-senXiong 243de01
It stops failing now...
Ao-senXiong 53ba049
Remove the compiler options in nonjunit test and try
Ao-senXiong 7b2200c
Add debug options to junit-jdk21 and nonjunit
Ao-senXiong 140c4ea
Don't do scan for junit job
Ao-senXiong cf3ce31
Add back scan for junit job
Ao-senXiong 8c8fb25
Merge branch 'master' into test-ci-dataflow
Ao-senXiong df893eb
Empty commit for CI
Ao-senXiong 61e9e65
Empty commit for CI
Ao-senXiong a0c59ce
Empty commit for CI
Ao-senXiong 706e599
Empty commit for CI
Ao-senXiong 0d0aba7
Remove info for junit test
Ao-senXiong 470e93e
Remove scan for junit test
Ao-senXiong c50f1a9
Remove stacktrace and add back scan for junit test
Ao-senXiong bfb0e24
Remove scan and add debug for junit test
Ao-senXiong 9e2ac2e
Try with only one worker
Ao-senXiong 867253c
Try with only one worker for all scripts
Ao-senXiong e1de461
Empty commit for CI
Ao-senXiong 714d271
Only fail when the severity is critical
Ao-senXiong e3dd7be
Empty commit for CI
Ao-senXiong 035e85d
Empty commit for CI
Ao-senXiong f76acf0
Update fail on severity to high
Ao-senXiong c717030
Merge branch 'master' into test-ci-dataflow
Ao-senXiong 592eeb8
Update script with comment and issue link
Ao-senXiong 9c4c12a
Apply suggestions from code review
wmdietl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In #858 I'm trying to disable the configuration cache instead. That is what we did manually to fix the flakiness, so hopefully that also works here.
There is some connectedness here, too: https://docs.gradle.org/current/userguide/performance.html#additional_configuration_cache_benefits says that the configuration cache
Executes all tasks in parallel
. So maybe disabling the configuration cache does more than just setting the max-workers to 1.This doc says that by default the configuration cache is off, but probably our CI setup enables it somehow.
That doc also says that
--parallel
is off by default, but it's not clear to me what the relation betweenmax-workers
andparallel
is... Are the workers still used in parallel even ifparallel
is off? Strange...But maybe the combination here is better. Anyways, there is more documentation here https://docs.gradle.org/current/userguide/configuration_cache.html and https://docs.gradle.org/current/userguide/performance.html#enable_configuration_cache
I also note that in typetools PRs 6422 and 6564 the
maxParallelForks
option is set for tests instead. There is some Azure-specific logic. It's again unclear what the relation betweenparallel forks
andmax workers
is.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From #858 it seems to be the build cache, not the configuration cache, that is causing the problems. So is it better to only have 1 worker or have the build cache? Can you compare timing between the two fixes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure, maybe let's wait the ci finishes and do rerun a few times. We can see the how long does the junit, non-junit and junit java 21 task takes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both this PR and #858 take about 11h 42m... Let's just keep the solution here.
Can you update the .sh files and add a comment before why we're adding the flag, maybe that disabling the build cache would be an alternative.
If this closes issue #849, let's add a changelog entry. Alternatively, we can keep #849 open and see whether we fix the actual build issue within dataflow tests at some point.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure.
I prefer to keep #849. I think the reason might be some task should be execute before
dataflow:busyexpression
.