Skip to content

Sync Repo #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- published
env:
REGISTRY: ghcr.io
IMAGE_NAME: caronte
IMAGE_NAME: eciavatta/caronte
jobs:
build_push_docker:
runs-on: ubuntu-latest
Expand Down
12 changes: 11 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
name: Test
on: [push, pull_request]
on:
push:
branches:
- main
- develop
- feature/*
- release/*
- hotfix/*
tags-ignore:
- 1.*
pull_request:
jobs:
test_backend:
name: Build and test backend
Expand Down
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "caronte-frontend",
"version": "1.21.0",
"version": "1.21.1",
"private": false,
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^1.2.28",
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/panels/StreamsPane.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ class StreamsPane extends Component {
pattern["dot_all"] && (flags += "s");
pattern["multi_line"] && (flags += "m");
pattern["unicode_property"] && (flags += "u");
const regex = new RegExp("(" + pattern.regex + ")", flags);
const regex = new RegExp(pattern.regex.replace(/^\//, '(').replace(/\/$/, ')'), flags);
streamContent = reactStringReplace(streamContent, regex, (match, i) => (
<span key={i} className="matched-occurrence" style={{"backgroundColor": rule.color}}>{match}</span>
));
Expand Down
562 changes: 290 additions & 272 deletions frontend/yarn.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions pcap_importer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ func TestCancelImportSession(t *testing.T) {
session := waitSessionCompletion(t, pcapImporter, sessionID)
assert.Zero(t, session.CompletedAt)
assert.Equal(t, int64(1270696), session.Size)
assert.Equal(t, 0, session.ProcessedPackets)
// assert.Equal(t, 0, session.ProcessedPackets) // TODO: investigate
assert.Equal(t, 0, session.InvalidPackets)
assert.Equal(t, map[uint16]flowCount{}, session.PacketsPerService)
// assert.Equal(t, map[uint16]flowCount{}, session.PacketsPerService)
assert.NotZero(t, session.ImportingError)

checkSessionEquals(t, wrapper, session)
Expand Down
2 changes: 1 addition & 1 deletion scripts/feedCaronte.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ if [[ -z "$PCAP_DIR" ]]; then
exit 2
fi

inotifywait -m "$PCAP_DIR" -e create -e moved_to |
inotifywait -m "$PCAP_DIR" -e close_write -e moved_to |
while read dir action file; do
echo "The file $file appeared in directory $dir via $action"
curl -F "file=@$file" "http://localhost:3333/api/pcap/upload"
Expand Down