Skip to content

Commit 54e793c

Browse files
author
Andrew Kent
committed
remote-api: setup relocated python client and tests
1 parent 746cc28 commit 54e793c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+1518
-4129
lines changed

.github/workflows/build.yml

+31-17
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,6 @@ jobs:
6969
git submodule update --init
7070
git -C deps/abcBridge submodule update --init
7171
72-
- uses: actions/setup-python@v2
73-
with:
74-
python-version: "3.x"
75-
76-
- shell: bash
77-
run: pip3 install virtualenv
78-
7972
- uses: haskell/actions/setup@v1
8073
id: setup-haskell
8174
with:
@@ -109,12 +102,18 @@ jobs:
109102
- shell: bash
110103
run: .github/ci.sh setup_dist_bins
111104

105+
106+
- uses: actions/setup-python@v2
107+
with:
108+
python-version: '3.9'
109+
- uses: abatilo/[email protected]
110+
with:
111+
poetry-version: 1.1.5
112112
- shell: bash
113-
id: cabal-test
114-
continue-on-error: true
115-
run: cabal v2-test saw-remote-api
116-
env:
117-
SAW_SERVER: ${GITHUB_WORKSPACE}/dist/bin/saw-remote-api
113+
run: |
114+
saw-remote-api/scripts/run_rpc_tests.sh
115+
saw-remote-api/scripts/check_docs.sh
116+
if: runner.os != 'Windows'
118117

119118
- uses: actions/setup-java@v1
120119
with:
@@ -149,11 +148,6 @@ jobs:
149148
name: "saw-${{ runner.os }}-${{ matrix.ghc }}"
150149
path: "dist/bin/saw"
151150

152-
- shell: bash
153-
if: "steps.cabal-test.outcome == 'failure'"
154-
name: Warn if tests failed
155-
run: echo "::error ::Test suite failed for saw-remote-api. Pipeline allowed to pass until tests are reliable."
156-
157151
docker:
158152
runs-on: ubuntu-18.04
159153
needs: [outputs]
@@ -169,6 +163,26 @@ jobs:
169163
repository: galoisinc/saw
170164
push: false
171165

166+
docker-server-test:
167+
runs-on: ubuntu-latest
168+
needs: [outputs]
169+
strategy:
170+
fail-fast: false
171+
name: Docker SAW Remote API Test
172+
steps:
173+
- uses: actions/checkout@v2
174+
with:
175+
submodules: true
176+
- run: git -C deps/abcBridge submodule update --init
177+
- uses: actions/setup-python@v2
178+
with:
179+
python-version: '3.9'
180+
- uses: abatilo/[email protected]
181+
with:
182+
poetry-version: 1.1.5
183+
- shell: bash
184+
run: saw-remote-api/scripts/build_and_test_docker.sh
185+
172186
s2n-tests:
173187
name: "Test s2n proofs"
174188
timeout-minutes: 60

saw-remote-api/Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,6 @@ USER saw
6767
ENV LANG=C.UTF-8 \
6868
LC_ALL=C.UTF-8
6969
ENTRYPOINT ["/usr/local/bin/saw-remote-api"]
70+
WORKDIR /home/saw
7071
CMD ["http", "--host", "0.0.0.0", "--port", "8080", "/"]
7172
EXPOSE 8080

0 commit comments

Comments
 (0)