Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DomPeliniAerospike committed Oct 17, 2024
1 parent 6c0dc59 commit effa230
Show file tree
Hide file tree
Showing 3 changed files with 93 additions and 12 deletions.
72 changes: 72 additions & 0 deletions .github/assets/aerospike.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
@ -1,72 +0,0 @@
# Aerospike database configuration file
# This template sets up a single-node, single namespace developer environment.
#
# Alternatively, you can pass in your own configuration file.
# You can see more examples at
# https://github.com/aerospike/aerospike-server/tree/master/as/etc

# This stanza must come first.
service {
feature-key-file /etc/aerospike/features.conf
cluster-name proximus
}

logging {





# Send log messages to stdout
console {
context any info
}
}

network {
service {
address any
port 3000

# Uncomment the following to set the 'access-address' parameter to the
# IP address of the Docker host. This will the allow the server to correctly
# publish the address which applications and other nodes in the cluster to
# use when addressing this node.
# access-address <IPADDR>
}

heartbeat {
# mesh is used for environments that do not support multicast
mode mesh
address local
port 3002
interval 150
timeout 10
}

fabric {
# Intra-cluster communication port (migrates, replication, etc)
# default to same address in 'service'
address local
port 3001
}

}

# AVS ONLY
#namespace proximus-meta {
# replication-factor 2
#storage-engine memory {
# data-size 2G
#}
#nsup-period 100
#}

namespace test {
replication-factor 2
storage-engine memory {
data-size 1G
}
allow-ttl-without-nsup true
}
10 changes: 8 additions & 2 deletions .github/workflows/build-bindings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ jobs:

- name: Run Aerospike server
if: ${{ !contains(github.event.pull_request.labels.*.name, 'new-server-features') }}
run: docker run -d --name aerospike -p 3000-3002:3000-3002 aerospike/aerospike-server
run: docker run -d -v .:./.github/assets/aerospike.conf --name aerospike -p 3000-3002:3000-3002 aerospike/aerospike-server --config-file ./aerospike.conf


# - name: Set config.conf to use Docker IP address of Aerospike server
# # config.conf should be copied into the cibuildwheel Docker container
Expand Down Expand Up @@ -557,8 +558,13 @@ jobs:

- name: Run Aerospike server
if: ${{ !contains(github.event.pull_request.labels.*.name, 'new-server-features') }}
run: docker run -d --name aerospike -p 3000-3002:3000-3002 aerospike/aerospike-server
run: docker run -d -v .:./.github/assets/aerospike.conf --name aerospike -p 3000-3002:3000-3002 aerospike/aerospike-server --config-file ./aerospike.conf


- name: Wait for database to be ready
# Should be ready after 3 seconds
run: sleep 15

- name: Modify the package.json
run: |
sudo npm install -g json
Expand Down
23 changes: 13 additions & 10 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ jobs:
#
# - name: Wait for database to be ready
# # Should be ready after 3 seconds
# run: sleep 3
# run: sleep 15
#
# - name: Get number of tests
# run: echo "NUM_TESTS=$(npm run test-dry-run | grep -oP '\d+ (passing|pending)' | awk '{ sum += $1 } END { print sum }')" >> $GITHUB_ENV
Expand Down Expand Up @@ -153,11 +153,11 @@ jobs:
run: cp -r node-${{ env.LOWEST_SUPPORTED_NODE_MODULE }}-linux-x64 lib/binding/node-${{ env.LOWEST_SUPPORTED_NODE_MODULE }}-linux-x64

- name: Run Aerospike server
run: docker run -d --name aerospike -p 3000-3002:3000-3002 aerospike/aerospike-server
run: docker run -d -v .:./.github/assets/aerospike.conf --name aerospike -p 3000-3002:3000-3002 aerospike/aerospike-server --config-file ./aerospike.conf

- name: Wait for database to be ready
# Should be ready after 3 seconds
run: sleep 3
run: sleep 15

- name: Run tests
run: |
Expand All @@ -169,7 +169,7 @@ jobs:
npm install ..;
tsc;
cd ..;
npm run ts-test;
npm run ts-test ;
test-ce:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -226,11 +226,12 @@ jobs:

- name: Run Aerospike server
if: ${{ !contains(github.event.pull_request.labels.*.name, 'new-server-features') }}
run: docker run -d --name aerospike -p 3000-3002:3000-3002 aerospike/aerospike-server
run: docker run -d -v .:./.github/assets/aerospike.conf --name aerospike -p 3000-3002:3000-3002 aerospike/aerospike-server --config-file ./aerospike.conf


- name: Wait for database to be ready
# Should be ready after 3 seconds
run: sleep 3
run: sleep 15

- name: Run tests
run: |
Expand Down Expand Up @@ -281,7 +282,7 @@ jobs:
- name: Wait for database to be ready
# Should be ready after 3 seconds
run: sleep 3
run: sleep 15



Expand Down Expand Up @@ -417,11 +418,12 @@ jobs:

- name: Run Aerospike server
if: ${{ !contains(github.event.pull_request.labels.*.name, 'new-server-features') }}
run: docker run -d --name aerospike -p 3000-3002:3000-3002 aerospike/aerospike-server
run: docker run -d -v .:./.github/assets/aerospike.conf --name aerospike -p 3000-3002:3000-3002 aerospike/aerospike-server --config-file ./aerospike.conf


- name: Wait for database to be ready
# Should be ready after 3 seconds
run: sleep 3
run: sleep 15

- name: Run tests
run: npm run valgrind -- --t 40000
Expand Down Expand Up @@ -469,7 +471,8 @@ jobs:

- name: Run Aerospike server
if: ${{ !contains(github.event.pull_request.labels.*.name, 'new-server-features') }}
run: docker run -d --name aerospike -p 3000-3002:3000-3002 aerospike/aerospike-server
run: docker run -d -v .:./.github/assets/aerospike.conf --name aerospike -p 3000-3002:3000-3002 aerospike/aerospike-server --config-file ./aerospike.conf


- name: Modify the package.json
run: |
Expand Down

0 comments on commit effa230

Please sign in to comment.