-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 26efffc
Showing
465 changed files
with
36,241 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[flake8] | ||
max-line-length = 120 | ||
# options for compatibility with black - see https://black.readthedocs.io/en/stable/compatible_configs.html#flake8 | ||
extend-ignore = E203, W503, E501, W504 | ||
exclude = .git,__pycache__,build,dist,frontend,*venv* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<!--- Provide a general summary of the issue in the Title above --> | ||
|
||
## Description | ||
<!--- Provide a more detailed introduction to the issue itself, and why you consider it to be a bug --> | ||
|
||
## Expected Behavior | ||
<!--- Tell us what should happen --> | ||
|
||
## Actual Behavior | ||
<!--- Tell us what happens instead --> | ||
|
||
## Possible Fix | ||
<!--- Not obligatory, but suggest a fix or reason for the bug --> | ||
|
||
## Steps to Reproduce | ||
<!--- Provide a link to a live example, or an unambiguous set of steps to --> | ||
<!--- reproduce this bug. Include code to reproduce, if relevant --> | ||
1. | ||
2. | ||
3. | ||
4. | ||
|
||
## Context | ||
<!--- How has this bug affected you? What were you trying to accomplish? --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!--- Provide a general summary of the issue in the Title above --> | ||
|
||
## Detailed Description | ||
<!--- Provide a detailed description of the change or addition you are proposing --> | ||
|
||
## Context | ||
<!--- Why is this change important to you? How would you use it? --> | ||
<!--- How can it benefit other users? --> | ||
|
||
## Possible Implementation | ||
<!--- Not obligatory, but suggest an idea for implementing addition or change --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<!--- Provide a general summary of your changes in the Title above --> | ||
|
||
## Description | ||
<!--- Describe your changes in detail --> | ||
|
||
## Related Issue | ||
<!--- If there's an issue related, please link it here --> | ||
<!--- If suggesting a new feature or a medium/big change, please discuss it in an issue first. --> | ||
<!--- For small changes, it's okay to open a PR immediately. --> | ||
|
||
## Motivation and Context | ||
<!--- Why is this change required? What problem does it solve? What does it improve? --> | ||
|
||
## How Has This Been Tested? | ||
<!--- Please describe in detail how you tested your changes. --> | ||
<!--- Include details of your testing environment, and the tests you ran to --> | ||
<!--- see how your change affects other areas of the code, etc. --> | ||
<!--- If your changes are tested by the CI, you can just write that.--> | ||
|
||
## Screenshots | ||
<!--- (if appropriate) --> | ||
|
||
## Checklist: | ||
<!--- Go over all the following points, and put an `x` in all the boxes that apply. --> | ||
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> | ||
- [ ] I have updated the relevant documentation. | ||
- [ ] I have added tests for new logic. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# INTEL CONFIDENTIAL | ||
# Copyright (C) 2023 Intel Corporation | ||
# This software and the related documents are Intel copyrighted materials, and your use of them is governed by the express license under which they were provided to you ("License"). Unless the License provides otherwise, you may not use, modify, copy, publish, distribute, disclose or transmit this software or the related documents without Intel's prior written permission. | ||
# This software and the related documents are provided as is, with no express or implied warranties, other than those that are expressly stated in the License. | ||
|
||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "pip" # Ecosystem for Python packages | ||
directory: "/" # Location of Python package manifests | ||
schedule: | ||
interval: "daily" | ||
target-branch: "open-source" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# INTEL CONFIDENTIAL | ||
# Copyright (C) 2023 Intel Corporation | ||
# This software and the related documents are Intel copyrighted materials, and your use of them is governed by the express license under which they were provided to you ("License"). Unless the License provides otherwise, you may not use, modify, copy, publish, distribute, disclose or transmit this software or the related documents without Intel's prior written permission. | ||
# This software and the related documents are provided as is, with no express or implied warranties, other than those that are expressly stated in the License. | ||
|
||
name: gProfiler Backend CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
paths: | ||
- 'src/gprofiler-dev/**' | ||
- 'src/gprofiler/*.py' | ||
- 'src/gprofiler/backend/**' | ||
- 'src/gprofiler_logging/**' | ||
- '.github/workflows/backend-ci.yml' | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
# Again, empty, means yes (think of bool TRUE) | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.10' # Version range or exact version of a Python version to use, using SemVer's version range syntax | ||
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified | ||
|
||
- uses: actions/cache@v2 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-pip-${{ hashFiles('**/*requirements.txt') }} | ||
restore-keys: | | ||
${{ runner.os }}-pip- | ||
- name: Install dev dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r dev-requirements.txt | ||
- name: Run linters | ||
run: ./lint.sh --ci |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
# INTEL CONFIDENTIAL | ||
# Copyright (C) 2023 Intel Corporation | ||
# This software and the related documents are Intel copyrighted materials, and your use of them is governed by the express license under which they were provided to you ("License"). Unless the License provides otherwise, you may not use, modify, copy, publish, distribute, disclose or transmit this software or the related documents without Intel's prior written permission. | ||
# This software and the related documents are provided as is, with no express or implied warranties, other than those that are expressly stated in the License. | ||
|
||
name: gProfiler Frontend CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
paths: | ||
- "src/gprofiler/frontend/**" | ||
- ".github/workflows/frontend-ci.yml" | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
# Jobs are running in parallel, saving time | ||
build: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-20.04 | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Get frontend source code HASH | ||
run: | | ||
export HASH=`git ls-files ./src/gprofiler/frontend/src ./src/gprofiler/frontend/yarn.lock | xargs md5sum | cut -d" " -f1 | md5sum | cut -d" " -f1` | ||
echo "FRONTEND_SRC_HASH=$HASH" >> $GITHUB_ENV | ||
- name: Use frontend build cache | ||
uses: actions/cache@v2 | ||
id: frontend-build-cache | ||
with: | ||
path: "src/gprofiler/frontend/build" | ||
key: ${{ runner.os }}-frontend-build--${{ env.FRONTEND_SRC_HASH }} | ||
|
||
- name: Setup node | ||
if: steps.frontend-build-cache.outputs.cache-hit != 'true' | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: "16.15.1" | ||
|
||
- name: Use Yarn cache | ||
uses: actions/cache@v2 | ||
id: yarn-cache | ||
with: | ||
path: "**/node_modules" | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }} | ||
|
||
- name: Install dependencies | ||
if: steps.yarn-cache.outcome != 'Skipped' && steps.yarn-cache.outputs.cache-hit != 'true' && steps.frontend-build-cache.outputs.cache-hit != 'true' | ||
run: yarn install --prefer-offline --frozen-lockfile | ||
working-directory: ./src/gprofiler/frontend | ||
|
||
# FRONTEND: Make sure no unused vars, no syntax errors, etc | ||
- name: ESLint frontend | ||
if: steps.frontend-build-cache.outputs.cache-hit != 'true' | ||
run: yarn eslint | ||
working-directory: ./src/gprofiler/frontend | ||
|
||
# FRONETND: Make sure code is styleguide compliant, think of newlines, | ||
# indentation format, etc. | ||
- name: Code styleguide | ||
if: steps.frontend-build-cache.outputs.cache-hit != 'true' | ||
run: yarn format-check | ||
working-directory: ./src/gprofiler/frontend | ||
|
||
# FRONTEND: 3rd party dependencies security vulnerability audit | ||
- name: Security vulnerabilities audit | ||
# Currently silenced until lodash release security fix | ||
# but still running for logging | ||
run: npx audit-ci --none -a lodash immer | ||
working-directory: ./src/gprofiler/frontend | ||
|
||
# FRONTEND: now let's try to build/compile our project | ||
# and fail if there are any parsing/compiler level errors | ||
- name: Build the app (parsing/compiling audit) | ||
if: github.ref == 'refs/heads/master' | ||
run: yarn build | ||
working-directory: ./src/gprofiler/frontend |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
*.iml | ||
*.xls | ||
*.xlsx | ||
*.csv | ||
venv* | ||
.venv | ||
|
||
*.pyc | ||
|
||
*.egg-info/ | ||
|
||
.idea/ | ||
|
||
|
||
# File-based project format | ||
*.iws | ||
|
||
# IntelliJ | ||
out/ | ||
|
||
# mpeltonen/sbt-idea plugin | ||
.idea_modules/ | ||
|
||
# JIRA plugin | ||
atlassian-ide-plugin.xml | ||
|
||
# Crashlytics plugin (for Android Studio and IntelliJ) | ||
com_crashlytics_export_strings.xml | ||
crashlytics.properties | ||
crashlytics-build.properties | ||
fabric.properties | ||
|
||
.ipynb_checkpoints/ | ||
.gradle | ||
**/compile_commands.json | ||
**/.clangd/** | ||
|
||
|
||
# | ||
# Java .gitignore | ||
# | ||
|
||
# Compiled class file | ||
*.class | ||
|
||
# Log file | ||
*.log | ||
|
||
# BlueJ files | ||
*.ctxt | ||
|
||
# Mobile Tools for Java (J2ME) | ||
.mtj.tmp/ | ||
|
||
# Package Files # | ||
*.jar | ||
*.war | ||
*.nar | ||
*.ear | ||
*.zip | ||
*.tar.gz | ||
*.rar | ||
|
||
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml | ||
hs_err_pid* | ||
.DS_Store | ||
/src/gprofiler/backend/utils/daemonset_files/ | ||
/src/gprofiler_logging/logs/ | ||
src/gprofiler/frontend/.vscode/settings.json | ||
|
||
# package build | ||
/src/gprofiler-dev/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[settings] | ||
line_length = 120 | ||
multi_line_output = 3 | ||
include_trailing_comma = true | ||
skip_glob = *venv* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
14.17.3 |
Oops, something went wrong.