Skip to content

Build always fail on a fresh repo for the first build attempt #1976

Open
@MonkeyCanCode

Description

@MonkeyCanCode

Describe the bug

After obtain a fresh copy of the repo/code, if an user try to follow the provided build command, it will always fail on the first build attempt. However, if the user rerun the command again, it will then complete.

To Reproduce

  1. Get a refresh copy of the code
$ git clone [email protected]:apache/polaris.git
Cloning into 'polaris'...
remote: Enumerating objects: 39146, done.
remote: Counting objects: 100% (211/211), done.
remote: Compressing objects: 100% (150/150), done.
remote: Total 39146 (delta 107), reused 72 (delta 56), pack-reused 38935 (from 2)
Receiving objects: 100% (39146/39146), 17.72 MiB | 25.52 MiB/s, done.
Resolving deltas: 100% (19561/19561), done.
  1. Go to repo directory
$ cd polaris
  1. Run the build command
$ ./gradlew \
  :polaris-server:assemble \
  :polaris-server:quarkusAppPartsBuild --rerun \
  -Dquarkus.container-image.build=true
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   167  100   167    0     0   1632      0 --:--:-- --:--:-- --:--:--  1637
100    64  100    64    0     0    289      0 --:--:-- --:--:-- --:--:--   289
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 43764  100 43764    0     0   403k      0 --:--:-- --:--:-- --:--:--  407k
Configuration on demand is an incubating feature.
> Task :polaris-runtime-defaults:quarkusGenerateCodeDev FAILED
> Task :polaris-runtime-common:quarkusGenerateCodeDev FAILED
> Task :polaris-eclipselink:quarkusGenerateCodeDev FAILED

> Task :polaris-api-iceberg-service:openApiGenerate
user-defined server variable support is experimental.
Failed to get the schema name: null
################################################################################
# Thanks for using OpenAPI Generator.                                          #
# Please consider donation to help us maintain this project 🙏                 #
# https://opencollective.com/openapi_generator/donate                          #
################################################################################
Successfully generated code to /Users/yong/Desktop/1/polaris/api/iceberg-service/build/generated

> Task :polaris-api-catalog-service:openApiGenerate
user-defined server variable support is experimental.
################################################################################
# Thanks for using OpenAPI Generator.                                          #
# Please consider donation to help us maintain this project 🙏                 #
# https://opencollective.com/openapi_generator/donate                          #
################################################################################
Successfully generated code to /Users/yong/Desktop/1/polaris/api/polaris-catalog-service/build/generated

[Incubating] Problems report is available at: file:///Users/yong/Desktop/1/polaris/build/reports/problems/problems-report.html

FAILURE: Build completed with 3 failures.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':polaris-runtime-defaults:quarkusGenerateCodeDev'.
> There was a failure while executing work items
   > A failure occurred while executing io.quarkus.gradle.tasks.worker.CodeGenWorker
      > /Users/yong/Desktop/1/polaris/runtime/defaults/build/classes/java/main does not exist

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':polaris-runtime-common:quarkusGenerateCodeDev'.
> There was a failure while executing work items
   > A failure occurred while executing io.quarkus.gradle.tasks.worker.CodeGenWorker
      > /Users/yong/Desktop/1/polaris/runtime/common/build/classes/java/main does not exist

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
==============================================================================

3: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':polaris-eclipselink:quarkusGenerateCodeDev'.
> There was a failure while executing work items
   > A failure occurred while executing io.quarkus.gradle.tasks.worker.CodeGenWorker
      > /Users/yong/Desktop/1/polaris/persistence/eclipselink/build/classes/java/main does not exist

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
==============================================================================

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.14.2/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD FAILED in 7s
46 actionable tasks: 24 executed, 22 from cache
  1. Re-run the build command
$ ./gradlew \
  :polaris-server:assemble \
  :polaris-server:quarkusAppPartsBuild --rerun \
  -Dquarkus.container-image.build=true
Configuration on demand is an incubating feature.

[Incubating] Problems report is available at: file:///Users/yong/Desktop/1/polaris/build/reports/problems/problems-report.html

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.14.2/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD SUCCESSFUL in 19s
85 actionable tasks: 25 executed, 17 from cache, 43 up-to-date

Actual Behavior

No response

Expected Behavior

No response

Additional context

No response

System information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions