From 19408eaef6e8365deba1023e2c4647550cf2d8bb Mon Sep 17 00:00:00 2001 From: kostas Date: Tue, 21 Jan 2025 10:06:04 +0200 Subject: [PATCH] chore: report failures on daily builds Signed-off-by: kostas --- .github/workflows/daily-builds.yml | 13 +++++++++++++ tests/dragonfly/cluster_test.py | 1 + tests/dragonfly/generic_test.py | 1 + 3 files changed, 15 insertions(+) diff --git a/.github/workflows/daily-builds.yml b/.github/workflows/daily-builds.yml index d94e3b9a4ff0..a9baf4a06458 100644 --- a/.github/workflows/daily-builds.yml +++ b/.github/workflows/daily-builds.yml @@ -116,3 +116,16 @@ jobs: run: | cd $GITHUB_WORKSPACE/build ctest -V -L DFLY + + - name: Send notifications on failure + if: failure() && github.ref == 'refs/heads/main' + shell: bash + run: | + job_link="${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}" + message="Daily builds failed.\\n Job Link: ${job_link}\\n" + + curl -s \ + -X POST \ + -H 'Content-Type: application/json' \ + '${{ secrets.GSPACES_BOT_DF_BUILD }}' \ + -d '{"text": "'"${message}"'"}' diff --git a/tests/dragonfly/cluster_test.py b/tests/dragonfly/cluster_test.py index 9f0cbbd46ec2..4b7fee6e755b 100644 --- a/tests/dragonfly/cluster_test.py +++ b/tests/dragonfly/cluster_test.py @@ -2072,6 +2072,7 @@ async def test_cluster_migration_huge_container(df_factory: DflyInstanceFactory) assert extract_int_after_prefix("buckets on_db_update ", line) == 0 +@pytest.mark.exclude_epoll @dfly_args({"proactor_threads": 2, "cluster_mode": "yes"}) @pytest.mark.parametrize("chunk_size", [1_000_000, 30]) @pytest.mark.asyncio diff --git a/tests/dragonfly/generic_test.py b/tests/dragonfly/generic_test.py index 25da08a42fc2..87fa838465d6 100644 --- a/tests/dragonfly/generic_test.py +++ b/tests/dragonfly/generic_test.py @@ -146,6 +146,7 @@ async def test_reply_guard_oom(df_factory, df_seeder_factory): assert info["evicted_keys"] > 0, "Weak testcase: policy based eviction was not triggered." +@pytest.mark.exclude_epoll @pytest.mark.asyncio async def test_denyoom_commands(df_factory): df_server = df_factory.create(proactor_threads=1, maxmemory="256mb", oom_deny_commands="get")