Small CI/CD/nDPIsrvd.py improvements.

* Updated examples/js-rt-analyzer and examples/js-rt-analyzer-frontend

Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
This commit is contained in:
Toni Uhlig
2023-01-17 20:56:33 +01:00
parent a3d20c17d1
commit 5e313f43f9
6 changed files with 8 additions and 5 deletions

View File

@@ -53,7 +53,8 @@ jobs:
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with:
fetch-depth: 0 submodules: false
fetch-depth: 1
- name: Build - name: Build
uses: openwrt/gh-action-sdk@master uses: openwrt/gh-action-sdk@master

View File

@@ -43,7 +43,8 @@ jobs:
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis submodules: false
fetch-depth: 1
- name: Install Ubuntu Prerequisites - name: Install Ubuntu Prerequisites
if: startsWith(matrix.os, 'ubuntu') if: startsWith(matrix.os, 'ubuntu')
run: | run: |

2
.gitmodules vendored
View File

@@ -8,4 +8,4 @@
url = https://gitlab.com/verzulli/ndpid-rt-analyzer.git url = https://gitlab.com/verzulli/ndpid-rt-analyzer.git
[submodule "examples/js-rt-analyzer-frontend"] [submodule "examples/js-rt-analyzer-frontend"]
path = examples/js-rt-analyzer-frontend path = examples/js-rt-analyzer-frontend
url = git@gitlab.com:verzulli/ndpid-rt-analyzer-frontend.git url = https://gitlab.com/verzulli/ndpid-rt-analyzer-frontend.git

View File

@@ -421,6 +421,7 @@ class nDPIsrvdSocket:
try: try:
json_dict = json.loads(received_line[0].decode('ascii', errors='replace'), strict=True) json_dict = json.loads(received_line[0].decode('ascii', errors='replace'), strict=True)
except json.decoder.JSONDecodeError as e: except json.decoder.JSONDecodeError as e:
json_dict = dict()
self.failed_lines += [received_line] self.failed_lines += [received_line]
self.lines = self.lines[1:] self.lines = self.lines[1:]
raise(e) raise(e)