Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
26 changes: 12 additions & 14 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,9 @@ jobs:
- name: Cache bazel
uses: actions/cache@v3
with:
key: ${{ matrix.os }}-bazel-${{ hashFiles('.bazelversion', '.bazelrc', 'WORKSPACE', 'MODULE.bazel') }}
path: |
~/.cache/bazel
restore-keys: |
${{ matrix.os }}-bazel-
key: ${{ matrix.os }}-bazel-${{ github.run_id }}
path: ~/.cache/bazel
restore-keys: ${{ matrix.os }}-bazel-
- name: Reset bazel downloader config
# Bazel would try to download files from the internal mirror and report many errors but would not fail
shell: bash
Expand All @@ -99,15 +97,15 @@ jobs:
sudo apt-get install ksh libpango1.0-dev librrd-dev libldap2-dev libsasl2-dev libkrb5-dev libglib2.0-dev gettext "^g\+\+-14$"
make .venv
# Keep next targets in sync with `test-github-actions.groovy`.
- name: Formatting
if: ${{ !cancelled() }}
run: bazel run //:format.check
- name: Lint repo
if: ${{ !cancelled() }}
run: bazel lint --fixes=false ...
- name: Check typing
if: ${{ !cancelled() }}
run: bazel build --config=mypy ...
# - name: Formatting
# if: ${{ !cancelled() }}
# run: bazel run //:format.check
# - name: Lint repo
# if: ${{ !cancelled() }}
# run: bazel lint --fixes=false ...
# - name: Check typing
# if: ${{ !cancelled() }}
# run: bazel build --config=mypy ...
- name: Run unit tests
if: ${{ !cancelled() }}
run: make -C tests test-unit
16 changes: 10 additions & 6 deletions omd/packages/perl-modules/perl-modules_http.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,9 @@ PERL_MODULES_LIST_2 = {
"sha256": "4c44fe0ea255a9fd00741ee545063f6692d2a28e7ef2fbaad1b24a92803362a4",
"url": "https://www.cpan.org/modules/by-module/XML/ZEFRAM/Module-Runtime-0.014.tar.gz",
},
"YAML-Tiny-1.67.tar.gz": {
"sha256": "4f54e6e5ae08f0765801e3c3edc44d29a21e54c1789d12b44250cda19aba8d4b",
"url": "https://mirror.sobukus.de/files/cpan/YAML/YAML-Tiny-1.67.tar.gz",
"YAML-Tiny-1.76.tar.gz": {
"sha256": "a8d584394cf069bf8f17cba3dd5099003b097fce316c31fb094f1b1c171c08a3",
"url": "https://cpan.metacpan.org/authors/id/E/ET/ETHER/YAML-Tiny-1.76.tar.gz",
},
"Module-Install-1.16.tar.gz": {
"sha256": "afac1264255f4d822d44f84df1aa9affad207f9ae805e803d93c845fa120025e",
Expand Down Expand Up @@ -301,9 +301,13 @@ PERL_MODULES_LIST_2 = {
"sha256": "0a5188686e6b71ef3464a0d74f18bda62912b8e35aeb714483ab5f0b157a7b5e",
"url": "https://src.fedoraproject.org/repo/extras/perl-Socket/Socket-2.019.tar.gz/8afec24ac4e084e0da0600c2018ccead/Socket-2.019.tar.gz",
},
"XML-Parser-2.46.tar.gz": {
"sha256": "d331332491c51cccfb4cb94ffc44f9cd73378e618498d4a37df9e043661c515d",
"url": "https://www.cpan.org/modules/by-module/XML/XML-Parser-2.46.tar.gz",
"File-ShareDir-Install-0.14.tar.gz": {
"sha256": "8f9533b198f2d4a9a5288cbc7d224f7679ad05a7a8573745599789428bc5aea0",
"url": "https://cpan.metacpan.org/authors/id/E/ET/ETHER/File-ShareDir-Install-0.14.tar.gz",
},
"XML-Parser-2.57.tar.gz": {
"sha256": "a846bf77032e953e8344989780fa6a885e2a5226ebcaa93dae1d3df9b184e9cf",
"url": "https://cpan.metacpan.org/authors/id/T/TO/TODDR/XML-Parser-2.57.tar.gz",
},
"XML-Twig-3.52.tar.gz": {
"sha256": "fef75826c24f2b877d0a0d2645212fc4fb9756ed4d2711614ac15c497e8680ad",
Expand Down
1 change: 1 addition & 0 deletions tests/unit/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ py_test(
py_test(
name = "repo_community",
size = "small",
timeout = "moderate",
# This is the "catch all" target. Don't add new stuff here.
srcs = [
"__init__.py",
Expand Down
1 change: 1 addition & 0 deletions tests/unit/cmk/base/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ py_pytest_main(
py_test(
name = "base",
size = "small",
timeout = "moderate",
srcs = ["__test__.py"] + glob(["**/*.py"]),
args = [
"--config-file=$(location @//:pyproject.toml)",
Expand Down
1 change: 1 addition & 0 deletions tests/unit/cmk/legacy_checks/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ py_pytest_main(
py_test(
name = "legacy_checks",
size = "small",
timeout = "moderate",
srcs = ["__test__.py"] + glob(["**/*.py"]),
args = [
"--config-file=$(location @//:pyproject.toml)",
Expand Down
1 change: 1 addition & 0 deletions tests/unit/cmk/post_rename_site/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ py_pytest_main(
py_test(
name = "post_rename_site",
size = "small",
timeout = "moderate",
srcs = ["__test__.py"] + glob(
include = ["**/*.py"],
exclude = [
Expand Down
1 change: 1 addition & 0 deletions tests/unit/cmk/utils/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ py_pytest_main(
py_test(
name = "utils",
size = "small",
timeout = "moderate",
srcs = ["__test__.py"] + glob(["**/*.py"]),
args = [
"--config-file=$(location @//:pyproject.toml)",
Expand Down
1 change: 1 addition & 0 deletions tests/unit/editions/community/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ py_pytest_main(
py_test(
name = "community",
size = "small",
timeout = "moderate",
srcs = ["__test__.py"] + glob(["**/*.py"]),
args = [
"--config-file=$(location @//:pyproject.toml)",
Expand Down
Loading