Skip to content
This repository has been archived by the owner on Nov 11, 2019. It is now read-only.

Commit

Permalink
Revert "please_cli: store nix and commit hash to index service on eac…
Browse files Browse the repository at this point in the history
…h deploy (#1877)" (#1954)

This reverts commit 28d29a6.
  • Loading branch information
Rail Aliiev authored Mar 13, 2019
1 parent b83c801 commit a273dcb
Show file tree
Hide file tree
Showing 13 changed files with 231 additions and 366 deletions.
3 changes: 0 additions & 3 deletions .taskcluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ tasks:
- queue:create-task:highest:aws-provisioner-v1/releng-*
- queue:scheduler-id:taskcluster-github
- queue:route:index.project.releng.services.requests.{{ event.base.repo.branch }}.*
- queue:route:index.project.releng.services.deployment.{{ event.base.repo.branch }}.*
- secrets:get:repo:github.com/mozilla-releng/services:branch:testing
- docker-worker:capability:privileged
- notify:irc-channel:#release-services
Expand Down Expand Up @@ -141,7 +140,6 @@ tasks:
- queue:create-task:highest:aws-provisioner-v1/releng-*
- queue:scheduler-id:taskcluster-github
- queue:route:index.project.releng.services.requests.{{ event.base.repo.branch }}.*
- queue:route:index.project.releng.services.deployment.{{ event.base.repo.branch }}.*
- secrets:get:repo:github.com/mozilla-releng/services:branch:staging
- docker-worker:capability:privileged
- notify:irc-channel:#release-services
Expand Down Expand Up @@ -183,7 +181,6 @@ tasks:
- queue:create-task:highest:aws-provisioner-v1/releng-*
- queue:scheduler-id:taskcluster-github
- queue:route:index.project.releng.services.requests.{{ event.base.repo.branch }}.*
- queue:route:index.project.releng.services.deployment.{{ event.base.repo.branch }}.*
- secrets:get:repo:github.com/mozilla-releng/services:branch:production
- docker-worker:capability:privileged
- notify:irc-channel:#release-services
Expand Down
2 changes: 1 addition & 1 deletion lib/cli_common/requirements-extra.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
"structlog"
],
"taskcluster": [
"Click",
"Logbook",
"Click",
"mozdef-client",
"raven",
"structlog",
Expand Down
2 changes: 1 addition & 1 deletion lib/please_cli/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ let
version = fileContents ./please_cli/VERSION;
src = filterSource ./. { inherit (self) name; };
src_path = "lib/${project_name}";
doCheck = false;
doCheck = true;
buildInputs =
[ makeWrapper ] ++
(fromRequirementsFile ./../cli_common/requirements-dev.txt python.packages) ++
Expand Down
16 changes: 7 additions & 9 deletions lib/please_cli/please_cli/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,22 +51,20 @@
POSTGRESQL_BIN_DIR = os.environ.get('POSTGRESQL_BIN_DIR', '') # must end with /

IN_DOCKER = False
if os.path.isdir('/proc/1'):
with open('/proc/1/cgroup', 'rt') as ifh:
IN_DOCKER = 'docker' in ifh.read()
with open('/proc/1/cgroup', 'rt') as ifh:
IN_DOCKER = 'docker' in ifh.read()

TEMPLATES = {
'backend-json-api': {}
}

DEV_PROJECTS = ['postgresql', 'redis']
OUTSIDE_PROJECTS = ['scriptworker/shipitscript']
PROJECTS = list(map(lambda x: x.replace('_', '-')[len(SRC_DIR) + 1:],
filter(lambda x: os.path.exists(os.path.join(SRC_DIR, x, 'default.nix')),
glob.glob(SRC_DIR + '/*') + glob.glob(SRC_DIR + '/*/*'))))
PROJECTS += ['scriptworker/shipitscript']
PROJECTS += DEV_PROJECTS

PROJECTS = OUTSIDE_PROJECTS + DEV_PROJECTS
PROJECTS += list(map(lambda x: x.replace('_', '-')[len(SRC_DIR) + 1:],
filter(lambda x: os.path.exists(os.path.join(SRC_DIR, x, 'default.nix')),
glob.glob(SRC_DIR + '/*') + glob.glob(SRC_DIR + '/*/*'))))
PROJECTS = sorted(PROJECTS)

# TODO: below data should be placed in src/<app>/default.nix files alongside
PROJECTS_CONFIG = {
Expand Down
Loading

0 comments on commit a273dcb

Please sign in to comment.