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

Develop -> Main #15

Merged
merged 52 commits into from
Oct 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
703ff16
Rename trivy
Jun 9, 2023
8d972cd
Update README.md
bio-boris Jun 9, 2023
14c0a19
codeql
Jun 9, 2023
ce636c9
Merge pull request #2 from kbase/update_readme
bio-boris Jun 9, 2023
64e3253
Modified permissions
Jun 9, 2023
1fffef3
Merge branch 'develop' of https://github.com/kbase/service_wizard2 in…
Jun 9, 2023
aaaa7cb
Modified permissions
Jun 9, 2023
ccc29eb
fix config
Jun 15, 2023
416b3ba
Update tests
Jun 15, 2023
7cb2578
Update tests
Jun 15, 2023
1d1b024
Update tests to run with pytest!
Jun 15, 2023
4089893
Update tests to run with pytest!
Jun 15, 2023
9fbb538
Update tests to run with pytest!
Jun 15, 2023
0560f96
Merge pull request #3 from kbase/DEVOPS-1366
bio-boris Jun 16, 2023
590420d
Hook up to auth
Jun 20, 2023
6081767
revert
Jun 20, 2023
b23d7e0
Add token cache tests
Jun 20, 2023
69dc8dd
Add token cache tests
Jun 20, 2023
5991ee7
Update gitignore
Jun 20, 2023
b3df766
ran black
Jun 20, 2023
38d42b8
ran black
Jun 20, 2023
5801a53
update pip
Jun 20, 2023
5b8385d
update pip
Jun 20, 2023
1d4add2
update pip
Jun 20, 2023
efd4300
get all pods
Jun 23, 2023
919e2bd
Pip
Jun 23, 2023
1f41610
Jun 26, Jun 27 updates
Jun 27, 2023
64492b7
Fixing rpc
Jun 27, 2023
00050ed
Merge pull request #4 from kbase/DEVOPS-1366-2
bio-boris Jun 27, 2023
dec15f7
Fixing rpc
Jun 27, 2023
7229ea3
Fixing rpc
Jun 27, 2023
fcc791e
Merge branch 'develop' into DEVOPS-1369
Jun 27, 2023
bed083b
Update readme and service account
Jun 28, 2023
abe920e
Update readme and service account
Jun 28, 2023
831dfe2
Prevent .env from being copied in
Jun 28, 2023
820a206
modify codecov
Jun 28, 2023
f4c94df
require one of two settings
Jun 28, 2023
d2adad8
fix openapi and add extra settings
Jun 28, 2023
2ceb5ce
Add settings to state
Jun 28, 2023
ee0d30a
Add settings to state
Jun 28, 2023
ff0745c
Add settings to state
Jun 28, 2023
156fa2d
Add settings to state
Jun 28, 2023
7c666b0
Fix settings
Jun 28, 2023
c672048
Ran black
Jun 28, 2023
61ec9b4
Update pipfile
Jun 29, 2023
739b924
update error message
Jun 30, 2023
3cdac58
Merge pull request #5 from kbase/DEVOPS-1369
bio-boris Jun 30, 2023
c2b674d
Devops 1367 (#11)
bio-boris Aug 16, 2023
200f404
Merge branch 'main' into develop
Aug 16, 2023
956001e
Update code for versions
Aug 17, 2023
90485bb
SW2 Cleanup (#13)
bio-boris Sep 25, 2023
6958f6d
Service wizard cleanup (#17)
bio-boris Oct 19, 2023
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 .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[run]
omit =
src/clients/CatalogClient.py
src/clients/baseclient.py
5 changes: 2 additions & 3 deletions .env
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ SERVICE_WIZARD_ADMIN_ROLE="SERVICE_WIZARD_ADMIN"
CATALOG_ADMIN_TOKEN="REDACTED"

# Kubernetes configs
# Note this also creates a toleration V1Toleration(effect="NoSchedule", key=namespace, operator="Exists")
KUBECONFIG="~/.kube/config"
NAMESPACE="staging-dynamic-services" # Note this also creates a toleration V1Toleration(effect="NoSchedule", key=namespace, operator="Exists")
NAMESPACE="staging-dynamic-services"
USE_INCLUSTER_CONFIG="false"
TAINT_TOLERATION_EXPRESSIONS=""
# APP_AFFINITY_FILE="app-affinity.yaml" # path to files that force apps to run on specific nodes
6 changes: 2 additions & 4 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@


name: "Code Scanning - Action"

on:
push:
branches: [main, develop]
branches: [ main, develop ]
pull_request:
branches: [main, develop]
branches: [ main, develop ]
schedule:
# ┌───────────── minute (0 - 59)
# │ ┌───────────── hour (0 - 23)
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/manual-build.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: Manual Build & Push
on:
workflow_dispatch:
workflow_dispatch:
jobs:
build-push:
uses: kbase/.github/.github/workflows/reusable_build-push.yml@main
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ "3.11" ]
python-version: [ "3.12" ]

steps:

Expand All @@ -32,20 +32,18 @@ jobs:
with:
python-version: ${{ matrix.python-version }}


- name: Install dependencies
# tried VaultVulp/action-pipenv but pytest wasn't on the path post action
shell: bash
run: |
pip install pipenv
pipenv sync --system --dev
run: bash scripts/update_dependencies.sh

- name: Run pre-commit Hooks
shell: bash
run: pre-commit run --all-files

- name: Run tests
shell: bash
run: PYTHONPATH=. pytest --cov=src --cov-report=xml test
run: bash scripts/run_tests.sh

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
Expand Down
22 changes: 11 additions & 11 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files

- repo: https://github.com/psf/black
- repo: https://github.com/psf/black
rev: 23.7.0
hooks:
- id: black
language_version: python3.11
- id: black
language_version: python3.12

- repo: https://github.com/pycqa/flake8
- repo: https://github.com/pycqa/flake8
rev: 6.1.0
hooks:
- id: flake8
args: [--config, pyproject.toml]
- id: flake8
args: [ --config, pyproject.toml ]
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.11
FROM python:3.12.0-bookworm

RUN mkdir -p /app
WORKDIR /app
Expand Down
20 changes: 11 additions & 9 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,23 @@ verify_ssl = true
name = "pypi"

[packages]
fastapi = "==0.95.2"
uvicorn = {version = "==0.22.0", extras = ["standard"]}
sentry-sdk = "==1.25.0"
fastapi = "==0.103.2"
uvicorn = "==0.23.2"
sentry-sdk = "==1.31.0"
PySocks = "==1.7.1"
requests = "==2.31.0"
prometheus-fastapi-instrumentator = "==6.0.0"
pydantic = "==1.10.8"
prometheus-fastapi-instrumentator = "==6.1.0"
cacheout = "==0.14.1"
jinja-cli = "==1.2.2"
python-dotenv = "==0.19.1"
httpx = "==0.24.1"
kubernetes = "==26.1.0"
python-dotenv = "==1.0.0"
httpx = "==0.25.0"
kubernetes = "==28.1.0"
flake8-annotations = "==3.0.1"
chardet = "==5.2.0"

[dev-packages]
pytest = "==7.3.1"
python-dotenv = "==1.0.0"
pytest-cov = "==4.0.0"
requests_mock = "==1.9.3"
pre-commit = "==3.3.3"
Expand All @@ -27,4 +29,4 @@ flake8 = "==6.1.0"
pytest_kind = "==22.11.1"

[requires]
python_version = "3.11"
python_version = "3.12"
1,069 changes: 553 additions & 516 deletions Pipfile.lock

Large diffs are not rendered by default.

Loading
Loading