-
Notifications
You must be signed in to change notification settings - Fork 130
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
config: migrate all openjdk repositories in projects-to-test-on to github mirrors(#524) #527
Conversation
Before I mark this ready for review, we need to resolve two items:
|
282d40d
to
b6dbbed
Compare
Regression on Openjdk10 and Openjdk9 is still suffering from a similar failure JXR failure that Openjdk11 and Openjdk 14. I am going to investigate what the differences between the mercurial and git repos are, since we had no problems with Openjdk9 in the past. Edit:
As in the case of Openjdk11 and Openjdk14, it is likely that |
No need. Let's keep single but well filtered.
Please update
Please proceed to remove |
@nmancus1 ping? |
@rnveach Sorry, I have finals this week and next, I was putting the removal of jxr and maven-checkstyle-plugin off until the end of next week. |
b6dbbed
to
b25f5db
Compare
b25f5db
to
ac91618
Compare
@rnveach Commit
|
@nmancus1 please split this PR between JXR removal and migrating mirrors. If you agree with plan at checkstyle/checkstyle#9121 (comment) , gutting launch of HTML files is fine with me. |
ac91618
to
2a924dd
Compare
Blocked by #530 ( see #531 (comment) ) |
2a924dd
to
3cc6d59
Compare
bf41d62
to
295bf49
Compare
@nmancus1 Something happened with the PR, it contains the previous PR's changes too. Also please tie this to #524 in commit message. |
295bf49
to
3fe8c40
Compare
Done, I thought I had fixed it before anyone noticed :) |
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.
Quick question..
@nmancus1 It looks like connected issue is resolved. Maybe we could finish this now? |
3fe8c40
to
bdc02ae
Compare
PR to demo new repo at checkstyle/checkstyle#10911 |
@rnveach I have not been able to reproduce failure at checkstyle/checkstyle#10911 locally at all. The way I see it, we can proceed a few different ways here:
I would like to do (2). Please share your thoughts. |
Is this the only file with an issue or are there more? |
I think the only way to determine this definitively would be to allow exclusions in diff report generation and try it out in GitHub action CI. Since I cannot reproduce this failure locally, I can't guarantee that there isn't more files like this. But, after thinking on this for awhile, we should really allow exclusions anyway, so that we can run regression in GitHub actions on the newest or at least more current jdk. We still really don't have any projects in the projects file that extensively use newer syntax. |
@rnveach to be clear, should I send a PR to main Checkstyle repo to allow exclusions in diff report generation? |
Is main repo doing "launch" or diff? The only way main repo can exclude files is to delete them after the cloning and even still I think the diff-side groovy script controls everything. It was not built for excluding files when doing regression. I was looking to understand how many files we would need to exclude to determine how we would handle this list, if it is just 1 file or many. |
Support for exclusions was added to
It would be best to:
Otherwise, there is no way to know exactly which files will fail in github actions servers. Just because I can complete this task locally does not mean that it will succeed on github actions, the servers used are not spectacular: https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners |
Again, finishing locally will atleast tell us if we need to support a small list or a large list.
|
Use the property |
If we just use openjdk16 (which we should), we can look to https://github.com/checkstyle/checkstyle/blob/a7a3f7ac2766fddcc00b752f91e8c31cafdd61e6/.ci/openjdk16-excluded.files for the exact list of files to use |
Yes, it makes more sense we combine this into 1 effort. |
bdc02ae
to
2f6ed94
Compare
Proof of successful parsing of new openjdk project here: https://checkstyle-diff-reports.s3.us-east-2.amazonaws.com/10a2890_2021173033/reports/diff/index.html |
#All details at checkstyle/checkstyle#3033: ModalDialogActivationTest till JDK-8166015 ; 'jxc/8073519/**' not compilable by design ; ', jhsdb/**' - checkstyle do not support unicode identifiers | ||
#openjdk9|hg|http://hg.openjdk.java.net/jdk9/jdk9/jdk/|default|**/test/java/awt/Focus/ModalDialogActivationTest/ModalDialogActivationTest.java,**/test/javax/xml/bind/jxc/8073519/**,**/test/sun/tools/jhsdb/** | ||
# we exclude files listed in https://github.com/checkstyle/checkstyle/blob/master/.ci/openjdk16-excluded.files | ||
# openjdk16|git|https://github.com/AdoptOpenJDK/openjdk-jdk16.git|master|**/test/langtools/jdk/javadoc/doclet/testSupplementary/C.java,**/test/hotspot/jtreg/runtime/exceptionMsgs/methodPrinting/TestPrintingMethods.java,**/test/jdk/sun/tools/jhsdb/LingeredAppWithExtendedChars.java,**/test/jdk/sun/tools/jhsdb/HeapDumpTest.java,**/test/langtools/tools/javac/MethodParameters/UncommonParamNames.java,**/test/langtools/tools/javac/unicode/UnicodeAtEOL.java,**/test/langtools/tools/javac/unicode/UnicodeCommentDelimiter.java,**/test/langtools/tools/javac/unicode/FirstChar2.java,**/test/langtools/tools/javac/DeepStringConcat.java,**/test/langtools/tools/javac/T8185983/RejectTypeArgsOnSelectTest.java,**/test/langtools/tools/javac/diags/examples/InitializerNotAllowed.java,**/test/langtools/tools/javac/diags/examples/NotAllowedVariable.java,**/test/langtools/tools/javac/QualifiedAccess/QualifiedAccess_4.java,**/test/langtools/tools/javac/patterns/NoModifiersOnBinding.java,**/test/langtools/tools/javac/ExtendArray.java,**/test/langtools/tools/javac/unicode/TripleQuote.java,**/test/langtools/tools/javac/unicode/SupplementaryJavaID4.java,**/test/langtools/tools/javac/unicode/SupplementaryJavaID3.java,**/test/langtools/tools/javac/unicode/SupplementaryJavaID2.java,**/test/langtools/tools/javac/unicode/SupplementaryJavaID5.java,**/test/langtools/tools/javac/unicode/NonasciiDigit.java,**/test/langtools/tools/javac/unicode/SupplementaryJavaID1.java,**/test/langtools/tools/javac/processing/errors/TestParseErrors/ParseErrors.java,**/test/langtools/tools/javac/T8026963/TypeAnnotationsCrashWithErroneousTreeTest.java,**/test/langtools/tools/javac/lambda/funcInterfaces/LambdaTest1_neg1.java,**/test/langtools/tools/javac/processing/6994946/SyntaxErrorTest.java,**/test/langtools/tools/javac/lambda/lambdaExpression/InvalidExpression1.java,**/test/langtools/tools/javac/lambda/8131742/T8131742.java,**/test/langtools/tools/javac/rawDiags/Error.java,**/test/langtools/tools/javac/T4994049/T4994049.java,**/test/langtools/tools/javac/T6882235.java,**/test/langtools/tools/javac/6440583/A.java,**/test/langtools/tools/javac/enum/EnumAsIdentifier.java,**/test/langtools/tools/javac/enum/EnumMembersOrder.java,**/test/langtools/jdk/javadoc/doclet/testSourceTab/SingleTab/C.java,**/test/langtools/jdk/javadoc/doclet/testSourceTab/DoubleTab/C.java,**/test/langtools/tools/javac/Digits.java,**/test/langtools/tools/javac/unicode/SupplementaryJavaID6.java,**/test/langtools/tools/javac/annotations/typeAnnotations/failures/IndexArray.java,**/test/langtools/tools/javac/annotations/typeAnnotations/failures/target/IncompleteArray.java,**/test/langtools/tools/javac/annotations/typeAnnotations/failures/StaticFields.java,**/test/langtools/tools/javac/annotations/typeAnnotations/failures/BadCast.java,**/test/langtools/tools/javac/annotations/typeAnnotations/failures/AnnotatedPackage2.java,**/test/langtools/tools/javac/annotations/typeAnnotations/failures/IncompleteArray.java,**/test/langtools/tools/javac/annotations/typeAnnotations/failures/AnnotatedImport.java,**/test/langtools/tools/javac/annotations/typeAnnotations/failures/AnnotatedMethodSelectorTest.java,**/test/langtools/tools/javac/annotations/typeAnnotations/failures/OldArray.java,**/test/langtools/tools/javac/annotations/typeAnnotations/failures/AnnotatedPackage1.java,**/test/langtools/tools/javac/annotations/typeAnnotations/6967002/T6967002.java,**/test/langtools/tools/javac/annotations/neg/Z5.java,**/test/langtools/tools/javac/annotations/neg/AnnComma.java,**/test/langtools/tools/javac/annotations/neg/Z9.java,**/test/langtools/tools/javac/annotations/neg/Z2.java,**/test/langtools/tools/javac/annotations/neg/NoDefault.java,**/test/langtools/tools/javac/annotations/neg/Z8.java,**/test/langtools/tools/javac/annotations/neg/NoStatic.java,**/test/langtools/tools/javac/annotations/neg/Z3.java,**/test/langtools/tools/javac/annotations/neg/Z13.java,**/test/langtools/tools/javac/annotations/neg/Z14.java,**/test/langtools/tools/javac/annotations/neg/Syntax1.java,**/test/langtools/tools/javac/diags/examples/IllegalArrayCreation.java,**/test/langtools/tools/javac/diags/examples/ExpectedModule.java,**/test/langtools/tools/javac/diags/examples/TryWithResourcesExprNeedsVar.java,**/test/langtools/tools/javac/diags/examples/MalformedFpLit.java,**/test/langtools/tools/javac/diags/examples/TextBlockCloseDelimiter.java,**/test/langtools/tools/javac/diags/examples/AnnotationMustBeNameValue.java,**/test/langtools/tools/javac/diags/examples/IllegalStartOfStmt.java,**/test/langtools/tools/javac/diags/examples/UnclosedStringLiteral.java,**/test/langtools/tools/javac/diags/examples/Expected3.java,**/test/langtools/tools/javac/diags/examples/VarargsAndReceiver.java,**/test/langtools/tools/javac/diags/examples/Orphaned.java,**/test/langtools/tools/javac/diags/examples/IllegalEscapeChar.java,**/test/langtools/tools/javac/diags/examples/UnclosedComment.java,**/test/langtools/tools/javac/diags/examples/IntNumberTooLarge.java,**/test/langtools/tools/javac/diags/examples/IllegalUnderscore.java,**/test/langtools/tools/javac/diags/examples/IllegalDot.java,**/test/langtools/tools/javac/diags/examples/PrematureEOF.java,**/test/langtools/tools/javac/diags/examples/AssertAsIdentifier2.java,**/test/langtools/tools/javac/diags/examples/Expected2.java,**/test/langtools/tools/javac/diags/examples/IntfAnnotationCantHaveTypeParams.java,**/test/langtools/tools/javac/DefiniteAssignment/ConstantInfiniteWhile.java,**/test/langtools/tools/javac/EOI.java,**/test/langtools/tools/javac/quid/T6999438.java,**/test/langtools/tools/javac/Parens3.java,**/test/langtools/tools/javac/policy/test3/A.java,**/test/langtools/jdk/javadoc/tool/T4994049/FileWithTabs.java,**/test/langtools/tools/javac/IllegalAnnotation.java,**/test/langtools/tools/javac/BadHexConstant.java,**/test/langtools/tools/javac/diags/examples/UnclosedCharLiteral.java,**/test/langtools/tools/javac/diags/examples/TryWithoutCatchOrFinallyOrResource.java,**/test/langtools/tools/javac/diags/examples/CannotCreateArrayWithTypeArgs.java,**/test/langtools/tools/javac/diags/examples/IllegalLineEndInCharLit.java,**/test/langtools/tools/javac/diags/examples/ExplicitImplicitLambda.java,**/test/langtools/tools/javac/diags/examples/EnumConstantExpected.java,**/test/langtools/tools/javac/diags/examples/VarInImplicitLambda.java,**/test/langtools/tools/javac/diags/examples/SwitchCaseUnexpectedStatement.java,**/test/langtools/tools/javac/diags/examples/IllegalStartOfExpr.java,**/test/langtools/tools/javac/diags/examples/IllegalStartOfType.java,**/test/langtools/tools/javac/diags/examples/IntfAnnotationsCantHaveParams.java,**/test/langtools/tools/javac/diags/examples/ForeachBadInitialization.java,**/test/langtools/tools/javac/diags/examples/SwitchMixingCaseTypes.java,**/test/langtools/tools/javac/diags/examples/DotClassExpected.java,**/test/langtools/tools/javac/diags/examples/ElseWithoutIf.java,**/test/langtools/tools/javac/diags/examples/IdentifierExpected.java,**/test/langtools/tools/javac/diags/examples/IntfAnnotationsCantHaveTypeParams.java,**/test/langtools/tools/javac/diags/examples/FinallyWithoutTry.java,**/test/langtools/tools/javac/diags/examples/IncorrectRecordDeclaration.java,**/test/langtools/tools/javac/diags/examples/EnumConstantNotExpected.java,**/test/langtools/tools/javac/diags/examples/CallMustBeFirst.java,**/test/langtools/tools/javac/diags/examples/ThrowsNotAllowedInAnno.java,**/test/langtools/tools/javac/diags/examples/VarAllOrNothing.java,**/test/langtools/tools/javac/diags/examples/WrongReceiver.java,**/test/langtools/tools/javac/diags/examples/DefaultAllowedInIntfAnnotationMember.java,**/test/langtools/tools/javac/diags/examples/ModuleDeclSbInModuleInfoJava.java,**/test/langtools/tools/javac/diags/examples/IllegalNonAsciiDigit.java,**/test/langtools/tools/javac/diags/examples/CatchWithoutTry.java,**/test/langtools/tools/javac/diags/examples/ProcessorWrongType/ProcessorWrongType.java,**/test/langtools/tools/javac/diags/examples/InvalidBinaryNumber.java,**/test/langtools/tools/javac/diags/examples/InvalidHexNumber.java,**/test/langtools/tools/javac/diags/examples/EmptyCharLiteral.java,**/test/langtools/tools/javac/diags/examples/RecordsCantDeclareComponentModifiers.java,**/test/langtools/tools/javac/diags/examples/IllegalChar.java,**/test/langtools/tools/javac/diags/examples/NotAllowedClass.java,**/test/langtools/tools/javac/diags/examples/ArrayDimMissing.java,**/test/langtools/tools/javac/diags/examples/IllegalAnnotationDeclaration.java,**/test/langtools/tools/javac/diags/examples/EnumAsIdentifier2.java,**/test/langtools/tools/javac/diags/examples/ThisAsIdentifier.java,**/test/langtools/tools/javac/diags/examples/VarargsMustBeLast.java,**/test/langtools/tools/javac/diags/examples/CantExtendIntfAnno.java,**/test/langtools/tools/javac/diags/examples/RecordsComponentsCanNotDeclareCStyleArrays.java,**/test/langtools/jdk/javadoc/tool/6964914/Error.java,**/test/langtools/jdk/javadoc/doclet/testUnnamedPackage/BadSource.java,**/test/langtools/jdk/javadoc/tool/T4994049/FileWithTabs.java,**/test/langtools/jdk/javadoc/doclet/testUnnamedPackage/BadSource.java,**/test/langtools/jdk/javadoc/doclet/testSupplementary/C.java,**/test/langtools/jdk/javadoc/doclet/testSourceTab/SingleTab/C.java,**/test/langtools/jdk/javadoc/doclet/testSourceTab/DoubleTab/C.java,**/test/langtools/tools/javac/enum/EnumAsIdentifier.java,**/test/langtools/tools/javac/enum/EnumMembersOrder.java,**/test/langtools/tools/javac/T6882235.java,**/test/langtools/tools/javac/T4994049/T4994049.java,**/test/langtools/tools/javac/MethodParameters/UncommonParamNames.java,**/test/langtools/tools/javac/rawDiags/Error.java,**/test/langtools/tools/javac/T8026963/TypeAnnotationsCrashWithErroneousTreeTest.java,**/test/langtools/tools/javac/lambda/lambdaExpression/InvalidExpression1.java,**/test/langtools/tools/javac/lambda/8131742/T8131742.java,**/test/langtools/tools/javac/lambda/BadLambdaPos.java,**/test/langtools/tools/javac/lambda/funcInterfaces/LambdaTest1_neg1.java,**/test/langtools/tools/javac/lambda/TargetType17.java,**/test/langtools/tools/javac/lambda/BadLambdaPos.java,**/test/langtools/tools/javac/lambda/TargetType17.java,**/test/langtools/tools/javac/annotations/typeAnnotations/failures/CheckErrorsForSource7.java,**/test/langtools/tools/javac/annotations/typeAnnotations/failures/target/DotClass.java,**/test/langtools/tools/javac/annotations/typeAnnotations/failures/AnnotatedClassExpr.java,**/test/langtools/tools/javac/annotations/repeatingAnnotations/brokenTypeAnnoContainer/BrokenTypeAnnoContainer.java,**/test/langtools/tools/javac/diags/examples/AnnotationsAfterTypeParamsNotSupportedInSource.java,**/test/langtools/tools/javac/diags/examples/NoAnnotationsOnDotClass.java,**/test/langtools/tools/javac/diags/examples/TypeAnnotationsNotSupported.java,**/test/langtools/tools/javac/diags/examples/InterfaceNotAllowed.java,**/test/langtools/tools/javac/diags/examples/IllegalUnicodeEscape.java,**/test/langtools/tools/javac/treeannotests/AnnoTreeTests.java,**/test/langtools/tools/javac/ImportUnnamed/foo/A.java,**/test/langtools/tools/javac/BadAnnotation.java,**/test/langtools/tools/javac/SwitchScope.java,**/test/langtools/tools/javac/TryWithResources/BadTwrSyntax.java,**/test/langtools/tools/javac/generics/typevars/6680106/T6680106.java,**/test/langtools/tools/javac/api/T6265137a.java,**/test/langtools/tools/javac/TryWithResources/ResDeclOutsideTry.java,**/test/langtools/tools/javac/TryWithResources/TwrForVariable2.java,**/test/langtools/tools/javac/T8203813/WrongReceiverTest.java,**/test/langtools/tools/javac/UncaughtOverflow.java,**/test/langtools/tools/javac/ExtraneousEquals.java,**/test/langtools/tools/javac/literals/BadBinaryLiterals.java,**/test/langtools/tools/javac/literals/T6891079.java,**/test/langtools/tools/javac/literals/BadUnderscoreLiterals.java,**/test/langtools/tools/javac/parser/T4881269.java,**/test/langtools/tools/javac/parser/MissingClosingBrace.java,**/test/langtools/tools/javac/parser/7157165/T7157165.java,**/test/langtools/tools/javac/parser/ErroneousParameters.java,**/test/langtools/tools/javac/parser/SingleCommaAnnotationValueFail.java,**/test/langtools/tools/javac/switchextra/SwitchStatementBroken.java,**/test/langtools/tools/javac/switchextra/SwitchStatementBroken2.java,**/test/langtools/tools/javac/switchextra/SwitchArrowBrokenConstant.java,**/test/langtools/tools/javac/T8175198/AnnotationsAndFormalParamsTest.java,**/test/langtools/tools/javac/incompleteStatements/T8000484.java,**/test/langtools/tools/javac/T8181464/LambdaInAnnotationsCausesNPETest1.java,**/test/langtools/tools/javac/T8181464/LambdaInAnnotationsCausesNPETest2.java,**/test/langtools/tools/javac/8245153/T8245153.java,**/test/langtools/tools/javac/api/TestGetElementReferenceDataWithErrors.java,**/test/langtools/tools/javac/failover/FailOver15.java,**/test/langtools/tools/javac/failover/FailOver01.java,**/test/langtools/tools/javac/TryWithResources/PlainTry.java,**/test/langtools/tools/javac/var_implicit_lambda/VarInImplicitLambdaNegTest01.java,**/test/langtools/tools/javac/parser/8081769/T8081769.java,**/test/langtools/tools/javac/LabeledDeclaration.java,**/test/langtools/tools/javac/generics/6413682/T6413682.java,**/src/java.desktop/**,**/src/java.datatransfer/**| |
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.
@romani I feel we need to discuss functionality to allow exclude list to be in a file and not rely on this gigantic one line list of 13k characters. This is not the way to go, especially when we are trying to limit our own files in our repo to 100 characters.
I will create issue on this to not impede this PR.
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.
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, this 10 years old quick-hack over idea how to do regression testing surprisingly still in service, but it is clear that there is bunch of need to make it different.
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.
ok to merge meanwhile it is upleasantly long line
Issue #524: migrate all openjdk repositories in projects-to-test-on.properties to github mirrors
Openjdk 16 project has been added, and all others replaced.