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

[MJAVADOC-726] exclude velocity #243

Merged
merged 2 commits into from
Sep 24, 2023
Merged

[MJAVADOC-726] exclude velocity #243

merged 2 commits into from
Sep 24, 2023

Conversation

elharo
Copy link
Contributor

@elharo elharo commented Sep 21, 2023

Alternate approach to keeping log4j out of the tree by excluding velocity-tools.

Nuked log4j from my .m2/repo and verified that the sample project does not download log4j when generating javadoc with 3.6.1-SNAPSHOT with this patch

Tests pass locally

@michael-o
Copy link
Member

Let's wait for CI.

@elharo
Copy link
Contributor Author

elharo commented Sep 21, 2023

CI being flaky. I'll rerun if needed

Recording test results

[GitHub Checks] Causes for no suitable publisher found:
[GitHub Checks] Trying to resolve checks parameters from GitHub SCM...
[GitHub Checks] No GitHub app credentials found: '5f95d117-af3b-452a-9e5c-4bddb22a67f4'
[GitHub Checks] See: https://github.com/jenkinsci/github-branch-source-plugin/blob/master/docs/github-app.adoc
[GitHub Checks] Trying to resolve checks parameters from Git SCM...
[GitHub Checks] Job does not use Git SCM
[Checks API] No suitable checks publisher found.

@elharo
Copy link
Contributor Author

elharo commented Sep 21, 2023

same failure as before on JDK 8 Linux:

Error: The following builds failed:
Error: * MJAVADOC-427/pom.xml

Looks like it might be an IT that's checking for very specific output.

@elharo
Copy link
Contributor Author

elharo commented Sep 21, 2023

Problem in IT is looking for the regexp

Link to slf4j <a href=".*?".*?><code>LoggerFactory<\/code><\/a>

but it's finding

Link to slf4j <code>LoggerFactory<\/code>

That is, the link has vanished. That might be significant.

@michael-o
Copy link
Member

same failure as before on JDK 8 Linux:

Error: The following builds failed: Error: * MJAVADOC-427/pom.xml

Looks like it might be an IT that's checking for very specific output.

Please check these...

@elharo
Copy link
Contributor Author

elharo commented Sep 22, 2023

same IT failed in the same way in the effort to upgrade to 1.2.17. I still don't see how this change would cause that particular failure since neither doxia nor log4j is involved in that code path. Need to check what happens with an innocuous change

@elharo
Copy link
Contributor Author

elharo commented Sep 22, 2023

I do note that this failure might be caused by an unrelated problem resolving the link to a remote website that is possible from my local MacBook but not from the CI server. If so, it should repro on all PRs.

@elharo
Copy link
Contributor Author

elharo commented Sep 23, 2023

And now the tests are all passing. It does look like this IT is simply flaky (and likely moreso on the CI server) because it relies on external network connections that sometimes fail.

@elharo elharo merged commit 05b12e8 into master Sep 24, 2023
51 checks passed
@elharo elharo deleted the exclude branch September 24, 2023 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants