Skip to content
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

Create Go Related Workflows in Github Actions #1

Closed
wants to merge 29 commits into from

Conversation

daemon1024
Copy link
Owner

No description provided.

@daemon1024 daemon1024 force-pushed the github-actions branch 10 times, most recently from 55328bb to ffd6c7d Compare June 30, 2021 18:35
@daemon1024
Copy link
Owner Author

Noting we need to commit go.sum file for the lint to pass.

Reasoning https://github.com/golang/go/wiki/Modules#releasing-modules-all-versions

@daemon1024 daemon1024 force-pushed the github-actions branch 7 times, most recently from 32ff5b9 to 628a334 Compare July 2, 2021 17:54
@daemon1024 daemon1024 force-pushed the github-actions branch 6 times, most recently from 6115b75 to 8569c66 Compare July 8, 2021 16:51
@daemon1024 daemon1024 force-pushed the github-actions branch 5 times, most recently from 4aca549 to 2ccd153 Compare July 9, 2021 12:51
@daemon1024 daemon1024 closed this Sep 17, 2021
@daemon1024 daemon1024 deleted the github-actions branch December 20, 2021 13:44
daemon1024 pushed a commit that referenced this pull request Jun 20, 2022
daemon1024 pushed a commit that referenced this pull request Jul 3, 2023
…ory and fix to pass the tests

The current implementation does not have a job in CI to run tests for
golang programs under the KubeArmor/KubeArmor directory.

Therefore, this commit will add the job to ci-test-go.yml to run tests for
golang programs under the KubeArmor/KubeArmor directory.

On the other hand, in the current implementation, the following error
occurs when go test is executed in the directory KubeArmor/KubeArmor/core.

  > go test
  # github.com/kubearmor/KubeArmor/KubeArmor/core
  ./karmorprobedata.go:61:3: (*github.com/kubearmor/KubeArmor/KubeArmor/feeder.Feeder).Errf format %s reads arg #1, but call has 0 args

Thus, if test_kubearmor.sh or go test ./... on the kubearmor/kubeArmor are
run, the test will fail.

The test fails because dm.Logger.Errf(), which is called in the
SetKarmorData function in the file core/karmorprobedata.go, is missing an
argument for the format specifier.

Therefore, this commit will fix it to add a variable for the format
specifiers so that the test will succeed properly.

Signed-off-by: Hayato Kiwata <[email protected]>
Aryan-sharma11 pushed a commit that referenced this pull request Aug 2, 2023
…ory and fix to pass the tests

The current implementation does not have a job in CI to run tests for
golang programs under the KubeArmor/KubeArmor directory.

Therefore, this commit will add the job to ci-test-go.yml to run tests for
golang programs under the KubeArmor/KubeArmor directory.

On the other hand, in the current implementation, the following error
occurs when go test is executed in the directory KubeArmor/KubeArmor/core.

  > go test
  # github.com/kubearmor/KubeArmor/KubeArmor/core
  ./karmorprobedata.go:61:3: (*github.com/kubearmor/KubeArmor/KubeArmor/feeder.Feeder).Errf format %s reads arg #1, but call has 0 args

Thus, if test_kubearmor.sh or go test ./... on the kubearmor/kubeArmor are
run, the test will fail.

The test fails because dm.Logger.Errf(), which is called in the
SetKarmorData function in the file core/karmorprobedata.go, is missing an
argument for the format specifier.

Therefore, this commit will fix it to add a variable for the format
specifiers so that the test will succeed properly.

Signed-off-by: Hayato Kiwata <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant