@@ -142,39 +142,30 @@ jobs:
142142 - name : Omit produced artifacts from build cache
143143 run : ./ci/before-cache.sh
144144
145- # Job for builds on Atlas ( Oracle) infrastructure.
145+ # Job for builds on Oracle TP infrastructure.
146146 # This is untrusted, even for pushes, see below.
147- atlas :
147+ otp :
148148 permissions :
149149 contents : read
150150 name : GraalVM 21 - ${{matrix.rdbms}}
151- # runs-on: ubuntu-latest
152- runs-on : [ self-hosted, Linux, X64, OCI ]
151+ runs-on : [ self-hosted, Linux, X64, OracleTestPilot ]
153152 strategy :
154153 fail-fast : false
155154 matrix :
156155 include :
157- - rdbms : oracle_atps
158- - rdbms : oracle_db19c
159- - rdbms : oracle_db21c
160- - rdbms : oracle_db23c
156+ - rdbms : autonomous-transaction-processing-serverless
157+ - rdbms : base-database-service-19c
158+ - rdbms : base-database-service-21c
159+ - rdbms : base-database-service-23ai
161160 steps :
162161 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
163162 with :
164163 persist-credentials : false
165- - name : Reclaim disk space and sanitize user home
166- run : .github/ci-prerequisites-atlas.sh
167- - name : Start database
168- env :
169- RDBMS : ${{ matrix.rdbms }}
170- RUNID : ${{ github.run_number }}
171- run : ci/database-start.sh
172164 - name : Set up Java 21
173165 uses : graalvm/setup-graalvm@aafbedb8d382ed0ca6167d3a051415f20c859274 # v1.2.8
174166 with :
175167 distribution : ' graalvm'
176168 java-version : ' 21'
177-
178169 - name : Generate cache key
179170 id : cache-key
180171 run : |
@@ -205,7 +196,7 @@ jobs:
205196 ${{ steps.cache-key.outputs.buildtool-monthly-cache-key }}-
206197 - name : Restore Maven/Gradle Dependency/Dist Caches
207198 uses : actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
208- # if it a pull request, we restore the cache but we don't save it
199+ # if it is a pull request, we restore the cache but we don't save it
209200 if : github.event_name == 'pull_request'
210201 with :
211202 path : |
@@ -218,17 +209,35 @@ jobs:
218209 ${{ steps.cache-key.outputs.buildtool-monthly-branch-cache-key }}-
219210 ${{ steps.cache-key.outputs.buildtool-monthly-cache-key }}-
220211
212+ - id : create_database
213+ uses : loiclefevre/test@03ce1d1ee2313b45249e7bf6b84dc0f4333cdd77 # v1.0.18
214+ with :
215+ oci-service : ${{ matrix.rdbms }}
216+ action : create
217+ user : hibernate_orm_test
218+
221219 - name : Run build script
222220 env :
223221 RDBMS : ${{ matrix.rdbms }}
224222 RUNID : ${{ github.run_number }}
225- # These runners have no HOME variable set by default, we need to explicitly set it to make the build work
226- HOME : /root
223+ TESTPILOT_CONNECTION_STRING_SUFFIX : ${{ steps.create_database.outputs.connection_string_suffix }}
224+ TESTPILOT_PASSWORD : ${{ steps.create_database.outputs.database_password }}
225+ API_HOST : " "
226+ TESTPILOT_CLIENT_ID : " "
227+ TESTPILOT_TOKEN : " "
227228 # Needed for TFO (TCP fast open)
228- LD_PRELOAD : /home/opc /libtfojdbc1.so
229- LD_LIBRARY_PATH : /home/opc
229+ LD_PRELOAD : /home/ubuntu /libtfojdbc1.so
230+ LD_LIBRARY_PATH : /home/ubuntu
230231 run : ./ci/build-github.sh
231232 shell : bash
233+
234+ - uses : loiclefevre/test@03ce1d1ee2313b45249e7bf6b84dc0f4333cdd77 # v1.0.18
235+ if : always()
236+ with :
237+ oci-service : ${{ matrix.rdbms }}
238+ action : delete
239+ user : hibernate_orm_test
240+
232241 # Upload build scan data.
233242 # The actual publishing must be done in a separate job (see ci-report.yml).
234243 # We don't write to the remote cache as that would be unsafe.
0 commit comments