Commit fa4988e4 authored by Aki Sasaki's avatar Aki Sasaki
Browse files

Bug 1701608 - remove perma-busted python dependency generator. r=releng-reviewers,jmaher

I have manually pinned the requirements, and partials are working. We'll lose a way to auto-update our dependencies, but a) it's perma-busted, so realistically we're just losing a busted task, and b) mhentges is working on a way to auto-update pinned dependencies in-tree.

Differential Revision: https://phabricator.services.mozilla.com/D110148
parent 44a2bdc3
Loading
Loading
Loading
Loading
+0 −13
Original line number Diff line number Diff line
@@ -239,19 +239,6 @@ jobs:
          - {weekday: 'Monday', hour: 10, minute: 0}
          - {weekday: 'Thursday', hour: 10, minute: 0}

    - name: python-dependency-update
      job:
          type: decision-task
          treeherder-symbol: Nfile
          target-tasks-method: python_dependency_update
      run-on-projects:
          - mozilla-central
      when:
          by-project:
              # No default branch
              mozilla-central:
                  - {weekday: 'Monday', hour: 10, minute: 0}

    - name: raptor-tp6m
      job:
          type: decision-task
+0 −2
Original line number Diff line number Diff line
@@ -146,8 +146,6 @@ jobs:
        parent: push-to-try
    periodic-updates:
        symbol: I(file)
    python-dependency-update:
        symbol: I(pip)
    firefox-snap:
        symbol: I(snap)
    firefox-flatpak:
+0 −45
Original line number Diff line number Diff line
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
---
loader: taskgraph.loader.transform:loader

transforms:
    - taskgraph.transforms.python_update:transforms
    - taskgraph.transforms.task:transforms


job-defaults:
    name: python_dependency_update
    description: Update requirements.txt
    run-on-projects: []
    treeherder:
        kind: build
        platform: linux64/opt
        tier: 1
    worker-type: b-linux
    worker:
        implementation: docker-worker
        os: linux
        docker-image: {in-tree: python-dependency-update}
        taskcluster-proxy: true
        max-run-time: 2400
        command:
            - /runme.sh
        artifacts:
            - name: 'public/build/requirements.txt.diff'
              path: '/home/worker/artifacts/requirements.txt.diff'
              type: file
    scopes:
        - secrets:get:project/releng/gecko/build/level-{level}/arc-phabricator-token


jobs:
    funsize-update-generator:
        treeherder:
            symbol: pydep(fug)
        worker:
            env:
                REQUIREMENTS_FILE: "taskcluster/docker/funsize-update-generator/requirements.in"
                PYTHON3: "1"
                REVIEWERS: "sfraser, bhearsum"
+0 −34
Original line number Diff line number Diff line
FROM ubuntu:bionic
MAINTAINER Ben Hearsum <bhearsum@mozilla.com>

# Required software
ENV DEBIAN_FRONTEND noninteractive

# %include python/mozbuild/mozbuild/action/tooltool.py
ADD topsrcdir/python/mozbuild/mozbuild/action/tooltool.py /setup/tooltool.py

# %include testing/mozharness/external_tools/robustcheckout.py
ADD topsrcdir/testing/mozharness/external_tools/robustcheckout.py /usr/local/mercurial/robustcheckout.py

# %include taskcluster/docker/recipes/hgrc
COPY topsrcdir/taskcluster/docker/recipes/hgrc /etc/mercurial/hgrc.d/mozilla.rc

# %include taskcluster/docker/recipes/install-mercurial.sh
ADD topsrcdir/taskcluster/docker/recipes/install-mercurial.sh /setup/install-mercurial.sh

ADD setup.sh /setup/setup.sh
ADD requirements.txt /setup/requirements.txt

RUN cd /setup && ./setup.sh

COPY runme.sh /
COPY scripts/* /home/worker/scripts/

ENV           HOME          /home/worker
ENV           SHELL         /bin/bash
ENV           USER          worker
ENV           LOGNAME       worker
ENV           LC_ALL        C.UTF-8
ENV           LANG          C.UTF-8

CMD ["/runme.sh"]
+0 −15
Original line number Diff line number Diff line

==Python Dependency Updates==

This docker image contains the necessary dependencies and scripts to update
in-tree requirement.txt produced by `pip-compile --generate-hashes`, produce a
diff, and submit it to Phabricator.


==Quick Start==

```sh
docker build -t python-dependency-update --no-cache --rm .

docker run -e PYTHON3="1" -e BRANCH="mozilla-central" -e REQUIREMENTS_FILE="taskcluster/docker/funsize-update-generator/requirements.in" python-dependency-update
```
Loading