-
-
Notifications
You must be signed in to change notification settings - Fork 60
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
test: add integration testing for OVAL #274
Conversation
It would be nice to see it merged into the upstream, since I face this issue as well. |
Similar issue like this: vulsio/go-kev#43 |
@awilson-urbane , is it ready to be merged to the upstream? |
@eyablokov Yes, this is ready. I just tested again ( |
@awilson-urbane , @JulianNeuhaus27 is okay with this PR. He checked it out earlier :) |
What are next steps? Who has permission to merge the PR? |
As far as I understand, @MaineK00n or @kotakanbe should do that. |
I have been aware of this PR for some time, but I wonder if it is necessary to add an integration test to a fix that only changes the GORM type. |
If integration tests are also included in the merge, for example, it is recommended that the merge be periodically checked not only for PostgreSQL but also for MySQL, SQLite3, Redis, and so on. |
f66e648
to
9dcaf48
Compare
I have changed the PR to one that guarantees the success of periodic fetches for each DB Type. The following points need to be considered and modified.
|
9dcaf48
to
882f2a7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @MaineK00n, thank you for your guidance, and I apologize for the lapse in communication. I'm revisiting this now and I'll have the requested changes ready for your review ASAP. |
OK @MaineK00n I've set up fetch testing for Postgres, Sqlite, MySQL and Redis. I also removed docker-compose from the process. Here are the results from a test run: https://github.com/awilson-urbane/goval-dictionary/actions/runs/4198013433 |
By the way, @awilson-urbane , is there any Docker image of your branch existing and publicly available? Docker Hub etc. |
Hi @eyablokov, No, I haven't published the image anywhere. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Basically, I don't want to assume that this fetch is going to run on hand. Therefore, we would like to pay attention to the execution time of GitHub Actions.
As far as I can tell from your test, it took about 14 minutes.
I would like to reduce this test time as much as possible.
Do you know of any good ways to do this?
https://github.com/awilson-urbane/goval-dictionary/actions/runs/4198013433
We could reduce the overall CI time by changing the conditions under which it runs (just weekly instead of weekly and on push), but I don't know how to make the fetches themselves run faster. |
c912add
to
1bf570f
Compare
1bf570f
to
5dddc57
Compare
@MaineK00n , is this bug fix in the |
@eyablokov |
If this Pull Request is work in progress, Add a prefix of “[WIP]” in the title.
What did you implement:
make test-integration
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Wrote integration tests. Clone repo and run
make test-integration
, or see GH actions.Checklist:
You don't have to satisfy all of the following.
make fmt
make test
Is this ready for review?: YES
Reference