Skip to content
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

Add a UI for multi-run comparison graphs #127

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/codeql/javascript-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
name: "CodeQL config for Javascript"

paths:
- frontend/src/**
1 change: 1 addition & 0 deletions .github/codeql/python-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
name: "CodeQL config for Python"
58 changes: 58 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: "CodeQL"

on:
push:
branches: [ main, 'b[0-9].[0-9]+' ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ main, 'b[0-9].[0-9]+' ]

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'javascript', 'python' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://git.io/codeql-language-support

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

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
config-file: ./.github/codeql/${{ matrix.language }}-config.yml
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
#- name: Autobuild
# uses: github/codeql-action/autobuild@v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
6 changes: 3 additions & 3 deletions .github/workflows/poetry-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ jobs:
- name: verify poetry instalation
run: poetry --version
working-directory: ./backend
- name: verify poetry lockfile
run: poetry check --lock
working-directory: ./backend
- name: verify poetry configuration
run: poetry check
working-directory: ./backend
51 changes: 51 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Python checks

on:
push:
branches: ["main"]
tags-ignore: ["**"]
pull_request:

env:
COVERAGE: ${{ github.workspace }}/coverage

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9.20"]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox>=4.19
- name: Check for lint
# Report errors but don't fail until we achieve stability!
continue-on-error: true
run: |
cd backend
tox -e format,isort,lint
- name: Run unit tests
run: |
cd backend
tox -e unit
- name: Add coverage data to conversation
run: cat $COVERAGE/coverage.txt >> $GITHUB_STEP_SUMMARY
- name: Publish coverage data
uses: actions/upload-artifact@v4
with:
name: Coverage for ${{ github.event.head_commit.id }}
path: ${{ env.COVERAGE }}/html
if-no-files-found: warn
retention-days: 30
- name: Run functional tests in pod
run: |
cd backend
tests/functional/setup/test.sh
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ indice=
username=
password=

[<product>.crucible]
url=
username=
password=

[ocp-server]
port=8000

Expand Down Expand Up @@ -53,7 +58,7 @@ indice=
username=
password=
```
**Note: The below applies only for the elastic search at the moment**
**Note: The below applies only for the elastic search at the moment**
If you also have an archived internal instance that keeps track of older data, it can be specified with '.internal' suffix. Example of our `OCP` internal archived instance's configuration.
```toml
[ocp.elasticsearch.internal]
Expand Down
5 changes: 5 additions & 0 deletions backend/app/api/api.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import sys
from fastapi import APIRouter

from app.api.v1.endpoints.ocp import results
Expand All @@ -11,6 +12,7 @@
from app.api.v1.endpoints.telco import telcoJobs
from app.api.v1.endpoints.telco import telcoGraphs
from app.api.v1.endpoints.ocm import ocmJobs
from app.api.v1.endpoints.ilab import ilab


router = APIRouter()
Expand Down Expand Up @@ -39,3 +41,6 @@

# OCM endpoint
router.include_router(ocmJobs.router, tags=['ocm'])

# InstructLab endpoint
router.include_router(router=ilab.router, tags=['ilab'])
Loading
Loading