Skip to content

Added the diff command - for enabling forensic analysis of checkpoint differences in Kubernetes #805

Added the diff command - for enabling forensic analysis of checkpoint differences in Kubernetes

Added the diff command - for enabling forensic analysis of checkpoint differences in Kubernetes #805

Workflow file for this run

name: Run Tests
on: [push, pull_request]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
container:
image: fedora:latest
options: --privileged -v /lib/modules:/lib/modules
steps:
- uses: actions/checkout@v4
- name: Install tools
run: |
dnf install -y golang make ShellCheck bats criu rubygem-asciidoctor iptables iproute kmod jq bash bash-completion zsh fish
modprobe -va ip_tables ip6table_filter nf_conntrack nf_conntrack_netlink
- name: Run make shellcheck
run: make shellcheck
- name: Run make all
run: make all
- name: Run make test
run: make test
- name: Run make test-junit
run: make test-junit
- name: Upload Test Results
# To display test results from forked repositories they need to
# be uploaded and then analyzed.
if: always()
uses: actions/upload-artifact@v4
with:
name: test-results
retention-days: 1
path: test/junit.xml
- name: Run make install/uninstall
run: test/uninstall.sh
- name: Run make validate.completions
run: make validate.completions
event_file:
name: "Event File"
runs-on: ubuntu-latest
steps:
- name: Upload
if: always()
uses: actions/upload-artifact@v4
with:
name: event-file
retention-days: 1
path: ${{ github.event_path }}
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build release binary
run: make release
- name: Check static binary
run: |
file_output=$(file checkpointctl)
if [[ "$file_output" =~ .*statically\ linked.* ]]; then
echo "Binary is static"
exit 0
else
echo "Binary is not static"
exit 1
fi