@cryptotaxi247 / netdata-1 / commits / 5f2f72108

Finish pushing handling of kickstart checksums to netdata/learn. (#12176)

* Finish pushing handling of kickstart checksums to netdata/learn. * Replace the checksum in the file here with a placeholder (it will get replaced by the documentation processing code in the learn repo anyway, this just makes it obvious that that will be happening). * Remove the CI jobs that validate the checksum against what it ‘should be’. * Add a new workflow to explicitly trigger the documentation update workflow in netdata/learn when documentation changes here _or_ the kickstart script gets updated. Additionall automation will be added internally to ensure the checksum update automation stays working. * Fix file matches.

Austin S. Hemmelgarn committed Feb 18, 2022 at 11:40 UTC 5f2f721080b28fc605902d0fe7730ebf568aac3c
4 files changed +39 -18
.github/workflows/checks.yml
-13
@@ -11,19 +11,6 @@ concurrency:
11 group: checks-${{ github.ref }}
12 cancel-in-progress: true
13 jobs:
14 - checksum-checks:
15 - name: Checksums
16 - runs-on: ubuntu-latest
17 - steps:
18 - - name: Git clone repository
19 - uses: actions/checkout@v2
20 - with:
21 - submodules: recursive
22 - - name: Run checksum checks on kickstart files
23 - env:
24 - LOCAL_ONLY: "true"
25 - run: |
26 - ./tests/installer/checksums.sh
14 libressl-checks:
15 name: LibreSSL
16 runs-on: ubuntu-latest
.github/workflows/trigger-learn-update.yml new
+37
@@ -0,0 +1,37 @@
1 +---
2 +name: Trigger Netdata Learn documentation update
3 +on:
4 + push:
5 + branches:
6 + - master
7 + paths:
8 + - "**.mdx?"
9 + - "packaging/installer/kickstart.sh"
10 +concurrency:
11 + group: learn-trigger-${{ github.ref }}
12 + cancel-in-progress: true
13 +jobs:
14 + trigger-ingest:
15 + name: Trigger Netdata Learn ingest workflow.
16 + if: github.repository == 'netdata/netdata'
17 + runs-on: ubuntu-latest
18 + steps:
19 + - name: Trigger Netdata Learn ingest workflow.
20 + uses: benc-uk/workflow-dispatch@v1
21 + with:
22 + token: ${{ secrets.NETDATABOT_GITHUB_TOKEN }}
23 + repo: netdata/learn
24 + workflow: Ingest
25 + ref: refs/heads/master
26 + - name: Failure Notification
27 + uses: rtCamp/action-slack-notify@v2
28 + env:
29 + SLACK_COLOR: 'danger'
30 + SLACK_FOOTER: ''
31 + SLACK_ICON_EMOJI: ':github-actions:'
32 + SLACK_TITLE: 'Triggering Netdata Learn documentation update failed:'
33 + SLACK_USERNAME: 'GitHub Actions'
34 + SLACK_MESSAGE: >-
35 + ${{ github.repository }}: Failed to trigger Netdata Learn documentation update workflow.
36 + SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
37 + if: failure()
.travis.yml
+1 -4
@@ -125,11 +125,8 @@ jobs:
125
126 # This is the nightly pre-execution step (Jobs, preparatory steps for nightly, etc)
127 - stage: Nightly operations
128 - name: Kickstart files integrity testing (extended)
129 - script: ./tests/installer/checksums.sh
130 -
128 # This is generating the changelog for nightly release and publish it
132 - - name: Generate nightly changelog
129 + name: Generate nightly changelog
130 script:
131 - ".travis/nightlies.sh"
132 - ".travis/check_changelog_last_modification.sh"
packaging/installer/methods/kickstart.md
+1 -1
@@ -140,7 +140,7 @@ To use `md5sum` to verify the integrity of the `kickstart.sh` script you will do
140 run the following:
141
142 ```bash
143 -[ "5d558c5a86050ec267f126fbe40df0ec" = "$(curl -Ss https://my-netdata.io/kickstart.sh | md5sum | cut -d ' ' -f 1)" ] && echo "OK, VALID" || echo "FAILED, INVALID"
143 +[ "<checksum-will-be-added-in-documentation-processing>" = "$(curl -Ss https://my-netdata.io/kickstart.sh | md5sum | cut -d ' ' -f 1)" ] && echo "OK, VALID" || echo "FAILED, INVALID"
144 ```
145
146 If the script is valid, this command will return `OK, VALID`.