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

Add Action to Clone Oracle Storage Adapter #4

Closed
wants to merge 313 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
313 commits
Select commit Hold shift + click to select a range
07e7faf
Update ci.yml
ddrechse Jan 22, 2024
7f15bb6
Instant Client Pathing problem
ddrechse Jan 22, 2024
bdecefa
Update npm run
ddrechse Jan 22, 2024
96dc430
Focus
ddrechse Jan 22, 2024
02a13ec
Turn off Verbose
ddrechse Jan 22, 2024
8424350
Just set log levelto info
ddrechse Jan 22, 2024
dab58c5
No Log Level at all
ddrechse Jan 22, 2024
ee94caf
Try to run target test
ddrechse Jan 22, 2024
7f022ab
Delete package.json
ddrechse Jan 22, 2024
26edede
Merge branch 'main' of github.com:ddrechse/parse-server-database-adap…
ddrechse Jan 22, 2024
1f99c27
remove package.json steps
ddrechse Jan 22, 2024
f62a08c
Grab Ora Specs
ddrechse Jan 22, 2024
b5b963a
It's spec
ddrechse Jan 22, 2024
69c9e6a
whole shebang 4
ddrechse Jan 22, 2024
262e803
Whole Shebang 5
ddrechse Jan 22, 2024
e8542bb
timeout minutes = 30
ddrechse Jan 22, 2024
d330a74
Version alpha, disable tests
ddrechse Jan 22, 2024
dbb88c0
docker info
ddrechse Jan 23, 2024
727efcc
macos-latest?
ddrechse Jan 23, 2024
8877bec
Update ci.yml
ddrechse Jan 23, 2024
6a66e86
Trun verbose on, extend timeout to 60
ddrechse Jan 23, 2024
5e20419
Turn off verbose
ddrechse Jan 23, 2024
439c4fe
lets try target testoracle
ddrechse Jan 23, 2024
b68411b
Merge branch 'main' of github.com:ddrechse/parse-server-database-adap…
ddrechse Jan 23, 2024
5cc06fd
Try w package.json and testoracle target
ddrechse Jan 23, 2024
d4b3fe0
Try macos, install java11
ddrechse Jan 23, 2024
a75b036
Update ci.yml
ddrechse Jan 23, 2024
1c86a90
Update ci.yml
ddrechse Jan 23, 2024
d72eb65
Update ci.yml
ddrechse Jan 23, 2024
01eaad9
Update ci.yml
ddrechse Jan 23, 2024
121dda5
Update ci.yml
ddrechse Jan 23, 2024
c503c81
Update ci.yml
ddrechse Jan 23, 2024
11ba612
Update ci.yml
ddrechse Jan 23, 2024
78fcecf
Update ci.yml
ddrechse Jan 23, 2024
844eddd
Update ci.yml
ddrechse Jan 23, 2024
5732d30
Update ci.yml
ddrechse Jan 23, 2024
b783c74
Update ci.yml
ddrechse Jan 23, 2024
04070b5
Update ci.yml
ddrechse Jan 23, 2024
3049dd9
Update ci.yml
ddrechse Jan 23, 2024
76f740f
Update ci.yml
ddrechse Jan 23, 2024
5c5bdfd
Update ci.yml
ddrechse Jan 23, 2024
eb46425
Go back to Ubuntu
ddrechse Jan 23, 2024
7631f8b
Try instant client 19.22
ddrechse Jan 23, 2024
82dbe6e
Tweak Conn Pool
ddrechse Jan 24, 2024
498d4fd
Merge branch 'main' of github.com:ddrechse/parse-server-database-adap…
ddrechse Jan 24, 2024
2bb2fb9
Remove branch
ddrechse Jan 24, 2024
855004b
Tweak conn pool
ddrechse Jan 24, 2024
c3209db
Min Connections = 50
ddrechse Jan 24, 2024
e3f8e71
Try a fresh pipeline
ddrechse Jan 24, 2024
89541c3
Update ci.yml
ddrechse Jan 24, 2024
f5515b6
Update ci.yml
ddrechse Jan 24, 2024
e5888bc
Test Run 3
ddrechse Jan 24, 2024
41ee9be
Better Truncate debug
ddrechse Jan 24, 2024
7cbe0fc
Merge branch 'main' of github.com:ddrechse/parse-server-database-adap…
ddrechse Jan 24, 2024
f61badb
Better Truncate msgs
ddrechse Jan 24, 2024
aff5954
turn verbose off
ddrechse Jan 24, 2024
8cb778a
Enable AuthAdapter suites
ddrechse Jan 24, 2024
33cc3e1
Enable More Test Suites
ddrechse Jan 24, 2024
f4d9843
disable 3 tests
ddrechse Jan 24, 2024
cbaa6cb
Turn on verbose
ddrechse Jan 24, 2024
85b549f
Turn verbose off
ddrechse Jan 25, 2024
b0797c3
Run it again
ddrechse Jan 25, 2024
4784941
Save free23c logs
ddrechse Jan 25, 2024
78262c2
Capture container logs on failure
ddrechse Jan 26, 2024
bea493b
Archive Artifacts
ddrechse Jan 26, 2024
aa5236a
Focus
ddrechse Jan 26, 2024
ec832ee
Save dumps
ddrechse Jan 26, 2024
1281428
Kick a run after vacation
ddrechse Feb 12, 2024
70e2ac3
John suggestion
ddrechse Feb 13, 2024
934b977
Just the One Suite
ddrechse Feb 13, 2024
21c2dcc
Turn off log dump
ddrechse Feb 13, 2024
2d246ae
Try Oracle Node DB 6.3
ddrechse Feb 13, 2024
0da3ef5
Try multiple suites with 6.3
ddrechse Feb 13, 2024
298de4d
Don't install libaio1
ddrechse Feb 14, 2024
a1ebbc2
put libaio1 back
ddrechse Feb 14, 2024
c34d1b4
One second sleep in between tests
ddrechse Feb 14, 2024
2acb8b7
Disable Dump
ddrechse Feb 14, 2024
ba3fea3
Run Again
ddrechse Feb 14, 2024
eb4b34e
5 seconds
ddrechse Feb 14, 2024
90a6538
5 secs again
ddrechse Feb 14, 2024
23cef8f
1 second timeout implemented correctly
ddrechse Feb 14, 2024
9f71474
Again
ddrechse Feb 14, 2024
7c0fd73
Turn sleep off
ddrechse Feb 15, 2024
fecd72d
Grab latest Instant Client
ddrechse Feb 15, 2024
0c5f613
No Collection metadata used
ddrechse Feb 15, 2024
3054fe1
Merge branch 'main' of github.com:ddrechse/parse-server-database-adap…
ddrechse Feb 15, 2024
711f97b
OracleCollection with no metadata
ddrechse Feb 15, 2024
dbe144e
Add Log
ddrechse Feb 15, 2024
19bdd23
Merge branch 'main' of github.com:ddrechse/parse-server-database-adap…
ddrechse Feb 15, 2024
e600937
No connection metadata used
ddrechse Feb 15, 2024
a247a26
Create macos.yml
ddrechse Feb 15, 2024
ce342a4
Update macos.yml
ddrechse Feb 15, 2024
337ed50
Brew
ddrechse Feb 15, 2024
a7de935
Restore to original connection behavior using metadata
ddrechse Feb 15, 2024
8116da9
Merge branch 'main' of github.com:ddrechse/parse-server-database-adap…
ddrechse Feb 15, 2024
f49ab6f
Try w MacOS
ddrechse Feb 15, 2024
b75ae77
Delete .github/workflows/macos.yml
ddrechse Feb 15, 2024
f10f7d1
install java11
ddrechse Feb 15, 2024
47700f7
Update ci.yml
ddrechse Feb 15, 2024
404ee2d
Fix typo
ddrechse Feb 15, 2024
07941ab
Update ci.yml
ddrechse Feb 15, 2024
f4af337
The old way
ddrechse Feb 15, 2024
63c70f9
java
ddrechse Feb 15, 2024
61743ab
java -version
ddrechse Feb 15, 2024
f70b4eb
Use brew
ddrechse Feb 15, 2024
8412e26
the old way
ddrechse Feb 15, 2024
7446def
untar
ddrechse Feb 15, 2024
7e5c1a1
Update ci.yml
ddrechse Feb 15, 2024
24affa3
chmod
ddrechse Feb 15, 2024
2643b1e
Update ci.yml
ddrechse Feb 15, 2024
e633de8
Update ci.yml
ddrechse Feb 15, 2024
715b6f9
--help
ddrechse Feb 15, 2024
e97f711
Look at dir structure
ddrechse Feb 15, 2024
39c51a7
Set java path
ddrechse Feb 15, 2024
63b2926
Install Mac JDK
ddrechse Feb 15, 2024
9165944
Mac OS Java 17
ddrechse Feb 15, 2024
8b58848
Is java
ddrechse Feb 15, 2024
7b41ea2
Contents
ddrechse Feb 15, 2024
502b8bc
where is it
ddrechse Feb 15, 2024
85f538c
I found bin
ddrechse Feb 15, 2024
69c5e73
5th times a charm
ddrechse Feb 15, 2024
dfad072
java --version
ddrechse Feb 15, 2024
0182d06
Install SQLcl
ddrechse Feb 15, 2024
a4b3cb1
set JAVA_HOME
ddrechse Feb 15, 2024
400c048
Update ci.yml
ddrechse Feb 15, 2024
390909b
Is Docker preInstalled
ddrechse Feb 15, 2024
4b746d9
Really install Docker
ddrechse Feb 15, 2024
e2e6a3a
Update ci.yml
ddrechse Feb 15, 2024
c50b5de
Start Docker
ddrechse Feb 15, 2024
0ff7ce7
Another docker install method
ddrechse Feb 15, 2024
193558a
docker info
ddrechse Feb 15, 2024
a003a2e
Run Free23c
ddrechse Feb 15, 2024
52a2c95
Its slow as
ddrechse Feb 15, 2024
197ed24
Back to Ubuntu image
ddrechse Feb 16, 2024
5c7b447
Back to BLOB
ddrechse Feb 16, 2024
68efaf4
Merge branch 'main' of github.com:ddrechse/parse-server-database-adap…
ddrechse Feb 16, 2024
5dcffe9
Remove log
ddrechse Feb 16, 2024
0e5e041
Let try ubuntu-20.04 for kicks
ddrechse Feb 16, 2024
99c612d
Go back to ubuntu-latest, earlier version deosn't matter
ddrechse Feb 16, 2024
9bbf7e3
Kick it
ddrechse Feb 21, 2024
3e6e46d
Try Upload Action
ddrechse Feb 21, 2024
fba5292
Check tests
ddrechse Feb 21, 2024
a9d52d2
Update ci.yml
ddrechse Feb 21, 2024
099a644
One test suite
ddrechse Feb 21, 2024
cdcb000
2 suites
ddrechse Feb 21, 2024
6d3a578
yeah right
ddrechse Feb 21, 2024
888b6a5
Update ci.yml
ddrechse Feb 21, 2024
ad11224
Update ci.yml
ddrechse Feb 21, 2024
8c947a8
Update ci.yml
ddrechse Feb 21, 2024
2440dda
Update ci.yml
ddrechse Feb 21, 2024
1046f0d
Update ci.yml
ddrechse Feb 21, 2024
a9cc329
Update ci.yml
ddrechse Feb 21, 2024
0536fed
Update ci.yml
ddrechse Feb 21, 2024
7a7588c
Update ci.yml
ddrechse Feb 21, 2024
3952865
Update ci.yml
ddrechse Feb 21, 2024
b34a010
Update ci.yml
ddrechse Feb 21, 2024
6e6db70
Update ci.yml
ddrechse Feb 21, 2024
4d83971
Update ci.yml
ddrechse Feb 21, 2024
700a8f3
Go Time
ddrechse Feb 21, 2024
765dd7f
set JSONTYPE to JSON
ddrechse Feb 21, 2024
931b5d1
Merge branch 'main' of github.com:ddrechse/parse-server-database-adap…
ddrechse Feb 21, 2024
8d86c67
JSONTYPE = JSON
ddrechse Feb 21, 2024
e83f9c6
Remove maxLength
ddrechse Feb 21, 2024
1adb823
Merge branch 'main' of github.com:ddrechse/parse-server-database-adap…
ddrechse Feb 21, 2024
485e2ad
Log CreateIndex spec
ddrechse Feb 21, 2024
44d538d
Log handleError
ddrechse Feb 21, 2024
ec7687a
add trace
ddrechse Feb 21, 2024
bf58efb
Use new truncate
ddrechse Feb 21, 2024
aeb67df
Kick It
ddrechse Feb 21, 2024
276bc56
All Specs
ddrechse Feb 21, 2024
aea0cf4
Audience Router
ddrechse Feb 21, 2024
982aba6
Original set of tests for segv
ddrechse Feb 22, 2024
006a180
BLOB Type
ddrechse Feb 22, 2024
64f18db
Merge branch 'main' of github.com:ddrechse/parse-server-database-adap…
ddrechse Feb 22, 2024
9549b9a
Remove diagnostic logging
ddrechse Feb 22, 2024
3b754c9
SEGV for BLOB?
ddrechse Feb 22, 2024
28b3a4a
All the way back line 19.22 but w 23.4
ddrechse Feb 22, 2024
15253cd
Merge branch 'main' of github.com:ddrechse/parse-server-database-adap…
ddrechse Feb 22, 2024
7b7fc9e
set type to JSON
ddrechse Feb 22, 2024
57b2629
Log createIndex spec
ddrechse Feb 22, 2024
0b13f75
remove maxLength
ddrechse Feb 22, 2024
e8258c1
Removed maxlength and set to BLOB
ddrechse Feb 22, 2024
dce1cc4
Set type back to JSON with MaxLength fix
ddrechse Feb 22, 2024
0a5c1cb
turn logging off
ddrechse Feb 22, 2024
9efb50c
use truncate and JSON
ddrechse Feb 22, 2024
50fa503
BLOB with 23c truncate
ddrechse Feb 22, 2024
0e7900f
set type to JSON
ddrechse Feb 22, 2024
8eba658
Commented out all failed tests
ddrechse Feb 22, 2024
8da6960
Commented out validation failed tests
ddrechse Feb 23, 2024
fe28a02
Debug indexing
ddrechse Feb 23, 2024
fe5f674
Turn on Verbose
ddrechse Feb 23, 2024
80e3f8d
remove last maxLength
ddrechse Feb 23, 2024
2c205f5
Merge branch 'main' of github.com:ddrechse/parse-server-database-adap…
ddrechse Feb 23, 2024
8bc4cfa
All schema tests on
ddrechse Feb 23, 2024
a242562
Turn verbose off
ddrechse Feb 23, 2024
8b9dfcf
Run all test suites
ddrechse Feb 23, 2024
bf529a9
Disable 2 test failures
ddrechse Feb 23, 2024
1adf86d
ParseQuery tests
ddrechse Feb 23, 2024
1911d01
Turn verbose on
ddrechse Feb 23, 2024
0c24b29
Kick It
ddrechse Feb 23, 2024
981c2dc
Add insertOne logging
ddrechse Feb 23, 2024
bb92e68
Merge branch 'main' of github.com:ddrechse/parse-server-database-adap…
ddrechse Feb 23, 2024
d874eda
Turn verbose off
ddrechse Feb 23, 2024
6e21de0
Up Min Connections
ddrechse Feb 23, 2024
786c844
Merge branch 'main' of github.com:ddrechse/parse-server-database-adap…
ddrechse Feb 23, 2024
0cf3835
set minConnections back to 3
ddrechse Feb 23, 2024
3e8d28e
Try Instant Client 21.13
ddrechse Feb 23, 2024
800c0dc
Back to BLOB for 21 Instant Client
ddrechse Feb 23, 2024
4a4d6a9
Merge branch 'main' of github.com:ddrechse/parse-server-database-adap…
ddrechse Feb 23, 2024
2881e3d
Node version
ddrechse Feb 26, 2024
a37634b
1 sec sleep in beforeEach
ddrechse Feb 26, 2024
a7dcc07
Go back to instantclient_23_4
ddrechse Feb 26, 2024
2b0d40b
NODE_ORACLEDB_DEBUG_PACKETS=1
ddrechse Feb 26, 2024
73a9d96
Comment out 2 tests
ddrechse Feb 26, 2024
5dcf3b3
Again
ddrechse Feb 26, 2024
b84c7c8
120 to 600
ddrechse Feb 26, 2024
1edebd9
Back to 120
ddrechse Feb 26, 2024
de7254f
Turn off Threading
ddrechse Feb 27, 2024
d9025a4
Merge branch 'main' of github.com:ddrechse/parse-server-database-adap…
ddrechse Feb 27, 2024
0c5aa43
Cooment out ParseQuery test
ddrechse Feb 27, 2024
7367562
Again
ddrechse Feb 27, 2024
0d5d2cd
Disable Another
ddrechse Feb 27, 2024
b62bc57
Disable two more
ddrechse Feb 27, 2024
4a1e3e3
cat package.json
ddrechse Feb 27, 2024
438674d
correct directory
ddrechse Feb 27, 2024
408db36
Disable 2 more
ddrechse Feb 27, 2024
b6c07fc
fix for ORA-00054
ddrechse Feb 28, 2024
1a684df
Merge branch 'main' of github.com:ddrechse/parse-server-database-adap…
ddrechse Feb 28, 2024
26e3888
Try 1000
ddrechse Feb 28, 2024
6194dc3
log createIndex error
ddrechse Feb 28, 2024
451f987
AGAIN
ddrechse Feb 28, 2024
d1a2416
I thin its insertOne
ddrechse Feb 28, 2024
814ea4a
Fix insertOne
ddrechse Feb 28, 2024
49a83d5
Insert One fix again
ddrechse Feb 28, 2024
cbfb3a9
Again
ddrechse Feb 28, 2024
cba96c5
All Suites
ddrechse Feb 28, 2024
385c36b
insertOneAndGet
ddrechse Feb 28, 2024
45512df
All Suites again
ddrechse Feb 29, 2024
e5e6e48
All Suites
ddrechse Mar 1, 2024
bebd61a
All Suites Again
ddrechse Mar 5, 2024
3a8575f
Await on close
ddrechse Mar 5, 2024
93c53ef
Update OracleCollection.js
ddrechse Mar 5, 2024
bf54e32
refactor insertOne
ddrechse Mar 5, 2024
94942c4
Update OracleCollection.js
ddrechse Mar 5, 2024
9e28b10
All Suites
ddrechse Mar 5, 2024
d62ce13
Again
ddrechse Mar 6, 2024
251fdb4
Update OracleCollection.js
ddrechse Mar 6, 2024
f331a7e
Update ci.yml
ddrechse Mar 6, 2024
0f9f919
Update ci.yml
ddrechse Mar 6, 2024
a30411b
The new and improved ci.yml
ddrechse Apr 26, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
117 changes: 102 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,117 @@ on:
- '**/**.md'
jobs:
run-parse-server-ci:
name: CI of Parse Server ${{ matrix.version }}
timeout-minutes: 15
name: CI of Parse Server
timeout-minutes: 60
runs-on: ubuntu-latest
strategy:
matrix:
version: ['5.6.0', '6.3.1']
version: ['7.0.0']
steps:
- name: Checkout parse-server ${{ matrix.version }}
uses: actions/checkout@v2
with:
repository: parse-community/parse-server
ref: ${{ matrix.version }}
ref: 7.0.0
path: parse-server
# - name: Run CI workflow of Parse Server
# uses: actions/github-script@v6
# with:
# script: |
# const fs = require('fs');
# const yaml = require('js-yaml');
# const path = './parse-server/.github/workflows/ci.yml';
# const ciConfig = yaml.load(fs.readFileSync(path, 'utf8'));
# console.log(ciConfig);
# return ciConfig;

- name: Create Oracle Storage Adapter Dir
run: mkdir parse-server/src/Adapters/Storage/Oracle;
ls -la parse-server/src/Adapters/Storage/Oracle;
- name: Checkout Oracle Storage Adapter
uses: actions/checkout@v2
with:
repository: oracle-samples/oracleadapter-parse
ref: ''
path: parse-server/src/Adapters/Storage/Oracle
- name: Validate Oracle Dir
run: echo $PWD;
ls -la parse-server/src/Adapters/Storage;
ls -la parse-server/src/Adapters/Storage/Oracle;
cd parse-server/src/Adapters/Storage/Oracle;
rm -rf .git;
- name: Install Sqlcl
run: wget https://download.oracle.com/otn_software/java/sqldeveloper/sqlcl-23.3.0.270.1251.zip;
unzip sqlcl-23.3.0.270.1251.zip;
./sqlcl/bin/sql -V;
- name: Install Instant Client
run: uname -m;
wget https://download.oracle.com/otn_software/linux/instantclient/1923000/instantclient-basic-linux.x64-19.23.0.0.0dbru.zip;
unzip instantclient-basic-linux.x64-19.23.0.0.0dbru.zip;
ls -la;
ls -la $PWD/instantclient_19_23;
- name: Install libaio1
run: sudo apt-get install libaio1;
- name: Checkout templateSpecs
uses: actions/checkout@v2
with:
repository: ddrechse/privateAdapterTemplate
ref: ''
path: privateAdapterTemplate
- name: Move package.json, OracleStorageAdapter and OracleCollection
run: ls;
echo $PWD;
ls -la $PWD;
cp privateAdapterTemplate/package.json parse-server;
rm -rf parse-server/spec;
mv privateAdapterTemplate/spec parse-server;
cat parse-server/spec/helper.js
- name: Run Free23c
run: docker run --name free23c -d -p 1521:1521 -e ORACLE_PWD=Welcome12345 container-registry.oracle.com/database/free:latest;
docker ps -a;
docker images;
- name: Wait for container
run: sleep 120;
docker ps -a;
./sqlcl/bin/sql -V;
- name: Enable SODA in image
run: echo "alter session set container=FREEPDB1;grant db_developer_role to pdbadmin;grant soda_app to pdbadmin;GRANT UNLIMITED TABLESPACE TO pdbadmin;quit;" > soda;
cat soda;
./sqlcl/bin/sql sys/Welcome12345@localhost:1521/free as sysdba @./soda
- name: Run Tests
run: echo $PWD;
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash;
export NVM_DIR="$HOME/.nvm";
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh";
nvm install v20.12.0;
nvm list;
node --version;
echo "Before setting LIB PATH";
export LD_LIBRARY_PATH=${PWD}/instantclient_19_23;
echo "This is LD LIBRARY PATH";
echo $LD_LIBRARY_PATH;
echo "Again";
cd parse-server;
cat package.json;
npm install;
npm install --save @parse/fs-files-adapter;
npm install oracledb@6.4.0;
npm ci;
export ORACLEDB_VERSION=19;
export PARSE_SERVER_DATABASE_ADAPTER='{"module":"../Adapters/Storage/Oracle/OracleStorageAdapter","options":{"databaseURI":"oracledb://pdbadmin:Welcome12345@localhost:1521/freepdb1","collectionPrefix":"test_"}}';
echo $PARSE_SERVER_DATABASE_ADAPTER;
ORACLE_CLIENT_LOCATION=${LD_LIBRARY_PATH} npm run testoracle;
# mkdir oralogs;
# docker cp free23c:</opt/oracle/diag/rdbms/free/FREE/trace/alert_*.log oralogs;
# ls -la oralogs;
# - name: Dump Container logs
# if: always()
# run: mkdir oralogs;
# docker cp free23c:/opt/oracle/diag/rdbms/free/FREE/trace oralogs;
# docker cp free23c:/opt/oracle/diag/rdbms/free/FREE oradumps;
# ls -la oralogs;
# ls -la oradumps;
# - name: Archive Test Results
# if: always()
# uses: actions/upload-artifact@v1
# with:
# name: containerlogs
# path: oralogs/trace
# - name: Archive Test Results
# if: always()
# uses: actions/upload-artifact@v1
# with:
# name: containerdumps
# path: oradumps
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Loading
Loading