Skip to content

Commit

Permalink
Merge branch 'main' into cost-4912-unattributed-storage
Browse files Browse the repository at this point in the history
  • Loading branch information
myersCody committed Jun 27, 2024
2 parents d62b6cd + 011ec69 commit 01636ab
Show file tree
Hide file tree
Showing 78 changed files with 5,910 additions and 997 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/check-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,26 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/[email protected]

- name: Install skopeo
run: sudo apt-get install -y skopeo

- name: Check change
run: |
skopeo inspect "docker://registry.access.redhat.com/ubi8/ubi-minimal:latest" | grep -Po '(?<="Digest": ")([^"]+)' > .baseimagedigest
docker run --rm --entrypoint sh -u 0 quay.io/cloudservices/koku:latest -c \
'yum upgrade -y --security > /dev/null; rpm -qa | sort | sha256sum' \
>> .baseimagedigest
- name: Do change if the digest changed
run: |
git config user.name 'Update-a-Bot'
git config user.email '[email protected]'
git add .baseimagedigest
git commit -m "chore(image): update and rebuild image" || echo "No new changes"
- name: Create pull request
uses: peter-evans/create-pull-request@v4
uses: peter-evans/create-pull-request@v6.0.5
with:
title: 'chore(image): update base image'
33 changes: 17 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3.1.0
uses: actions/checkout@v4.1.7

- name: Install Python
uses: actions/setup-python@v4.3.0
uses: actions/setup-python@v5.1.0
with:
python-version: '3.9'

- name: Run pre-commit checks
uses: pre-commit/[email protected].0
uses: pre-commit/[email protected].1
env:
SETUPTOOLS_USE_DISTUTILS: stdlib

Expand All @@ -36,7 +36,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3.1.0
uses: actions/checkout@v4.1.7
with:
fetch-depth: 0

Expand All @@ -57,7 +57,7 @@ jobs:

- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v41.0.0
uses: tj-actions/changed-files@v44.5.2
with:
files_from_source_file: docker-files.txt

Expand All @@ -70,7 +70,7 @@ jobs:
- name: Setting smokes-required label
if: env.RUN_TESTS == 'true'
uses: actions/github-script@v6.3.3
uses: actions/github-script@v7.0.1
continue-on-error: true
with:
script: |
Expand All @@ -89,7 +89,7 @@ jobs:
- name: Remove smokes-required label
if: env.RUN_TESTS != 'true'
uses: actions/github-script@v6.3.3
uses: actions/github-script@v7.0.1
continue-on-error: true
with:
script: |
Expand All @@ -114,13 +114,13 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3.1.0
uses: actions/checkout@v4.1.7
with:
fetch-depth: 0

- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v41.0.0
uses: tj-actions/changed-files@v44.5.2
with:
files: |
db_functions/**
Expand Down Expand Up @@ -160,7 +160,7 @@ jobs:
steps:
- name: Checkout
if: needs.changed-files.outputs.run_tests == 'true'
uses: actions/checkout@v3.1.0
uses: actions/checkout@v4.1.7
with:
fetch-depth: 0

Expand All @@ -174,7 +174,7 @@ jobs:

- name: Set up Python ${{ matrix.python-version }}
if: needs.changed-files.outputs.run_tests == 'true'
uses: actions/setup-python@v4.3.0
uses: actions/setup-python@v5.1.0
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -185,7 +185,7 @@ jobs:
- name: Cache dependencies
if: needs.changed-files.outputs.run_tests == 'true'
id: cache-dependencies
uses: actions/cache@v3.0.11
uses: actions/cache@v4.0.2
with:
path: |
~/.cache/pipenv
Expand Down Expand Up @@ -243,10 +243,11 @@ jobs:

- name: Upload test coverage file
if: steps.unit_tests_run.outcome == 'success'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4.3.3
with:
name: coverage
path: coverage.xml
overwrite: true

coverage:
name: Coverage
Expand All @@ -258,19 +259,19 @@ jobs:
# this checkout is required for the coverage report. If we don't do this, then
# the uploaded report is invalid and codecov doesn't know how to process it.
if: needs.changed-files.outputs.run_tests == 'true'
uses: actions/checkout@v3.1.0
uses: actions/checkout@v4.1.7
with:
fetch-depth: 0

- name: Download coverage result from units
if: needs.changed-files.outputs.run_tests == 'true'
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4.1.7
with:
name: coverage

- name: Upload coverage to Codecov
if: needs.changed-files.outputs.run_tests == 'true'
uses: codecov/codecov-action@v4.2.0
uses: codecov/codecov-action@v4.4.1
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pre-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3.1.0
uses: actions/checkout@v4.1.7
with:
fetch-depth: 0

Expand Down Expand Up @@ -43,7 +43,7 @@ jobs:
run: bash .github/scripts/get_description.sh

- name: Set release body
uses: ncipollo/release-action@v1.11.1
uses: ncipollo/release-action@v1.14.0
with:
bodyFile: release_body.md
commit: ${{ github.event.inputs.commit }}
Expand Down
26 changes: 0 additions & 26 deletions .unleash/flags.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,32 +141,6 @@
"variants": [],
"createdAt": "2022-12-09T19:41:51.178Z"
},
{
"name": "cost-management.backend.enable-ocp-savings-plan-cost",
"description": "Whether to use AWS savings plan cost for OCP raw cost",
"type": "permission",
"project": "default",
"enabled": true,
"stale": false,
"strategies": [
{
"name": "flexibleRollout",
"parameters": {
"rollout": 100,
"stickiness": "schema"
},
"constraints": [
{
"contextName": "schema",
"operator": "IN",
"values": ["org1234567"]
}
]
}
],
"variants": [],
"createdAt": "2022-12-02T19:01:40.137Z"
},
{
"name": "cost-management.backend.enable-purge-turnpike",
"description": "Toggle to enable purging of trino files.",
Expand Down
1 change: 1 addition & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ sqlparse = "*"
[dev-packages]
argh = ">=0.26.2"
astroid = ">=2.3"
flower = "*"
coverage = ">=5.0"
crc-bonfire = "*"
debugpy = ">=1.3.0"
Expand Down
Loading

0 comments on commit 01636ab

Please sign in to comment.