Code Monkey home page Code Monkey logo

Comments (11)

DiegoTavares avatar DiegoTavares commented on July 20, 2024 1

Part os the issue is fixed. There seems to no longer exist a migration issue. but the pipeline is still failing on the cuebot build step. The error I see when running manually is:

Invocation of init method failed; nested exception is java.lang.IllegalStateException: Missing embedded postgres binaries

Looking online, the exception I'm getting locally might be caused by running on the apple silicon.

from opencue.

DiegoTavares avatar DiegoTavares commented on July 20, 2024 1

Now looking at the error on the repo pipeline, it happens after the cuebot docker build step, so was looking at the wrong thing. The error is on the test_pycue() on run_integration_test. Fix coming soon

from opencue.

DiegoTavares avatar DiegoTavares commented on July 20, 2024 1

Integration tests got fixed by #1392
Now working on the Sonar pipeline failure

from opencue.

n-jay avatar n-jay commented on July 20, 2024

@DiegoTavares there seems to be another issue popping up with the script's database migration portion after the jq command issue was resolved.

image

Any thoughts on what the reason might be for mismatch in values? Will create a separate PR to fix that.

verify_migration_versions() {
migrations_in_db=$(docker compose exec -e PGUSER=cuebot db psql -Aqtc "SELECT COUNT(*) FROM flyway_schema_history")
migrations_in_code=$(ls cuebot/src/main/resources/conf/ddl/postgres/migrations/ | wc -l | tr -d ' ')
if [[ ${migrations_in_db} = ${migrations_in_code} ]]; then
log INFO "Database and code both contain ${migrations_in_db} migrations (PASS)"
else
log ERROR "Database contains ${migrations_in_db} migrations, code contains ${migrations_in_code} (FAIL)"
exit 1

from opencue.

bcipriano avatar bcipriano commented on July 20, 2024

Any thoughts on what the reason might be for mismatch in values?

You'll want to dump the two migration lists to see where the discrepancy is -- something like SELECT * FROM flyway_schema_history to dump the full list from the db, and the list of files in migrations/.

I seem to remember running into this in the past but I don't remember the ultimate cause.

from opencue.

n-jay avatar n-jay commented on July 20, 2024

You'll want to dump the two migration lists to see where the discrepancy is

Noted @bcipriano. Will try that out. Thanks!

EDIT:
Seems like V18_Add_New_Indexes is the odd one out from the list of files:
Selection_257

Should this be removed from the migrations directory or added to the flyway_schema_history?

from opencue.

n-jay avatar n-jay commented on July 20, 2024

@DiegoTavares I was just attempting to run the script to see if everything was working. 😅

but the pipeline is still failing on the cuebot build step. The error I see when running manually is:

I feel like its better we keep this issue open until we get the whole thing running successfully.
I'll try and see what this exception is about on my end as well.

EDIT:
By Cuebot build step do you mean the Dockerfile build?

docker build -t opencue/cuebot -f cuebot/Dockerfile . &>"${TEST_LOGS}/docker-build-cuebot.log"

from opencue.

DiegoTavares avatar DiegoTavares commented on July 20, 2024

@DiegoTavares I was just attempting to run the script to see if everything was working. 😅

but the pipeline is still failing on the cuebot build step. The error I see when running manually is:

I feel like its better we keep this issue open until we get the whole thing running successfully. I'll try and see what this exception is about on my end as well.

EDIT: By Cuebot build step do you mean the Dockerfile build?

docker build -t opencue/cuebot -f cuebot/Dockerfile . &>"${TEST_LOGS}/docker-build-cuebot.log"

Yes

from opencue.

n-jay avatar n-jay commented on July 20, 2024

@DiegoTavares did you run this locally? Seems like that step is passing in the CI pipeline with the latest changes.
https://github.com/AcademySoftwareFoundation/OpenCue/actions/runs/9602218280/job/26482575373?pr=1309
According to this the error seem to be with the jq command. Seems to be within the test_pycue() function, but have to verify.

EDIT:

Looking online, the exception I'm getting locally might be caused by running on the apple silicon.

Saw this now. Seems like that might be the case.

from opencue.

DiegoTavares avatar DiegoTavares commented on July 20, 2024

Based on the sonar exception, it looks like the version of sonarqube we are using is incompatible with java 8:

org/sonar/batch/bootstrapper/EnvironmentInformation has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0

@bcipriano Do you know if there has been any changes on the sonar pipeline recently that might have caused this incompatibility?

from opencue.

bcipriano avatar bcipriano commented on July 20, 2024

Commented over on your Sonarcloud PR -- no changes that I know of but it looks like the image we're using is pretty old so if it's easy to just upgrade the image let's do it.

from opencue.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.