Skip to content

Commit

Permalink
remove mentions of da-int servers (#2485)
Browse files Browse the repository at this point in the history
  • Loading branch information
garyverhaegen-da authored Aug 12, 2019
1 parent bbfa0a1 commit bf5995f
Show file tree
Hide file tree
Showing 13 changed files with 12 additions and 549 deletions.
28 changes: 0 additions & 28 deletions dev-env/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,31 +62,3 @@ to be set by `dade-common`).
contains libraries for dev-env usage, assume its immutable.
* `DADE_NIXPKGS` - points to a GC root which is a symlink to a Nixpkgs snapshot
used by dev-env, used only in `dade-dump-profile`.


## Versioning

We use Nix store paths as versions of dev-env. Briefly, this means
that non-`da` repositories will have a `dev-env/dev-env.version` file
with the Nix store path of the desired dev-env version. Please see the
[design doc of DEL-1294][design-doc] for details.

## Changelog

Notable changes to the dev-env should be added to `UNRELEASED.md`.
From there, they can be move to `CHANGELOG.md` with the
`update-changelog` script from ledger. Run the script as:

$ ../ledger/scripts/update-changelog UNRELEASED.md CHANGELOG.md $(cat VERSION)

This will move the entries from `UNRELEASED.md` to `CHANGELOG.md`.
Pull request references in the form of `[pr:1234]` and Jira references
in the form of `[jira:ABC-1234]` are automatically turned into links
during this process.

## Releases

Run `dade-freeze` to generate a release of dev-env, suitable for consumption in
other repositories. **Please note** That this is not published by the command.
Hydra will build new dev-env version from master as soon as it's pushed at:
http://hydra.da-int.net/job/da/master/cached.x86_64-darwin.dev-env
58 changes: 2 additions & 56 deletions dev-env/bin/README.md
Original file line number Diff line number Diff line change
@@ -1,60 +1,6 @@
# dade-nix-install
# dade-preload

This tool installs DA-built Nix distribution for MacOS X or Linux. It downloads
the release from:
- http://hydra.da-int.net/jobset/nix/release-3

Runtime prerequisites:
- `uname`, `mktemp`, `tar`, `curl`, `awk` to download and perform installation
- `sudo` needed if and only if `/nix/store` is not present or is not owned by
the current user.

Notes:
- the script checks for High Sierra induced failure of Nix and would reinstall
Nix installation automatically in this case.

# dade-raw-preload

This tool is meant to be run from a root account and precache all relevant
dev-env provided tools on a given machine. It finds the right user to
impersonate and downloads most recently built tools from `hydra.da-int.net`.

Runtime prerequisites:
- Nix installed in a single-user mode (e.g. via `dade-nix-install`)
- `uname` and `awk` to detect OS and architecture
- `sudo` to perform the prefetch from under the owner of the `/nix/store`

It is used to preload dev-env caches on developers workstations. A developer can
create a file which would disable the automatic precaching:

touch $HOME/.dade-raw-preload.skip

Note: downloaded tools are not added to Nix garbage collection roots, hence will
get deleted with next `nix-collect-garbage` invocation.

Non-code dependencies:
- Hydra jobsets
- http://hydra.da-int.net/jobset/da/master-dade-linux
- http://hydra.da-int.net/jobset/da/master-dade-darwin
- http://hydra.da-int.net/jobset/da/dev-env-next-dade-linux
- http://hydra.da-int.net/jobset/da/dev-env-next-dade-darwin

Used by:
- Casper policy to deploy jobs (owned by Edward Newman)
-- based of https://github.com/DACH-NY/da/blob/master/dev-env/bin/download-dade-service-script.sh

Tested by:
- https://github.com/DACH-NY/da/pipeline/jenkins/src/jobs/pipeline/dev-env/dadeRawPreload.Jenkinsjob
- http://ci.da-int.net/job/pipeline/job/dev-env/job/dade-raw-preload/

Implementation sketch:
- finds out the Nix store owner;
- checks for the skip file;
- finds the user's Nix profile and sources it;
- creates a temporary nix.conf to ensure `hydra.da-int.net` is used;
- sets up a temporary nix-shell with required tools (e.g. jq);
- fetches all store paths from all last evaluations of all jobsets;
- downloads them (aka "realizes" with `nix-store -r`).
This tool will force nix to build every derivation in the dev-env.

# Wrapped tools

Expand Down
3 changes: 0 additions & 3 deletions dev-env/bin/dade-copyright-headers
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
# To ignore files under a certain directory and below:
# $ touch some/directory/NO_AUTO_COPYRIGHT
# $ git add some/directory/NO_AUTO_COPYRIGHT
#
# For more information see the engineering handbook:
# http://engineering.da-int.net/docs/engineering-handbook/licenses-copyrights.html

import subprocess
import re
Expand Down
128 changes: 0 additions & 128 deletions dev-env/bin/dade-info

This file was deleted.

Loading

0 comments on commit bf5995f

Please sign in to comment.