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

Fix master's linting issue #26517

Merged
merged 2 commits into from
Jun 28, 2021
Merged

Fix master's linting issue #26517

merged 2 commits into from
Jun 28, 2021

Conversation

ChrsMark
Copy link
Member

What does this PR do?

Fixes lint issues in current master. Failures spotted at #26438.

Signed-off-by: chrismark <chrismarkou92@gmail.com>
@ChrsMark ChrsMark self-assigned this Jun 28, 2021
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Jun 28, 2021
@ChrsMark ChrsMark added the Team:Integrations Label for the Integrations team label Jun 28, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations (Team:Integrations)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Jun 28, 2021
"github.com/google/go-cmp/cmp"

"github.com/elastic/beats/v7/libbeat/logp"

Copy link
Contributor

Choose a reason for hiding this comment

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

nit: should there be an empty line?

Copy link
Member Author

Choose a reason for hiding this comment

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

This is what mage ftm gave, but yes removing is ok. Thanks!

"github.com/google/go-cmp/cmp"
"github.com/kolide/osquery-go/plugin/logger"

"github.com/elastic/beats/v7/libbeat/logp"

Copy link
Contributor

Choose a reason for hiding this comment

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

nit: same here

Signed-off-by: chrismark <chrismarkou92@gmail.com>
@elasticmachine
Copy link
Collaborator

elasticmachine commented Jun 28, 2021

❕ Build Aborted

Either there was a build timeout or someone aborted the build.'}

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts

Expand to view the summary

Build stats

  • Build Cause: Pull request #26517 updated

  • Start Time: 2021-06-28T10:25:43.846+0000

  • Duration: 159 min 52 sec

  • Commit: 6dd5a11

Test stats 🧪

Test Results
Failed 0
Passed 112
Skipped 0
Total 112

Trends 🧪

Image of Build Times

Image of Tests

Log output

Expand to view the last 100 lines of log output

[2021-06-28T11:08:42.833Z] ?   	github.com/elastic/beats/v7/x-pack/osquerybeat/ext/osquery-extension	[no test files]
[2021-06-28T11:08:42.833Z] ?   	github.com/elastic/beats/v7/x-pack/osquerybeat/include	[no test files]
[2021-06-28T11:08:42.833Z] ?   	github.com/elastic/beats/v7/x-pack/osquerybeat/internal/command	[no test files]
[2021-06-28T11:08:42.833Z] ?   	github.com/elastic/beats/v7/x-pack/osquerybeat/internal/config	[no test files]
[2021-06-28T11:08:42.833Z] ?   	github.com/elastic/beats/v7/x-pack/osquerybeat/internal/distro	[no test files]
[2021-06-28T11:08:42.833Z] ?   	github.com/elastic/beats/v7/x-pack/osquerybeat/internal/fetch	[no test files]
[2021-06-28T11:08:42.833Z] ?   	github.com/elastic/beats/v7/x-pack/osquerybeat/internal/fileutil	[no test files]
[2021-06-28T11:08:42.833Z] ?   	github.com/elastic/beats/v7/x-pack/osquerybeat/internal/hash	[no test files]
[2021-06-28T11:08:42.833Z] ?   	github.com/elastic/beats/v7/x-pack/osquerybeat/internal/install	[no test files]
[2021-06-28T11:08:42.833Z] ?   	github.com/elastic/beats/v7/x-pack/osquerybeat/internal/osqd	[no test files]
[2021-06-28T11:08:42.833Z] ?   	github.com/elastic/beats/v7/x-pack/osquerybeat/internal/osqdcli	[no test files]
[2021-06-28T11:08:42.833Z] ?   	github.com/elastic/beats/v7/x-pack/osquerybeat/internal/tar	[no test files]
[2021-06-28T11:08:42.833Z] ?   	github.com/elastic/beats/v7/x-pack/osquerybeat/internal/testutil	[no test files]
[2021-06-28T11:08:42.833Z] ?   	github.com/elastic/beats/v7/x-pack/osquerybeat/scripts/mage	[no test files]
[2021-06-28T11:08:43.091Z] 
[2021-06-28T11:08:43.091Z] DONE 16 tests in 30.649s
[2021-06-28T11:08:44.992Z] >> go test: Unit Test Passed
[2021-06-28T11:08:56.988Z] + gsutil --version
[2021-06-28T11:08:58.403Z] Masking supported pattern matches of $FILE_CREDENTIAL
[2021-06-28T11:08:58.705Z] + gcloud auth activate-service-account --key-file ****
[2021-06-28T11:08:59.273Z] Activated service account credentials for: [beats-ci-gcs-plugin@elastic-ci-prod.iam.gserviceaccount.com]
[2021-06-28T11:08:59.582Z] + gsutil -m -q cp -a public-read eC1wYWNrL29zcXVlcnliZWF0LXdpbmRvd3MtMjAxNi13aW5kb3dzLTIwMTY2ZGQ1YTExNzM3M2Q4MmIwZDM2YmE0NjA0Y2QyNTc1MTJkMDI5OGY2 gs://beats-ci-temp/ci/cache/
[2021-06-28T11:09:03.071Z] >> python test: Unit Testing
[2021-06-28T11:09:15.264Z] ERROR: Could not install packages due to an EnvironmentError: [WinError 5] Access is denied: 'C:\\Users\\jenkins\\AppData\\Local\\Temp\\pip-uninstall-05jo7il3\\pip.exe'
[2021-06-28T11:09:15.264Z] Consider using the `--user` option or check the permissions.
[2021-06-28T11:09:15.264Z] 
[2021-06-28T11:09:47.325Z] warn: failed to upgrade pip (ignoring): running "null\build\ve\windows\Scripts\pip install -U pip" failed with exit code 1>> python test: Unit Testing - No tests found.
[2021-06-28T11:09:47.654Z] 
[2021-06-28T11:09:47.654Z] C:\Users\jenkins\workspace\PR-26517-2-abddc844-0a6f-447e-b22d-4ea333503d7b\src\github.com\elastic\beats>FOR / %d IN ("ve") DO @IF EXIST "%d" rmdir /s /q "%d" 
[2021-06-28T11:09:49.848Z] 
[2021-06-28T11:09:49.848Z] C:\Users\jenkins\workspace\PR-26517-2-abddc844-0a6f-447e-b22d-4ea333503d7b\src\github.com\elastic\beats>python .ci/scripts/pre_archive_test.py 
[2021-06-28T11:09:50.106Z] Copy .\x-pack\osquerybeat\build into build\x-pack\osquerybeat\build
[2021-06-28T11:09:50.106Z] Copy .\x-pack\osquerybeat\null\build into build\x-pack\osquerybeat\null\build
[2021-06-28T11:09:50.116Z] Running in C:\Users\jenkins\workspace\PR-26517-2-abddc844-0a6f-447e-b22d-4ea333503d7b\src\github.com\elastic\beats\build
[2021-06-28T11:09:50.131Z] Recording test results
[2021-06-28T11:09:50.648Z] [Checks API] No suitable checks publisher found.
[2021-06-28T11:09:50.986Z] 
[2021-06-28T11:09:50.986Z] C:\Users\jenkins\workspace\PR-26517-2-abddc844-0a6f-447e-b22d-4ea333503d7b\src\github.com\elastic\beats>go clean -modcache 
[2021-06-28T11:09:51.761Z] >> build: Building osquery-extension
[2021-06-28T11:09:53.153Z] >> go test: Unit Testing
[2021-06-28T11:09:53.153Z] exec: gotestsum --no-color -f standard-quiet --junitfile build/TEST-go-unit.xml --jsonfile build/TEST-go-unit.out.json -- -tags null oracle -covermode=atomic -coverprofile=build\TEST-go-unit.cov ./...
[2021-06-28T11:10:31.918Z] ok  	github.com/elastic/beats/v7/x-pack/osquerybeat/beater	0.400s	coverage: 21.3% of statements
[2021-06-28T11:10:31.918Z] ok  	github.com/elastic/beats/v7/x-pack/osquerybeat	0.510s	coverage: 0.0% of statements
[2021-06-28T11:10:31.918Z] ?   	github.com/elastic/beats/v7/x-pack/osquerybeat/cmd	[no test files]
[2021-06-28T11:10:31.918Z] ?   	github.com/elastic/beats/v7/x-pack/osquerybeat/ext/osquery-extension	[no test files]
[2021-06-28T11:10:31.918Z] ?   	github.com/elastic/beats/v7/x-pack/osquerybeat/include	[no test files]
[2021-06-28T11:10:31.918Z] ?   	github.com/elastic/beats/v7/x-pack/osquerybeat/internal/command	[no test files]
[2021-06-28T11:10:31.918Z] ?   	github.com/elastic/beats/v7/x-pack/osquerybeat/internal/config	[no test files]
[2021-06-28T11:10:31.918Z] ?   	github.com/elastic/beats/v7/x-pack/osquerybeat/internal/distro	[no test files]
[2021-06-28T11:10:31.918Z] ?   	github.com/elastic/beats/v7/x-pack/osquerybeat/internal/fetch	[no test files]
[2021-06-28T11:10:31.918Z] ?   	github.com/elastic/beats/v7/x-pack/osquerybeat/internal/fileutil	[no test files]
[2021-06-28T11:10:31.918Z] ?   	github.com/elastic/beats/v7/x-pack/osquerybeat/internal/hash	[no test files]
[2021-06-28T11:10:31.918Z] ?   	github.com/elastic/beats/v7/x-pack/osquerybeat/internal/install	[no test files]
[2021-06-28T11:10:31.918Z] ?   	github.com/elastic/beats/v7/x-pack/osquerybeat/internal/osqd	[no test files]
[2021-06-28T11:10:31.918Z] ?   	github.com/elastic/beats/v7/x-pack/osquerybeat/internal/osqdcli	[no test files]
[2021-06-28T11:10:31.918Z] ?   	github.com/elastic/beats/v7/x-pack/osquerybeat/internal/tar	[no test files]
[2021-06-28T11:10:31.918Z] ?   	github.com/elastic/beats/v7/x-pack/osquerybeat/internal/testutil	[no test files]
[2021-06-28T11:10:31.918Z] ?   	github.com/elastic/beats/v7/x-pack/osquerybeat/scripts/mage	[no test files]
[2021-06-28T11:10:31.918Z] 
[2021-06-28T11:10:31.918Z] DONE 16 tests in 34.396s
[2021-06-28T11:10:31.918Z] >> go test: Unit Test Passed
[2021-06-28T11:10:39.220Z] + gsutil --version
[2021-06-28T11:10:40.632Z] Masking supported pattern matches of $FILE_CREDENTIAL
[2021-06-28T11:10:40.936Z] + gcloud auth activate-service-account --key-file ****
[2021-06-28T11:10:41.505Z] Activated service account credentials for: [beats-ci-gcs-plugin@elastic-ci-prod.iam.gserviceaccount.com]
[2021-06-28T11:10:41.813Z] + gsutil -m -q cp -a public-read eC1wYWNrL29zcXVlcnliZWF0LXdpbmRvd3MtNy13aW5kb3dzLTc2ZGQ1YTExNzM3M2Q4MmIwZDM2YmE0NjA0Y2QyNTc1MTJkMDI5OGY2 gs://beats-ci-temp/ci/cache/
[2021-06-28T11:10:53.902Z] >> python test: Unit Testing
[2021-06-28T11:11:20.490Z] ERROR: Could not install packages due to an EnvironmentError: [WinError 5] Access is denied: 'C:\\Users\\jenkins\\AppData\\Local\\Temp\\pip-uninstall-_deb2idv\\pip.exe'
[2021-06-28T11:11:20.490Z] Consider using the `--user` option or check the permissions.
[2021-06-28T11:11:20.490Z] 
[2021-06-28T11:12:28.222Z] warn: failed to upgrade pip (ignoring): running "null\build\ve\windows\Scripts\pip install -U pip" failed with exit code 1>> python test: Unit Testing - No tests found.
[2021-06-28T11:12:28.569Z] 
[2021-06-28T11:12:28.569Z] C:\Users\jenkins\workspace\PR-26517-2-416f349f-9402-40e6-8928-9df5b947c014\src\github.com\elastic\beats>FOR / %d IN ("ve") DO @IF EXIST "%d" rmdir /s /q "%d" 
[2021-06-28T11:12:30.795Z] 
[2021-06-28T11:12:30.795Z] C:\Users\jenkins\workspace\PR-26517-2-416f349f-9402-40e6-8928-9df5b947c014\src\github.com\elastic\beats>python .ci/scripts/pre_archive_test.py 
[2021-06-28T11:12:31.055Z] Copy .\x-pack\osquerybeat\build into build\x-pack\osquerybeat\build
[2021-06-28T11:12:31.055Z] Copy .\x-pack\osquerybeat\null\build into build\x-pack\osquerybeat\null\build
[2021-06-28T11:12:31.068Z] Running in C:\Users\jenkins\workspace\PR-26517-2-416f349f-9402-40e6-8928-9df5b947c014\src\github.com\elastic\beats\build
[2021-06-28T11:12:31.083Z] Recording test results
[2021-06-28T11:12:32.017Z] [Checks API] No suitable checks publisher found.
[2021-06-28T11:12:32.367Z] 
[2021-06-28T11:12:32.367Z] C:\Users\jenkins\workspace\PR-26517-2-416f349f-9402-40e6-8928-9df5b947c014\src\github.com\elastic\beats>go clean -modcache 
[2021-06-28T11:13:41.466Z] + gsutil --version
[2021-06-28T11:13:42.881Z] Masking supported pattern matches of $FILE_CREDENTIAL
[2021-06-28T11:13:43.188Z] + gcloud auth activate-service-account --key-file ****
[2021-06-28T11:13:43.757Z] Activated service account credentials for: [beats-ci-gcs-plugin@elastic-ci-prod.iam.gserviceaccount.com]
[2021-06-28T11:13:44.067Z] + gsutil -m -q cp -a public-read eC1wYWNrL29zcXVlcnliZWF0LXdpbmRvd3MtMTAtd2luZG93cy0xMDZkZDVhMTE3MzczZDgyYjBkMzZiYTQ2MDRjZDI1NzUxMmQwMjk4ZjY gs://beats-ci-temp/ci/cache/
[2021-06-28T13:04:35.229Z] Aborted by Chris Mark
[2021-06-28T13:04:35.267Z] Failed in branch x-pack/osquerybeat-windows-8-windows-8
[2021-06-28T13:04:35.332Z] Stage "Packaging" skipped due to earlier failure(s)
[2021-06-28T13:04:35.361Z] Stage "Packaging-Pipeline" skipped due to earlier failure(s)
[2021-06-28T13:04:35.410Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-26517/src/github.com/elastic/beats
[2021-06-28T13:04:35.742Z] Running on Jenkins in /var/lib/jenkins/workspace/Beats_beats_PR-26517
[2021-06-28T13:04:35.782Z] [INFO] getVaultSecret: Getting secrets
[2021-06-28T13:04:35.818Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2021-06-28T13:04:36.473Z] + chmod 755 generate-build-data.sh
[2021-06-28T13:04:36.473Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-26517/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-26517/runs/2 ABORTED 9532364
[2021-06-28T13:04:36.473Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-26517/runs/2/steps/?limit=10000 -o steps-info.json
[2021-06-28T13:04:37.384Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-26517/runs/2/tests/?status=FAILED -o tests-errors.json
[2021-06-28T13:04:37.384Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-26517/runs/2/log/ -o pipeline-log.txt

@jsoriano
Copy link
Member

Issue seems to be present since #25641, but linting was green there 🤔 @ChrsMark, do you know why it fails in #26438, but not in other PRs?

@ChrsMark
Copy link
Member Author

@jsoriano I also saw that these tricky lines are there for some time now. I just checkout latest master and run mage fmt to verify if master needs changes. I guess that maybe sth on checking side changed but dunno what 🤷

@ChrsMark ChrsMark added the backport-v7.14.0 Automated backport with mergify label Jun 28, 2021
@ChrsMark
Copy link
Member Author

I will move on and merge this since there is an known issue with the windows-8 workers.

@ChrsMark ChrsMark merged commit 48935ee into elastic:master Jun 28, 2021
mergify bot pushed a commit that referenced this pull request Jun 28, 2021
* Fix master's linting issue

Signed-off-by: chrismark <chrismarkou92@gmail.com>

* Remove empty lines

Signed-off-by: chrismark <chrismarkou92@gmail.com>
(cherry picked from commit 48935ee)
ChrsMark added a commit that referenced this pull request Jun 29, 2021
* Fix master's linting issue

Signed-off-by: chrismark <chrismarkou92@gmail.com>

* Remove empty lines

Signed-off-by: chrismark <chrismarkou92@gmail.com>
(cherry picked from commit 48935ee)

Co-authored-by: Chris Mark <chrismarkou92@gmail.com>
mdelapenya added a commit to mdelapenya/beats that referenced this pull request Jun 29, 2021
* master:
  Osquerybeat: set the raw index name to supress the timestamp suffix (elastic#26545)
  [Heartbeat] add screenshots config to synthetics (elastic#26455)
  [Elastic Agent] Use http2 to connect to Fleet Server. (elastic#26474)
  Remove all docs about  Beats central management (elastic#26399)
  update data.json for gcp billing (elastic#26506)
  Skip x-pack metricbeat tests (elastic#26537)
  [Elastic Agent] Fix issue with FLEET_CA not being used with Fleet Server in container (elastic#26529)
  Add changelog entry for  elastic#26224 (elastic#26531)
  Add inttests for the x-pack/metricbeat on a PR/branches basis (elastic#26526)
  Suppress too many errors (elastic#26224)
  Fix master's linting issue (elastic#26517)
  [libbeat] Fix encoding and file offset issues in the disk queue (elastic#26484)
  Add log_group_name_prefix config option for aws-cloudwatch input (elastic#26187)
  Update shared-deduplication.asciidoc (elastic#26492)
  Add Recorded Future support to threatintel module (elastic#26481)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-v7.14.0 Automated backport with mergify Team:Integrations Label for the Integrations team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants