Skip to content

Cherry-pick #24868 to 7.x: Add test to check if Prospector sets metadata of files on updates in filestream#24881

Closed
kvch wants to merge 1 commit intoelastic:7.xfrom
kvch:backport_24868_7.x
Closed

Cherry-pick #24868 to 7.x: Add test to check if Prospector sets metadata of files on updates in filestream#24881
kvch wants to merge 1 commit intoelastic:7.xfrom
kvch:backport_24868_7.x

Conversation

@kvch
Copy link
Copy Markdown
Contributor

@kvch kvch commented Apr 1, 2021

Cherry-pick of PR #24868 to 7.x branch. Original message:

What does this PR do?

This PR adds a test to see if the Prospector is able to update file metadata in the registry.

Requires #24864

Why is it important?

It has not been tested automatically before.

Checklist

  • My code follows the style guidelines of this project
    - [ ] I have commented my code, particularly in hard-to-understand areas
    - [ ] I have made corresponding changes to the documentation
    - [ ] I have made corresponding change to the default configuration files
    - [ ] I have added tests that prove my fix is effective or that my feature works
    - [ ] I have added an entry in CHANGELOG.next.asciidoc or CHANGELOG-developer.next.asciidoc.

@botelastic botelastic Bot added the needs_team Indicates that the issue/PR needs a Team:* label label Apr 1, 2021
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/agent (Team:Agent)

@botelastic botelastic Bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Apr 1, 2021
…filestream (elastic#24868)

This PR adds a test to see if the Prospector is able to update file metadata in the registry.

(cherry picked from commit 51a3317)
@kvch kvch force-pushed the backport_24868_7.x branch from 6362445 to 8d8d97b Compare April 1, 2021 07:05
@elasticmachine
Copy link
Copy Markdown
Contributor

❕ Build Aborted

There is a new build on-going so the previous on-going builds have been aborted.

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 #24881 opened

  • Reason: Aborted from #2

  • Start Time: 2021-04-01T07:05:28.146+0000

  • Duration: 3 min 48 sec

  • Commit: 8d8d97b

Trends 🧪

Image of Build Times

Log output

Expand to view the last 100 lines of log output

[2021-04-01T07:07:15.568Z] Fetching upstream changes from git@github.com:elastic/beats.git
[2021-04-01T07:07:15.569Z] using GIT_SSH to set credentials GitHub user @elasticmachine SSH key
[2021-04-01T07:07:15.573Z]  > git fetch --no-tags --progress --prune -- git@github.com:elastic/beats.git +refs/pull/24881/head:refs/remotes/origin/PR-24881 +refs/heads/7.x:refs/remotes/origin/7.x # timeout=15
[2021-04-01T07:07:16.815Z] Merging remotes/origin/7.x commit 99640fd3bf8647e997b6157d48e75c780bfeba7b into PR head commit 8d8d97bbfd393f00be75bcc24240971cb37e334e
[2021-04-01T07:07:18.410Z] Merge succeeded, producing 8d8d97bbfd393f00be75bcc24240971cb37e334e
[2021-04-01T07:07:18.410Z] Checking out Revision 8d8d97bbfd393f00be75bcc24240971cb37e334e (PR-24881)
[2021-04-01T07:07:16.822Z]  > git config core.sparsecheckout # timeout=10
[2021-04-01T07:07:16.826Z]  > git checkout -f 8d8d97bbfd393f00be75bcc24240971cb37e334e # timeout=15
[2021-04-01T07:07:18.381Z]  > git remote # timeout=10
[2021-04-01T07:07:18.385Z]  > git config --get remote.origin.url # timeout=10
[2021-04-01T07:07:18.389Z] using GIT_SSH to set credentials GitHub user @elasticmachine SSH key
[2021-04-01T07:07:18.392Z]  > git merge 99640fd3bf8647e997b6157d48e75c780bfeba7b # timeout=10
[2021-04-01T07:07:18.404Z]  > git rev-parse HEAD^{commit} # timeout=10
[2021-04-01T07:07:18.413Z]  > git config core.sparsecheckout # timeout=10
[2021-04-01T07:07:18.419Z]  > git checkout -f 8d8d97bbfd393f00be75bcc24240971cb37e334e # timeout=15
[2021-04-01T07:07:22.574Z] Commit message: "Add test to check if Prospector sets metadata of files on updates in filestream (#24868)"
[2021-04-01T07:07:22.574Z] First time build. Skipping changelog.
[2021-04-01T07:07:22.574Z] Cleaning workspace
[2021-04-01T07:07:22.750Z]  > git --version # timeout=10
[2021-04-01T07:07:22.753Z]  > git --version # 'git version 2.17.1'
[2021-04-01T07:07:22.756Z] fatal: bad object a5515e4205daa88d60963303369b5ebbc025bae6
[2021-04-01T07:07:22.577Z]  > git rev-parse --verify HEAD # timeout=10
[2021-04-01T07:07:22.581Z] Resetting working tree
[2021-04-01T07:07:22.581Z]  > git reset --hard # timeout=10
[2021-04-01T07:07:22.662Z]  > git clean -fdx # timeout=10
[2021-04-01T07:07:23.593Z] Timeout set to expire in 3 hr 0 min
[2021-04-01T07:07:23.624Z] The timestamps step is unnecessary when timestamps are enabled for all Pipeline builds.
[2021-04-01T07:07:23.921Z] [INFO] Number of builds to be searched 10
[2021-04-01T07:07:24.665Z] [INFO] 'shallow' is forced to be disabled when running on PullRequests
[2021-04-01T07:07:24.698Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-24881/src/github.com/elastic/beats
[2021-04-01T07:07:24.742Z] [INFO] gitCheckout: Checkout SCM PR-24881 with default customisation from the Item.
[2021-04-01T07:07:24.788Z] [INFO] Override default checkout
[2021-04-01T07:07:24.865Z] Sleeping for 10 sec
[2021-04-01T07:07:34.898Z] The recommended git tool is: git
[2021-04-01T07:07:34.947Z] using credential f6c7695a-671e-4f4f-a331-acdce44ff9ba
[2021-04-01T07:07:34.989Z] Wiping out workspace first.
[2021-04-01T07:07:34.999Z] Cloning the remote Git repository
[2021-04-01T07:07:34.999Z] Using shallow clone with depth 10
[2021-04-01T07:07:34.999Z] Avoid fetching tags
[2021-04-01T07:07:35.014Z] Cloning repository git@github.com:elastic/beats.git
[2021-04-01T07:07:35.042Z]  > git init /var/lib/jenkins/workspace/Beats_beats_PR-24881/src/github.com/elastic/beats # timeout=10
[2021-04-01T07:07:35.048Z] Fetching upstream changes from git@github.com:elastic/beats.git
[2021-04-01T07:07:35.048Z]  > git --version # timeout=10
[2021-04-01T07:07:35.051Z]  > git --version # 'git version 2.17.1'
[2021-04-01T07:07:35.052Z] using GIT_SSH to set credentials GitHub user @elasticmachine SSH key
[2021-04-01T07:07:35.056Z]  > git fetch --no-tags --progress -- git@github.com:elastic/beats.git +refs/heads/*:refs/remotes/origin/* # timeout=15
[2021-04-01T07:07:56.263Z] Cleaning workspace
[2021-04-01T07:07:56.275Z] Using shallow fetch with depth 10
[2021-04-01T07:07:56.275Z] Pruning obsolete local branches
[2021-04-01T07:07:56.248Z]  > git config remote.origin.url git@github.com:elastic/beats.git # timeout=10
[2021-04-01T07:07:56.252Z]  > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
[2021-04-01T07:07:56.259Z]  > git config remote.origin.url git@github.com:elastic/beats.git # timeout=10
[2021-04-01T07:07:56.265Z]  > git rev-parse --verify HEAD # timeout=10
[2021-04-01T07:07:56.268Z] No valid HEAD. Skipping the resetting
[2021-04-01T07:07:56.268Z]  > git clean -fdx # timeout=10
[2021-04-01T07:07:56.278Z] Fetching upstream changes from git@github.com:elastic/beats.git
[2021-04-01T07:07:56.278Z] using GIT_SSH to set credentials GitHub user @elasticmachine SSH key
[2021-04-01T07:07:56.282Z]  > git fetch --no-tags --progress --prune -- git@github.com:elastic/beats.git +refs/pull/24881/head:refs/remotes/origin/PR-24881 +refs/heads/7.x:refs/remotes/origin/7.x # timeout=15
[2021-04-01T07:07:57.524Z] Merging remotes/origin/7.x commit 99640fd3bf8647e997b6157d48e75c780bfeba7b into PR head commit 8d8d97bbfd393f00be75bcc24240971cb37e334e
[2021-04-01T07:07:57.527Z]  > git config core.sparsecheckout # timeout=10
[2021-04-01T07:07:57.530Z]  > git checkout -f 8d8d97bbfd393f00be75bcc24240971cb37e334e # timeout=15
[2021-04-01T07:07:59.079Z] Merge succeeded, producing 8d8d97bbfd393f00be75bcc24240971cb37e334e
[2021-04-01T07:07:59.079Z] Checking out Revision 8d8d97bbfd393f00be75bcc24240971cb37e334e (PR-24881)
[2021-04-01T07:07:59.179Z] Commit message: "Add test to check if Prospector sets metadata of files on updates in filestream (#24868)"
[2021-04-01T07:07:59.180Z] Cleaning workspace
[2021-04-01T07:07:59.344Z]  > git --version # timeout=10
[2021-04-01T07:07:59.348Z]  > git --version # 'git version 2.17.1'
[2021-04-01T07:07:59.351Z] fatal: bad object a5515e4205daa88d60963303369b5ebbc025bae6
[2021-04-01T07:08:00.363Z] Masking supported pattern matches of $GIT_USERNAME or $GIT_PASSWORD
[2021-04-01T07:07:59.054Z]  > git remote # timeout=10
[2021-04-01T07:07:59.058Z]  > git config --get remote.origin.url # timeout=10
[2021-04-01T07:07:59.062Z] using GIT_SSH to set credentials GitHub user @elasticmachine SSH key
[2021-04-01T07:07:59.065Z]  > git merge 99640fd3bf8647e997b6157d48e75c780bfeba7b # timeout=10
[2021-04-01T07:07:59.075Z]  > git rev-parse HEAD^{commit} # timeout=10
[2021-04-01T07:07:59.082Z]  > git config core.sparsecheckout # timeout=10
[2021-04-01T07:07:59.086Z]  > git checkout -f 8d8d97bbfd393f00be75bcc24240971cb37e334e # timeout=15
[2021-04-01T07:07:59.182Z]  > git rev-parse --verify HEAD # timeout=10
[2021-04-01T07:07:59.188Z] Resetting working tree
[2021-04-01T07:07:59.188Z]  > git reset --hard # timeout=10
[2021-04-01T07:07:59.278Z]  > git clean -fdx # timeout=10
[2021-04-01T07:08:01.039Z] + git fetch https://****:****@github.com/elastic/beats.git +refs/pull/*/head:refs/remotes/origin/pr/*
[2021-04-01T07:08:11.872Z] Sending interrupt signal to process
[2021-04-01T07:08:13.363Z] script returned exit code 128
[2021-04-01T07:08:13.396Z] [WARN] gitCmd failed, further details in the archived file '.git/fetch.log'
[2021-04-01T07:08:13.456Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-24881/src/github.com/elastic/beats/.git
[2021-04-01T07:08:13.569Z] Archiving artifacts
[2021-04-01T07:08:14.057Z] Stage "Lint" skipped due to earlier failure(s)
[2021-04-01T07:08:14.155Z] Stage "Build&Test" skipped due to earlier failure(s)
[2021-04-01T07:08:14.253Z] Stage "Packaging" skipped due to earlier failure(s)
[2021-04-01T07:08:14.383Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-24881/src/github.com/elastic/beats
[2021-04-01T07:08:15.354Z] Running on Jenkins in /var/lib/jenkins/workspace/Beats_beats_PR-24881
[2021-04-01T07:08:15.520Z] [INFO] getVaultSecret: Getting secrets
[2021-04-01T07:08:15.636Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2021-04-01T07:08:16.771Z] + chmod 755 generate-build-data.sh
[2021-04-01T07:08:16.771Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-24881/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-24881/runs/1 ABORTED 168346
[2021-04-01T07:08:17.682Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-24881/runs/1/steps/?limit=10000 -o steps-info.json
[2021-04-01T07:08:17.932Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-24881/runs/1/tests/?status=FAILED -o tests-errors.json
[2021-04-01T07:08:17.932Z] Retry 1/3 exited 22, retrying in 1 seconds...
[2021-04-01T07:08:19.276Z] Retry 2/3 exited 22, retrying in 2 seconds...
[2021-04-01T07:08:21.137Z] Retry 3/3 exited 22, no more retries left.

@kvch kvch closed this Apr 1, 2021
@kvch kvch deleted the backport_24868_7.x branch April 1, 2021 07:09
@zube zube Bot added [zube]: Done and removed [zube]: Inbox labels Apr 1, 2021
@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

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

Expand to view the summary

Build stats

  • Build Cause: Pull request #24881 updated

  • Start Time: 2021-04-01T07:06:28.183+0000

  • Duration: 51 min 45 sec

  • Commit: 8d8d97b

Test stats 🧪

Test Results
Failed 0
Passed 13158
Skipped 2285
Total 15443

Trends 🧪

Image of Build Times

Image of Tests

💚 Flaky test report

Tests succeeded.

Expand to view the summary

Test stats 🧪

Test Results
Failed 0
Passed 13158
Skipped 2285
Total 15443

@zube zube Bot removed the [zube]: Done label Jun 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport Team:Elastic-Agent Label for the Agent team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants