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

Use steps.Compile for mach package on Buildbot #372

Closed

Description

@aneeshusa

We use ./mach package -r to package Android APKs on the android-nightly builder; the next step is then to upload the built package via S3.

Currently, the packaging step is broken (should be fixed by #290); however, even though it fails, Buildbot still tries to run the next step of uploading to S3. This is because there is no heuristic for ./mach package and it is run as a regular ShellCommand.

Instead, we should add a heuristic in the make_step function in the buildbot/master/files/config/factories.py file that checks for ./mach package and uses steps.Compile to create that step. This a) is a closer semantic match (we're "compiling" the APK), and b) will stop the build if the packaging fails, so Buildbot doesn't try the S3 upload step.

This can simply check for package as an argument to mach instead of using a more complicated regex as the other heuristics do, because currently there is only one type of packaging: Android APK.

Activity

  1. lucasloisp commented on Oct 4, 2016

    @lucasloisp
    Contributor

    I would like to implement this. If I understand correctly, we should check that mach_arg re.matches "package" and assign step_class = steps.Compile. Right?
    I'll get to it later today

  2. aneeshusa commented on Oct 4, 2016

    @aneeshusa
    ContributorAuthor

    @lucasloisp that's correct! I've assigned this to you, leave a comment if you have any questions.

    Note: there are currently two copies of make_step, make sure to update both of them.

  3. added a commit that references this issue on Oct 12, 2016
  4. jdm commented on Oct 23, 2016

    @jdm
    Member

    Fixed by #503.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions