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

update staging #46

Merged
merged 51 commits into from
Feb 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
85a53d6
Updated harness.py to match what is currently being used
jmflinuxtx Mar 22, 2024
8ec9a63
Update rootest.sh to most recent version being run
jmflinuxtx Mar 22, 2024
6ae1df3
Update the unit tests
ryanlerch Mar 22, 2024
4749cd7
remove old tests files -- we use tox now
ryanlerch Mar 25, 2024
6f6a21a
remove files directory
ryanlerch Mar 25, 2024
0f32d75
remove manifest.IN
ryanlerch Mar 25, 2024
e5d82d3
Run black over code, use black to test formatting
ryanlerch Mar 25, 2024
fa8fb83
Set up linting checks, fix linting.
ryanlerch Mar 25, 2024
674b9db
Add renovate config
ryanlerch Mar 25, 2024
8dc18a7
add github action
ryanlerch Mar 25, 2024
bcfa41b
update the Readme
ryanlerch Mar 25, 2024
59dbdb3
Update dependencies in lockfile
renovate[bot] Mar 25, 2024
ac77f85
Update dependencies in lockfile
renovate[bot] Apr 1, 2024
089982d
Update pre-commit hook charliermarsh/ruff-pre-commit to v0.3.5
renovate[bot] Apr 4, 2024
3e1f787
Update dependencies in lockfile
renovate[bot] Apr 8, 2024
3a47877
Update pre-commit hook pre-commit/pre-commit-hooks to v4.6.0
renovate[bot] Apr 9, 2024
f85123d
Update pre-commit hook charliermarsh/ruff-pre-commit to v0.3.6
renovate[bot] Apr 15, 2024
b48b369
Update dependencies in lockfile
renovate[bot] Apr 15, 2024
66ef30c
Update pre-commit hook charliermarsh/ruff-pre-commit to v0.3.7
renovate[bot] Apr 15, 2024
f0acff4
Update pre-commit hook psf/black to v24.4.0
renovate[bot] Apr 15, 2024
86c9afe
Update all non-major dependencies
renovate[bot] Apr 22, 2024
f311a89
Update pre-commit hook charliermarsh/ruff-pre-commit to v0.4.1
renovate[bot] Apr 22, 2024
630df73
Update all non-major dependencies
renovate[bot] Apr 29, 2024
5ae9f9b
Update pre-commit hook charliermarsh/ruff-pre-commit to v0.4.3
renovate[bot] May 7, 2024
08c896c
Update pre-commit hook charliermarsh/ruff-pre-commit to v0.4.4
renovate[bot] May 13, 2024
8a44664
Update pre-commit hook charliermarsh/ruff-pre-commit to v0.4.5
renovate[bot] May 27, 2024
cbf16be
Update pre-commit hook charliermarsh/ruff-pre-commit to v0.4.6
renovate[bot] May 31, 2024
9ed4348
Update pre-commit hook charliermarsh/ruff-pre-commit to v0.4.7
renovate[bot] Jun 3, 2024
6cf622c
Update pre-commit hook charliermarsh/ruff-pre-commit to v0.4.8
renovate[bot] Jun 10, 2024
68d2a80
Update pre-commit hook charliermarsh/ruff-pre-commit to v0.4.9
renovate[bot] Jun 17, 2024
1835ca5
Update pre-commit hook charliermarsh/ruff-pre-commit to v0.4.10
renovate[bot] Jun 24, 2024
6ae2b60
Update dependency gunicorn to v23
renovate[bot] Aug 13, 2024
bf9695a
Update pre-commit hook pre-commit/pre-commit-hooks to v5
renovate[bot] Oct 8, 2024
9737ddf
Update all non-major dependencies
renovate[bot] Jan 5, 2025
de63532
Fix the formatting to comply with UP031 lint check
gridhead Jan 7, 2025
4775650
Merge pull request #32 from fedora-infra/renovate/all-minor-patch
gridhead Jan 7, 2025
6dec482
Update dependencies in lockfile
renovate[bot] Jan 7, 2025
0eb422f
Merge pull request #22 from fedora-infra/renovate/lock-file-maintenance
gridhead Jan 7, 2025
9205cbf
Update pre-commit hook charliermarsh/ruff-pre-commit to v0.8.6 (#35)
renovate[bot] Jan 8, 2025
a3efc5e
Update dependencies in lockfile
renovate[bot] Jan 13, 2025
9626968
Merge pull request #38 from fedora-infra/renovate/lock-file-maintenance
gridhead Jan 13, 2025
eb52287
Update all non-major dependencies
renovate[bot] Jan 13, 2025
90df268
Merge pull request #37 from fedora-infra/renovate/all-minor-patch
gridhead Jan 13, 2025
3b7c5a7
Update pre-commit hook charliermarsh/ruff-pre-commit to v0.9.1 (#39)
renovate[bot] Jan 13, 2025
b78314c
Update pre-commit hook charliermarsh/ruff-pre-commit to v0.9.2 (#40)
renovate[bot] Jan 20, 2025
471634b
Update dependencies in lockfile
renovate[bot] Jan 20, 2025
ea7e1e0
Merge pull request #41 from fedora-infra/renovate/lock-file-maintenance
gridhead Jan 20, 2025
c8cef5c
Update pre-commit hook charliermarsh/ruff-pre-commit to v0.9.3 (#42)
renovate[bot] Jan 27, 2025
8bc0660
Update pre-commit hook charliermarsh/ruff-pre-commit to v0.9.4 (#43)
renovate[bot] Feb 3, 2025
4488212
Update dependency black to v25 (#44)
renovate[bot] Feb 3, 2025
0c919ba
Update pre-commit hook psf/black to v25 (#45)
renovate[bot] Feb 4, 2025
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/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["local>fedora-infra/shared:renovate-config"]
}
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: Tests & Build

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
lint:
name: Run Format & Linting Checks
container:
image: fedorapython/fedora-python-tox
steps:
- uses: actions/checkout@v4
- name: Mark the directory as safe for git
run: git config --global --add safe.directory $PWD

- name: Install RPM dependencies
run: |
dnf install -y krb5-devel libpq-devel gettext python-tox poetry
- name: Run tests
run: tox -e ${{ matrix.tox_env }}
strategy:
matrix:
tox_env:
- lint
- format
runs-on: ubuntu-latest

unit_tests:
name: Run the Unit Tests
container: fedorapython/fedora-python-tox:latest
steps:
- uses: actions/checkout@v4
- name: Mark the directory as safe for git
run: git config --global --add safe.directory $PWD
- name: Install RPM dependencies
run: |
dnf install -y krb5-devel libpq-devel gettext python-tox poetry
- name: Run tests
run: tox -e ${{ matrix.tox_env }}
strategy:
matrix:
tox_env:
- py39
- py310
- py311
runs-on: ubuntu-latest
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ tests/logs/
logs/
.vagrant/
Vagrantfile
.vscode
30 changes: 30 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
# Generic hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files

# # License headers
# - repo: https://github.com/fsfe/reuse-tool
# rev: v2.1.0
# hooks:
# - id: reuse

# Formatting
- repo: https://github.com/psf/black
rev: 25.1.0
hooks:
- id: black

# Ruff
- repo: https://github.com/charliermarsh/ruff-pre-commit
# Ruff version.
rev: v0.9.4
hooks:
- id: ruff
7 changes: 0 additions & 7 deletions MANIFEST.in

This file was deleted.

41 changes: 38 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,39 @@
kerneltest-harness
==================
# kerneltest

Fedora automated kernel test harness
This is a small web application to display the results of the different
tests performed on kernels.

This application is currently deployed at:

https://kerneltest.fedoraproject.org/


## Development Envrionment

Quickly start hacking on kerneltest using the vagrant setup that is included in the
repo is super simple.

1. Set up tinystage (if you haven't already) and ensure the base boxes are running.

https://github.com/fedora-infra/tiny-stage

This sets up the infrastructure to use things like authentication and Fedora Messaging
when developing on kerneltest

2. Check out the repo, and run:

`vagrant up`

to provision your kerneltest instance

3. Kerneltest will be available at https://kerneltest.tinystage.test/

## Deploying

### Staging
To deploy to https://kerneltest.stg.fedoraproject.org, merge the changes required into the
staging branch, and they will be deployed in a few minutes.

### Production
To deploy to https://kerneltest.fedoraproject.org, merge the changes required into the
stable branch, and they will be deployed in a few minutes.
25 changes: 10 additions & 15 deletions createdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,37 +6,32 @@
import kerneltest.app as app
import kerneltest.dbtools as dbtools

dbtools.create_session(
app.APP.config['DB_URL'],
debug=True,
create_table=True)
dbtools.create_session(app.APP.config["DB_URL"], debug=True, create_table=True)

## Add current supported releases
SESSION=dbtools.create_session(
app.APP.config['DB_URL'],
debug=True)
SESSION = dbtools.create_session(app.APP.config["DB_URL"], debug=True)

release = dbtools.Release(
releasenum = "24",
support = "RELEASE",
releasenum="24",
support="RELEASE",
)
SESSION.add(release)

release = dbtools.Release(
releasenum = "25",
support = "RELEASE",
releasenum="25",
support="RELEASE",
)
SESSION.add(release)

release = dbtools.Release(
releasenum = "26",
support = "RELEASE",
releasenum="26",
support="RELEASE",
)
SESSION.add(release)

release = dbtools.Release(
releasenum = "27",
support = "RAWHIDE",
releasenum="27",
support="RAWHIDE",
)
SESSION.add(release)

Expand Down
6 changes: 4 additions & 2 deletions fedmsg.d/kerneltest.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@
"""

import socket
hostname = socket.gethostname().split('.')[0]

hostname = socket.gethostname().split(".")[0]

config = dict(
endpoints={
"kerneltest.%s" % hostname: [
"kerneltest.%s"
% hostname: [
"tcp://127.0.0.1:3005",
],
},
Expand Down
55 changes: 0 additions & 55 deletions files/alembic.ini

This file was deleted.

26 changes: 0 additions & 26 deletions files/kerneltest.cfg.sample

This file was deleted.

23 changes: 0 additions & 23 deletions files/kerneltest.conf

This file was deleted.

Loading