A user, AntiMetaman, reported a rebuild failure after updating Discourse, triggered by a recent JS->Ember change. The issue stemmed from an S3-related rake task that incorrectly returned values, causing the build to abort. IAmGav pointed to a recent PR (#14802) as the source, and cvx quickly submitted a fix in PR #14865, which martin merged. However, the rebuild still failed for AntiMetaman, prompting Simon_Manning to identify the root cause: the rake task’s logic was still flawed. cvx issued a corrected PR (#14874), but AntiMetaman continued to experience issues. Simon_Manning clarified that the fix hadn’t yet reached the tests-passed branch, and advised waiting for tests to complete (indicated by a green checkmark or red cross). cvx confirmed the fix was not yet in tests-passed. Eventually, AntiMetaman confirmed the rebuild succeeded, indicating the fix had propagated and resolved the issue.
The error suggests that rake tasks cannot return so I think the merged fix referenced earlier is incorrect. I don’t have an environment set up to do any testing or create a pull request but I think using the following instead would fix this. (cc @martin)
Note that rebuilding right now (at time of writing) will still fail if you’re on tests-passed as the tests haven’t completed yet. If you look at the commit page, you’ll see an orange dot to the left of the title indicating that the tests are still in progress:
When that changes to a green tick or (more likely) a red cross, the tests are complete. Then you can rebuild. (An experimental test will probably fail, hence the red cross, but that doesn’t affect tests-passed.)
Edit: Looking at the tests-passed branch as @cvx suggests is more useful. Looks like it’s good to go now.