-
Notifications
You must be signed in to change notification settings - Fork 0
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
202411-rc add #2
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ permissions: | |
jobs: | ||
job-build1: | ||
runs-on: ci-gcc9 | ||
if: ${{ github.repository != 'intel/pcm' }} | ||
if: ${{ github.repository != 'khulnasoft/pcm' }} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification Inconsistency found in clang_scan.yml workflow condition The repository migration from 'intel/pcm' to 'khulnasoft/pcm' is incomplete. While most workflow files have been updated correctly, there's one remaining issue:
🔗 Analysis chainLGTM: Repository condition updated correctly The condition update from 'intel/pcm' to 'khulnasoft/pcm' aligns with the repository migration. Let's verify consistency across all workflow files: 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Check if all workflow files consistently use 'khulnasoft/pcm' in their conditions
# Search for any remaining references to 'intel/pcm' in workflow files
echo "Checking for any remaining 'intel/pcm' references:"
rg "intel/pcm" .github/workflows/
# Search for consistent usage of 'khulnasoft/pcm' in workflow files
echo "Verifying 'khulnasoft/pcm' usage:"
rg "khulnasoft/pcm" .github/workflows/
Length of output: 2096 |
||
|
||
steps: | ||
- name: Harden Runner | ||
|
@@ -40,7 +40,7 @@ jobs: | |
|
||
job-build2: | ||
runs-on: ci-test | ||
if: ${{ github.repository != 'intel/pcm' }} | ||
if: ${{ github.repository != 'khulnasoft/pcm' }} | ||
|
||
steps: | ||
- name: Harden Runner | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ jobs: | |
build: | ||
|
||
runs-on: ci-cppcheck | ||
if: ${{ github.repository != 'intel/pcm' }} | ||
if: ${{ github.repository != 'khulnasoft/pcm' }} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification Repository reference inconsistency found in workflow files The repository name change is not consistent across all workflow files. While most workflows have been updated to 'khulnasoft/pcm', the following issue was found:
🔗 Analysis chainVerify repository name consistency across workflows The repository name change from 'intel/pcm' to 'khulnasoft/pcm' aligns with the project rebranding. Let's verify this change is consistent across all workflow files. Let's check the content of clang_scan.yml since it still contains a reference to 'intel/pcm': 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Check for any remaining references to 'intel/pcm' in workflow files
# and verify consistency of repository references
echo "Checking for any remaining 'intel/pcm' references in workflow files..."
rg -l "intel/pcm" .github/workflows/
echo "Listing all repository conditions in workflow files for consistency check..."
rg -A 1 "github.repository !=" .github/workflows/
Length of output: 2843 Script: #!/bin/bash
# Check the content of clang_scan.yml for intel/pcm references
cat .github/workflows/clang_scan.yml
Length of output: 1700 🧰 Tools🪛 yamllint (1.35.1)[error] 16-16: trailing spaces (trailing-spaces) |
||
|
||
steps: | ||
- name: Harden Runner | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ permissions: | |
jobs: | ||
fuzz: | ||
runs-on: ci-test | ||
if: ${{ github.repository != 'intel/pcm' }} | ||
if: ${{ github.repository != 'khulnasoft/pcm' }} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification Repository condition logic is consistently applied but needs attention The repository condition
🔗 Analysis chainVerify the repository condition logic The condition Let's verify the consistency of repository conditions across all workflow files: Consider changing to: - if: ${{ github.repository != 'khulnasoft/pcm' }}
+ if: ${{ github.repository == 'khulnasoft/pcm' }} 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Check repository conditions in all workflow files
# Expected: All workflow files should have consistent repository checks
# Search for repository conditions in workflow files
echo "Checking repository conditions in workflow files:"
rg -l "github.repository" .github/workflows/ | while read -r file; do
echo "=== $file ==="
rg "github.repository" "$file" -A 1 -B 1
done
Length of output: 5085 |
||
|
||
steps: | ||
- name: Harden Runner | ||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -13,7 +13,7 @@ jobs: | |||||
build: | ||||||
|
||||||
runs-on: ci-gcc9 | ||||||
if: ${{ github.repository != 'intel/pcm' }} | ||||||
if: ${{ github.repository != 'khulnasoft/pcm' }} | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Critical: The condition will prevent CI from running on the main repository The condition Consider one of these fixes:
- if: ${{ github.repository != 'khulnasoft/pcm' }}
+ if: ${{ github.repository == 'khulnasoft/pcm' }} 📝 Committable suggestion
Suggested change
|
||||||
|
||||||
steps: | ||||||
- name: Harden Runner | ||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ jobs: | |
build: | ||
|
||
runs-on: ci-windows | ||
if: ${{ github.repository != 'intel/pcm' }} | ||
if: ${{ github.repository != 'khulnasoft/pcm' }} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification Critical: All CI workflows are configured to skip the main repository This is a critical issue affecting the entire CI pipeline. The verification reveals that all workflow files (except clang_scan.yml) contain the condition
The consistent pattern across all workflows suggests this might be a systematic error in the repository migration from intel/pcm to khulnasoft/pcm. The conditions should be reversed to 🔗 Analysis chainVerify the workflow condition - potential critical issue The condition Questions for clarification:
Let's verify the conditions across other workflow files: 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Check conditions in other workflow files to understand the pattern
# Expected: Find similar conditions in other workflow files to understand if this is a consistent pattern
echo "Checking conditions in all workflow files:"
rg -A 1 "if: " .github/workflows/
Length of output: 2650 |
||
|
||
steps: | ||
- name: Harden Runner | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,8 @@ | |
Intel® Performance Counter Monitor (Intel® PCM) | ||
-------------------------------------------------------------------------------- | ||
|
||
[![CodeQL](https://github.com/intel/pcm/actions/workflows/codeql.yml/badge.svg?branch=master)](https://github.com/intel/pcm/security/code-scanning/tools/CodeQL/status) | ||
[![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/intel/pcm/badge)](https://securityscorecards.dev/viewer/?uri=github.com/intel/pcm) | ||
[![CodeQL](https://github.com/khulnasoft/pcm/actions/workflows/codeql.yml/badge.svg?branch=master)](https://github.com/khulnasoft/pcm/security/code-scanning/tools/CodeQL/status) | ||
[![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/khulnasoft/pcm/badge)](https://securityscorecards.dev/viewer/?uri=github.com/intel/pcm) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. issue (bug_risk): Inconsistent repository reference in OpenSSF Scorecard link The badge URL has been updated to use khulnasoft/pcm, but the viewer URL still points to intel/pcm. This should be updated for consistency. |
||
[![OpenSSF Best Practices](https://www.bestpractices.dev/projects/8652/badge)](https://www.bestpractices.dev/projects/8652) | ||
|
||
[PCM Tools](#pcm-tools) | [Building PCM](#building-pcm-tools) | [Downloading Pre-Compiled PCM](#downloading-pre-compiled-pcm-tools) | [FAQ](#frequently-asked-questions-faq) | [API Documentation](#pcm-api-documentation) | [Environment Variables](#pcm-environment-variables) | [Compilation Options](#custom-compilation-options) | ||
|
@@ -18,11 +18,11 @@ We welcome bug reports and enhancement requests, which can be submitted via the | |
Current Build Status | ||
-------------------------------------------------------------------------------- | ||
|
||
- Linux: [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/intel/pcm/linux_make.yml?branch=master)](https://github.com/intel/pcm/actions/workflows/linux_make.yml?query=branch%3Amaster) | ||
- Linux: [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/khulnasoft/pcm/linux_make.yml?branch=master)](https://github.com/khulnasoft/pcm/actions/workflows/linux_make.yml?query=branch%3Amaster) | ||
- Windows: [![Build status](https://ci.appveyor.com/api/projects/status/github/intel/pcm?branch=master&svg=true)](https://ci.appveyor.com/project/opcm/pcm) | ||
- FreeBSD: [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/intel/pcm/freebsd_build.yml?branch=master)](https://github.com/intel/pcm/actions/workflows/freebsd_build.yml?query=branch%3Amaster) | ||
- OS X: [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/intel/pcm/macosx_build.yml?branch=master)](https://github.com/intel/pcm/actions/workflows/macosx_build.yml?query=branch%3Amaster) | ||
- Docker container: [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/intel/pcm/docker.yml?branch=master)](doc/DOCKER_README.md) | ||
- FreeBSD: [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/khulnasoft/pcm/freebsd_build.yml?branch=master)](https://github.com/khulnasoft/pcm/actions/workflows/freebsd_build.yml?query=branch%3Amaster) | ||
- OS X: [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/khulnasoft/pcm/macosx_build.yml?branch=master)](https://github.com/khulnasoft/pcm/actions/workflows/macosx_build.yml?query=branch%3Amaster) | ||
- Docker container: [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/khulnasoft/pcm/docker.yml?branch=master)](doc/DOCKER_README.md) | ||
|
||
-------------------------------------------------------------------------------- | ||
PCM Tools | ||
|
@@ -32,19 +32,19 @@ PCM provides a number of command-line utilities for real-time monitoring: | |
|
||
- **pcm** : basic processor monitoring utility (instructions per cycle, core frequency (including Intel(r) Turbo Boost Technology), memory and Intel(r) Quick Path Interconnect bandwidth, local and remote memory bandwidth, cache misses, core and CPU package sleep C-state residency, core and CPU package thermal headroom, cache utilization, CPU and memory energy consumption) | ||
|
||
![pcm output](https://github.com/intel/pcm/assets/25432609/88485ff5-dc7c-4a1c-974f-8396f03829dc) | ||
![pcm output](https://github.com/khulnasoft/pcm/assets/25432609/88485ff5-dc7c-4a1c-974f-8396f03829dc) | ||
|
||
- **pcm-sensor-server** : pcm collector exposing metrics over http in JSON or Prometheus (exporter text based) format ([how-to](doc/PCM-EXPORTER.md)). Also available as a [docker container](doc/DOCKER_README.md). More info about Global PCM events is [here](doc/PCM-SENSOR-SERVER-README.md). | ||
- **pcm-memory** : monitor memory bandwidth (per-channel and per-DRAM DIMM rank) | ||
![pcm-memory output](https://raw.githubusercontent.com/wiki/intel/pcm/pcm-memory.x.JPG) | ||
![pcm-memory output](https://raw.githubusercontent.com/wiki/khulnasoft/pcm/pcm-memory.x.JPG) | ||
- **pcm-accel** : [monitor Intel® In-Memory Analytics Accelerator (Intel® IAA), Intel® Data Streaming Accelerator (Intel® DSA) and Intel® QuickAssist Technology (Intel® QAT) accelerators](doc/PCM_ACCEL_README.md) | ||
![image](https://user-images.githubusercontent.com/25432609/218480696-42ade94f-e0c3-4000-9dd8-39a0e75a210e.png) | ||
|
||
- **pcm-latency** : monitor L1 cache miss and DDR/PMM memory latency | ||
- **pcm-pcie** : monitor PCIe bandwidth per-socket | ||
- **pcm-iio** : monitor PCIe bandwidth per PCIe device | ||
|
||
![pcm-iio output](https://raw.githubusercontent.com/wiki/intel/pcm/pcm-iio.png) | ||
![pcm-iio output](https://raw.githubusercontent.com/wiki/khulnasoft/pcm/pcm-iio.png) | ||
- **pcm-numa** : monitor local and remote memory accesses | ||
- **pcm-power** : monitor sleep and energy states of processor, Intel(r) Quick Path Interconnect, DRAM memory, reasons of CPU frequency throttling and other energy-related metrics | ||
- **pcm-tsx**: monitor performance metrics for Intel(r) Transactional Synchronization Extensions | ||
|
@@ -54,7 +54,7 @@ PCM provides a number of command-line utilities for real-time monitoring: | |
|
||
Graphical front ends: | ||
- **pcm Grafana dashboard** : front-end for Grafana (in [scripts/grafana](scripts/grafana) directory). Full Grafana Readme is [here](scripts/grafana/README.md) | ||
![pcm grafana output](https://raw.githubusercontent.com/wiki/intel/pcm/pcm-dashboard.png) | ||
![pcm grafana output](https://raw.githubusercontent.com/wiki/khulnasoft/pcm/pcm-dashboard.png) | ||
- **pcm-sensor** : front-end for KDE KSysGuard | ||
- **pcm-service** : front-end for Windows perfmon | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,8 +23,8 @@ Should this BIOS option be unavailable or if there is a preference to change the | |
|
||
|Platform |Script Type| URL | | ||
|------------------|-----------|---------------------------------------------------------------------| | ||
|Linux/FreeBSD/UNIX|bash | https://github.com/intel/pcm/blob/master/scripts/bhs-power-mode.sh | | ||
|Windows |powershell | https://github.com/intel/pcm/blob/master/scripts/bhs-power-mode.ps1 | | ||
|Linux/FreeBSD/UNIX|bash | https://github.com/khulnasoft/pcm/blob/master/scripts/bhs-power-mode.sh | | ||
|Windows |powershell | https://github.com/khulnasoft/pcm/blob/master/scripts/bhs-power-mode.ps1 | | ||
Comment on lines
+26
to
+27
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification Repository URLs in documentation need to be updated for consistency Several documentation files still contain references to the old
🔗 Analysis chainVerify consistency of repository URLs across documentation. Let's check if there are any remaining references to the old repository that need to be updated. 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Check for any remaining references to intel/pcm in documentation
echo "Checking for remaining intel/pcm references in documentation..."
rg -t md "intel/pcm" doc/
echo "Checking for inconsistent repository references..."
rg -t md "github\.com/[^/]+/pcm" doc/
Length of output: 2607 🧰 Tools🪛 Markdownlint (0.35.0)27-27: Column: 9 (MD010, no-hard-tabs) 26-26: null (MD034, no-bare-urls) 27-27: null (MD034, no-bare-urls) |
||
|
||
The scripts require the pcm-tpmi utility. There are several methods to obtain this utility: | ||
- **Download or install precompiled PCM binaries:** Please refer to the following link: [Downloading Pre-Compiled PCM Tools](https://github.com/intel/pcm?tab=readme-ov-file#downloading-pre-compiled-pcm-tools) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,7 +37,7 @@ spec: | |
spec: | ||
automountServiceAccountToken: false | ||
containers: | ||
- image: ghcr.io/intel/pcm:latest | ||
- image: ghcr.io/khulnasoft/pcm:latest | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Consider pinning the container image to a specific version Using the - - image: ghcr.io/khulnasoft/pcm:latest
+ - image: ghcr.io/khulnasoft/pcm:v1.0.0 # Replace with actual version
|
||
env: | ||
- name: PCM_NO_MSR | ||
value: "1" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codebase verification
Repository condition is consistently applied but needs to be inverted
The verification shows that all CI workflows (except
clang_scan.yml
) use the same conditiongithub.repository != 'khulnasoft/pcm'
, which means these workflows will run only on forks but not on the main repository. This is likely incorrect as CI workflows should typically run on the main repository.github.repository == 'khulnasoft/pcm'
in all CI workflow files to ensure they run on the main repositoryclang_scan.yml
file shows the correct pattern withgithub.repository == 'intel/pcm'
, confirming that CI workflows were previously configured to run on the main repository🔗 Analysis chain
Verify the workflow execution condition
The condition
if: ${{ github.repository != 'khulnasoft/pcm' }}
means this workflow will NOT run on the 'khulnasoft/pcm' repository. Is this the intended behavior? The workflow will only execute on forks or other repositories.Let's verify the repository references across other workflow files:
If this workflow should run on the main repository, the condition should be removed or inverted.
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 2665