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

test: add plugin e2e tests #391

Merged
merged 21 commits into from
Feb 6, 2024
Merged

test: add plugin e2e tests #391

merged 21 commits into from
Feb 6, 2024

Conversation

anubhav06
Copy link
Contributor

Add e2e tests for plugin

Closes #387

Signed-off-by: Anubhav Gupta <mail.anubhav06@gmail.com>
@anubhav06 anubhav06 changed the title add plugin e2e tests test: add plugin e2e tests Oct 25, 2023
@codecov
Copy link

codecov bot commented Oct 26, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (2602d59) 32.51% compared to head (fc88a87) 34.18%.
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #391      +/-   ##
==========================================
+ Coverage   32.51%   34.18%   +1.67%     
==========================================
  Files          17       17              
  Lines        1621     1293     -328     
==========================================
- Hits          527      442      -85     
+ Misses       1062      819     -243     
  Partials       32       32              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Anubhav Gupta <mail.anubhav06@gmail.com>
@anubhav06
Copy link
Contributor Author

anubhav06 commented Oct 27, 2023

ready for review, is this fine?
is anything else needed to be added/modified?

@sozercan
Copy link
Member

@anubhav06 sorry didn't get a chance to look at this yet. I will review after kubecon.

Copy link
Member

@sozercan sozercan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@anubhav06 sorry about the delay! added a few minor comments

test/e2e/plugin_test.go Show resolved Hide resolved
test/e2e/plugin_test.go Show resolved Hide resolved
test/e2e/testdata/fake_report.json Outdated Show resolved Hide resolved
test/e2e/testdata/invalid_report.json Outdated Show resolved Hide resolved
@@ -128,3 +128,37 @@ jobs:
set -eu -o pipefail
. .github/workflows/scripts/buildkitenvs/${{ matrix.buildkit_mode}}
go test -v ./integration --addr="${COPA_BUILDKIT_ADDR}" --copa="$(pwd)/copa" -timeout 0

test-plugin:
needs: test-patch
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need to wait for test-patch? would needs: build work?

Copy link
Contributor Author

@anubhav06 anubhav06 Jan 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, added
(I had thought the flow should be unit tests -> integration tests -> e2e tests, so we run e2e tests only if integration tests passes, not before)

@anubhav06
Copy link
Contributor Author

I've my university exams going on so I'll fix this after 3-4 days. Thanks :)

@sozercan
Copy link
Member

sozercan commented Jan 4, 2024

good luck on the exams!

Signed-off-by: Anubhav Gupta <mail.anubhav06@gmail.com>
Signed-off-by: Anubhav Gupta <mail.anubhav06@gmail.com>
Signed-off-by: Anubhav Gupta <mail.anubhav06@gmail.com>
Signed-off-by: Anubhav Gupta <mail.anubhav06@gmail.com>
Signed-off-by: Anubhav Gupta <mail.anubhav06@gmail.com>
Signed-off-by: Anubhav Gupta <mail.anubhav06@gmail.com>
Signed-off-by: Anubhav Gupta <mail.anubhav06@gmail.com>
Signed-off-by: Anubhav Gupta <mail.anubhav06@gmail.com>
Signed-off-by: Anubhav Gupta <mail.anubhav06@gmail.com>
Signed-off-by: Anubhav Gupta <mail.anubhav06@gmail.com>
Signed-off-by: Anubhav Gupta <mail.anubhav06@gmail.com>
Signed-off-by: Anubhav Gupta <mail.anubhav06@gmail.com>
test/e2e/plugin_test.go Outdated Show resolved Hide resolved
Copy link
Member

@sozercan sozercan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small nit. otherwise, great work! LGTM

Signed-off-by: Anubhav Gupta <mail.anubhav06@gmail.com>
Copy link
Member

@sozercan sozercan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! LGTM

@sozercan sozercan merged commit aa823e1 into project-copacetic:main Feb 6, 2024
18 checks passed
@anubhav06 anubhav06 deleted the e2e branch February 7, 2024 06:35
salaxander pushed a commit to salaxander/copacetic that referenced this pull request Feb 7, 2024
Signed-off-by: Anubhav Gupta <mail.anubhav06@gmail.com>
Co-authored-by: Sertaç Özercan <852750+sozercan@users.noreply.github.com>
Signed-off-by: Xander Grzywinski <xandergrzyw@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[REQ] add tests for plugins
2 participants