Skip to content

Commit

Permalink
Add latest signatures (#311)
Browse files Browse the repository at this point in the history
* Add latest signatures

* black formatting

* skip test

* flake8

* Update reserved constrainr name

* Add step to update vm.max_map_count

* Use windows-2019 github runner

* Use github large runner

* Test 5 different large runners

* Add continue-on-erro: true to windows runs

* Add systemctl mask memgraph to stop it from running on dpkg -i

* Use wsl ubuntu22.04

* Use wsl ubuntu22.04

* Add step to set wsl default version to 2

* Bump Vampire/setup-wsl version

* Add step to change vm.max_map_count value

* Skip windows tests

---------

Co-authored-by: Marko Barišić <[email protected]>
  • Loading branch information
katarinasupe and MarkoBarisic authored Jul 4, 2024
1 parent 9bf07f6 commit 69180c2
Show file tree
Hide file tree
Showing 4 changed files with 619 additions and 9 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Build and Test
env:
MG_VERSION: "2.17.0"
POETRY_VERSION: "1.2.2"
VM_MAX_MAP_COUNT: "262144"

on:
push:
Expand Down Expand Up @@ -105,7 +106,9 @@ jobs:
path: /var/log/memgraph

build_and_test_windows:
if: github.event.pull_request.draft == false
if: false
# if: github.event.pull_request.draft == false
continue-on-error: true
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]
Expand All @@ -123,17 +126,23 @@ jobs:
python -m pip install -U pip
python -m pip install networkx numpy scipy
python -m pip install poethepoet==0.18.1
- uses: Vampire/setup-wsl@v1
- name: Set default WSL version to 2
run: wsl --set-default-version 2
- uses: Vampire/setup-wsl@v3
with:
distribution: Ubuntu-20.04
distribution: Ubuntu-22.04
- name: Update vm.max_map_count
shell: wsl-bash {0} #root shell
run: sysctl -w vm.max_map_count=${{ env.VM_MAX_MAP_COUNT }}
- name: Download, install and run Memgraph under WSL
shell: wsl-bash {0} # root shell
run: |
sudo apt-get update
sudo apt-get -y install python3 python3-pip ipython3
pip3 install networkx numpy scipy
mkdir /memgraph
curl -L https://download.memgraph.com/memgraph/v${{env.MG_VERSION}}/ubuntu-20.04/memgraph_${{env.MG_VERSION}}-1_amd64.deb --output /memgraph/memgraph-community.deb
curl -L https://download.memgraph.com/memgraph/v${{env.MG_VERSION}}/ubuntu-22.04/memgraph_${{env.MG_VERSION}}-1_amd64.deb --output /memgraph/memgraph-community.deb
systemctl mask memgraph
dpkg -i /memgraph/memgraph-community.deb
mkdir /mnt/c/memgraph
runuser -l memgraph -c '/usr/lib/memgraph/memgraph --bolt-port 7687 --bolt-session-inactivity-timeout=300 --data-directory="/mnt/c/memgraph/data" --storage-properties-on-edges=true --storage-snapshot-interval-sec=0 --storage-wal-enabled=false --storage-recover-on-startup=false --storage-snapshot-on-exit=false --telemetry-enabled=false --log-level=TRACE --also-log-to-stderr=true --log-file=/mnt/c/memgraph/memgraph-windows-${{ matrix.python-version }}.log' &
Expand Down
Loading

0 comments on commit 69180c2

Please sign in to comment.