https://linen.dev logo
g

George Claireaux (Airbyte)

06/21/2021, 12:07 PM
Getting a failure on local gradle build:
Copy code
> Task :airbyte-integrations:connectors:destination-oracle:compileIntegrationTestJavaJava FAILED
file or directory '/Users/phlair/src/airbyte/airbyte-integrations/connectors/destination-oracle/src/integrationTestJava/java', not found
Build cache key for task ':airbyte-integrations:connectors:destination-oracle:compileIntegrationTestJavaJava' is 1f126b73848c4823af9e306bab5bc2db
Task ':airbyte-integrations:connectors:destination-oracle:compileIntegrationTestJavaJava' is not up-to-date because:
  Task has failed previously.
The input changes require a full rebuild for incremental task ':airbyte-integrations:connectors:destination-oracle:compileIntegrationTestJavaJava'.
Full recompilation is required because no incremental change information is available. This is usually caused by clean builds or changing compiler arguments.
file or directory '/Users/phlair/src/airbyte/airbyte-integrations/connectors/destination-oracle/src/integrationTestJava/java', not found
Compiling with JDK Java compiler API.
/Users/phlair/src/airbyte/airbyte-integrations/connectors/destination-oracle/src/test-integration/java/io/airbyte/integrations/destination/oracle/OracleIntegrationTest.java:102: error: method does not override or implement a method from a supertype
  @Override
  ^
1 error
:airbyte-integrations:connectors:destination-oracle:compileIntegrationTestJavaJava (Thread[Execution worker for ':',5,main]) completed. Took 0.272 secs.
u

user

06/21/2021, 12:10 PM
are you using the right version of java maybe? Could be useful to check this script too:
tools/bin/check_requirements.sh
g

George Claireaux (Airbyte)

06/21/2021, 12:15 PM
Useful script! Coming back all good:
Copy code
Docker is installed
Java installed and functional
Pip installed and functional
Python installed and functional
JQ is installed
u

user

06/21/2021, 12:21 PM
stacktrace here: (I'm completely new to Gradle so can't immediately spot the issue here)
u

user

06/21/2021, 12:23 PM
what are you running?
u

user

06/21/2021, 12:23 PM
initially
./gradlew clean build
u

user

06/21/2021, 12:24 PM
then
./gradlew :airbyte-integrations:connectors:destination-oracle:test --stacktrace --info
to isolate
u

user

06/21/2021, 12:25 PM
what machine are you on?
g

George Claireaux (Airbyte)

06/21/2021, 12:26 PM
was this the only task failing in the original build command?
u

user

06/21/2021, 12:26 PM
Macbook Pro, intel
u

user

06/21/2021, 12:29 PM
this is error is strange since it suggest something within gradle not working
u

user

06/21/2021, 12:31 PM
It looks like the build stops on that fail, can't see anything else failing
u

user

06/21/2021, 12:32 PM
can you try
CORE_ONLY=1 ./gradlew clean build --rerun-tasks
? let's try to build just the core projects for now
u

user

06/21/2021, 12:33 PM
^ added a flag to invalidate caching in case something is affecting things
g

George Claireaux (Airbyte)

06/21/2021, 12:39 PM
Successful build with that command ^
u

user

06/21/2021, 12:44 PM
nice! can you now run
./gradlew clean build
? no need to use rerun tasks
u

user

06/21/2021, 12:55 PM
no dice, failed at same point
u

user

06/21/2021, 12:56 PM
it's throwing this:
Copy code
/Users/phlair/src/airbyte/airbyte-integrations/connectors/destination-oracle/src/test-integration/java/io/airbyte/integrations/destination/oracle/OracleIntegrationTest.java:102: error: method does not override or implement a method from a supertype
  @Override
u

user

06/21/2021, 12:57 PM
But it must be something on my end otherwise that would fail for everyone... maybe I'll try wipe/reinstall jdk
u

user

06/21/2021, 1:00 PM
that might looks like an actual error - let me try
u

user

06/21/2021, 1:00 PM
we don't build all the connector images as part of our main build
g

George Claireaux (Airbyte)

06/21/2021, 1:05 PM
aha running into the same error
u

user

06/21/2021, 1:09 PM
I'll fix this real quick
u

user

06/21/2021, 1:09 PM
are you seeing other errors George?
u

user

06/21/2021, 1:13 PM
Aha in that case I'll hold off nuking my jdk haha
u

user

06/21/2021, 1:13 PM
That looks like the only one but I'm pretty sure the whole build is getting halted on that failure
u

user

06/21/2021, 1:18 PM
I think something like
./gradlew build -x :airbyte-integrations:connectors:destination-oracle:build
will work to build everything except that module
u

user

06/21/2021, 1:42 PM
ah, also airbyte integrationsconnectors:source-google-ads
g

George Claireaux (Airbyte)

06/21/2021, 1:46 PM
looks like it's not picking up the creds
FileNotFoundError: [Errno 2] No such file or directory: 'secrets/config.json'
How is that obtained for the source unit tests when building locally (out of curiosity / so I can fix this)? Running other source tests individually seems to work without me manually creating secrets config files
u

user

06/21/2021, 1:46 PM
for some connectors, you might have to create the
secrets/*.json
file it expects
7 Views