Skip to content

Commit 7d10429

Browse files
merge dev
2 parents 978b5ca + 5fa1cea commit 7d10429

File tree

90 files changed

+1495
-1297
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+1495
-1297
lines changed

.babelrc

+17-18
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
11
{
2-
"presets": [
3-
"@babel/preset-env"
4-
],
5-
"plugins": [
6-
"@babel/plugin-proposal-class-properties",
7-
"@babel/plugin-transform-async-to-generator",
8-
"@babel/plugin-proposal-object-rest-spread"
9-
],
10-
11-
"ignore": [
12-
"./node_modules",
13-
"./assets",
14-
"./view",
15-
"./tests",
16-
"./logs",
17-
"./dist",
18-
"./build"
19-
]
2+
"presets": [
3+
"@babel/preset-env"
4+
],
5+
"plugins": [
6+
"@babel/plugin-proposal-class-properties",
7+
"@babel/plugin-transform-async-to-generator",
8+
"@babel/plugin-proposal-object-rest-spread"
9+
],
10+
"ignore": [
11+
"./node_modules",
12+
"./assets",
13+
"./view",
14+
"./tests",
15+
"./logs",
16+
"./dist",
17+
"./build"
18+
]
2019
}

.eslintrc.json

+17-17
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
{
2-
"parser": "babel-eslint",
3-
"ecmaFeatures": {
4-
"modules": true,
5-
"spread" : true,
6-
"restParams" : true
7-
},
8-
"env" : {
9-
"browser" : false,
10-
"node" : true,
11-
"es6" : true,
12-
"mocha": true
13-
},
14-
"parserOptions": {
15-
"ecmaVersion": 6,
16-
"sourceType": "module",
2+
"parser": "babel-eslint",
173
"ecmaFeatures": {
18-
"jsx": true
4+
"modules": true,
5+
"spread": true,
6+
"restParams": true
7+
},
8+
"env": {
9+
"browser": false,
10+
"node": true,
11+
"es6": true,
12+
"mocha": true
13+
},
14+
"parserOptions": {
15+
"ecmaVersion": 6,
16+
"sourceType": "module",
17+
"ecmaFeatures": {
18+
"jsx": true
19+
}
1920
}
20-
}
2121
}

.github/ISSUE_TEMPLATE/bug_report.md

-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,5 @@ A clear and concise description of what you expected to happen.
1818

1919
**Are you using the binary or the source code?**
2020

21-
2221
**Your information**
2322
Provide your name and your AS/company (see Bert Hubert's post https://berthub.eu/articles/posts/anonymous-help/).

.github/ISSUE_TEMPLATE/feature_request.md

-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,5 @@ A clear and concise description.
1616
**Provide an example**
1717
Provide an example in terms of prefixes and BGP messages. Possibly provide a snippet of config.yml and prefixes.yml.
1818

19-
2019
**Your information**
2120
Provide your name and your AS/company (see Bert Hubert's post https://berthub.eu/articles/posts/anonymous-help/).

.github/ISSUE_TEMPLATE/support_request.md

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ assignees: ''
1414
**Did you read the documentation? Then ask the community for help.**
1515

1616
### In your request, provide an answer to all the following questions:
17+
1718
* A clear and concise description of what the issue is.
1819
* Point to the part of the documentation you tried to use to address the issue.
1920
* Provide the steps to reproduce the issue

.github/workflows/main.yml

+78-94
Original file line numberDiff line numberDiff line change
@@ -12,103 +12,87 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414

15-
- name: Set up Javascript/Node
16-
uses: actions/setup-node@v4
17-
with:
18-
node-version: 18.19.0
19-
20-
- name: Check out code
21-
uses: actions/checkout@v4
22-
with:
23-
fetch-depth: '0'
24-
25-
- name: Cache multiple paths
26-
uses: actions/cache@v4
27-
with:
28-
path: ~/.npm
29-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
30-
restore-keys: |
31-
${{ runner.os }}-node-
32-
33-
- name: Build
34-
run: |
35-
npm install
36-
npm run compile
37-
38-
- name: Upload Artifact
39-
uses: actions/upload-artifact@v3
40-
if: ${{ always() }}
41-
with:
42-
name: logs
43-
path: ~/.npm/_logs/*
44-
retention-days: 14
15+
- name: Set up Javascript/Node
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: 18.19.0
19+
20+
- name: Check out code
21+
uses: actions/checkout@v4
22+
with:
23+
fetch-depth: '0'
24+
25+
- name: Cache multiple paths
26+
uses: actions/cache@v4
27+
with:
28+
path: ~/.npm
29+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
30+
restore-keys: |
31+
${{ runner.os }}-node-
32+
33+
- name: Build
34+
run: |
35+
npm install
36+
npm run compile
4537
4638
test:
4739
name: Test
4840
runs-on: ubuntu-latest
4941
steps:
5042

51-
- name: Set up nodejs
52-
uses: actions/setup-node@v4
53-
with:
54-
node-version: 18.19.0
55-
56-
- name: Check out code
57-
uses: actions/checkout@v4
58-
with:
59-
fetch-depth: '0'
60-
61-
- name: Cache multiple paths
62-
uses: actions/cache@v4
63-
with:
64-
path: ~/.npm
65-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
66-
restore-keys: |
67-
${{ runner.os }}-node-
68-
69-
- name: Install
70-
run: |
71-
npm install
72-
73-
- name: Tests
74-
run: |
75-
npm run test-core
76-
npm run test-generate
77-
npm run test-reports
78-
npm run test-neighbor
79-
npm run test-dump
80-
81-
- name: Tests RPKI
82-
run: |
83-
npm run test-rpki
84-
85-
- name: Tests Proxy
86-
run: |
87-
npm install -g anyproxy
88-
nohup anyproxy --port 8001 &
89-
ANYPROXY_PID=$!
90-
npm run test-proxy
91-
kill $ANYPROXY_PID
92-
93-
- name: Tests NPM
94-
run: |
95-
npm run test-npm
96-
97-
- name: Tests Kafka
98-
run: |
99-
sudo apt-get -y install tar
100-
sudo apt-get -y install wget
101-
wget -O kafka.tgz https://archive.apache.org/dist/kafka/3.5.0/kafka_2.12-3.5.0.tgz
102-
mkdir kafka && tar -xzf kafka.tgz -C kafka --strip-components=1
103-
nohup ./kafka/bin/zookeeper-server-start.sh ./kafka/config/zookeeper.properties &
104-
nohup ./kafka/bin/kafka-server-start.sh ./kafka/config/server.properties &
105-
nohup ./kafka/bin/kafka-topics.sh --create --topic bgpalerter --bootstrap-server 0.0.0.0:9092 --replication-factor 1 --partitions 1 &
106-
sleep 30 && npm run test-kafka
107-
108-
- name: Upload Artifact
109-
uses: actions/upload-artifact@v3
110-
if: ${{ always() }}
111-
with:
112-
name: logs
113-
path: ~/.npm/_logs/*
114-
retention-days: 14
43+
- name: Set up nodejs
44+
uses: actions/setup-node@v4
45+
with:
46+
node-version: 18.19.0
47+
48+
- name: Check out code
49+
uses: actions/checkout@v4
50+
with:
51+
fetch-depth: '0'
52+
53+
- name: Cache multiple paths
54+
uses: actions/cache@v4
55+
with:
56+
path: ~/.npm
57+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
58+
restore-keys: |
59+
${{ runner.os }}-node-
60+
61+
- name: Install
62+
run: |
63+
npm install
64+
65+
- name: Tests
66+
run: |
67+
npm run test-core
68+
npm run test-generate
69+
npm run test-reports
70+
npm run test-neighbor
71+
npm run test-dump
72+
73+
- name: Tests RPKI
74+
run: |
75+
npm run test-rpki
76+
77+
- name: Tests Proxy
78+
run: |
79+
npm install -g anyproxy
80+
nohup anyproxy --port 8001 &
81+
ANYPROXY_PID=$!
82+
npm run test-proxy
83+
kill $ANYPROXY_PID
84+
85+
- name: Tests NPM
86+
run: |
87+
npm run test-npm
88+
89+
- name: Tests Kafka
90+
run: |
91+
sudo apt-get -y install tar
92+
sudo apt-get -y install wget
93+
wget -O kafka.tgz https://archive.apache.org/dist/kafka/3.5.0/kafka_2.12-3.5.0.tgz
94+
mkdir kafka && tar -xzf kafka.tgz -C kafka --strip-components=1
95+
nohup ./kafka/bin/zookeeper-server-start.sh ./kafka/config/zookeeper.properties &
96+
nohup ./kafka/bin/kafka-server-start.sh ./kafka/config/server.properties &
97+
nohup ./kafka/bin/kafka-topics.sh --create --topic bgpalerter --bootstrap-server 0.0.0.0:9092 --replication-factor 1 --partitions 1 &
98+
sleep 30 && npm run test-kafka

.hound.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
jshint:
22
enabled: false
3-
3+
44
eslint:
55
enabled: true
66
config_file: .eslintrc.json

0 commit comments

Comments
 (0)