tsaikd / gogstash

Logstash like, written in golang
MIT License
644 stars 106 forks source link

Add GitHub action for CI #176

Closed tsaikd closed 2 years ago

tsaikd commented 2 years ago

@helgeolav I'm trying to fix the CI pipeline before #175, but it's blocked by the failure of output/file testing. Do you have some time to take a look?

https://github.com/tsaikd/gogstash/runs/3958503547?check_suite_focus=true

helgeolav commented 2 years ago

I can have a look tomorrow. I am not sure what to fix here - the error in the link seems to be many things; one error is that Kafka is not available. Most errors seems to be related to the configuration of the test.

Do you want me to look through the code behind each error is should I look at the build / test system and work with that to make the test work?

tsaikd commented 2 years ago

https://github.com/tsaikd/gogstash/runs/3958503547?check_suite_focus=true#step:5:690

=== RUN   TestDefaultOutputConfigCreateIfNeededDisabled
Error: /21 00:55:40 outputfile.go:278 [error] __testpath__12: file does not exist
    outputfile.go:320: Unexpected call to *mock_filesystem.MockFileSystem.Stat([__testpath__12]) at /home/runner/work/gogstash/gogstash/output/file/outputfile.go:320 because: 
        expected call at /home/runner/work/gogstash/gogstash/output/file/outputfile_test.go:387 has already been called the max number of times
--- FAIL: TestDefaultOutputConfigCreateIfNeededDisabled (0.00s)