-
Notifications
You must be signed in to change notification settings - Fork 41
Add metadata tags #2407
Add metadata tags #2407
Conversation
| tags: | ||
| branch: "{{branch | default('Not running on CI')}}" | ||
| build: "{{build | default('Not running on CI')}}" | ||
| created_date: "{{ansible_date_time.epoch}}" |
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.
I've found this here
.ci/ansible/tasks/runners.yml
Outdated
| GitSHA: "{{ gitSha }}" | ||
| Kind: "{{nodeLabel}}" | ||
| Name: "e2e-{{nodeLabel}}-{{runId}}" | ||
| ReaperMark: "e2e-testing-vm" |
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.
Should I standardise the tag names with lowercase and _ separator?
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.
If that's the preference/standard, sounds good to me. Please remember to update the reaper pipeline.
💔 Tests Failed
Expand to view the summary
Build stats
Test stats 🧪
Test errors
Expand to view the tests failures
|
| - name: Create test environment | ||
| hosts: localhost | ||
| gather_facts: no | ||
| gather_facts: yes |
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.
ansible_date_time is part of the facts, otherwise:
[2022-04-21T17:19:09.430Z] fatal: [localhost]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'ansible_date_time' is undefined
update reaper job
(cherry picked from commit 5769e7f)
(cherry picked from commit 5769e7f)
(cherry picked from commit 5769e7f) # Conflicts: # .ci/aws-instances-reaper.groovy
* Add metadata tags (#2407) (cherry picked from commit 5769e7f) # Conflicts: # .ci/aws-instances-reaper.groovy * fix: resolve conflicts Co-authored-by: Victor Martinez <[email protected]> Co-authored-by: Manuel de la Peña <[email protected]>
(cherry picked from commit 5769e7f) Co-authored-by: Victor Martinez <[email protected]> Co-authored-by: Manuel de la Peña <[email protected]>
(cherry picked from commit 5769e7f) Co-authored-by: Victor Martinez <[email protected]> Co-authored-by: Manuel de la Peña <[email protected]>
* main: fix: use empty string instead of null for ES' network.host (elastic#2429) ci: transform branch to allow the Google Labels naming (elastic#2419) Add metadata tags (elastic#2407) Add link to the users used to SSH into the Cloud EC2s (elastic#2392) fix: add EOF (elastic#2387)
What does this PR do?
Standardise the below tags/labels in the terraform resources for AWS/GCP:
environment=> static valuerepo. => static valuebranch=> dynamic valuebuild=> dynamic valuecreated_date=> dynamic valueWhy is it important?
Help with tearing down any of the ephemeral resources which were not successfully removed as part of the system tests.
Implementation details
environment=ciwill allow to filter all those cloud resources which were created in the CIcreated_datewill help to filter those which were older than X days or X hours, since it's Unix epoch time based.branchandbuildwill help to identify what build in the CI and what PR, Branch or Tag created those resources.Further details
Test