Getting a failure on local gradle build: ```> T...
# contributing-to-airbyte
g
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
are you using the right version of java maybe? Could be useful to check this script too:
tools/bin/check_requirements.sh
g
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
stacktrace here: (I'm completely new to Gradle so can't immediately spot the issue here)
u
what are you running?
u
initially
./gradlew clean build
u
then
./gradlew :airbyte-integrations:connectors:destination-oracle:test --stacktrace --info
to isolate
u
what machine are you on?
g
was this the only task failing in the original build command?
u
Macbook Pro, intel
u
this is error is strange since it suggest something within gradle not working
u
It looks like the build stops on that fail, can't see anything else failing
u
can you try
CORE_ONLY=1 ./gradlew clean build --rerun-tasks
? let's try to build just the core projects for now
u
^ added a flag to invalidate caching in case something is affecting things
g
Successful build with that command ^
u
nice! can you now run
./gradlew clean build
? no need to use rerun tasks
u
no dice, failed at same point
u
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
But it must be something on my end otherwise that would fail for everyone... maybe I'll try wipe/reinstall jdk
u
that might looks like an actual error - let me try
u
we don't build all the connector images as part of our main build
g
aha running into the same error
u
I'll fix this real quick
u
are you seeing other errors George?
u
Aha in that case I'll hold off nuking my jdk haha
u
That looks like the only one but I'm pretty sure the whole build is getting halted on that failure
u
I think something like
./gradlew build -x :airbyte-integrations:connectors:destination-oracle:build
will work to build everything except that module
u
ah, also airbyte integrationsconnectors:source-google-ads
g
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
for some connectors, you might have to create the
secrets/*.json
file it expects