Skip to content

Commit

Permalink
Merge pull request bpfman#834 from dave-tucker/rename
Browse files Browse the repository at this point in the history
Rename all of the things!
  • Loading branch information
dave-tucker authored Nov 23, 2023
2 parents 6ffa8b1 + 8ad536e commit b295a43
Show file tree
Hide file tree
Showing 358 changed files with 4,554 additions and 4,529 deletions.
77 changes: 39 additions & 38 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ jobs:
- name: Build
run: cargo build --verbose

## If the push is a tag....build and upload the release bpfd and bpfctl binaries to an archive
## If the push is a tag....build and upload the release bpfman and bpfctl binaries to an archive
- name: Build-Release
if: startsWith(github.ref, 'refs/tags/v')
run: |
Expand All @@ -101,19 +101,19 @@ jobs:
if: startsWith(github.ref, 'refs/tags/v')
run: |
tar -czvf bpfctl-linux-x86_64.tar.gz ./target/x86_64-unknown-linux-musl/release/bpfctl
tar -czvf bpfd-linux-x86_64.tar.gz ./target/x86_64-unknown-linux-musl/release/bpfd
tar -czvf bpfman-linux-x86_64.tar.gz ./target/x86_64-unknown-linux-musl/release/bpfman
- name: Archive bpfd and bpfctl Release Binaries
- name: Archive bpfman and bpfctl Release Binaries
if: startsWith(github.ref, 'refs/tags/v')
uses: actions/upload-artifact@v3
with:
name: bpfd-release
name: bpfman-release
path: |
./bpfctl-linux-x86_64.tar.gz
./bpfd-linux-x86_64.tar.gz
./bpfman-linux-x86_64.tar.gz
- name: Run tests
run: cargo llvm-cov test --all-features -p bpfd -p bpfd-api -p bpfctl --lcov --output-path lcov.info
run: cargo llvm-cov test --all-features -p bpfman -p bpfman-api -p bpfctl --lcov --output-path lcov.info
env:
RUST_BACKTRACE: full

Expand All @@ -133,51 +133,52 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
path: ${{ env.GOPATH }}/src/github.com/bpfd-dev/bpfd
path: ${{ env.GOPATH }}/src/github.com/bpfman/bpfman

- uses: actions/setup-go@v4
with:
go-version: "1.20"

- name: Go mod check
working-directory: ${{ env.GOPATH }}/src/github.com/bpfd-dev/bpfd
working-directory: ${{ env.GOPATH }}/src/github.com/bpfman/bpfman
run: |
go mod tidy
git diff --exit-code go.mod go.sum
- name: Lint
uses: golangci/golangci-lint-action@v3
with:
# Keep this version synced with /bpfd/scripts/verify-golint.sh
working-directory: ${{ env.GOPATH }}/src/github.com/bpfd-dev/bpfd
# Keep this version synced with /bpfman/scripts/verify-golint.sh
working-directory: ${{ env.GOPATH }}/src/github.com/bpfman/bpfman
version: v1.54.2
skip-cache: true
skip-pkg-cache: true
skip-build-cache: true
args: -v --timeout 5m --enable=gofmt

- name: Build Examples
working-directory: ${{ env.GOPATH }}/src/github.com/bpfd-dev/bpfd/examples
working-directory: ${{ env.GOPATH }}/src/github.com/bpfman/bpfman/examples
run: |
go build ./...
- name: Build Operator
working-directory: ${{ env.GOPATH }}/src/github.com/bpfd-dev/bpfd/bpfd-operator
working-directory: ${{ env.GOPATH }}/src/github.com/bpfman/bpfman/bpfman-operator
run: make build

- name: Verify Operator
working-directory: ${{ env.GOPATH }}/src/github.com/bpfd-dev/bpfd/bpfd-operator
run: make verify
# FIXME: This is currently failing due to a GOPATH weirdness
# - name: Verify Operator
# working-directory: ${{ env.GOPATH }}/src/github.com/bpfman/bpfman/bpfman-operator
# run: make verify

- name: Run Tests
working-directory: ${{ env.GOPATH }}/src/github.com/bpfd-dev/bpfd/bpfd-operator
working-directory: ${{ env.GOPATH }}/src/github.com/bpfman/bpfman/bpfman-operator
run: make test

- name: Archive Go code coverage results
uses: actions/upload-artifact@v3
with:
name: coverage
path: ${{ env.GOPATH }}/src/github.com/bpfd-dev/bpfd/bpfd-operator/cover.out
path: ${{ env.GOPATH }}/src/github.com/bpfman/bpfman/bpfman-operator/cover.out
if-no-files-found: error

basic-integration-tests:
Expand Down Expand Up @@ -217,23 +218,23 @@ jobs:
- name: Build eBPF
run: cargo xtask build-ebpf --libbpf-dir ./libbpf

- name: Build bpfd
- name: Build bpfman
run: cargo build --verbose

- name: Run the bpfd installer
- name: Run the bpfman installer
run: sudo ./scripts/setup.sh install

- name: Give certs time to be created
run: sleep 5

- name: Verify the bpfd systemd service is active
run: systemctl is-active bpfd
- name: Verify the bpfman systemd service is active
run: systemctl is-active bpfman

- name: Verify the bpfctl can reach bpfd
- name: Verify the bpfctl can reach bpfman
run: sudo bpfctl list

- name: Stop the bpfd systemd service
run: sudo systemctl stop bpfd
- name: Stop the bpfman systemd service
run: sudo systemctl stop bpfman

- name: Run integration tests
run: cargo xtask integration-test
Expand All @@ -242,9 +243,9 @@ jobs:
needs: ["build", "build-go"]
runs-on: ubuntu-latest
env:
BPFD_IMG: "quay.io/bpfd/bpfd:int-test"
BPFD_AGENT_IMG: "quay.io/bpfd/bpfd-agent:int-test"
BPFD_OPERATOR_IMG: "quay.io/bpfd/bpfd-operator:int-test"
BPFMAN_IMG: "quay.io/bpfman/bpfman:int-test"
BPFMAN_AGENT_IMG: "quay.io/bpfman/bpfman-agent:int-test"
BPFMAN_OPERATOR_IMG: "quay.io/bpfman/bpfman-operator:int-test"
steps:
- name: Install dependencies
run: |
Expand Down Expand Up @@ -286,10 +287,10 @@ jobs:
run: cd examples && make build-us-images

- name: build images
run: cd bpfd-operator && make build-images
run: cd bpfman-operator && make build-images

- name: run integration tests
run: cd bpfd-operator && make test-integration
run: cd bpfman-operator && make test-integration

## Upload diagnostics if integration test step failed.
- name: upload diagnostics
Expand Down Expand Up @@ -319,8 +320,8 @@ jobs:
verbose: true

# Creates Release
# Copies built bpfctl + bpfd binaries to release artifacts
# Publish's bpfd, bpfctl, and bpfd-api crates to crates.io
# Copies built bpfctl + bpfman binaries to release artifacts
# Publish's bpfman, bpfctl, and bpfman-api crates to crates.io
release:
if: startsWith(github.ref, 'refs/tags/v')
needs: ["build"]
Expand All @@ -335,25 +336,25 @@ jobs:
- uses: actions/download-artifact@v3
with:
name: bpfd-release
name: bpfman-release

- name: release
uses: softprops/action-gh-release@v1
with:
body_path: ./changelogs/CHANGELOG-${{ env.RELEASE_VERSION }}.md
files: |
bpfd-linux-x86_64.tar.gz
bpfman-linux-x86_64.tar.gz
bpfctl-linux-x86_64.tar.gz
## TODO once we're using an aya mainline version
# - name: publish bpfd crate
# run: cargo publish -p bpfd --token ${{ secrets.BPFD_DEV_TOKEN }}
# - name: publish bpfman crate
# run: cargo publish -p bpfman --token ${{ secrets.BPFMAN_DEV_TOKEN }}

- name: publish bpfd-api crate
run: cargo publish -p bpfd-api --token ${{ secrets.BPFD_DEV_TOKEN }}
- name: publish bpfman-api crate
run: cargo publish -p bpfman-api --token ${{ secrets.BPFMAN_DEV_TOKEN }}

- name: publish bpfctl crate
run: cargo publish -p bpfctl --token ${{ secrets.BPFD_DEV_TOKEN }}
run: cargo publish -p bpfctl --token ${{ secrets.BPFMAN_DEV_TOKEN }}

build-workflow-complete:
needs:
Expand Down
Loading

0 comments on commit b295a43

Please sign in to comment.