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

[jjbb] for scheduling e2e jobs #418

Merged
merged 4 commits into from
Nov 22, 2021
Merged

Conversation

v1v
Copy link
Member

@v1v v1v commented Nov 18, 2021

What

Create the JJBB definition (aka the Jenkins UI jobs) for:

  • The scheduling twice a day as requested
  • The e2e pipeline.

Create the e2e pipeline skeleton, the implementation for what to run to be done in a follow up.

Why

It was requested to create a scheduled execution of the new E2E twice a day and notify in slack the outcome.

Further details

I decided to enable a Multibranch Pipeline to be able to test the pipeline manually if needed on a PR basis. It will only be triggered automatically on a daily basis (twice).

In my experience, Multibranch Pipelines help to iterate faster since we can work on a PR basis.

Notifies

#417 and #393

@@ -0,0 +1,61 @@
#!/usr/bin/env groovy
Copy link
Member Author

Choose a reason for hiding this comment

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

Quite basic pipeline to only checkout the source code and notify the status in slack/email.

TBC in a follow up

@v1v v1v requested review from dominiqueclarke and a team November 18, 2021 16:51
@v1v v1v mentioned this pull request Nov 18, 2021
3 tasks
@apmmachine
Copy link
Collaborator

apmmachine commented Nov 18, 2021

💔 Tests Failed

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

Expand to view the summary

Build stats

  • Start Time: 2021-11-19T11:03:45.964+0000

  • Duration: 8 min 37 sec

  • Commit: 0470d25

Test stats 🧪

Test Results
Failed 1
Passed 139
Skipped 0
Total 140

Test errors 1

Expand to view the tests failures

Test / CLI screenshots with device emulation – CLI screenshots with device emulation
  • no error details
  • Expand to view the stacktrace

     Error: Failed: "Error SyntaxError: Unexpected end of JSON input could not parse data '{\"type\":\"screenshot/block\",\"_id\":\"71bb77ed1acf85f13f1e8a2ab3cf3401850f7b9d\",\"@timestamp\":1637320250605286.5,\"root_fields\":{\"os\":{\"platform\":\"linux\"},\"package\":{\"name\":\"@elastic/synthetics\",\"version\":\"1.0.0-beta.17\"}},\"blob\":\"/9j/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAFyALQDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAj/xAAUEAEAAAAAAAAAAAAAAAAAAAAA/8QAFAEBAAAAAAAAAAAAAAAAAAAAAP/EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAMAwEAAhEDEQA/AKpAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'"
        at Env.it (/var/lib/jenkins/workspace/nt-rum_elastic-synthetics_PR-418/src/github.com/elastic/synthetics/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:95:24)
        at it (/var/lib/jenkins/workspace/nt-rum_elastic-synthetics_PR-418/src/github.com/elastic/synthetics/node_modules/jest-jasmine2/build/jasmine/jasmineLight.js:100:21)
        at Suite.<anonymous> (/var/lib/jenkins/workspace/nt-rum_elastic-synthetics_PR-418/src/github.com/elastic/synthetics/__tests__/cli.test.ts:147:3)
        at addSpecsToSuite (/var/lib/jenkins/workspace/nt-rum_elastic-synthetics_PR-418/src/github.com/elastic/synthetics/node_modules/jest-jasmine2/build/jasmine/Env.js:444:51)
        at Env.describe (/var/lib/jenkins/workspace/nt-rum_elastic-synthetics_PR-418/src/github.com/elastic/synthetics/node_modules/jest-jasmine2/build/jasmine/Env.js:414:11)
        at describe (/var/lib/jenkins/workspace/nt-rum_elastic-synthetics_PR-418/src/github.com/elastic/synthetics/node_modules/jest-jasmine2/build/jasmine/jasmineLight.js:88:18)
        at Object.<anonymous> (/var/lib/jenkins/workspace/nt-rum_elastic-synthetics_PR-418/src/github.com/elastic/synthetics/__tests__/cli.test.ts:32:1)
        at Runtime._execModule (/var/lib/jenkins/workspace/nt-rum_elastic-synthetics_PR-418/src/github.com/elastic/synthetics/node_modules/jest-runtime/build/index.js:1299:24)
        at Runtime._loadModule (/var/lib/jenkins/workspace/nt-rum_elastic-synthetics_PR-418/src/github.com/elastic/synthetics/node_modules/jest-runtime/build/index.js:898:12)
        at Runtime.requireModule (/var/lib/jenkins/workspace/nt-rum_elastic-synthetics_PR-418/src/github.com/elastic/synthetics/node_modules/jest-runtime/build/index.js:746:10) 
    

Steps errors 1

Expand to view the steps failures

Runs the tests
  • Took 1 min 0 sec . View more details here
  • Description: ./node_modules/.bin/jest --ci --reporters=default --reporters=jest-junit

🤖 GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

.ci/e2e-synthetics.groovy Show resolved Hide resolved
.ci/e2e-synthetics.groovy Outdated Show resolved Hide resolved
Co-authored-by: cachedout <mike.place@elastic.co>
.ci/schedule.groovy Outdated Show resolved Hide resolved
.ci/e2e-synthetics.groovy Outdated Show resolved Hide resolved
@v1v
Copy link
Member Author

v1v commented Nov 22, 2021

I'll merge this PR now since it's not tested in the CI but creating the required jobs (JJBB)

@v1v v1v merged commit 89e9d9e into elastic:master Nov 22, 2021
v1v added a commit to dominiqueclarke/synthetics that referenced this pull request Nov 22, 2021
…a-fleet-heartbeat-synthetics-e2e-tests

* upstream/master:
  [jjbb] for scheduling e2e jobs (elastic#418)
  docs: release notes for beta.17 (elastic#415)
  1.0.0-beta.17
  feat: add --playwright-options (elastic#405)
  fix: ensure timestamps of events are inorder (elastic#413)
  fix: do not stash `.nvm` folder (elastic#414)
  deprecate suite-params option over params (elastic#406)
  fix: end timestamp should reflect duration (elastic#410)
  docs: release notes for 1.16.0 (elastic#403)
  1.0.0-beta.16
  fix: revert Playwright to 1.14.0 (elastic#402)
  docs: release notes for beta 15 (elastic#400)
  1.0.0-beta.15
  chore: update deps and fix lint issues (elastic#399)
  fix: handle page close during response event (elastic#398)
  chore: require node > 14 for usage (elastic#397)
  fix: fix megabytes to mbps (elastic#394)
  feat: enable trace as part of rich-events (elastic#387)
  feat: use events from PW for network data (elastic#372)
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

3 participants