Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: migrator-integration-test tests not running #191 #192

Merged
merged 14 commits into from
May 21, 2024
3 changes: 2 additions & 1 deletion .github/workflows/mysql-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ jobs:
run: sbt ++2.13 "integration/testOnly org.apache.pekko.persistence.jdbc.integration.MySQL*" ${{ matrix.extraOpts }} -J-XX:+UnlockExperimentalVMOptions -J-XX:+UseJVMCICompiler

- name: Run Migrator Integration tests for ${{ matrix.name }}
run: sbt ++2.13 "migratorIntegration/testOnly org.apache.pekko.persistence.jdbc.migrator.integration.MySQL*" -J-XX:+UnlockExperimentalVMOptions -J-XX:+UseJVMCICompiler
if: matrix.name == 'MySQL'
run: sbt ++2.13 "migratorIntegration/testOnly org.apache.pekko.persistence.jdbc.migrator.integration.MySQL*" ${{ matrix.extraOpts }} -J-XX:+UnlockExperimentalVMOptions -J-XX:+UseJVMCICompiler

- name: Print logs on failure
if: ${{ failure() }}
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/oracle-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ jobs:
run: sbt ++2.13 "integration/testOnly org.apache.pekko.persistence.jdbc.integration.Oracle*" ${{ matrix.extraOpts }} -J-XX:+UnlockExperimentalVMOptions -J-XX:+UseJVMCICompiler

- name: Run Migrator Integration tests for ${{ matrix.name }}
run: sbt ++2.13 "migratorIntegration/testOnly org.apache.pekko.persistence.jdbc.migrator.integration.Oracle*" -J-XX:+UnlockExperimentalVMOptions -J-XX:+UseJVMCICompiler
if: matrix.name == 'Oracle'
run: sbt ++2.13 "migratorIntegration/testOnly org.apache.pekko.persistence.jdbc.migrator.integration.Oracle*" ${{ matrix.extraOpts }} -J-XX:+UnlockExperimentalVMOptions -J-XX:+UseJVMCICompiler

- name: Print logs on failure
if: ${{ failure() }}
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/postgres-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ jobs:
run: sbt ++2.13 "integration/testOnly org.apache.pekko.persistence.jdbc.integration.Postgres*" ${{ matrix.extraOpts }} -J-XX:+UnlockExperimentalVMOptions -J-XX:+UseJVMCICompiler

- name: Run Migrator Integration tests for ${{ matrix.name }}
run: sbt ++2.13 "migratorIntegration/testOnly org.apache.pekko.persistence.jdbc.migrator.integration.Postgres*" -J-XX:+UnlockExperimentalVMOptions -J-XX:+UseJVMCICompiler
if: matrix.name == 'Postgres'
run: sbt ++2.13 "migratorIntegration/testOnly org.apache.pekko.persistence.jdbc.migrator.integration.Postgres*" ${{ matrix.extraOpts }} -J-XX:+UnlockExperimentalVMOptions -J-XX:+UseJVMCICompiler

- name: Print logs on failure
if: ${{ failure() }}
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/sqlserver-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ jobs:
run: sbt ++2.13 "integration/testOnly org.apache.pekko.persistence.jdbc.integration.SqlServer*" ${{ matrix.extraOpts }} -J-XX:+UnlockExperimentalVMOptions -J-XX:+UseJVMCICompiler

- name: Run Migrator Integration tests for ${{ matrix.name }}
run: sbt ++2.13 "migratorIntegration/testOnly org.apache.pekko.persistence.jdbc.migrator.integration.SqlServer*" -J-XX:+UnlockExperimentalVMOptions -J-XX:+UseJVMCICompiler
if: matrix.name == 'Postgres'
Roiocam marked this conversation as resolved.
Show resolved Hide resolved
run: sbt ++2.13 "migratorIntegration/testOnly org.apache.pekko.persistence.jdbc.migrator.integration.SqlServer*" ${{ matrix.extraOpts }} -J-XX:+UnlockExperimentalVMOptions -J-XX:+UseJVMCICompiler

- name: Print logs on failure
if: ${{ failure() }}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
# SPDX-License-Identifier: Apache-2.0

# Oracle does not support returning a column with a case senstive name so all the column names and table names need
# to be caps. See:
# https://github.com/slick/slick/issues/47
# https://groups.google.com/g/scalaquery/c/U431n-Z2cwM

jdbc-snapshot-store {
tables {

legacy_snapshot {
tableName = "LEGACY_SNAPSHOT"
schemaName = "SYSTEM"
columnNames {
persistenceId = "PERSISTENCE_ID"
sequenceNumber = "SEQUENCE_NUMBER"
created = "CREATED"
snapshot = "SNAPSHOT"
}
}


snapshot {
tableName = "SNAPSHOT"
schemaName = "SYSTEM"
columnNames {
persistenceId = "PERSISTENCE_ID"
sequenceNumber = "SEQUENCE_NUMBER"
created = "CREATED"

snapshotPayload = "SNAPSHOT_PAYLOAD"
snapshotSerId = "SNAPSHOT_SER_ID"
snapshotSerManifest = "SNAPSHOT_SER_MANIFEST"

metaPayload = "META_PAYLOAD"
metaSerId = "META_SER_ID"
metaSerManifest = "META_SER_MANIFEST"
}
}
}
}

jdbc-read-journal {
tables {
event_journal {
tableName = "EVENT_JOURNAL"
schemaName = "SYSTEM"
}
legacy_journal {
tableName = "JOURNAL"
schemaName = "SYSTEM"
}
}
}

jdbc-journal {
tables {
legacy_journal {
tableName = "JOURNAL"
schemaName = "SYSTEM"

columnNames {
ordering = "ORDERING"
deleted = "DELETED"
persistenceId = "PERSISTENCE_ID"
sequenceNumber = "SEQUENCE_NUMBER"
created = "CREATED"
tags = "TAGS"
message = "MESSAGE"
}
}

event_journal {
tableName = "EVENT_JOURNAL"
schemaName = "SYSTEM"

columnNames {
ordering = "ORDERING"
deleted = "DELETED"
persistenceId = "PERSISTENCE_ID"
sequenceNumber = "SEQUENCE_NUMBER"
writer = "WRITER",
writeTimestamp = "WRITE_TIMESTAMP"
adapterManifest = "ADAPTER_MANIFEST"
eventPayload = "EVENT_PAYLOAD"
eventSerId = "EVENT_SER_ID"
eventSerManifest = "EVENT_SER_MANIFEST"
metaPayload = "META_PAYLOAD"
metaSerId = "META_SER_ID"
metaSerManifest = "META_SER_MANIFEST"
}
}

event_tag {
tableName = "EVENT_TAG"
schemaName = "SYSTEM"

columnNames {
eventId = "EVENT_ID"
tag = "TAG"
}
}
}

}

jdbc-durable-state-store {
tables {
durable_state {
tableName = "DURABLE_STATE"
schemaName = "SYSTEM"

columnNames {
globalOffset = "GLOBAL_OFFSET"
persistenceId = "PERSISTENCE_ID"
revision = "REVISION"
statePayload = "STATE_PAYLOAD"
stateSerId = "STATE_SERIAL_ID"
stateSerManifest = "STATE_SERIAL_MANIFEST"
tag = "TAG"
stateTimestamp = "STATE_TIMESTAMP"
}
}
}
}
Loading