-
Notifications
You must be signed in to change notification settings - Fork 456
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
[GCP] add compute datastream tests #2849
Conversation
💔 Tests Failed
Expand to view the summary
Build stats
Test stats 🧪
Test errorsExpand to view the tests failures
|
CI failed with a permission error on the GCP Service Account:
@v1v I'm using the same SA we setup in this PR elastic/elastic-package#701 (see https://github.com/elastic/elastic-package/pull/701/files#diff-ef8b2f5e4d21d81c0eba4754dea3a3dfc2c67d26284f195165b650cf4aff7beaR23). Could it be the SA should be enabled for this repository? |
IIRC, @mtojek created the service account, though I'm inclined to suggest to use another service account with the right permissions instead, to avoid messing up the other pipelines/consumers. I can provide you some details about how to update the secret in vault if needed |
I think we want this to be the same SA for this reason. But there was a bug in the code that's why the permissions error showed up, sorry for involving you |
I suggest using the same GCP service account as elastic-package uses for GCP testing (
Shouldn't it be @endorama Please try not using the force-push mode as you lose the commit history and we don't know what have you tried and what haven't. |
packages/gcp/manifest.yml
Outdated
@@ -50,64 +50,6 @@ vars: | |||
required: false | |||
show_user: true | |||
policy_templates: | |||
- name: audit |
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.
Are we moving these into a separate package?
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.
No, but tests are failing with some gcp-pubsub
related failures and I wanted to remove that to observe if the issue was being introduced by these changeset.
Failure:
[2022-03-21T17:00:29.474Z] Error: error running package system tests: could not complete test run: could not add data stream config to policy: could not add package to policy; API status code = 500; response body = {"statusCode":500,"error":"Internal Server Error","message":"Input template not found, unable to find input type gcp-pubsub"}
That's the plan
yes, there was a bug and the code didn't use the proper project, fixed in 9b6f981
You're right, sorry! |
Due to the data streams test errors I see on this PR that are unrelated to the changes in this PR I'm pausing the work and ensure the CI is green in |
@@ -257,6 +259,11 @@ def withCloudTestEnv(Closure body) { | |||
[var: "AWS_ACCESS_KEY_ID", password: aws.access_key], | |||
[var: "AWS_SECRET_ACCESS_KEY", password: aws.secret_key], | |||
]) | |||
// GCP | |||
withGCPEnv(secret: env.ELASTIC_PACKAGE_GCP_SECRET) { |
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.
where is withGCPEnv
defined?
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.
This reverts commit fe54af3. `alternative_host` was a input level variable that is not shared by all inputs but used only in log related inputs. It was moved to data stream level but was not implemented for all data streams.
This reverts commit afe2beef112fa288e8aafdc862988ee83a79391c.
This reverts commit 3f41f4dc5135db53ba97c9cf9e6d43e02f403a5d.
edc3905
to
826b985
Compare
This PR is part of the effort to migrate Beats metricsets to data stream and adding system tests for them.
What does this PR do?
Checklist
changelog.yml
file.Author's Checklist
How to test this PR locally
Related issues
Screenshots