Skip to content

Commit

Permalink
Merge branch 'main' into pcp-rocestat
Browse files Browse the repository at this point in the history
  • Loading branch information
mohith-kumar-thummaluru authored Feb 10, 2025
2 parents 722cdd2 + 02c007a commit f386100
Show file tree
Hide file tree
Showing 3,980 changed files with 820,476 additions and 368,356 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
open_collective: pcp
custom: https://hcb.hackclub.com/donations/start/pcp
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
29 changes: 23 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ jobs:
matrix:
include:
# default platforms for CI in the performancecopilot/pcp repo
- {platform: ubuntu1804-container, os: ubuntu-20.04, experimental: false}
- {platform: ubuntu1804-i386-container, os: ubuntu-20.04, experimental: false}
- {platform: ubuntu2004-container, os: ubuntu-20.04, experimental: false}
- {platform: ubuntu2204-container, os: ubuntu-20.04, experimental: false}
- {platform: fedora37-container, os: ubuntu-20.04, experimental: false}
- {platform: fedora38-container, os: ubuntu-20.04, experimental: false}
- {platform: ubuntu2404-container, os: ubuntu-20.04, experimental: false}
- {platform: fedora39-container, os: ubuntu-20.04, experimental: false}
- {platform: fedora40-container, os: ubuntu-20.04, experimental: false}
- {platform: centos-stream8-container, os: ubuntu-20.04, experimental: false}
- {platform: centos-stream9-container, os: ubuntu-20.04, experimental: false}
# other platforms that may be used for testing in developer repos
Expand All @@ -40,7 +40,7 @@ jobs:
# - {platform: centos7-container, os: ubuntu-20.04, experimental: false}
steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Fix local hostname DNS lookup
run: echo 127.0.1.1 $(hostname --fqdn) $(hostname) | sudo tee -a /etc/hosts
Expand All @@ -59,6 +59,12 @@ jobs:
python3 -c 'import yaml' || pip3 install pyyaml
mkdir -p artifacts/build artifacts/test
touch artifacts/build/.keep
# crun >= 1.9.1 is required on Ubuntu 20.04.6
# this workaround came from ...
# https://github.com/kubernetes-sigs/kind/pull/3527
curl -sLo /tmp/crun https://github.com/containers/crun/releases/download/1.14.3/crun-1.14.3-linux-amd64
chmod +x /tmp/crun
sudo cp /tmp/crun /usr/bin/crun
build/ci/ci-run.py ${{ matrix.platform }} setup
Expand All @@ -72,7 +78,7 @@ jobs:
# always() is required here to run this step even if the build fails
# otherwise the platform will be skipped in the test report (it should be flagged as broken)
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: build-${{ matrix.platform }}
path: artifacts/build
Expand All @@ -94,7 +100,18 @@ jobs:

- name: Upload test results
if: always() && steps.init_qa.outcome == 'success'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: test-${{ matrix.platform }}
path: artifacts/test

# build-macos-latest-clang:
# runs-on: macOS-latest
# env:
# CC: clang
# steps:
# - uses: actions/checkout@v4
# - name: Install Dependencies
# run: brew install automake pkg-config openssl libuv
# - name: Build packages
# run: ./Makepkgs --verbose
6 changes: 3 additions & 3 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}

Expand All @@ -41,6 +41,6 @@ jobs:
make
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
with:
category: "/language/:${{ matrix.language }}"
2 changes: 1 addition & 1 deletion .github/workflows/coverity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 1

Expand Down
51 changes: 51 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
#
name: Create and publish a Docker image

# Configures this workflow to run every time a change is pushed to the branch called `main`.
on:
push:
branches: [ "main" ]

# Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds.
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu.
jobs:
build-and-push-image:
if: github.repository == 'performancecopilot/pcp'
runs-on: ubuntu-latest
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
permissions:
contents: read
packages: write
#
steps:
- name: Checkout repository
uses: actions/checkout@v4
# Uses the `docker/login-action` action to log in to the Container registry registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here.
- name: Log in to the Container registry
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
# This step uses [docker/metadata-action](https://github.com/docker/metadata-action#about) to extract tags and labels that will be applied to the specified image. The `id` "meta" allows the output of this step to be referenced in a subsequent step. The `images` value provides the base name for the tags and labels.
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@70b2cdc6480c1a8b86edf1777157f8f437de2166
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
# This step uses the `docker/build-push-action` action to build the image, based on your repository's `Dockerfile`. If the build succeeds, it pushes the image to GitHub Packages.
# It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see "[Usage](https://github.com/docker/build-push-action#usage)" in the README of the `docker/build-push-action` repository.
# It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step.
- name: Build and push Docker image
uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75
with:
context: .
file: ./build/containers/pcp/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

36 changes: 22 additions & 14 deletions .github/workflows/qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,19 @@ jobs:
- {platform: ubuntu2004, os: ubuntu-20.04, experimental: false}
- {platform: ubuntu2204-container, os: ubuntu-20.04, experimental: false}
- {platform: ubuntu2204, os: ubuntu-22.04, experimental: false}
- {platform: fedora36-container, os: ubuntu-20.04, experimental: false}
- {platform: fedora37-container, os: ubuntu-20.04, experimental: false}
- {platform: ubuntu2404-container, os: ubuntu-20.04, experimental: false}
- {platform: ubuntu2404, os: ubuntu-22.04, experimental: false}
- {platform: fedora38-container, os: ubuntu-20.04, experimental: false}
- {platform: fedora39-container, os: ubuntu-20.04, experimental: false}
- {platform: fedora40-container, os: ubuntu-20.04, experimental: false}
- {platform: fedora-rawhide-container, os: ubuntu-20.04, experimental: true }
- {platform: centos6-container, os: ubuntu-20.04, experimental: false}
- {platform: centos7-container, os: ubuntu-20.04, experimental: false}
- {platform: centos-stream8-container, os: ubuntu-20.04, experimental: false}
- {platform: centos-stream9-container, os: ubuntu-20.04, experimental: false}
steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Fix local hostname DNS lookup
run: echo 127.0.1.1 $(hostname --fqdn) $(hostname) | sudo tee -a /etc/hosts
Expand All @@ -59,6 +61,12 @@ jobs:
python3 -c 'import yaml' || pip3 install pyyaml
mkdir -p artifacts/build artifacts/test
touch artifacts/build/.keep
# crun >= 1.9.1 is required on Ubuntu 20.04.6
# this workaround came from ...
# https://github.com/kubernetes-sigs/kind/pull/3527
curl -sLo /tmp/crun https://github.com/containers/crun/releases/download/1.14.3/crun-1.14.3-linux-amd64
chmod +x /tmp/crun
sudo cp /tmp/crun /usr/bin/crun
build/ci/ci-run.py ${{ matrix.platform }} setup
Expand All @@ -72,7 +80,7 @@ jobs:
# always() is required here to run this step even if the build fails
# otherwise the platform will be skipped in the test report (it should be flagged as broken)
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: build-${{ matrix.platform }}
path: artifacts/build
Expand All @@ -96,7 +104,7 @@ jobs:

- name: Upload test results
if: always() && steps.init_qa.outcome == 'success'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: test-${{ matrix.platform }}
path: artifacts/test
Expand All @@ -112,16 +120,16 @@ jobs:
summary_url: ${{ steps.publish_test_summary.outputs.summary_url }}
steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Checkout performancecopilot/qa-reports
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: performancecopilot/qa-reports
path: qa-reports

- name: Download artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
path: artifacts

Expand Down Expand Up @@ -149,15 +157,15 @@ jobs:
cat summary.txt
- name: Upload test summary
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: qasummary
path: summary.txt

- name: Publish test summary
id: publish_test_summary
if: github.event_name != 'pull_request'
uses: actions/github-script@v6
uses: actions/github-script@v7
continue-on-error: true
with:
script: |
Expand Down Expand Up @@ -195,7 +203,7 @@ jobs:
cd allure-report && zip -q -r ../qareport.zip . && cd ..
- name: Upload test report
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: qareport
path: qareport.zip
Expand All @@ -212,17 +220,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Checkout ${{ github.repository_owner }}/qa-reports
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: ${{ github.repository_owner }}/qa-reports
path: qa-reports
ssh-key: ${{ secrets.QA_REPORT_DEPLOY_KEY }}

- name: Download artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
path: artifacts

Expand Down
Loading

0 comments on commit f386100

Please sign in to comment.