Skip to content

Commit

Permalink
kcidb/test_monitor: test method to linux_stable_rc subscription
Browse files Browse the repository at this point in the history
Test script for Linux `stable-rc` subscription.

Signed-off-by: Jeny Sadadia <[email protected]>
  • Loading branch information
Jeny Sadadia authored and spbnick committed Aug 1, 2024
1 parent 5edfd1a commit c42257d
Showing 1 changed file with 110 additions and 0 deletions.
110 changes: 110 additions & 0 deletions kcidb/test_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -843,3 +843,113 @@ def test_email_generated(empty_deployment):
# Check we get no more notification messages
assert len(email_subscriber.pull(1, 5)) == 0, \
f"Extra emails for {io_version!r}"


def test_linux_stable_rc():
"""Check stable-rc subscription works"""
notifications = match(
{
"version": {
"major": 4,
"minor": 3
},
"checkouts": [
{
"id": "maestro:66969be5aa07c494f8d22863",
"origin": "maestro",
"tree_name": "stable-rc",
"git_repository_url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git",
"git_commit_hash": "51945679d212aae61a418eff41370c13da94f94d",
"git_repository_branch": "linux-5.4.y",
"git_commit_name": "v5.4.279-79-g51945679d212",
"patchset_files": [],
"patchset_hash": "",
"start_time": "2024-07-16T16:12:21.683+00:00",
"contacts": [],
"valid": True
},
{
"id": "tuxsuite:51945679d212aae61a418eff41370c13da94f94d",
"origin": "tuxsuite",
"git_repository_url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git",
"git_commit_hash": "51945679d212aae61a418eff41370c13da94f94d",
"git_commit_name": "v5.4.279-79-g51945679d212",
"patchset_files": [],
"patchset_hash": "",
"start_time": "2024-07-16T16:15:56+00:00",
"contacts": [],
"valid": True
}
],
"builds": [
{
"id": "maestro:66969c63aa07c494f8d22ad8",
"checkout_id": "maestro:66969be5aa07c494f8d22863",
"origin": "maestro",
"comment": "v5.4.279-79-g51945679d212",
"start_time": "2024-07-16T16:14:27.761+00:00",
"architecture": "arm64",
"config_name": "cros://chromeos-5.4/arm64/chromiumos-qualcomm.flavour.config",
"valid": False,
"log_excerpt": "./arch/arm64/include/asm/memory.h: " \
"In function ‘__tag_set’:\n" \
"./arch/arm64/include/asm/memory.h:238:22: warning: cast from "\
"pointer to integer of different size [-Wpointer-to-int-cast]\n" \
"238 | u64 __addr = (u64)addr & ~__tag_shifted(0xff);\n" \
"| ^\n" \
"/tmp/ccFJEFDb.s: Assembler messages:\n" \
"/tmp/ccFJEFDb.s:129: Error: invalid barrier type -- `dmb ishld'\n" \
"/tmp/ccFJEFDb.s:234: Error: invalid barrier type -- `dmb ishld'\n" \
"/tmp/ccFJEFDb.s:510: Error: invalid barrier type -- `dmb ishld'\n" \
"/tmp/ccFJEFDb.s:537: Error: invalid barrier type -- `dmb ishld'\n" \
"/tmp/ccFJEFDb.s:1132: Error: invalid barrier type -- `dmb ishld'\n" \
"/tmp/ccFJEFDb.s:1216: Error: invalid barrier type -- `dmb ishld'\n" \
"make[1]: *** [arch/arm64/kernel/vdso32/Makefile:166: " \
"arch/arm64/kernel/vdso32/vgettimeofday.o] Error 1\n" \
"make: *** [arch/arm64/Makefile:170: vdso_prepare] Error 2"
},
{
"id": "tuxsuite:2jKrMEMuY667cDnJgLrHdpnjxvS",
"checkout_id": "tuxsuite:51945679d212aae61a418eff41370c13da94f94d",
"origin": "tuxsuite",
"start_time": "2024-07-16T16:15:59+00:00",
"architecture": "s390",
"config_name": "defconfig",
"valid": False
},
{
"id": "maestro:66969c5faa07c494f8d22ac1",
"checkout_id": "maestro:66969be5aa07c494f8d22863",
"origin": "maestro",
"comment": "v5.4.279-79-g51945679d212",
"start_time": "2024-07-16T16:14:23.836+00:00",
"architecture": "x86_64",
"config_name": "x86_64_defconfig",
"valid": True
}
],
"tests": [
{
"id": "maestro:6696c76faa07c494f8d2828c",
"build_id": "maestro:66969c5faa07c494f8d22ac1",
"origin": "maestro",
"path": "boot",
"comment": "baseline-x86-intel on acer-cbv514-1h-34uz-brya in lava-collabora",
"status": "FAIL",
"waived": False,
"start_time": "2024-07-16T19:18:07.209+00:00",
"misc": {"platform": "acer-cbv514-1h-34uz-brya"}
}
]
}
)

subjects = sorted([
n.message.subject
for n in notifications
if n.subscription == "linux_stable_rc" and
"Jeny Sadadia <[email protected]>" in n.message.to
])

assert len(subjects) == 1
assert re.match(r"^KernelCI report for stable-rc: ", subjects[0])

0 comments on commit c42257d

Please sign in to comment.