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

Add make integration-actions command #1948

Merged
merged 6 commits into from Nov 5, 2021

Conversation

jLopezbarb
Copy link
Contributor

Signed-off-by: Javier López Barba javier@okteto.com

Adds a make command to run only actions integration tests

Proposed changes

  • Created a new build tag for initialising user
  • Add those tags when running tests

Signed-off-by: Javier López Barba <javier@okteto.com>
@jLopezbarb jLopezbarb requested a review from a team November 5, 2021 14:56
@codecov
Copy link

codecov bot commented Nov 5, 2021

Codecov Report

Merging #1948 (5121c2e) into master (cee2db3) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1948   +/-   ##
=======================================
  Coverage   33.42%   33.42%           
=======================================
  Files         122      122           
  Lines       13841    13841           
=======================================
  Hits         4626     4626           
  Misses       8715     8715           
  Partials      500      500           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cee2db3...5121c2e. Read the comment docs.

@@ -40,7 +40,11 @@ test:

.PHONY: integration
integration:
go test github.com/okteto/okteto/integration -tags=integration --count=1 -v -timeout 45m
go test github.com/okteto/okteto/integration -tags="common integration actions" --count=1 -v -timeout 45m
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it should be fine with 15m timeout

@@ -1,5 +1,5 @@
//go:build integration
// +build integration
//go:build actions
Copy link
Contributor

Choose a reason for hiding this comment

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

could you add an envvar to skip the execution of the context action?
that why we can automate the execution of that tests only if the CLI version under test support the context command

Signed-off-by: Javier López Barba <javier@okteto.com>
Signed-off-by: Javier López Barba <javier@okteto.com>
@@ -205,6 +205,10 @@ func TestContextAction(t *testing.T) {
t.Skip("this test is not required for windows e2e tests")
return
}
if os.Getenv("OKTETO_SKIP_CTX_TEST") != "" {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we call it OKTETO_SKIP_CONTEXT_TEST to make it more verbouse?

Signed-off-by: Javier López Barba <javier@okteto.com>
Signed-off-by: Javier López Barba <javier@okteto.com>
Signed-off-by: Javier López Barba <javier@okteto.com>
@pchico83 pchico83 merged commit 8d66bf3 into master Nov 5, 2021
@pchico83 pchico83 deleted the jlopezbarb/add-make-integration-actions-e2e branch November 5, 2021 19:10
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.

None yet

2 participants