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

chore(ci): propagate downstream build result to upstream#1377

Merged
mdelapenya merged 1 commit intoelastic:masterfrom
mdelapenya:1376-propagate-build-result
Jul 27, 2021
Merged

chore(ci): propagate downstream build result to upstream#1377
mdelapenya merged 1 commit intoelastic:masterfrom
mdelapenya:1376-propagate-build-result

Conversation

@mdelapenya
Copy link
Copy Markdown
Contributor

What does this PR do?

It sets the propagate state of the modified jobs to the build result of the downstream/triggered job.

Why is it important?

Because the downstream job is usually a helper pipeline used by many jobs, we cannot simply look up the state of the last build of the main, helper pipeline, as it could have been executed by another upstream job.

For that reason, we want to propagate the state of the downstream job to the upstream. In this case, we can monitor the state of the upstream builds (usually nightly builds) as it will keep the build state of the triggered job (now they're always green because they simply trigger the helper pipeline without failure).

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)

Author's Checklist

  • I assume that wait: false must be kept, as we do not want to wait for the result. But I wonder if the build state will be changed afterwards, or in the contrary we must wait so that the downstream state is propagated.

Related issues

@mdelapenya mdelapenya self-assigned this Jul 27, 2021
@mdelapenya mdelapenya requested a review from a team July 27, 2021 06:50
@mdelapenya mdelapenya marked this pull request as ready for review July 27, 2021 07:02
@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: 2021-07-27T06:51:03.566+0000

  • Duration: 36 min 41 sec

  • Commit: e03e6dc

Test stats 🧪

Test Results
Failed 0
Passed 230
Skipped 0
Total 230

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 230
Skipped 0
Total 230

@mdelapenya mdelapenya merged commit 8605153 into elastic:master Jul 27, 2021
mergify Bot pushed a commit that referenced this pull request Jul 27, 2021
(cherry picked from commit 8605153)

# Conflicts:
#	.ci/e2eTestingK8SAutodiscoveryDaily.groovy
mergify Bot pushed a commit that referenced this pull request Jul 27, 2021
mergify Bot pushed a commit that referenced this pull request Jul 27, 2021
(cherry picked from commit 8605153)

# Conflicts:
#	.ci/e2eTestingK8SAutodiscoveryDaily.groovy
mdelapenya added a commit that referenced this pull request Jul 27, 2021
(cherry picked from commit 8605153)

Co-authored-by: Manuel de la Peña <mdelapenya@gmail.com>
mdelapenya added a commit to mdelapenya/e2e-testing that referenced this pull request Jul 27, 2021
mdelapenya added a commit to mdelapenya/e2e-testing that referenced this pull request Jul 28, 2021
* master:
  fix(ci): wait for downstream jobs on scheduled jobs (elastic#1393)
  Fix for the OS field and scenarios (elastic#1349)
  Add test case for add_kubernetes_metadata with autodiscover (elastic#1385)
  chore(ci): propagate downstream build result to upstream (elastic#1377)
@mdelapenya mdelapenya deleted the 1376-propagate-build-result branch July 30, 2021 12:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Propagate build result in scheduled builds

3 participants