Page MenuHomePhabricator

[CI] Clean on failure for Emscripten pipeline
ClosedPublic

Authored by kamil on Mar 5 2024, 4:08 AM.
Tags
None
Referenced Files
F5083340: D11243.id47510.diff
Sat, Mar 29, 11:19 AM
F5081468: D11243.id37822.diff
Sat, Mar 29, 5:49 AM
Unknown Object (File)
Tue, Mar 25, 9:23 PM
Unknown Object (File)
Tue, Mar 25, 9:04 PM
Unknown Object (File)
Sun, Mar 23, 1:28 AM
Unknown Object (File)
Sat, Mar 22, 11:00 AM
Unknown Object (File)
Tue, Mar 18, 4:26 AM
Unknown Object (File)
Tue, Mar 4, 2:32 AM
Subscribers

Details

Summary

Potential fix for ENG-7092.
Context in ENG-6977 and ENG-6879.

Now this pipeline has two steps:
Emscripten build - build WASM and compare
Clean on failure and Emscripten build - cleans all caches, builds, and compares again

Test Plan

Tested on CI:

  1. Make sure Clean on failure and Emscripten build cleans only when step Emscripten build fails
  2. Make sure Clean on failure and Emscripten build actually cleans files (looked at logs)
  3. On Emscripten build success Clean on failure and Emscripten build should not perform any actions

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kamil held this revision as a draft.
kamil published this revision for review.Mar 5 2024, 5:32 AM
kamil edited the summary of this revision. (Show Details)
kamil edited the test plan for this revision. (Show Details)
kamil added a reviewer: atul. kamil added 1 blocking reviewer(s): michal.
.buildkite/emscripten.yml
19–20 ↗(On Diff #37825)

According to the docs, continue_on_failure: true won't change the status of the build, so event if this succeeds I think the build will still fail?

So that means that build-db-wasm and git diff lines aren't really needed here if I understand it correctly.

Will run on the MacBook Air (where it was previously failing) here: https://phab.comm.dev/D11245

After making changes in C++ files without committing generated files it failed, executed Clean on failure and Emscripten build which executed clean command also failed, seems fine.

Publishing this a potential fix for ENG-10380

ashoat added inline comments.
.buildkite/emscripten.yml
3 ↗(On Diff #47499)

What's key do here? Did you need to add it because you added the clean step?

This revision is now accepted and ready to land.Thu, Mar 20, 5:59 AM
.buildkite/emscripten.yml
3 ↗(On Diff #47499)

Yes, it is for the condition below, in line 16