foundationdb icon indicating copy to clipboard operation
foundationdb copied to clipboard

fix: resolve missing CopyJavaDoc target

Open kris-hansen opened this issue 1 year ago • 13 comments

This pull request addresses a build error encountered when enabling documentation generation for the FoundationDB project. The error is related to a missing CopyJavadoc target in the CMakeLists.txt file. The build error is as follows:

CMake Error at CMakeLists.txt:218 (add_dependencies):
  The dependency target "CopyJavadoc" of target "html" does not exist.

Solution: Added a custom target named CopyJavadoc that uses the cmake -E copy_directory command to copy Javadoc files from the sphinx directory to the build directory. This target is now correctly referenced as a dependency for the html target, ensuring that the build process completes successfully.

Code-Reviewer Section

The general pull request guidelines can be found here.

Please check each of the following things and check all boxes before accepting a PR.

  • [ ] The PR has a description, explaining both the problem and the solution.
  • [ ] The description mentions which forms of testing were done and the testing seems reasonable.
  • [ ] Every function/class/actor that was touched is reasonably well documented.

For Release-Branches

If this PR is made against a release-branch, please also check the following:

  • [ ] This change/bugfix is a cherry-pick from the next younger branch (younger release-branch or main if this is the youngest branch)
  • [ ] There is a good reason why this PR needs to go into a release branch and this reason is documented (either in the description above or in a linked GitHub issue)

kris-hansen avatar Jun 25 '24 17:06 kris-hansen

Result of foundationdb-pr-clang-arm on Linux CentOS 7

  • Commit ID: 8ab2de7ce4d56c230754b54a1a0344b0c42ef645
  • Duration 0:03:24
  • Result: :x: FAILED
  • Error: Error while executing command: cmake -S . -B build_output -D USE_CCACHE=ON -D USE_WERROR=ON -D RUN_JUNIT_TESTS=ON -D RUN_JAVA_INTEGRATION_TESTS=ON -D BUILD_DOCUMENTATION=ON -D BUILD_AWS_BACKUP=OFF -G Ninja. Reason: exit status 1
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)

foundationdb-ci avatar Jun 27 '24 09:06 foundationdb-ci

Result of foundationdb-pr-clang-ide on Linux CentOS 7

  • Commit ID: 8ab2de7ce4d56c230754b54a1a0344b0c42ef645
  • Duration 0:04:07
  • Result: :x: FAILED
  • Error: Error while executing command: cmake -S . -B build_output -D USE_CCACHE=ON -D USE_WERROR=OFF -D BUILD_DOCUMENTATION=ON -DOPEN_FOR_IDE=ON -G Ninja. Reason: exit status 1
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)

foundationdb-ci avatar Jun 27 '24 09:06 foundationdb-ci

Result of foundationdb-pr-clang on Linux CentOS 7

  • Commit ID: 8ab2de7ce4d56c230754b54a1a0344b0c42ef645
  • Duration 0:04:10
  • Result: :x: FAILED
  • Error: Error while executing command: cmake -S . -B build_output -D USE_CCACHE=ON -D USE_WERROR=ON -D RUN_JUNIT_TESTS=ON -D RUN_JAVA_INTEGRATION_TESTS=ON -D BUILD_DOCUMENTATION=ON -D BUILD_AWS_BACKUP=ON -G Ninja. Reason: exit status 1
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)

foundationdb-ci avatar Jun 27 '24 09:06 foundationdb-ci

Result of foundationdb-pr on Linux CentOS 7

  • Commit ID: 8ab2de7ce4d56c230754b54a1a0344b0c42ef645
  • Duration 0:04:20
  • Result: :x: FAILED
  • Error: Error while executing command: cmake -S . -B build_output -D USE_CCACHE=ON -D USE_WERROR=ON -D RUN_JUNIT_TESTS=ON -D RUN_JAVA_INTEGRATION_TESTS=ON -D BUILD_DOCUMENTATION=ON -D BUILD_AWS_BACKUP=ON -G Ninja. Reason: exit status 1
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)

foundationdb-ci avatar Jun 27 '24 09:06 foundationdb-ci

Result of foundationdb-pr-macos-m1 on macOS Ventura 13.x

  • Commit ID: 8ab2de7ce4d56c230754b54a1a0344b0c42ef645
  • Duration 0:36:34
  • Result: :white_check_mark: SUCCEEDED
  • Error: N/A
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)

foundationdb-ci avatar Jun 27 '24 10:06 foundationdb-ci

Result of foundationdb-pr-macos on macOS Ventura 13.x

  • Commit ID: 8ab2de7ce4d56c230754b54a1a0344b0c42ef645
  • Duration 0:48:05
  • Result: :white_check_mark: SUCCEEDED
  • Error: N/A
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)

foundationdb-ci avatar Jun 27 '24 10:06 foundationdb-ci

Result of foundationdb-pr-cluster-tests on Linux CentOS 7

  • Commit ID: 8ab2de7ce4d56c230754b54a1a0344b0c42ef645
  • Duration 0:51:06
  • Result: :white_check_mark: SUCCEEDED
  • Error: N/A
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)
  • Cluster Test Logs zip file of the test logs (available for 30 days)

foundationdb-ci avatar Jun 27 '24 10:06 foundationdb-ci

Result of foundationdb-pr-clang-arm on Linux CentOS 7

  • Commit ID: 8ab2de7ce4d56c230754b54a1a0344b0c42ef645
  • Duration 0:03:37
  • Result: :x: FAILED
  • Error: Error while executing command: cmake -S . -B build_output -D USE_CCACHE=ON -D USE_WERROR=ON -D RUN_JUNIT_TESTS=ON -D RUN_JAVA_INTEGRATION_TESTS=ON -D BUILD_DOCUMENTATION=ON -D BUILD_AWS_BACKUP=OFF -G Ninja. Reason: exit status 1
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)

foundationdb-ci avatar Jul 18 '24 20:07 foundationdb-ci

Result of foundationdb-pr-clang on Linux CentOS 7

  • Commit ID: 8ab2de7ce4d56c230754b54a1a0344b0c42ef645
  • Duration 0:04:19
  • Result: :x: FAILED
  • Error: Error while executing command: cmake -S . -B build_output -D USE_CCACHE=ON -D USE_WERROR=ON -D RUN_JUNIT_TESTS=ON -D RUN_JAVA_INTEGRATION_TESTS=ON -D BUILD_DOCUMENTATION=ON -D BUILD_AWS_BACKUP=ON -G Ninja. Reason: exit status 1
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)

foundationdb-ci avatar Jul 18 '24 20:07 foundationdb-ci

Result of foundationdb-pr on Linux CentOS 7

  • Commit ID: 8ab2de7ce4d56c230754b54a1a0344b0c42ef645
  • Duration 0:04:20
  • Result: :x: FAILED
  • Error: Error while executing command: cmake -S . -B build_output -D USE_CCACHE=ON -D USE_WERROR=ON -D RUN_JUNIT_TESTS=ON -D RUN_JAVA_INTEGRATION_TESTS=ON -D BUILD_DOCUMENTATION=ON -D BUILD_AWS_BACKUP=ON -G Ninja. Reason: exit status 1
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)

foundationdb-ci avatar Jul 18 '24 20:07 foundationdb-ci

Result of foundationdb-pr-clang-ide on Linux CentOS 7

  • Commit ID: 8ab2de7ce4d56c230754b54a1a0344b0c42ef645
  • Duration 0:04:22
  • Result: :x: FAILED
  • Error: Error while executing command: cmake -S . -B build_output -D USE_CCACHE=ON -D USE_WERROR=OFF -D BUILD_DOCUMENTATION=ON -DOPEN_FOR_IDE=ON -G Ninja. Reason: exit status 1
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)

foundationdb-ci avatar Jul 18 '24 20:07 foundationdb-ci

CI failed with error:

CMake Error at documentation/CMakeLists.txt:70 (add_custom_target):
  add_custom_target cannot create target "CopyJavadoc" because another target
  with the same name already exists.  The existing target is a custom target
  created in source directory
  "/codebuild/output/src3024235942/src/github.com/apple/foundationdb/bindings/java".
  See documentation for policy CMP0002 for more details.

jzhou77 avatar Jul 18 '24 21:07 jzhou77

Result of foundationdb-pr-cluster-tests on Linux CentOS 7

  • Commit ID: 8ab2de7ce4d56c230754b54a1a0344b0c42ef645
  • Duration 0:37:45
  • Result: :x: FAILED
  • Error: Error while executing command: docker build --label "org.foundationdb.version=${FDB_VERSION}" --label "org.foundationdb.build_date=${BUILD_DATE}" --label "org.foundationdb.commit=${COMMIT_SHA}" --progress plain --build-arg FDB_VERSION="${FDB_VERSION}" --build-arg FDB_LIBRARY_VERSIONS="${FDB_VERSION}" --build-arg FDB_WEBSITE="${FDB_WEBSITE}" --tag foundationdb/base:${FDB_VERSION}-${COMMIT_SHA} --file Dockerfile --target base .. Reason: exit status 1
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)
  • Cluster Test Logs zip file of the test logs (available for 30 days)

foundationdb-ci avatar Jul 18 '24 21:07 foundationdb-ci

Closing as can't reproduce. Please open new issue is still an issue.

saintstack avatar Nov 11 '25 17:11 saintstack