Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: move debian-12 and sid to openstack #14779

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ jobs:
tasks: 'tests/...'
rules: 'main'
- group: debian-not-req
backend: google-distro-1
backend: openstack
systems: 'debian-12-64 debian-sid-64'
tasks: 'tests/...'
rules: 'main'
Expand Down
3 changes: 3 additions & 0 deletions tests/lib/spread/backend.openstack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,7 @@
- debian-12-64:
image: snapd-spread/debian-12-64
workers: 6
- debian-sid-64:
image: snapd-spread/debian-sid-64
workers: 6

12 changes: 12 additions & 0 deletions tests/unit/go/task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,18 +60,28 @@ execute: |
# test workflow static checks. They can therefore be safely skipped here.
skip="${skip:-} SKIP_GOLANGCI_LINT=1"

PROXY_PARAM=""
if [ -n "${http_proxy:-}" ]; then
PROXY_PARAM="HTTP_PROXY=$http_proxy"
fi
if [ -n "${https_proxy:-}" ]; then
PROXY_PARAM="$PROXY_PARAM HTTPS_PROXY=$https_proxy"
fi

if not os.query is-trusty; then
if [ "$VARIANT" = "static" ] ; then
tests.session -u test exec sh -c "cd /tmp/static-unit-tests/src/github.com/snapcore/snapd && \
PATH=$PATH \
GOPATH=/tmp/static-unit-tests \
$PROXY_PARAM \
${skip:-} \
SKIP_TESTS_FORMAT_CHECK=1 \
./run-checks --static"
else
tests.session -u test exec sh -c "cd /tmp/static-unit-tests/src/github.com/snapcore/snapd && \
PATH=$PATH \
GOPATH=/tmp/static-unit-tests \
$PROXY_PARAM \
SKIP_COVERAGE=1 \
CC=$VARIANT \
./run-checks --unit"
Expand All @@ -98,13 +108,15 @@ execute: |
su -l -c "cd /tmp/static-unit-tests/src/github.com/snapcore/snapd && \
PATH=$PATH \
GOPATH=/tmp/static-unit-tests \
$PROXY_PARAM \
${skip:-} \
SKIP_TESTS_FORMAT_CHECK=1 \
./run-checks --static" test
else
su -l -c "cd /tmp/static-unit-tests/src/github.com/snapcore/snapd && \
PATH=$PATH \
GOPATH=/tmp/static-unit-tests \
$PROXY_PARAM \
SKIP_COVERAGE=1 \
CC=$VARIANT \
./run-checks --unit" test
Expand Down
Loading