From 80d79707f35890fa1d2fcc7f0c706c51ec3733d7 Mon Sep 17 00:00:00 2001 From: rexim Date: Wed, 6 Nov 2024 22:01:09 +0700 Subject: [PATCH 01/19] [ci] Try to install autobahn testsuite in pypy2.7 env --- .github/workflows/autobahn.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .github/workflows/autobahn.yaml diff --git a/.github/workflows/autobahn.yaml b/.github/workflows/autobahn.yaml new file mode 100644 index 0000000..8e69e11 --- /dev/null +++ b/.github/workflows/autobahn.yaml @@ -0,0 +1,13 @@ +name: autobahn testsuit report +on: [push, pull_request] + +jobs: + ubuntu: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: 'pypy2.7' + - run: pip install -U pip + - run: pip install autobahntestsuit==0.8.2 From da94d283b59a2903f80fa743ab773d3d4ac4de77 Mon Sep 17 00:00:00 2001 From: rexim Date: Wed, 6 Nov 2024 22:03:51 +0700 Subject: [PATCH 02/19] gitignore editors crap --- .gitignore | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 3653f44..83ead23 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,8 @@ example_client example_server fuzzingclient.json -reports/ \ No newline at end of file +reports/ + +# Editors crap +.*.swp +*~ From b47abeba2c029d9e23ddb09523749b15b34abdd5 Mon Sep 17 00:00:00 2001 From: rexim Date: Wed, 6 Nov 2024 22:04:16 +0700 Subject: [PATCH 03/19] [ci] typo --- .github/workflows/autobahn.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/autobahn.yaml b/.github/workflows/autobahn.yaml index 8e69e11..ec14b69 100644 --- a/.github/workflows/autobahn.yaml +++ b/.github/workflows/autobahn.yaml @@ -10,4 +10,4 @@ jobs: with: python-version: 'pypy2.7' - run: pip install -U pip - - run: pip install autobahntestsuit==0.8.2 + - run: pip install autobahntestsuite==0.8.2 From ba8ccba8875ff241493206a710b96d5e520007bb Mon Sep 17 00:00:00 2001 From: rexim Date: Wed, 6 Nov 2024 22:09:39 +0700 Subject: [PATCH 04/19] [ci] Try disabling `pip install -U pip` --- .github/workflows/autobahn.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/autobahn.yaml b/.github/workflows/autobahn.yaml index ec14b69..cafae25 100644 --- a/.github/workflows/autobahn.yaml +++ b/.github/workflows/autobahn.yaml @@ -9,5 +9,5 @@ jobs: - uses: actions/setup-python@v5 with: python-version: 'pypy2.7' - - run: pip install -U pip + #- run: pip install -U pip - run: pip install autobahntestsuite==0.8.2 From 89cf342ea744869625662561d5948f2cec050e97 Mon Sep 17 00:00:00 2001 From: rexim Date: Wed, 6 Nov 2024 22:11:30 +0700 Subject: [PATCH 05/19] [ci] try explicitly calling pip2 --- .github/workflows/autobahn.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/autobahn.yaml b/.github/workflows/autobahn.yaml index cafae25..8cbd6fe 100644 --- a/.github/workflows/autobahn.yaml +++ b/.github/workflows/autobahn.yaml @@ -10,4 +10,4 @@ jobs: with: python-version: 'pypy2.7' #- run: pip install -U pip - - run: pip install autobahntestsuite==0.8.2 + - run: pip2 install autobahntestsuite==0.8.2 From 81d2625aea4d4e7d58d756210949b35e84b527a9 Mon Sep 17 00:00:00 2001 From: rexim Date: Wed, 6 Nov 2024 22:15:13 +0700 Subject: [PATCH 06/19] [ci] try to use CPython 2.7 --- .github/workflows/autobahn.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/autobahn.yaml b/.github/workflows/autobahn.yaml index 8cbd6fe..ec92ab2 100644 --- a/.github/workflows/autobahn.yaml +++ b/.github/workflows/autobahn.yaml @@ -8,6 +8,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: 'pypy2.7' + #python-version: 'pypy2.7' + python-version: '2.7' #- run: pip install -U pip - run: pip2 install autobahntestsuite==0.8.2 From d71088e1fa0941419390141f04691c2a203cc7a7 Mon Sep 17 00:00:00 2001 From: rexim Date: Wed, 6 Nov 2024 22:15:47 +0700 Subject: [PATCH 07/19] Revert "[ci] try to use CPython 2.7" This reverts commit 81d2625aea4d4e7d58d756210949b35e84b527a9. --- .github/workflows/autobahn.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/autobahn.yaml b/.github/workflows/autobahn.yaml index ec92ab2..8cbd6fe 100644 --- a/.github/workflows/autobahn.yaml +++ b/.github/workflows/autobahn.yaml @@ -8,7 +8,6 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - #python-version: 'pypy2.7' - python-version: '2.7' + python-version: 'pypy2.7' #- run: pip install -U pip - run: pip2 install autobahntestsuite==0.8.2 From 254790f0ac5f2f6014914f79fbcc8ad23f04e73f Mon Sep 17 00:00:00 2001 From: rexim Date: Thu, 7 Nov 2024 00:50:10 +0700 Subject: [PATCH 08/19] [ci] try creating venv --- .github/workflows/autobahn.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/autobahn.yaml b/.github/workflows/autobahn.yaml index 8cbd6fe..7df30b9 100644 --- a/.github/workflows/autobahn.yaml +++ b/.github/workflows/autobahn.yaml @@ -10,4 +10,5 @@ jobs: with: python-version: 'pypy2.7' #- run: pip install -U pip - - run: pip2 install autobahntestsuite==0.8.2 + #- run: pip2 install autobahntestsuite==0.8.2 + - run: python -m venv ./venv/ From 7d36b8045bbe33c70c36d0bd1562d64ddc60ce7a Mon Sep 17 00:00:00 2001 From: rexim Date: Thu, 7 Nov 2024 00:53:51 +0700 Subject: [PATCH 09/19] [ci] try using CPython3.13 --- .github/workflows/autobahn.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/autobahn.yaml b/.github/workflows/autobahn.yaml index 7df30b9..735025a 100644 --- a/.github/workflows/autobahn.yaml +++ b/.github/workflows/autobahn.yaml @@ -8,7 +8,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: 'pypy2.7' - #- run: pip install -U pip - #- run: pip2 install autobahntestsuite==0.8.2 - - run: python -m venv ./venv/ + python-version: '3.13' + - run: pip install -U pip + - run: pip install autobahntestsuite==0.8.2 + #- run: python -m venv ./venv/ From e2ce6266a58250b3d2f0b27c335c9415d5e9e428 Mon Sep 17 00:00:00 2001 From: rexim Date: Thu, 7 Nov 2024 00:56:13 +0700 Subject: [PATCH 10/19] [ci] try to run install wstest --- .github/workflows/autobahn.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/autobahn.yaml b/.github/workflows/autobahn.yaml index 735025a..ee4e01f 100644 --- a/.github/workflows/autobahn.yaml +++ b/.github/workflows/autobahn.yaml @@ -11,4 +11,5 @@ jobs: python-version: '3.13' - run: pip install -U pip - run: pip install autobahntestsuite==0.8.2 + - run: wstest --help #- run: python -m venv ./venv/ From 58f26a391de0c265ffc18c26163ddc9bc37b8e52 Mon Sep 17 00:00:00 2001 From: rexim Date: Thu, 7 Nov 2024 01:17:13 +0700 Subject: [PATCH 11/19] Try to manually install pypy2.7 --- .github/workflows/autobahn.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/autobahn.yaml b/.github/workflows/autobahn.yaml index ee4e01f..21a7ffd 100644 --- a/.github/workflows/autobahn.yaml +++ b/.github/workflows/autobahn.yaml @@ -11,5 +11,7 @@ jobs: python-version: '3.13' - run: pip install -U pip - run: pip install autobahntestsuite==0.8.2 - - run: wstest --help + - run: wget https://downloads.python.org/pypy/pypy2.7-v7.3.17-linux64.tar.bz2 + - run: tar fvx pypy2.7-v7.3.17-linux64.tar.bz2 + - run: ./pypy2.7-v7.3.17-linux64/bin/pypy $(which wstest) --help #- run: python -m venv ./venv/ From 2799849b8f51017eb21b4ec00a1d4f19d1c9221f Mon Sep 17 00:00:00 2001 From: rexim Date: Thu, 7 Nov 2024 02:01:07 +0700 Subject: [PATCH 12/19] [ci] create venv --- .github/workflows/autobahn.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/autobahn.yaml b/.github/workflows/autobahn.yaml index 21a7ffd..ad9c863 100644 --- a/.github/workflows/autobahn.yaml +++ b/.github/workflows/autobahn.yaml @@ -14,4 +14,4 @@ jobs: - run: wget https://downloads.python.org/pypy/pypy2.7-v7.3.17-linux64.tar.bz2 - run: tar fvx pypy2.7-v7.3.17-linux64.tar.bz2 - run: ./pypy2.7-v7.3.17-linux64/bin/pypy $(which wstest) --help - #- run: python -m venv ./venv/ + - run: python -m venv ./venv/ From 9b4fd3d88937673eaed99bacc91416b2d9fee904 Mon Sep 17 00:00:00 2001 From: rexim Date: Thu, 7 Nov 2024 02:02:41 +0700 Subject: [PATCH 13/19] [ci] temporarily disable wstest --help --- .github/workflows/autobahn.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/autobahn.yaml b/.github/workflows/autobahn.yaml index ad9c863..5d74b54 100644 --- a/.github/workflows/autobahn.yaml +++ b/.github/workflows/autobahn.yaml @@ -13,5 +13,5 @@ jobs: - run: pip install autobahntestsuite==0.8.2 - run: wget https://downloads.python.org/pypy/pypy2.7-v7.3.17-linux64.tar.bz2 - run: tar fvx pypy2.7-v7.3.17-linux64.tar.bz2 - - run: ./pypy2.7-v7.3.17-linux64/bin/pypy $(which wstest) --help - run: python -m venv ./venv/ + #- run: ./pypy2.7-v7.3.17-linux64/bin/pypy $(which wstest) --help From 49fccaccf260ab9492f655bec8a732a815708b01 Mon Sep 17 00:00:00 2001 From: rexim Date: Thu, 7 Nov 2024 02:05:29 +0700 Subject: [PATCH 14/19] [ci] install autobahntestsuite in venv and check wstest --- .github/workflows/autobahn.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/autobahn.yaml b/.github/workflows/autobahn.yaml index 5d74b54..72de0ec 100644 --- a/.github/workflows/autobahn.yaml +++ b/.github/workflows/autobahn.yaml @@ -9,9 +9,10 @@ jobs: - uses: actions/setup-python@v5 with: python-version: '3.13' - - run: pip install -U pip + #- run: pip install -U pip + - run: python -m venv ./venv/ + - run: source ./venv/bin/activate - run: pip install autobahntestsuite==0.8.2 - run: wget https://downloads.python.org/pypy/pypy2.7-v7.3.17-linux64.tar.bz2 - run: tar fvx pypy2.7-v7.3.17-linux64.tar.bz2 - - run: python -m venv ./venv/ - #- run: ./pypy2.7-v7.3.17-linux64/bin/pypy $(which wstest) --help + - run: ./pypy2.7-v7.3.17-linux64/bin/pypy $(which wstest) --help From bf28111cb608fe36b14f1f530551c52c23164d21 Mon Sep 17 00:00:00 2001 From: rexim Date: Thu, 7 Nov 2024 02:09:34 +0700 Subject: [PATCH 15/19] [ci] try to properly activate venv --- .github/workflows/autobahn.yaml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/autobahn.yaml b/.github/workflows/autobahn.yaml index 72de0ec..680a11b 100644 --- a/.github/workflows/autobahn.yaml +++ b/.github/workflows/autobahn.yaml @@ -10,9 +10,11 @@ jobs: with: python-version: '3.13' #- run: pip install -U pip + - run: | + wget https://downloads.python.org/pypy/pypy2.7-v7.3.17-linux64.tar.bz2 + tar fvx pypy2.7-v7.3.17-linux64.tar.bz2 - run: python -m venv ./venv/ - - run: source ./venv/bin/activate - - run: pip install autobahntestsuite==0.8.2 - - run: wget https://downloads.python.org/pypy/pypy2.7-v7.3.17-linux64.tar.bz2 - - run: tar fvx pypy2.7-v7.3.17-linux64.tar.bz2 - - run: ./pypy2.7-v7.3.17-linux64/bin/pypy $(which wstest) --help + - run: | + source ./venv/bin/activate + pip install autobahntestsuite==0.8.2 + ./pypy2.7-v7.3.17-linux64/bin/pypy $(which wstest) --help From 724429904536e122c6a676def08a731e412ed625 Mon Sep 17 00:00:00 2001 From: rexim Date: Thu, 7 Nov 2024 02:12:48 +0700 Subject: [PATCH 16/19] [ci] work with venv directly instead of activating it --- .github/workflows/autobahn.yaml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/autobahn.yaml b/.github/workflows/autobahn.yaml index 680a11b..eb54a51 100644 --- a/.github/workflows/autobahn.yaml +++ b/.github/workflows/autobahn.yaml @@ -10,11 +10,8 @@ jobs: with: python-version: '3.13' #- run: pip install -U pip - - run: | - wget https://downloads.python.org/pypy/pypy2.7-v7.3.17-linux64.tar.bz2 - tar fvx pypy2.7-v7.3.17-linux64.tar.bz2 - run: python -m venv ./venv/ - - run: | - source ./venv/bin/activate - pip install autobahntestsuite==0.8.2 - ./pypy2.7-v7.3.17-linux64/bin/pypy $(which wstest) --help + - run: ./venv/bin/pip install autobahntestsuite==0.8.2 + - run: wget https://downloads.python.org/pypy/pypy2.7-v7.3.17-linux64.tar.bz2 + - run: tar fvx pypy2.7-v7.3.17-linux64.tar.bz2 + - run: ./pypy2.7-v7.3.17-linux64/bin/pypy ./venv/bin/wstest --help From 32872fcb18b87bebc813e1fb54900dbc278f4652 Mon Sep 17 00:00:00 2001 From: rexim Date: Thu, 7 Nov 2024 02:15:16 +0700 Subject: [PATCH 17/19] [ci] go back to pypy2.7 but know with venv --- .github/workflows/autobahn.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/autobahn.yaml b/.github/workflows/autobahn.yaml index eb54a51..fb0e988 100644 --- a/.github/workflows/autobahn.yaml +++ b/.github/workflows/autobahn.yaml @@ -8,10 +8,10 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: '3.13' - #- run: pip install -U pip + python-version: 'pypy2.7' - run: python -m venv ./venv/ - run: ./venv/bin/pip install autobahntestsuite==0.8.2 - - run: wget https://downloads.python.org/pypy/pypy2.7-v7.3.17-linux64.tar.bz2 - - run: tar fvx pypy2.7-v7.3.17-linux64.tar.bz2 - - run: ./pypy2.7-v7.3.17-linux64/bin/pypy ./venv/bin/wstest --help + - run: ./venv/bin/wstest --help + #- run: wget https://downloads.python.org/pypy/pypy2.7-v7.3.17-linux64.tar.bz2 + #- run: tar fvx pypy2.7-v7.3.17-linux64.tar.bz2 + #- run: ./pypy2.7-v7.3.17-linux64/bin/pypy ./venv/bin/wstest --help From e442fd35c3661bb637b7e96c4fe2f4b50c267a86 Mon Sep 17 00:00:00 2001 From: rexim Date: Thu, 7 Nov 2024 02:16:45 +0700 Subject: [PATCH 18/19] [ci] can you just install virtualenv --- .github/workflows/autobahn.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/autobahn.yaml b/.github/workflows/autobahn.yaml index fb0e988..90f3ad0 100644 --- a/.github/workflows/autobahn.yaml +++ b/.github/workflows/autobahn.yaml @@ -9,6 +9,7 @@ jobs: - uses: actions/setup-python@v5 with: python-version: 'pypy2.7' + - run: pip install virtualenv - run: python -m venv ./venv/ - run: ./venv/bin/pip install autobahntestsuite==0.8.2 - run: ./venv/bin/wstest --help From 90099150248f61f77b5d2d51a60cf20db14c43b2 Mon Sep 17 00:00:00 2001 From: rexim Date: Thu, 7 Nov 2024 02:19:00 +0700 Subject: [PATCH 19/19] [ci] is the module actually called virtualenv? --- .github/workflows/autobahn.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/autobahn.yaml b/.github/workflows/autobahn.yaml index 90f3ad0..e61ce07 100644 --- a/.github/workflows/autobahn.yaml +++ b/.github/workflows/autobahn.yaml @@ -10,7 +10,7 @@ jobs: with: python-version: 'pypy2.7' - run: pip install virtualenv - - run: python -m venv ./venv/ + - run: python -m virtualenv ./venv/ - run: ./venv/bin/pip install autobahntestsuite==0.8.2 - run: ./venv/bin/wstest --help #- run: wget https://downloads.python.org/pypy/pypy2.7-v7.3.17-linux64.tar.bz2