Commit Graph

144 Commits

Author SHA1 Message Date
gadotroee
08ae2bf6d7
Move "es Lint" to different step and add go lint on logger module (#1064) 2022-05-02 10:01:41 +03:00
Igor Gov
e71a12d399
Introducing eslint (#1048)
* Introducing eslint
2022-04-28 11:46:00 +03:00
gadotroee
171b72831f
Add docker buildx acceptance tests image build (#1039) 2022-04-25 13:06:46 +03:00
Igor Gov
1e167f2757
Trigger by commit message acceptance test on PR to develop (#1017) 2022-04-19 09:12:30 +03:00
gadotroee
149e86d050
Run unit tests when tap/api changes (#1016)
* update test files paths
2022-04-19 08:51:32 +03:00
Igor Gov
7cfe506897
Remove auto issue close if stale too long (#999)
* Remove auto issue close if stale too long
2022-04-13 18:58:02 +03:00
Nimrod Gilboa Markevich
62cbcf8857
Exclude labels with the enhancement label from becoming stale (#997) 2022-04-13 16:17:49 +03:00
Nimrod Gilboa Markevich
2de7107c0a
Use author instead of commiter in slack alerts (#992) 2022-04-12 10:48:50 +03:00
RoyUP9
66ba778384
Fixed golint modified files (#969) 2022-04-04 15:32:22 +03:00
Igor Gov
a97b5b3b38
Add conditional Go lint validation to CI (#967) 2022-04-04 14:35:47 +03:00
Nimrod Gilboa Markevich
aa8dcc5f5c
Format commit message as code to handle multi line messages (#963)
Co-authored-by: gadotroee <55343099+gadotroee@users.noreply.github.com>
2022-04-03 22:10:43 +03:00
Igor Gov
8eeb0e54c9 Changing unit tests workflow timeout to 30 minutes 2022-03-30 11:52:47 +03:00
Andrey Pokhilko
97db24aeba
OAS: rework data feeding + sampleIDs (#917)
* Call OAS feeder

* Don't call old OAS code

* Rework calls

* Work on it

* Put back rules

* Make it compile

* start thinking of test

* Compiles

* Save

* Fixes

* Save

* Fixing

* Trying to fake conn

* add timeout

* Test timeout

* Fix tests

* Only build OAS for HTTP entries

* Remove some dead code

* Adding SampleIDs

* Cosmetics

* lint

* Revert rename

* Sample ID for content

* Cleanuo

* Add more sample IDs

* Checking hypothesis

* Move assignment place a bit

* Cosmetics

* Update test.yml

Co-authored-by: undera <undera@undera-old-desktop.home>
Co-authored-by: Igor Gov <iggvrv@gmail.com>
2022-03-30 11:14:25 +03:00
Igor Gov
e867b7d0f1
Build ui-common part of CI (#914)
* Build ui-common always locally
2022-03-29 14:14:52 +03:00
Nimrod Gilboa Markevich
1f6e539590
Add commit message and committer to acceptance tests slack alert (#946)
* Add commit message and committer username to slack alerts
* Use name instead of username
* Use name and email
2022-03-29 09:15:42 +03:00
Igor Gov
41a7587088
Remove redundant Google auth from test workflow (#911)
* Remove google auth for test workflow
2022-03-23 11:51:42 +02:00
Igor Gov
617fb89ca5
Build custom branch Github action (#890)
* Build custom branch github action #build_and_publish_custom_image

* #build_and_publish_custom_image

* #build_and_publish_custom_image

* #build_and_publish_custom_image

* #build_and_publish_custom_image

* #build_and_publish_custom_image

* .
2022-03-14 13:15:28 +02:00
Igor Gov
1cbd9cb199
Adding dev latest tag for each pre-release docker (#888) 2022-03-13 09:47:49 +02:00
Igor Gov
23c1b66855
Adding dev latest tag for each pre-release docker (#885) 2022-03-10 17:26:56 +02:00
Igor Gov
5e90d67b0e
Run PR validation check only when needed & use docker cache during build (#876)
* Improve PR validation checks
2022-03-06 15:03:43 +02:00
RoyUP9
5af0c5a9e9
Refactor to acceptance tests setup (#875) 2022-03-03 17:22:26 +02:00
Nimrod Gilboa Markevich
c5471c501b
Add acceptance tests for k8s permissions (#834) 2022-03-01 12:22:34 +02:00
M. Mert Yıldıran
69ee8752d0
Create and push the latest tag if the branch is main (stable) (#831)
* Fix the styling issue in the badges

* Create and push the `latest` tag if the branch is `main` (stable)

* Build the for `latest` tag as well
2022-02-19 18:09:18 +03:00
M. Mert Yıldıran
db427d91cc
Add unit tests for HTTP dissector (#767)
* Add unit tests for HTTP dissector

* Ignore some fields on test environment

* Remove Git patches

* Don't have indent in the expected JSONs

* Fix more issues and update expected JSONs

* Refactor the test environment lookup

* Add a Makefile

* Include HTTP tests into the CI

* Fix the linting errors

* Fix another linting error

* Update the expected JSONs

* Sort `PostData.Params` params as well

* Move expected JSONs into `expect/dissect`

* Add `TestAnalyze` method

* Add `TestRepresent` method

* Add `TestRegister`, `TestMacros` and `TestPing` methods

* Test extensions first

* Remove expected JSONs

* Remove `bin` directory and update `Makefile` rules

* Update `.gitignore`

* Fix skipping download functionality in the Makefile

* Run `go mod tidy`

* Fix the race condition in the tests

* Revert "Test extensions first"

This reverts commit b8350cf139.

* Make `TEST_UPDATE` env lookup one-liner

* Update .github/workflows/test.yml

Co-authored-by: gadotroee <55343099+gadotroee@users.noreply.github.com>

* Add a newline

* Replace `ls` with `find`

Co-authored-by: gadotroee <55343099+gadotroee@users.noreply.github.com>
2022-02-09 13:34:52 +03:00
Igor Gov
2c72c27bc9
Removing concurrency group from acceptance test workflow (#771) 2022-02-08 13:09:56 +02:00
Igor Gov
98ca1b2840
Moving to go 1.17 (#766)
* Updating to go1.17
2022-02-08 11:58:08 +02:00
Igor Gov
5b53252033
CI: test share module (#763) 2022-02-07 07:16:28 +02:00
Igor Gov
bfa275d08d
Upload codecov report for develop and main branches (#761) 2022-02-06 21:08:52 +02:00
Igor Gov
0af1bc021d
Fixing warning during release workflow (#760)
* Fixing warning during release workflow

Co-authored-by: Igor Gov <igor.govorov1@gmail.com>
2022-02-06 20:52:15 +02:00
Igor Gov
bd253e1ff7
Fix cli build param ver (#758)
Co-authored-by: Igor Gov <igor.govorov1@gmail.com>
2022-02-06 20:35:41 +02:00
gadotroee
379885845b
Update release.yml (#756) 2022-02-06 15:19:30 +02:00
Igor Gov
ad6fb844aa
Moving from Semver to major.patch versioning (#755)
* Moving from Semver to major.patch versions

* version check should work with new version forma

Co-authored-by: Igor Gov <igor.govorov1@gmail.com>
2022-02-06 15:01:36 +02:00
Igor Gov
0a2e55f7bc
Fix lint errors file not found (#740)
Co-authored-by: Igor Gov <igor.govorov1@gmail.com>
2022-02-01 14:17:56 +02:00
Igor Gov
602225bb36
Adding go lint to more modules (#738) 2022-02-01 12:08:55 +02:00
Igor Gov
0f6c56986f
Technical depth: Adding Go linter to CI (#734) 2022-02-01 08:47:26 +02:00
Igor Gov
82db4acb7d
Build agent docker image during CI (#725) 2022-01-31 14:54:35 +02:00
M. Mert Yıldıran
a9a61edd50
Add ARM64 and cross-compilation support to the agent image (#659)
* modified Dockerfile to work for both amd64 (Intel) and arm64 (M1)

* added changelog

* Update `Dockerfile` to have `ARCH` build argument

* Remove `docs/CHANGES.md`

* Upgrade the Basenine version from `v0.3.0` to `v0.4.6`

* Update `publish.yml` to have `ARCH` build argument

* Switch `BasenineImageRepo` to Docker Hub

* Have separate build arguments for `ARCH` and `GOARCH`

* Upgrade the Basenine version from `v0.4.6` to `v0.4.10`

* Oops forgot to update the 10th duplicated shell script

* Fix the oopsie and reduce duplications

* Fix `Dockerfile`

* Fix the incompatibility issue between Go plugins and gold linker in Alpine inside `Dockerfile`

* Fix `asm: xxhash_amd64.s:120: when dynamic linking, R15 is clobbered by a global variable access` error

* Update `Dockerfile` to have cross-compilation on an AMD64 machine

Also revert changes in the shell scripts

* Delete `debug.Dockerfile`

* Create a custom base (`debian:buster-slim` based) image for the shipped image

* Replace `mertyildiran/debian-pcap` with `up9inc/debian-pcap`

* Upgrade Basenine version to `v0.4.12`

* Use `debian:stable-slim` as the base

* Fix the indentation in the `Dockerfile`

* Update `publish.yml`

* Enable `publish.yml` for `feature/multiarch_build` branch

* Tag correctly and set `ARCH` Docker argument

* Remove the lines that are forgotten to be removed from the shell scripts

* Add `MizuAgentImageRepo` constant and use it as default `AgentImage` value

* Bring back `Set up Cloud SDK` step to `Build the CLI and publish` job

* Build ARM64 CLI for Linux as well

* Revert "Enable `publish.yml` for `feature/multiarch_build` branch"

This reverts commit d30be4c1f0.

* Revert Go 1.17 upgrade

* Remove `build_extensions_debug.sh` as well

* Make the `Dockerfile` to compile the agent statically

* Statically link the protocol extensions

* Fix `Dockerfile`

* Bring back `-s -w` flags

* Verify the signatures of the downloads in `dockcross/linux-arm64-musl`

* Revert modifications in some shell scripts

* Make the `BUILDARCH` and `TARGETARCH` separation in the `Dockerfile`

* Separate cross-compilation builder image into a separate repo named `up9inc/linux-arm64-musl-go-libpcap`

* Fill the shell script and specify the tag for `dockcross/linux-arm64-musl`

* Remove the unnecessary dependencies from `builder-native-base`

* Improve the comments in the `Dockerfile`

* Upgrade Basenine version to `v0.4.13`

* Fix `Dockerfile`

* Revert "Revert "Enable `publish.yml` for `feature/multiarch_build` branch""

This reverts commit 303e466bdc.

* Revert "Revert "Revert "Enable `publish.yml` for `feature/multiarch_build` branch"""

This reverts commit 0fe252bbdb.

* Remove `push-docker-debug` from the `Makefile`

* Rename `publish.yml` to `release.yml`

Co-authored-by: Alex Haiut <alex@up9.com>
2022-01-25 21:24:50 +03:00
gadotroee
bcea6cdc49
Update publish.yml (#679) 2022-01-23 16:18:50 +02:00
gadotroee
1a2697dd0d
Images to docker hub (#676) 2022-01-23 12:41:47 +02:00
lirazyehezkel
18d90cdf36
Support node 16 (#673)
* upgrade node-sass

* upgrade axios

* update dockerfile

Co-authored-by: gadotroee <55343099+gadotroee@users.noreply.github.com>
2022-01-20 18:41:00 +02:00
RoyUP9
5ca3107422
Added build ui to pr validation flow (#655) 2022-01-16 17:43:18 +02:00
Igor Gov
4de795e463
Alert on acceptance tests failure (#537) 2021-12-16 11:04:36 +02:00
gadotroee
31d95c6557
Auto close inactive issues (#441) 2021-11-08 14:49:25 +02:00
Igor Gov
2c29903910
Run snyk on all project with ignore current issues (#415) 2021-10-28 21:59:42 +03:00
Igor Gov
f49e29045c
Adding Snyk to CI (#414) 2021-10-28 16:37:11 +03:00
RoyUP9
4e50e17d81
build m1 and windows (#395) 2021-10-24 15:10:46 +03:00
M. Mert Yıldıran
754f385865
Improve formatting in bug_report.md issue template (#352) 2021-10-15 14:14:51 +03:00
Igor Gov
b9d2e671c7
Move all docs to docs folder and clean project root (#278) 2021-09-15 11:53:23 +03:00
RoyUP9
0840642c98
testing guidelines (#276) 2021-09-14 16:57:39 +03:00
M. Mert Yıldıran
30f07479cb
Fix the JSON style to camelCase and rename CONTRIBUTE.md to CONTRIBUTING.md (#274)
* Fix the JSON style to camelCase and rename `CONTRIBUTE.md` to `CONTRIBUTING.md`

* Move `CONTRIBUTING.md` to `.github/` directory
2021-09-13 10:55:46 +03:00
M. Mert Yıldıran
7f880417e9
Add CODE_OF_CONDUCT.md (#275) 2021-09-13 10:28:28 +03:00
M. Mert Yıldıran
819ccf54cd
Fix the build error in PR validation (#269)
* Fix the build error in PR validation (temp)

* Set Go version to 1.16

* Revert "Fix the build error in PR validation (temp)"

This reverts commit 4cb613251c.
2021-09-11 21:23:15 +03:00
RoyUP9
35e40cd230
added tap acceptance tests, fixed duplicate namespace problem (#244) 2021-08-26 09:56:18 +03:00
Igor Gov
41cb9ee12e
run acceptance tests for the latest code (and cancel all other jobs) (#238) 2021-08-19 11:40:37 +03:00
gadotroee
acdbdedd5d
Add concurrency to mizu publish action (#232) 2021-08-19 10:31:55 +03:00
Igor Gov
2ae0a2400d
PR validation should be triggered just by PR (#225) 2021-08-18 12:51:24 +03:00
RoyUP9
db1f4458c5
Introducing acceptance test (#222) 2021-08-18 10:22:45 +03:00
RoyUP9
1d6ca9d392
codecov yml for tests threshold (#214) 2021-08-15 12:19:00 +03:00
Igor Gov
e4ff4a0745
Run CI checks in parallel (#210) 2021-08-12 18:04:57 +03:00
Igor Gov
e2db5087b8
Adding front end team as a code owners to ui folder (#204) 2021-08-12 09:23:48 +03:00
Igor Gov
241477fb5c
Code owners to UI folder (#203)
* Code owners to UI folder
2021-08-11 17:52:44 +03:00
RoyUP9
c8e5886a96
added telemetry api calls (#201) 2021-08-11 15:57:41 +03:00
Igor Gov
56dc6843e0
Add build cli & agent to CI (#198)
* Add build cli & agent to CI
2021-08-10 18:33:46 +03:00
Igor Gov
ca897dd3c7
Update issue templates (#189) 2021-08-09 18:36:56 +03:00
RoyUP9
4406919565
added test workflow, added test for contains func (#184) 2021-08-09 16:04:00 +03:00
Igor Gov
594f1b973a . 2021-07-21 11:23:49 +03:00
Igor Gov
b195ed9905 Adding version as part of cli/bin 2021-07-21 11:18:37 +03:00
Igor Gov
e883358cd6 . 2021-07-21 11:05:20 +03:00
Igor Gov
eb67f76e2b . 2021-07-21 11:03:30 +03:00
Igor Gov
7fb85df3ac Add version artifact 2021-07-21 10:52:37 +03:00
gadotroee
a0a9d74662
Versioning (#116)
Add versioning check
2021-07-15 16:19:29 +03:00
Alex Haiut
5d205b5082
added apple/m1 binary, updated readme (#77)
Co-authored-by: Alex Haiut <alex@up9.com>
2021-06-21 13:06:08 +03:00
gadotroee
9a1c17cc61
Release action (#73)
* Create main.yml

* Update main.yml

* Update main.yml

* Update main.yml

* Update main.yml

* trying new approach

* no message

* yaml error

* no message

* no message

* no message

* missing )

* no message

* no message

* remove main.yml and fix branches

* Create tag-temp.yaml

* Update tag-temp.yaml

* Update tag-temp.yaml

* no message

* no message

* no message

* no message

* no message

* no message

* no message

* #minor

* no message

* no message

* added checksum calc to CLI makefile

* fixed build error - created bin directory upfront

* using markdown for release text

* use separate checksum files

* fixed release readme

* #minor

* readme updated

Co-authored-by: Alex Haiut <alex@up9.com>
2021-06-21 11:19:04 +03:00
gadotroee
a960022601
Add cli publish and rename publish docker flow name (#40)
* new makefiles, build automation
* Update main.yml
* add git branch to the bucket path
* Update main.yml
* no message
* no message
* fix yaml
* fix naming
* run only on main and develop

Co-authored-by: Alex Haiut <alex@up9.com>
2021-05-10 15:44:37 +03:00
gadotroee
774fbac53c
Update main.yml 2021-04-29 14:40:46 +03:00
gadotroee
37a3d037d4
Update main.yml 2021-04-29 14:36:32 +03:00
gadotroee
d712acb3f2
Update main.yml 2021-04-29 13:19:39 +03:00
gadotroee
231a4f2f8f
Update main.yml 2021-04-29 13:18:18 +03:00
gadotroee
0dc41e125e
Update main.yml 2021-04-29 13:11:57 +03:00
gadotroee
47de114866
Update main.yml 2021-04-29 13:10:04 +03:00
gadotroee
5b31a26246
Update main.yml 2021-04-29 13:08:44 +03:00
gadotroee
2771ea7f78
Update main.yml 2021-04-29 13:04:52 +03:00
gadotroee
772e628cdf
Update main.yml 2021-04-29 13:03:51 +03:00
gadotroee
5d0322e170
Update main.yml 2021-04-29 13:01:47 +03:00
gadotroee
82bb557d90
Update main.yml 2021-04-29 13:01:07 +03:00
gadotroee
535ff1c7c7
Update main.yml 2021-04-29 12:59:41 +03:00
gadotroee
dced882f75
Update main.yml 2021-04-29 12:58:53 +03:00
gadotroee
ed22399824
Update main.yml 2021-04-29 12:49:56 +03:00
gadotroee
6017ff0a55
Update main.yml 2021-04-29 12:47:23 +03:00
gadotroee
a21a3868c6
Update main.yml 2021-04-29 12:34:18 +03:00
gadotroee
feda1220b1
Update main.yml 2021-04-29 12:32:10 +03:00
gadotroee
87aae2f6f7
Update main.yml 2021-04-29 12:27:58 +03:00
gadotroee
efcc071a3e
Update main.yml 2021-04-29 12:20:13 +03:00
gadotroee
dd78e5c962
Create main.yml 2021-04-29 12:18:00 +03:00