Skip to content

Commit

Permalink
nuke tests and outdated utilities (#3154)
Browse files Browse the repository at this point in the history
getting rid from things that we don't need
  • Loading branch information
dshulyak committed Mar 26, 2022
1 parent 9202e3e commit aba1e3a
Show file tree
Hide file tree
Showing 141 changed files with 1 addition and 11,020 deletions.
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ cmd/tmp
.vagrant

/go-spacemesh
/go-hare
/cp.out
/cover.out
/cover-all.out
Expand Down
86 changes: 0 additions & 86 deletions .env

This file was deleted.

126 changes: 1 addition & 125 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -246,142 +246,18 @@ jobs:
else
exit 1
fi
systemtest-latenodes:
runs-on: ubuntu-latest
# only run on push, not on pull_request
if: ${{ needs.filter-changes.outputs.nondocchanges == 'true' && github.event_name == 'push' }}
needs:
- filter-changes
- dockerpush
timeout-minutes: 80
steps:
- name: checkout
uses: actions/checkout@v2
- name: late nodes system test
run: make dockertest-late-nodes
systemtest-mining:
runs-on: ubuntu-latest
# only run on push, not on pull_request
if: ${{ needs.filter-changes.outputs.nondocchanges == 'true' && github.event_name == 'push' }}
needs:
- filter-changes
- dockerpush
timeout-minutes: 80
steps:
- name: Sleep for 30 seconds
uses: jakejarvis/wait-action@master
with:
time: '30s'
- name: checkout
uses: actions/checkout@v2
- name: mining system test
run: make dockertest-mining
systemtest-blocks-remove-node:
runs-on: ubuntu-latest
# only run on push, not on pull_request
if: ${{ needs.filter-changes.outputs.nondocchanges == 'true' && github.event_name == 'push' }}
needs:
- filter-changes
- dockerpush
timeout-minutes: 80
steps:
- name: Sleep for 90 seconds
uses: jakejarvis/wait-action@master
with:
time: '90s'
- name: checkout
uses: actions/checkout@v2
- name: remove node test
run: make dockertest-blocks-remove-node
systemtest-blocks-add-node:
runs-on: ubuntu-latest
# only run on push, not on pull_request
if: ${{ needs.filter-changes.outputs.nondocchanges == 'true' && github.event_name == 'push' }}
needs:
- filter-changes
- dockerpush
timeout-minutes: 80
steps:
- name: Sleep for 150 seconds
uses: jakejarvis/wait-action@master
with:
time: '150s'
- name: checkout
uses: actions/checkout@v2
- name: blocks add node test
run: make dockertest-blocks-add-node
systemtest-p2p:
runs-on: ubuntu-latest
# only run on push, not on pull_request
if: ${{ needs.filter-changes.outputs.nondocchanges == 'true' && github.event_name == 'push' }}
needs:
- filter-changes
- dockerpush
timeout-minutes: 80
steps:
- name: Sleep for 210 seconds
uses: jakejarvis/wait-action@master
with:
time: '210s'
- name: checkout
uses: actions/checkout@v2
- name: p2p system test
run: make dockertest-p2p
systemtest-hare:
runs-on: ubuntu-latest
# only run on push, not on pull_request
if: ${{ needs.filter-changes.outputs.nondocchanges == 'true' && github.event_name == 'push' }}
needs:
- filter-changes
- dockerpush
timeout-minutes: 80
steps:
- name: Sleep for 330 seconds
uses: jakejarvis/wait-action@master
with:
time: '330s'
- name: checkout
uses: actions/checkout@v2
- name: hare system test
run: make dockertest-hare
systemtest-beacon:
runs-on: ubuntu-latest
# only run on push, not on pull_request
if: ${{ needs.filter-changes.outputs.nondocchanges == 'true' && github.event_name == 'push' }}
needs:
- filter-changes
- dockerpush
timeout-minutes: 80
steps:
- name: Sleep for 330 seconds
uses: jakejarvis/wait-action@master
with:
time: '330s'
- name: checkout
uses: actions/checkout@v2
- name: beacon system test
run: make dockertest-beacon


# this summary job is a shortcut that obviates the need to list every individual job in bors.toml
# all tests that are required to pass before a bors merge must be listed here!
ci-stage2:
if: always() && github.event_name == 'push' && needs.ci-stage1.result == 'success'
needs:
- filter-changes
- ci-stage1
- systemtest-latenodes
- systemtest-blocks-add-node
- systemtest-blocks-remove-node
- systemtest-mining
- systemtest-p2p
- systemtest-hare
- systemtest-beacon
- systest
runs-on: ubuntu-latest
env:
# short-circuit success if no non-doc files were modified
status: ${{ (needs.filter-changes.outputs.nondocchanges == 'false' || (needs.systest.result == 'success' && needs.systemtest-latenodes.result == 'success' && needs.systemtest-blocks-add-node.result == 'success' && needs.systemtest-blocks-remove-node.result == 'success' && needs.systemtest-mining.result == 'success' && needs.systemtest-p2p.result == 'success' && needs.systemtest-hare.result == 'success' && needs.systemtest-beacon.result == 'success')) && 'success' || 'failure' }}
status: ${{ (needs.filter-changes.outputs.nondocchanges == 'false' || needs.systest.result == 'success') && 'success' || 'failure' }}
steps:
# print a single, clean status update to slack
- uses: act10ns/slack@v1
Expand Down
46 changes: 0 additions & 46 deletions DockerFileTests

This file was deleted.

2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,6 @@ FROM linux AS spacemesh

# Finally we copy the statically compiled Go binary.
COPY --from=server_builder /go/src/github.com/spacemeshos/go-spacemesh/build/go-spacemesh /bin/
COPY --from=server_builder /go/src/github.com/spacemeshos/go-spacemesh/build/go-hare /bin/
COPY --from=server_builder /go/src/github.com/spacemeshos/go-spacemesh/build/go-p2p /bin/
COPY --from=server_builder /go/src/github.com/spacemeshos/go-spacemesh/build/go-harness /bin/
COPY --from=server_builder /go/src/github.com/spacemeshos/go-spacemesh/build/libgpu-setup.so /bin/
# TODO(nkryuchkov): uncomment when go-svm is imported
Expand Down
Loading

0 comments on commit aba1e3a

Please sign in to comment.