-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: initial projection query DSL implementation * feat: support complex queries * feat: add support to multi arch images * chore: update deps * fix: projection repo start and some tests * fix: add child spec to native projection adapter * feat: added more tests * fix: String.chars not implemented * fix: convert to chars * try fix * handle tuple args * fix: assert tests * fix: formatting * translate comments * feat: add support to group by * feat: added support to having clause * refactor: fix some compilation warnings * trying nimble_parsec to parse queries * some progress in query dsl parser * feat: create projection tables from protobuf data * refactor: minor adjust * feat: added dynamic table creator * refactor: rename module * working projection table with upsert and query * refact * refact * merge * querying and table creation working on projection actor initialization * saving state after callback * pagination to queries * tests fix * remove ununsed code * fix * fix test * fix some errors * working for mariaDB and native throwing exception * mix format * ci with mariadb and postgres statestores test * ci changes * ci fix * ci fix again * ci fix again * password for postgres * ci again * run otp 25 * longblob * ci fix * ci fix * remove double mariadb * ci fix * ci * user admin * ci fix * ci fix * comment mariadb --------- Co-authored-by: Adriano Santos <[email protected]> Co-authored-by: Elias <[email protected]>
- Loading branch information
1 parent
ba0b650
commit bffcab3
Showing
20 changed files
with
1,811 additions
and
1,023 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
otp: [25. 26] | ||
otp: [25] | ||
elixir: [1.15] | ||
|
||
env: | ||
|
@@ -25,6 +25,59 @@ jobs: | |
- name: Install Protoc | ||
uses: arduino/setup-protoc@v3 | ||
|
||
- name: Install and Configure Postgres on Port 5232 | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y postgresql postgresql-contrib | ||
sudo service postgresql start | ||
# Set the password for the 'postgres' user to 'postgres' | ||
sudo -u postgres psql -c "ALTER USER postgres WITH PASSWORD 'postgres';" | ||
# Allow password authentication (uncomment in pg_hba.conf) | ||
sudo sed -i "s/^#host all all 127.0.0.1\/32 md5/host all all 127.0.0.1\/32 md5/" /etc/postgresql/*/main/pg_hba.conf | ||
sudo sed -i "s/^#host all all ::1\/128 md5/host all all ::1\/128 md5/" /etc/postgresql/*/main/pg_hba.conf | ||
# Increase max_connections in postgresql.conf | ||
sudo sed -i "s/^#max_connections = [0-9]*/max_connections = 500/" /etc/postgresql/*/main/postgresql.conf | ||
# Restart PostgreSQL to apply changes | ||
sudo service postgresql restart | ||
# Create the database | ||
sudo -u postgres psql -c "CREATE DATABASE \"eigr-functions-db\";" | ||
- name: Shutdown Ubuntu MySQL (SUDO) | ||
run: sudo service mysql stop | ||
|
||
# - name: Set up MariaDB | ||
# uses: getong/[email protected] | ||
# with: | ||
# host port: 3307 | ||
# container port: 3307 | ||
# character set server: 'utf8' | ||
# collation server: 'utf8_general_ci' | ||
# mariadb version: '10.4.10' | ||
# mysql database: 'eigr-functions-db' | ||
# | ||
# - name: Wait for MariaDB to be Ready | ||
# run: | | ||
# for i in {1..10}; do | ||
# if mysqladmin ping -h127.0.0.1 -P3307 --silent; then | ||
# echo "MariaDB is ready!" | ||
# break | ||
# fi | ||
# echo "Waiting for MariaDB..." | ||
# sleep 5 | ||
# done | ||
# | ||
# - name: Set up MariaDB User | ||
# run: | | ||
# # Create 'admin' user with password 'admin' and grant privileges | ||
# mysql -h127.0.0.1 -P3307 -uroot -e "CREATE USER IF NOT EXISTS 'admin'@'%' IDENTIFIED BY 'admin';" | ||
# mysql -h127.0.0.1 -P3307 -uroot -e "GRANT ALL PRIVILEGES ON *.* TO 'admin'@'%' WITH GRANT OPTION;" | ||
# mysql -h127.0.0.1 -P3307 -uroot -e "FLUSH PRIVILEGES;" | ||
|
||
- name: Install NATS with JetStream | ||
run: | | ||
wget https://github.com/nats-io/nats-server/releases/download/v2.10.0/nats-server-v2.10.0-linux-amd64.tar.gz | ||
|
@@ -66,13 +119,36 @@ jobs: | |
MIX_ENV=test PROXY_DATABASE_TYPE=native SPAWN_SUPERVISORS_STATE_HANDOFF_CONTROLLER=nats SPAWN_USE_INTERNAL_NATS=true SPAWN_PUBSUB_ADAPTER=nats PROXY_CLUSTER_STRATEGY=gossip PROXY_DATABASE_POOL_SIZE=15 PROXY_HTTP_PORT=9005 SPAWN_STATESTORE_KEY=3Jnb0hZiHIzHTOih7t2cTEPEpY98Tu1wvQkPfq/XwqE= elixir --name [email protected] -S mix test | ||
cd ../../ | ||
- name: Run tests spawn_statestores | ||
- name: Run tests spawn_statestores_postgres | ||
run: | | ||
cd spawn_statestores/statestores | ||
cd spawn_statestores/statestores_postgres | ||
mix deps.get | ||
MIX_ENV=test PROXY_CLUSTER_STRATEGY=gossip PROXY_HTTP_PORT=9005 SPAWN_STATESTORE_KEY=3Jnb0hZiHIzHTOih7t2cTEPEpY98Tu1wvQkPfq/XwqE= elixir --name [email protected] -S mix test | ||
MIX_ENV=test \ | ||
PROXY_DATABASE_TYPE=postgres \ | ||
PROXY_DATABASE_PORT=5432 \ | ||
PROXY_DATABASE_USERNAME=postgres \ | ||
PROXY_DATABASE_SECRET=postgres \ | ||
PROXY_CLUSTER_STRATEGY=gossip \ | ||
PROXY_HTTP_PORT=9005 \ | ||
SPAWN_STATESTORE_KEY=3Jnb0hZiHIzHTOih7t2cTEPEpY98Tu1wvQkPfq/XwqE= \ | ||
elixir --name [email protected] -S mix test | ||
cd ../../ | ||
# - name: Run tests spawn_statestores_mariadb | ||
# run: | | ||
# cd spawn_statestores/statestores_mariadb | ||
# mix deps.get | ||
# MIX_ENV=test \ | ||
# PROXY_DATABASE_TYPE=mariadb \ | ||
# PROXY_DATABASE_PORT=3307 \ | ||
# PROXY_DATABASE_USERNAME=admin \ | ||
# PROXY_DATABASE_SECRET=admin \ | ||
# PROXY_CLUSTER_STRATEGY=gossip \ | ||
# PROXY_HTTP_PORT=9005 \ | ||
# SPAWN_STATESTORE_KEY=3Jnb0hZiHIzHTOih7t2cTEPEpY98Tu1wvQkPfq/XwqE= \ | ||
# elixir --name [email protected] -S mix test | ||
# cd ../../ | ||
|
||
- name: Run tests statestores_native | ||
run: | | ||
cd spawn_statestores/statestores_native | ||
|
@@ -100,3 +176,4 @@ jobs: | |
# mix deps.get | ||
# MIX_ENV=test PROXY_DATABASE_TYPE=mysql PROXY_CLUSTER_STRATEGY=gossip PROXY_HTTP_PORT=9005 SPAWN_STATESTORE_KEY=3Jnb0hZiHIzHTOih7t2cTEPEpY98Tu1wvQkPfq/XwqE= elixir --name [email protected] -S mix test | ||
# cd ../../ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.