Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: robusta-dev/robusta
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0.6.6
Choose a base ref
...
head repository: robusta-dev/robusta
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Loading
Showing 869 changed files with 60,660 additions and 10,291 deletions.
15 changes: 15 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[flake8]
max-line-length = 120
exclude = .git,
__pycache__,
old,
build,
dist,
.venv,
.vscode,
.pytest_cache,
__init__.py,
.mypy_cache,
src/robusta/integrations/kubernetes/autogenerated,
src/robusta/integrations/kubernetes/custom_models.py
ignore = E501, W503, E203, E402
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem?**
Please describe a clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
10 changes: 10 additions & 0 deletions .github/ISSUE_TEMPLATE/other.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
name: Other
about: 'Anything else'
title: ''
labels: ''
assignees: ''

---


95 changes: 0 additions & 95 deletions .github/workflows/build.yaml

This file was deleted.

70 changes: 40 additions & 30 deletions .github/workflows/deploy-docs.yaml
Original file line number Diff line number Diff line change
@@ -1,38 +1,49 @@
name: Build & Deploy Robusta Docs

on:
create: {}
release:
types: [published]
push:
paths:
- 'docs/**'
workflow_dispatch:
inputs:
version:
description: 'Docs release version'
required: true
- .github/workflows/deploy-docs.yaml

env:
PROJECT_ID: ${{ secrets.GKE_PROD_PROJECT }}
RELEASE_VER : ${{ github.event.release.tag_name }}
jobs:
has-secrets:
name: Check Secrets
runs-on: ubuntu-latest
steps:
- id: docs
env:
HAS_SECRET_ACCESS: ${{ secrets.HAS_SECRET_ACCESS }}
if: ${{ env.HAS_SECRET_ACCESS != '' }}
run: echo '::set-output name=docs::true'
outputs:
docs: ${{ steps.docs.outputs.docs }}

setup-build-publish-deploy:
name: Deploy docs
runs-on: ubuntu-latest
needs: [has-secrets]
env:
PROJECT_ID: ${{ secrets.GKE_PROD_PROJECT }}

steps:
- name: Checkout
uses: actions/checkout@v2

- uses: google-github-actions/setup-gcloud@v0.2.0
if: needs.has-secrets.outputs.docs
with:
service_account_key: ${{ secrets.GKE_PROD_SA_KEY }}
project_id: ${{ secrets.GKE_PROD_PROJECT }}
export_default_credentials: true

# Configure Docker to use the gcloud command-line tool as a credential helper for authentication
- run: |-
- name: Configure Docker
if: needs.has-secrets.outputs.docs
run: |-
gcloud auth configure-docker us-central1-docker.pkg.dev
- name: Set up Python
@@ -42,32 +53,31 @@ jobs:

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r docs/requirements.txt
- name: Set environmental variables
run: |
if [ ! -z "${{ env.RELEASE_VER }}" ]; then
echo release
echo "DOCS_VERSION=${{ env.RELEASE_VER }}" >> $GITHUB_ENV
elif [ ! -z "${{ github.event.inputs.version }}" ]; then
echo manual
echo "DOCS_VERSION=${{ github.event.inputs.version }}" >> $GITHUB_ENV
else
echo default
echo "DOCS_VERSION=master" >> $GITHUB_ENV
fi
sudo apt-get install graphviz pandoc
curl -sSL https://install.python-poetry.org | python3 - --version 1.4.0
poetry config virtualenvs.create false
poetry install --extras=all
- name: Update docs version ${{ env.DOCS_VERSION }}
# see https://stackoverflow.com/a/58034787/495995 for an explanation on ${GITHUB_REF##*/}
- name: Update docs version
run: |
sed -i 's/DOCS_VERSION_PLACEHOLDER/${{ env.DOCS_VERSION }}/g' docs/conf.py
sed -i 's/DOCS_RELEASE_PLACEHOLDER/${{ env.DOCS_VERSION }}/g' docs/conf.py
echo "Setting DOCS_VERSION_PLACEHOLDER to ${GITHUB_REF##*/}"
sed -i "s/DOCS_VERSION_PLACEHOLDER/${GITHUB_REF##*/}/g" docs/conf.py
sed -i "s/DOCS_RELEASE_PLACEHOLDER/${GITHUB_REF##*/}/g" docs/conf.py
- name: Build the docs
env:
ROBUSTA_GOOGLE_FONTS_API_KEY: ${{ secrets.ROBUSTA_GOOGLE_FONTS_API_KEY }}
run: |
cd docs
make html
poetry run make html
# using relative path doesn't work for some reason (aka ./_build/html)
- name: Upload docs to public gcp bucket
run: gsutil rsync -R /home/runner/work/robusta/robusta/docs/_build/html gs://robusta-public/${{ env.DOCS_VERSION }}/
if: needs.has-secrets.outputs.docs
run: gsutil rsync -R ./docs/_build/html "gs://robusta-docs/${GITHUB_REF##*/}/"

- name: Upload docs artifact
uses: actions/upload-artifact@v4
with:
name: docs
path: docs/_build/html
16 changes: 16 additions & 0 deletions .github/workflows/new-contributors-autoreply.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Automated message for issues
on:
issues:
types:
- opened
jobs:
build:
name: Welcome new contributor 🎉
permissions:
issues: write
runs-on: ubuntu-latest
steps:
- uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: "Hi 👋, thanks for opening an issue! Please note, it may take some time for us to respond, but we'll get back to you as soon as we can! \n\n- 💬 **Slack Community:** Join Robusta team and other contributors on Slack [here](https://bit.ly/robusta-slack).\n- 📖 **Docs:** Find our documentation [here](https://docs.robusta.dev/master/).\n- 🎥 **YouTube Channel:** Watch our videos [here](https://www.youtube.com/@RobustaDev)."
Loading