Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
0d32d74
Basic makefile-maker setup
PhilippMatthes Jan 3, 2025
e940c9a
Basic OpenStack data download
PhilippMatthes Jan 3, 2025
9519ee0
License
PhilippMatthes Jan 3, 2025
4b12524
WIP
PhilippMatthes Jan 9, 2025
700137c
Sync prometheus metrics to db
PhilippMatthes Jan 9, 2025
f3a0d33
Sync openstack servers to db
PhilippMatthes Jan 9, 2025
0982d98
Rough functions for feature extraction
PhilippMatthes Jan 9, 2025
2664b10
Refactor conf handling and use go-pg
PhilippMatthes Jan 10, 2025
a433baf
Better sync
PhilippMatthes Jan 10, 2025
86b13ac
Progress
PhilippMatthes Jan 10, 2025
e236ee6
Handle db init globally, implement scheduler weigher
PhilippMatthes Jan 10, 2025
4e3fe12
Licenses
PhilippMatthes Jan 10, 2025
a535db4
Wording: Context -> State
PhilippMatthes Jan 13, 2025
9536555
Logging and minor changes
PhilippMatthes Jan 13, 2025
c7f9553
Basic plutono dashboard
PhilippMatthes Jan 13, 2025
22f4f66
Basic untested sim setup
PhilippMatthes Jan 13, 2025
c24e361
OpenStack pagination, other minor stuff
PhilippMatthes Jan 13, 2025
45f3b1c
More dynamic filter for noisiness
PhilippMatthes Jan 13, 2025
1b8d86f
Some basic dashboards
PhilippMatthes Jan 13, 2025
6f368fb
Fix sql queries
PhilippMatthes Jan 13, 2025
7f1cfda
Forgot sim script
PhilippMatthes Jan 13, 2025
d5304a9
Helm chart and tilt setup
PhilippMatthes Jan 14, 2025
ba05951
Add plutono to Tilt setup
PhilippMatthes Jan 14, 2025
31e2003
Fix table in Plutono dashboard
PhilippMatthes Jan 14, 2025
bcbce3b
Linting
PhilippMatthes Jan 14, 2025
bdb1ab8
No coveralls for now
PhilippMatthes Jan 14, 2025
605022c
Polishing
PhilippMatthes Jan 15, 2025
e0b3fd1
Add conf_test
PhilippMatthes Jan 15, 2025
11fafc9
More tests
PhilippMatthes Jan 15, 2025
3801d9b
DB tests and other tests
PhilippMatthes Jan 15, 2025
28ef40f
License headers
PhilippMatthes Jan 15, 2025
d814fbe
Interfaces
PhilippMatthes Jan 15, 2025
6b0f938
Refactor db handling
PhilippMatthes Jan 15, 2025
6646689
Fix test
PhilippMatthes Jan 15, 2025
cf4ff58
License headers
PhilippMatthes Jan 15, 2025
d3ff23d
Polishing and floating point error
PhilippMatthes Jan 15, 2025
7d4fac3
Noisiness test
PhilippMatthes Jan 16, 2025
aac70ed
Openstack sync test
PhilippMatthes Jan 16, 2025
ce6373b
Tests polishing and more prometheus sync tests
PhilippMatthes Jan 16, 2025
c4338e5
API test and license header for noisiness test
PhilippMatthes Jan 16, 2025
26118a9
Noisiness test
PhilippMatthes Jan 16, 2025
fd7e866
Polishing and some more tests
PhilippMatthes Jan 16, 2025
830f0cb
Some more polishing
PhilippMatthes Jan 16, 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
20 changes: 20 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/.dockerignore
.DS_Store
# TODO: uncomment when applications no longer use git to get version information
#.git/
/.github/
/.gitignore
/.goreleaser.yml
/*.env*
/.golangci.yaml
/.vscode/
/build/
/CONTRIBUTING.md
/Dockerfile
/docs/
/LICENSE*
/Makefile.maker.yaml
/README.md
/report.html
/shell.nix
/testing/
8 changes: 8 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash
# SPDX-FileCopyrightText: 2019–2020 Target, Copyright 2021 The Nix Community
# SPDX-License-Identifier: Apache-2.0
if type -P lorri &>/dev/null; then
eval "$(lorri direnv)"
else
use nix
fi
50 changes: 50 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended",
"default:pinDigestsDisabled",
"mergeConfidence:all-badges",
"docker:disable"
],
"assignees": [
"auhlig",
"PhilippMatthes"
],
"commitMessageAction": "Renovate: Update",
"constraints": {
"go": "1.23"
},
"dependencyDashboardOSVVulnerabilitySummary": "all",
"osvVulnerabilityAlerts": true,
"postUpdateOptions": [
"gomodTidy",
"gomodUpdateImportPaths"
],
"packageRules": [
{
"matchPackageNames": [
"golang"
],
"allowedVersions": "1.23.x"
},
{
"matchPackageNames": [
"/^github\\.com\\/sapcc\\/.*/"
],
"automerge": true,
"groupName": "github.com/sapcc"
},
{
"matchPackageNames": [
"!/^github\\.com\\/sapcc\\/.*/",
"/.*/"
],
"groupName": "External dependencies"
}
],
"prHourlyLimit": 0,
"schedule": [
"before 8am on Friday"
],
"semanticCommits": "disabled"
}
52 changes: 52 additions & 0 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
################################################################################
# This file is AUTOGENERATED with <https://github.com/sapcc/go-makefile-maker> #
# Edit Makefile.maker.yaml instead. #
################################################################################

# Copyright 2024 SAP SE
# SPDX-License-Identifier: Apache-2.0

name: Checks
"on":
push:
branches:
- main
pull_request:
branches:
- '*'
workflow_dispatch: {}
permissions:
checks: write
contents: read
jobs:
checks:
name: Checks
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
check-latest: true
go-version: 1.23.4
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: latest
- name: Dependency Licenses Review
run: make check-dependency-licenses
- name: Install govulncheck
run: go install golang.org/x/vuln/cmd/govulncheck@latest
- name: Run govulncheck
run: govulncheck -format text ./...
- name: Check for spelling errors
uses: reviewdog/action-misspell@v1
with:
exclude: ./vendor/*
fail_on_error: true
github_token: ${{ secrets.GITHUB_TOKEN }}
ignore: importas
reporter: github-check
- name: Check if source code files have license header
run: make check-license-headers
56 changes: 56 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
################################################################################
# This file is AUTOGENERATED with <https://github.com/sapcc/go-makefile-maker> #
# Edit Makefile.maker.yaml instead. #
################################################################################

# Copyright 2024 SAP SE
# SPDX-License-Identifier: Apache-2.0

name: CI
"on":
push:
branches:
- main
paths-ignore:
- '**.md'
pull_request:
branches:
- '*'
paths-ignore:
- '**.md'
workflow_dispatch: {}
permissions:
contents: read
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
check-latest: true
go-version: 1.23.4
- name: Build all binaries
run: make build-all
test:
name: Test
needs:
- build
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
check-latest: true
go-version: 1.23.4
- name: Run tests and generate coverage report
run: |
sudo /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -y
sudo apt-get install --no-install-recommends postgresql-17
export PATH=/usr/lib/postgresql/17/bin:$PATH
make build/cover.out
44 changes: 44 additions & 0 deletions .github/workflows/codeql.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
################################################################################
# This file is AUTOGENERATED with <https://github.com/sapcc/go-makefile-maker> #
# Edit Makefile.maker.yaml instead. #
################################################################################

# Copyright 2024 SAP SE
# SPDX-License-Identifier: Apache-2.0

name: CodeQL
"on":
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: '00 07 * * 1'
workflow_dispatch: {}
permissions:
actions: read
contents: read
security-events: write
jobs:
analyze:
name: CodeQL
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
check-latest: true
go-version: 1.23.4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: go
queries: security-extended
- name: Autobuild
uses: github/codeql-action/autobuild@v3
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
23 changes: 23 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Test with Docker

on: [push]

jobs:
test:
runs-on: ubuntu-latest
services:
dind:
image: docker:23.0-rc-dind-rootless
ports:
- 2375:2375
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.23"

- name: Test with Docker
run: go test -v ./...
Loading