Skip to content
New issue

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

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

Already on GitHub? # to your account

🔧 Allow testing overlya files branches #2791

Merged
merged 1 commit into from
Aug 6, 2024
Merged
Changes from all 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
14 changes: 14 additions & 0 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@
COPY +git-version/GIT_VERSION VERSION
ARG KAIROS_AGENT_DEV_BRANCH
ARG IMMUCORE_DEV_BRANCH
ARG OVERLAY_FILES_DEV_BRANCH

IF [ "$KAIROS_AGENT_DEV_BRANCH" != "" ]
RUN rm -rf /usr/bin/kairos-agent
Expand All @@ -298,12 +299,25 @@
fi
END

IF [ "$OVERLAY_FILES_DEV_BRANCH" != "" ]
COPY +overlay-files/files /
END

ARG _CIMG=$(cat /IMAGE)
SAVE IMAGE $_CIMG
SAVE ARTIFACT /IMAGE AS LOCAL build/IMAGE
SAVE ARTIFACT VERSION AS LOCAL build/VERSION
SAVE ARTIFACT /etc/kairos/versions.yaml versions.yaml AS LOCAL build/versions.yaml

# Dev target to extract overlay files from specific commit or branch for testing
overlay-files:
ARG OVERLAY_FILES_DEV_BRANCH
WORKDIR /build
RUN apk --no-cache add git
RUN --no-cache git clone --branch $OVERLAY_FILES_DEV_BRANCH https://github.com/kairos-io/packages.git /build/
SAVE ARTIFACT /build/packages/static/kairos-overlay-files/files/ files


image-rootfs:
BUILD +base-image # Make sure the image is also saved locally
FROM +base-image
Expand Down Expand Up @@ -819,7 +833,7 @@
ENV CLOUD_INIT=/tests/tests/$CLOUD_CONFIG
COPY +go-deps-test/go.mod go.mod
COPY +go-deps-test/go.sum go.sum
RUN go run github.com/onsi/ginkgo/v2/ginkgo -v --label-filter "$TEST_SUITE" --fail-fast -r ./tests/

Check failure on line 836 in Earthfile

View workflow job for this annotation

GitHub Actions / bundles / test

Error

The command RUN go run github.com/onsi/ginkgo/v2/ginkgo -v --label-filter "$TEST_SUITE" --fail-fast -r ./tests/ did not complete successfully. Exit code 1

Check failure on line 836 in Earthfile

View workflow job for this annotation

GitHub Actions / acceptance / test

Error

The command RUN go run github.com/onsi/ginkgo/v2/ginkgo -v --label-filter "$TEST_SUITE" --fail-fast -r ./tests/ did not complete successfully. Exit code 1

Check failure on line 836 in Earthfile

View workflow job for this annotation

GitHub Actions / reset / test

Error

The command RUN go run github.com/onsi/ginkgo/v2/ginkgo -v --label-filter "$TEST_SUITE" --fail-fast -r ./tests/ did not complete successfully. Exit code 1


run-qemu-netboot-test:
Expand Down Expand Up @@ -882,7 +896,7 @@
END
COPY +go-deps-test/go.mod go.mod
COPY +go-deps-test/go.sum go.sum
RUN go run github.com/onsi/ginkgo/v2/ginkgo -v --label-filter "$TEST_SUITE" --fail-fast -r ./tests/

Check failure on line 899 in Earthfile

View workflow job for this annotation

GitHub Actions / upgrade / test

Error

The command RUN go run github.com/onsi/ginkgo/v2/ginkgo -v --label-filter "$TEST_SUITE" --fail-fast -r ./tests/ did not complete successfully. Exit code 1

###
### Artifacts targets
Expand Down
Loading