Skip to content

Commit

Permalink
Fix driver notifications and remove RHEL 8 builder (#1703)
Browse files Browse the repository at this point in the history
Adds more aggressive blocks for 2.3.0 and unsupported fedora versions
  • Loading branch information
Stringy authored Jun 7, 2024
1 parent b92505c commit 9569e01
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 29 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/main-drivers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,24 @@ jobs:
- build-drivers
- upload-drivers
secrets: inherit

notify:
runs-on: ubuntu-latest
if: always() && contains(join(needs.*.result, ','), 'failure') && github.event_name == 'push'
needs:
- init
- build-drivers
- upload-drivers
- build-support-packages
steps:
- name: Slack notification
uses: rtCamp/action-slack-notify@v2
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_COLLECTOR_ONCALL_WEBHOOK }}
SLACK_CHANNEL: team-acs-collector-oncall
SLACK_COLOR: failure
SLACK_LINK_NAMES: true
SLACK_TITLE: Driver workflow failed
MSG_MINIMAL: actions url,commit
SLACK_MESSAGE: |
@acs-collector-oncall
3 changes: 3 additions & 0 deletions kernel-modules/BLOCKLIST
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# ROX-19721: RHEL8.9 breaks modules
~4.18.0-(?:50[89]|5[1-9][0-9]|[6-9][0-9]{2}).*\.el8\.x86_64 * mod
~3\.10\.0-1062(?:\.\d+)*\.el7.x86_64 * bpf
~(?!3\.10\.0).+ 2.3.0 *
*.el6.*
# TODO(ROX-6615) - Kernel crawler deletes debian kernels
4.19.0-10-cloud-amd64
Expand Down Expand Up @@ -93,3 +94,5 @@
~.*\.el8_9\..* * mod
~.*\.el9_4\..* ~2\.[3-9]\..* *
~.*\.el[89].* 2.3.0 mod
# Block unsupported fedora kernels
~.*\.fc3[4-8].* 2.9.1 *
10 changes: 5 additions & 5 deletions kernel-modules/build/kernel-splitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,23 +110,23 @@ def main(task_file):
oracle_kernels = r"(?:.*el7uek.*)"
fc39_kernels = r"(?:(?:6\.[1-9]\..*)|(?:6\.[1-9][0-9]\..*)|(:?[7-9]\.\d+\..*))"
fc36_kernels = r"(?:(?:5\.[1-9]\d*\..*)|(?:6\.[0-5]\..*))"
rhel8_kernels = r"(?:(?:4|5)\.\d+\..*)"
rhel9_kernels = r"(?:(?:4|5)\.\d+\..*)"
rhel7_kernels = r"(?:3\.\d+\..*)"
rhel7_ebpf_kernels = r"(?:(?:3|4|5)\.\d+\..*)"

oracle = Builder("oracle", rf"^{oracle_kernels}", {})
fc39 = Builder("fc39", rf"^{fc39_kernels}", {})
fc36 = Builder("fc36", rf"^{fc36_kernels}", {})
rhel7_ebpf = EBPFBuilder("rhel7", rf"^{rhel7_ebpf_kernels}", {})
rhel8 = Builder("rhel8", rf"^{rhel8_kernels}", {})
rhel9 = Builder("rhel9", rf"^{rhel9_kernels}", {})
rhel7 = Builder("rhel7", rf"^{rhel7_kernels}", {})
unknown = Builder("unknown", r".*", {})

builders = [
oracle,
fc39,
fc36,
rhel8,
rhel9,
rhel7_ebpf,
rhel7
]
Expand Down Expand Up @@ -155,7 +155,7 @@ def main(task_file):
driver_builders = int(os.environ.get('DRIVER_BUILDERS', 1))

oracle_builders = oracle.split(driver_builders)
rhel8_builders = rhel8.split(driver_builders)
rhel9_builders = rhel9.split(driver_builders)
rhel7_ebpf_builders = rhel7_ebpf.split(driver_builders)
rhel7_builders = rhel7.split(driver_builders)
fc36_builders = fc36.split(driver_builders)
Expand All @@ -165,7 +165,7 @@ def main(task_file):
*oracle_builders,
*fc39_builders,
*fc36_builders,
*rhel8_builders,
*rhel9_builders,
*rhel7_ebpf_builders,
*rhel7_builders,
unknown
Expand Down
24 changes: 0 additions & 24 deletions kernel-modules/build/rhel8.Dockerfile

This file was deleted.

0 comments on commit 9569e01

Please sign in to comment.