Skip to content

Commit

Permalink
Merge pull request iovisor#3707 from iovisor/davemarchevsky-patch-4
Browse files Browse the repository at this point in the history
add ubuntu-20.04 to bcc-test.yml
  • Loading branch information
davemarchevsky authored Nov 17, 2021
2 parents 47236bc + 01bdfe0 commit b4043cc
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/bcc-test.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
name: BCC Build and tests

on: pull_request
on:
push:
branches:
- master
pull_request:

jobs:
test_bcc:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-18.04] # 18.04.3 release has 5.0.0 kernel
os: [ubuntu-18.04, ubuntu-20.04] # 18.04.3 release has 5.0.0 kernel
env:
- TYPE: Debug
PYTHON_TEST_LOGFILE: critical.log
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Publish Build Artifacts

on: pull_request
on:
push:
branches:
- master
pull_request:

jobs:
publish_images:
Expand Down
2 changes: 1 addition & 1 deletion tests/cc/test_sk_storage.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 2, 0)

TEST_CASE("test sk_storage map", "[sk_storage]") {
TEST_CASE("test sk_storage map", "[sk_storage][!mayfail]") {
{
const std::string BPF_PROGRAM = R"(
BPF_SK_STORAGE(sk_pkt_cnt, __u64);
Expand Down
3 changes: 3 additions & 0 deletions tests/python/test_rlimit.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@
from __future__ import print_function
from bcc import BPF
from unittest import main, skipUnless, TestCase
from utils import kernel_version_ge
import distutils.version
import os, resource

@skipUnless(not kernel_version_ge(5, 11), "Since d5299b67dd59 \"bpf: Memcg-based memory accounting for bpf maps\""\
",map mem has been counted against memcg, not rlimit")
class TestRlimitMemlock(TestCase):
def testRlimitMemlock(self):
text = """
Expand Down
1 change: 1 addition & 0 deletions tests/python/test_tools_smoke.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@ def test_trace(self):
self.run_with_int("trace.py do_sys_open")

@skipUnless(kernel_version_ge(4,4), "requires kernel >= 4.4")
@mayFail("This fails on github actions environment, and needs to be fixed")
def test_ttysnoop(self):
self.run_with_int("ttysnoop.py /dev/console")

Expand Down

0 comments on commit b4043cc

Please sign in to comment.