@DevUt: in an async environment, its usually good practice to not ask yes/no questions, but instead ask questions with details/context.
"Do we have a mentor for the plugin health project yet?"
12 hours later
"no"
12 hours later
"okay i'm interested"
vs
"I'm interested in helping out as a mentor for the plugin health project, is there a mentor yet?"
you saved a bunch of back and forth (just an example, i have no idea why your asking)
Read the documentation for
git maintenance
from https://git-scm.com/docs/git-maintenance for ideas of the types of problems that can exist for git repositories and that benefit from maintenance tasks. Consider alternatives available to perform similar maintenance tasks on a Jenkins controller or on Jenkins agents. Explore the scheduling alternatives available with Jenkins. Install a Jenkins controller, create a multibranch Pipeline with a GitHub branch source provider and look at the caches created on the Jenkins controller. Consider how the Jenkins controller created those caches and how a maintenance job would find those caches and schedule the maintenance work on those caches. Compare the maintenance task results with command line git and JGit. Are all the maintenance operations feasible in JGit.
@aaryan-gautam:matrix.org Not sure if you've read this quoted message before or not but it might help you by answering some of your questions.
Hi Aaryan Gautam Welcome to the community! Regarding the "Automatic git cache maintenance on the controller" project, there are new newbie issues with links at here. While the standard duration of GSoC is 175 hours, it can be hard to gauge whether more time will be needed as every project will be mentored on a case-by-case basis, as the duration has much to do with the GSoC contributor per se. The project length also depends on the scope and number of features you intend to add to the Jenkins controller. The most important thing to note at the beginning is what "git maintenance" is capable of, so that we could also implement this to Jenkins.
On the official git
site it says:
The git maintenance command is designed to simplify the repository maintenance patterns while minimizing user wait time during Git commands. A variety of configuration options are available to allow customizing this process. The default maintenance options focus on operations that complete quickly, even on large repositories.
So this could be a point to keep in mind while developing your own proposal for the project idea.
I am getting the following warning when I try to run mvn clean verify. However, when I try to redirect the -Dfile to Program Files\Java\jdk1.8.0_311\lib\tools.jar, it tells me that the specified file does not exist at the [relative path to]/git/plugin/C:Program. What should I put for -Dfile?
[WARNING] System artifact: com.sun:tools:jar:1.8.0:system has no file attached
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=com.sun -DartifactId=tools -Dversion=1.8.0 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=com.sun -DartifactId=tools -Dversion=1.8.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) com.sun:tools:jar:1.8.0
com.sun:tools:jar:1.8.0
I get 19 errors from which 17 are caused by test timed out exceptions. One of them is from the job not been triggered. Can anyone suggest me when I can start by looking into these errors? When I run the same clone on gitpod, it works fine passing all the testcases.
Expected: is <SUCCESS>
but: was <FAILURE>
[ERROR] JGitSCMTriggerRemotePollTest>SCMTriggerTest.testNamespaces_with_refsHeadsMaster:63->SCMTriggerTest.check:253 Job has not been triggered
[ERROR] Errors:
[ERROR] GitPublisherTest.testForcePush:647->AbstractGitProject.build:205->Object.wait:502->Object.wait:-2 ยป TestTimedOut
[ERROR] GitPublisherTest.testMergeAndPushWithCharacteristicEnvVar:765->checkEnvVar:847->AbstractGitProject.build:205->Object.wait:502->Object.wait:-2 ยป TestTimedOut
[ERROR] GitPublisherTest.testMergeAndPushWithSkipTagEnabled:699->AbstractGitProject.build:205->Object.wait:502->Object.wait:-2 ยป TestTimedOut
[ERROR] GitSCMTest.testBasicExcludedRegion:1094 ยป TestTimedOut test timed out after 18...
[ERROR] GitSCMTest.testEmailCommitter:1802->AbstractGitTestCase.build:246->Object.wait:502->Object.wait:-2 ยป TestTimedOut
[ERROR] GitStatusTest.testDoNotifyCommitWithDefaultUnsafeParameterC:569->doNotifyCommitWithDefaultParameter:607->Object.wait:502->Object.wait:-2 ยป TestTimedOut
[ERROR] RevisionParameterActionTest.testProvidingRevision:51->AbstractGitProject.build:205->Object.wait:502->Object.wait:-2 ยป TestTimedOut
[ERROR] BuildSingleRevisionOnlyTest.testMultiRevision ยป TestTimedOut test timed out af...
[ERROR] CloneOptionHonorRefSpecTest.testRefSpecWithExpandedVariables:144->AbstractGitTestCase.build:246->Object.wait:502->Object.wait:-2 ยป TestTimedOut
[ERROR] MessageExclusionTest.test:37->GitSCMExtensionTest.build:51->Object.wait:502->Object.wait:-2 ยป TestTimedOut
[ERROR] UserExclusionTest.test:39->GitSCMExtensionTest.build:51->Object.wait:502->Object.wait:-2 ยป TestTimedOut
[ERROR] AbstractGitSCMSourceTest.retrieveRevision_customRef:629->Object.wait:502->Object.wait:-2 ยป TestTimedOut
[ERROR] BrowsersJCasCCompatibilityTest>RoundTripAbstractTest.lambda$roundTripTest$0:111->RoundTripAbstractTest.applyConfigViaWebUI:182 ยป TestTimedOut
[ERROR] GitSCMFileSystemTest.ofSourceRevision:138 ยป TestTimedOut test timed out after ...
[ERROR] GitStepTest.changelogAndPolling:132 ยป TestTimedOut test timed out after 180 se...
[ERROR] GitStepTest.roundtrip_withcredentials ยป TestTimedOut test timed out after 180 ...
[ERROR] GitUsernamePasswordBindingTest.test_getCliGitTool_using_FreeStyleProject:242 ยป SocketTimeout
[ERROR] GlobalLibraryWithLegacyJCasCCompatibilityTest>RoundTripAbstractTest.lambda$roundTripTest$0:111->RoundTripAbstractTest.applyConfigViaWebUI:182 ยป TestTimedOut
[ERROR] MergeWithGitSCMExtensionTest.testBasicMergeWithSCMExtension ยป TestTimedOut tes...
[INFO]
[ERROR] Tests run: 4732, Failures: 2, Errors: 19, Skipped: 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 32:44 min
[INFO] Finished at: 2022-02-23T02:55:26-05:00
they are both running maven version 3.8.4 but the java versions are different
(local)
Apache Maven 3.8.4 (9b656c72d54e5bacbed989b64718c159fe39b537)
Maven home: C:\Maven
Java version: 1.8.0_311, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk1.8.0_311\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
(gitpod)
Picked up JAVA_TOOL_OPTIONS: -Xmx3435m
Apache Maven 3.8.4 (9b656c72d54e5bacbed989b64718c159fe39b537)
Maven home: /home/gitpod/.sdkman/candidates/maven/current
Java version: 11.0.13, vendor: Azul Systems, Inc., runtime: /home/gitpod/.sdkman/candidates/java/11.0.13.fx-zulu
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "5.13.0-1015-gcp", arch: "amd64", family: "unix"
Is the intention to find URLs in a string? Or to validate URLs? For the first the stack overflow solutions have kinda been crowd sourced so pretty solid - https://stackoverflow.com/questions/161738/what-is-the-best-regular-expression-to-check-if-a-string-is-a-valid-url
For validating, you should use the url class. It'll be more reliable than anything you come up with