Skip to content

Commit

Permalink
Merge pull request #306 from simondeziel/move-to-the-top
Browse files Browse the repository at this point in the history
all: Move `microcloud/*` one level up
  • Loading branch information
masnax committed May 8, 2024
2 parents 3e516f9 + 8f11bb2 commit 9c8fd0d
Show file tree
Hide file tree
Showing 50 changed files with 15 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/commits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Check if CLA signed
uses: canonical/has-signed-canonical-cla@v1
uses: canonical/has-signed-canonical-cla@main
29 changes: 12 additions & 17 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,16 @@ jobs:
# A non-shallow clone is needed for the Differential ShellCheck
fetch-depth: 0

- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.22.x

- name: Check compatibility with min Go version (1.22.0)
run: |
set -eux
go mod tidy -go=1.22.0
- name: Dependency Review
uses: actions/dependency-review-action@v4
if: github.event_name == 'pull_request'
Expand All @@ -50,33 +60,19 @@ jobs:
path: ${{ steps.ShellCheck.outputs.sarif }}
if: github.event_name == 'pull_request'

- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.22.x

- name: Check compatibility with min Go version (1.22.0)
working-directory: microcloud
run: |
set -eux
go mod tidy -go=1.22.0
- name: Install dependencies
run: |
sudo add-apt-repository ppa:dqlite/dev -y --no-update
sudo apt-get update
sudo apt-get install --no-install-recommends -y libdqlite-dev pkg-config
- name: Build
working-directory: microcloud
run: make

- name: Run static analysis
working-directory: microcloud
run: make check-static

- name: Unit tests
working-directory: microcloud
run: make check-unit

system-tests:
Expand Down Expand Up @@ -163,7 +159,6 @@ jobs:
sudo apt-get install --no-install-recommends -y libdqlite-dev pkg-config
- name: Build
working-directory: microcloud
run: |
set -eux
Expand Down Expand Up @@ -212,15 +207,15 @@ jobs:
run: |
set -eux
chmod +x ~
cd microcloud/test
cd test
sudo --preserve-env=DEBUG,GITHUB_ACTIONS,MICROCLOUD_DEBUG_PATH,MICROCLOUDD_DEBUG_PATH,SKIP_VM_LAUNCH,SNAPSHOT_RESTORE,TEST_STORAGE_SOURCE,TESTBED_READY ./main.sh setup
echo "TESTBED_READY=1" >> "${GITHUB_ENV}"
- name: "Run system tests (${{ matrix.go }}, ${{ matrix.suite }})"
run: |
set -eux
chmod +x ~
cd microcloud/test
cd test
sudo --preserve-env=DEBUG,GITHUB_ACTIONS,MICROCLOUD_DEBUG_PATH,MICROCLOUDD_DEBUG_PATH,SKIP_VM_LAUNCH,SNAPSHOT_RESTORE,TEST_STORAGE_SOURCE,TESTBED_READY ./main.sh ${{ matrix.suite }}
documentation-checks:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,7 @@ reset_snaps() {
# Makes only `num_disks` and `num_ifaces` disks and interfaces available for the next test.
reset_system() {
if [ "${SNAPSHOT_RESTORE}" = 1 ]; then
# shellcheck disable=SC2048,SC2086
restore_system ${*}
return
fi
Expand Down Expand Up @@ -633,6 +634,7 @@ cluster_reset() {
# reset_systems: Concurrently or sequentially resets the specified number of systems.
reset_systems() {
if [ "${SNAPSHOT_RESTORE}" = 1 ]; then
# shellcheck disable=SC2048,SC2086
restore_systems ${*}
return
fi
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 9c8fd0d

Please sign in to comment.