Skip to content
This repository was archived by the owner on Sep 17, 2024. It is now read-only.

chore: include suite, platform and tags in test reports name#2273

Merged
mdelapenya merged 2 commits intoelastic:mainfrom
mdelapenya:rename-json-files
Mar 28, 2022
Merged

chore: include suite, platform and tags in test reports name#2273
mdelapenya merged 2 commits intoelastic:mainfrom
mdelapenya:rename-json-files

Conversation

@mdelapenya
Copy link
Copy Markdown
Contributor

What does this PR do?

It adds a prefix to the test report names so that it's easier to look them up in the Jenkins UI. In the past, the report name was created calling uname in the remote VM, now it uses the metadata coming from the platform descriptors

Why is it important?

Consistency about file names, and adding discoverability when reading reports in the Jenkins UI

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 run the Unit tests (make unit-test), and they are passing locally
  • I have run the End-2-End tests for the suite I'm working on, and they are passing locally
  • I have noticed new Go dependencies (run make notice in the proper directory)

Related issues

@mdelapenya mdelapenya added backport-v7.17.0 Automated backport with mergify backport-v8.0.0 Automated backport with mergify backport-v8.1.0 Automated backport with mergify labels Mar 28, 2022
@mdelapenya mdelapenya self-assigned this Mar 28, 2022
@mdelapenya mdelapenya requested a review from a team March 28, 2022 09:23
def envContext = []
envContext.add("PROVIDER=${provider}")
envContext.add("SUITE=${suite}")
envContext.add("REPORT_PREFIX=${suite}_${platform}_${tags}")
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Same as the parallel stage name

BEAT_VERSION=${4:-"${BASE_VERSION}"}
ELASTIC_AGENT_VERSION=${5:-"${BASE_VERSION}"}
GOARCH=${GOARCH:-"amd64"}
REPORT_PREFIX="${SUITE}_${GOARCH}_${TAGS}"
Copy link
Copy Markdown
Member

@v1v v1v Mar 28, 2022

Choose a reason for hiding this comment

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

What do you think to allow overriding the value only if REPORT_PREFIX is not set? IIUC,

https://github.com/elastic/e2e-testing/pull/2273/files#diff-ef8b2f5e4d21d81c0eba4754dea3a3dfc2c67d26284f195165b650cf4aff7beaR564 uses .ci/scripts/functional-test.sh with only one parameter, so REPORT_PREFIX="${SUITE}_${GOARCH}_${TAGS}" = REPORT_PREFIX=${tags}_ amd64_" but REPORT_PREFIX is already in place as it's created on the fly in the jenkinsfile

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

That could be fine too. My only concern is that the script that is run on CI is generated on the fly in the Ansible code, and this is different to the committed script. I'd try to align them as much as possible

@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 preview

Expand to view the summary

Build stats

  • Start Time: 2022-03-28T09:23:17.151+0000

  • Duration: 67 min 40 sec

Test stats 🧪

Test Results
Failed 0
Passed 276
Skipped 0
Total 276

💚 Flaky test report

Tests succeeded.

🤖 GitHub comments

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

  • /test : Re-trigger the build.

@mdelapenya mdelapenya merged commit e516dc9 into elastic:main Mar 28, 2022
mergify bot pushed a commit that referenced this pull request Mar 28, 2022
* chore: include suite, platform and tags in test reports name

* chore: read existing value first

(cherry picked from commit e516dc9)
mergify bot pushed a commit that referenced this pull request Mar 28, 2022
* chore: include suite, platform and tags in test reports name

* chore: read existing value first

(cherry picked from commit e516dc9)
mergify bot pushed a commit that referenced this pull request Mar 28, 2022
* chore: include suite, platform and tags in test reports name

* chore: read existing value first

(cherry picked from commit e516dc9)
mdelapenya added a commit that referenced this pull request Mar 28, 2022
…2274)

* chore: include suite, platform and tags in test reports name

* chore: read existing value first

(cherry picked from commit e516dc9)

Co-authored-by: Manuel de la Peña <mdelapenya@gmail.com>
mdelapenya added a commit that referenced this pull request Mar 28, 2022
…2275)

* chore: include suite, platform and tags in test reports name

* chore: read existing value first

(cherry picked from commit e516dc9)

Co-authored-by: Manuel de la Peña <mdelapenya@gmail.com>
mdelapenya added a commit that referenced this pull request Mar 28, 2022
…2276)

* chore: include suite, platform and tags in test reports name

* chore: read existing value first

(cherry picked from commit e516dc9)

Co-authored-by: Manuel de la Peña <mdelapenya@gmail.com>
mdelapenya added a commit to mdelapenya/e2e-testing that referenced this pull request Mar 30, 2022
* main: (72 commits)
  fix: always quote variables in shell scripts (elastic#2284)
  chore: bring back system integration scenarios (elastic#2233)
  chore: do not notify build green for fleet nightly builds (elastic#2277)
  chore: include suite, platform and tags in test reports name (elastic#2273)
  bump stack version 8.2.0-dcff22d7 (elastic#2270)
  bump stack version 8.2.0-4509f321 (elastic#2265)
  chore: bump Godog to v0.12.4 (elastic#2245)
  bump stack version 8.2.0-5cc993c1 (elastic#2254)
  bump stack version 8.2.0-82b803a1 (elastic#2250)
  fix: never process elasticsearch CI artifacts (elastic#2246)
  bump stack version 8.2.0-ff67d7b8 (elastic#2242)
  ci: periodic builds for the last two minor versions (elastic#2241)
  bump stack version 8.2.0-9bac538c (elastic#2240)
  fix: add end-of-file line in templates (elastic#2237)
  chore: add Christos to SSH users
  bump stack version 8.2.0-fee3b8d2 (elastic#2234)
  Separate ES workload from Agent spec and make it req for the scenarios (elastic#2203)
  bump stack version 8.2.0-d02c907a (elastic#2228)
  bump stack version 8.2.0-63265ec9 (elastic#2225)
  fix: wrong link (elastic#2220)
  ...
@mdelapenya mdelapenya deleted the rename-json-files branch July 13, 2022 09:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

backport-v7.17.0 Automated backport with mergify backport-v8.0.0 Automated backport with mergify backport-v8.1.0 Automated backport with mergify

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants