Commit graph

241 commits

Author SHA1 Message Date
Cole Helbling bb4ef37ea5
upload_s3: improve tags handling (#202) 2023-01-20 09:42:14 -08:00
Ana Hobden 24a94ec3f9
Re-release v0.0.2 (#201) 2023-01-19 11:14:08 -08:00
Cole Helbling e406c2dcd3
release-tags: needs write permissions to id-token for oidc authentication (#199) 2023-01-19 08:53:32 -08:00
Ana Hobden 17062e678a
Revert "Release v0.0.2 (#198)" (#200)
This reverts commit a29ebd7ae8.
2023-01-19 08:53:09 -08:00
Ana Hobden a29ebd7ae8
Release v0.0.2 (#198) 2023-01-18 14:05:49 -08:00
Ana Hobden fb168f4457
Pass SHELL through self-escalation (#195) 2023-01-18 10:14:06 -08:00
Cole Helbling a748f7628a
README: recommend safer curl options (#197)
Force HTTPS and TLS v1.2 (or later) connections, and also be quieter.
2023-01-18 10:09:21 -08:00
Cole Helbling 3f7366d2e2
enter-env.sh: init (#190) 2023-01-18 07:11:30 -08:00
Graham Christensen b3b168e32c
Add (nix:$name) as a prefix to the bash prompt (#191)
* Add `(nix)` as a prefix to the bash prompt

Make it clearer when you're in the terminal vs. not.

* bash prompt prefix: put the project's name in the terminal

* Blame our installer for the nix.conf

* fixup: adding the version to the nix.conf

* force a space after the prefix
2023-01-18 07:11:05 -08:00
Ana Hobden 9b27fe35a5
Update action section in readme with tag (#189) 2023-01-17 10:51:47 -08:00
Ana Hobden 797ceb86a9
Upload tags to S3 as well to avoid egress limits (#187)
* Upload tags to S3 as well to avoid egress limits

* Refine

* Fixes from Cole
2023-01-16 11:41:16 -08:00
Ana Hobden cf178bb0ef
Use remote action (#185)
* Use remote action

* Use nix installer everywhere

* Update README.md

* Fixup tag used

* Fixups
2023-01-13 13:26:15 -08:00
Ana Hobden 10c6cfac7e
Trim irrelevant mac warning (#186) 2023-01-13 21:03:48 +00:00
Ana Hobden f1df7ed432
Allow users to answer e at prompts (#183)
* Allow users to answer e at prompts

* Rename to currently_explaining

* Speeling

* Show options fully in prompt

* Better coloring
2023-01-12 19:29:13 +00:00
Ana Hobden 4338b78135
Refactor the README.md (#178)
* Refactor the README.md

* Compact a bit more

* Reflect comments
2023-01-12 09:37:20 -08:00
Ana Hobden 80c0f344c7
BUGFIX: CreateOrInsertIntoFile was not reverting (#180)
* BUGFIX: CreateOrInsertIntoFile was not reverting

* ci prod

* Fixup file naming

* Fix tempdir naming

* fixup

* In a module

* truncate
2023-01-11 22:09:12 +00:00
Ana Hobden 11e4d64c76
BUGFIX: CreateDirectory now properly prunes when it should (#181)
* BUGFIX: CreateDirectory now properly prunes when it should

* in a module
2023-01-11 21:56:29 +00:00
Ana Hobden 7ce0ae5391
Add some tests to CreateFile (#182)
* Add some tests to CreateFile

* in a module
2023-01-11 21:52:55 +00:00
Ana Hobden 82ec255060
Action extra conf can be lacking newline (#175)
* Try extra-conf with a heredoc

* Test case

* Other test case

* heredoc in yaml goes burr

* use special bash syntax for newline

* Correctly close quotes

* Remove testing symbols

* Use file method

* unwhoops jobs
2023-01-11 11:42:35 -08:00
Ana Hobden 20aa4cdf0b
bump v0.0.2-unreleased (#176) 2023-01-11 16:53:06 +00:00
Ana Hobden 344f2e184c
Fixup badges in README.md (#172) 2023-01-10 15:44:55 +00:00
Ana Hobden bbeed6a729
Release v0.0.1 (#168)
* Release v0.0.1

* Bump fixtures

* Fixup upload_s3.sh

Co-authored-by: Cole Helbling <cole.helbling@determinate.systems>
2023-01-09 13:53:55 -08:00
Cole Helbling 1849d9005a
upload_s3: move arguments to the top (#170) 2023-01-09 21:19:40 +00:00
Cole Helbling 12bf502bcb
upload_s3: provide git ish as argument (#169)
* upload_s3: provide git ish as argument

$GITHUB_SHA isn't the actual PR's HEAD's SHA, but a merge commit or
something.

* upload_s3: use an empty object if the file doesn't exist on s3

It's not pretty, but it works, and the md5sum of a file should never be
"null".

* release-branches: upload to `branch_${name}` instead
2023-01-09 20:38:53 +00:00
Ana Hobden f09bbae5a0
Update README.md to reflect recent changes (#165)
* Update README.md to reflect recent changes

* Update with incoming changes
2023-01-09 18:59:53 +00:00
Ana Hobden 6f50f8ad65
Rename daemon-user-count and make an alias (#159)
* Update actions too

* Fix nix_user_count to nix_build_user_count
2023-01-09 18:31:37 +00:00
Cole Helbling eebb77900f
upload_s3: sync already-existing dir to its destination (#167)
Rather than uploading the same files to S3 twice, upload once and then
sync the directory to its other destination.
2023-01-09 18:02:14 +00:00
Ana Hobden 31af68b23c
When an artifact already exists for an MD5, skip it without failure (#166) 2023-01-09 17:55:16 +00:00
Ana Hobden 6fbe857c0f
Update locks (#164) 2023-01-09 09:30:11 -08:00
Ana Hobden 232789ed1c
Fixup fdesetup isactive outputting when it should not (#163) 2023-01-09 09:24:24 -08:00
Cole Helbling e9e29aacb1
release: init action to release first party PRs (#162)
* release: init action to release first party PRs

* release: check if revision has already been uploaded

We don't want to waste bandwidth on files that already exist.

* release: consolidate s3 uploading into single script; check if artifact already uploaded

* release: only upload release for PR if it has the "upload to s3" label
2023-01-09 17:02:50 +00:00
Linus Heckemann f2606d3127
Linus/ds 576 nix store should be in path directly (#148)
* CreateOrAppendFile: setuid safety

* Apply a sensible default mode if the file didn't already exist

* remove some incorrect docs

* Implement CreateOrInsertFile and use it instead of Append for shell rcs

Ubuntu's bashrc has the following lines in it:

  # If not running interactively, don't do anything
  [ -z "$PS1" ] && return

This means that anything appended to the file will only take effect in
interactive sessions. However, we want noninteractive shells to have
Nix on PATH too, e.g. for remote builds. Therefore, we need to add our
snippet to the beginning of the file, not the end.

* Adjust test fixtures to match new behaviour

* interaction: indicate default for confirm correctly

* CreateOrInsertFile: use randomised temporary filename

* Fix temp file creation

* Apply permissions to temp file, not final file

The final file may not exist, and the temporary file is the one whose
permissions will actually be preserved.

* Use the right ActionError for renaming

* Test the SSH behaviour properly

* cargo fmt

* [DS-574] Write to zshenv instead of zshrc

* CreateOrInsertFile -> CreateOrInsertIntoFile

Also move appending behaviour in here.

* Update Linux fixtures

* update darwin-multi fixture

* fix fixture

* fmt
2023-01-09 08:30:28 -08:00
Cole Helbling d410728461
release: create releases for specified branches (#152)
* release: create releases for specified branches

* release: split action into one for branches, one for tags

* release: change the NIX_INSTALLER_BINARY_ROOT upon release

This way, we can be sure we use the right binaries to match the script.
2023-01-09 08:28:39 -08:00
Ana Hobden 844faa0d20
installplan should not copy self binary (#161)
* Make binary copy self, not library

* lints
2023-01-09 08:26:08 -08:00
Ana Hobden b60c4c84d0
Be more friendly to light terminals (#149)
* Be more friendly to light terminals

* Remove all white()

* Fix botched merge

* fmt

Co-authored-by: Linus Heckemann <git@sphalerite.org>
2023-01-05 08:55:25 -08:00
Ana Hobden cefc927ff5
Fix use of UID where username should be on Github actions (#157)
* Fix use of UID where username should be on Github actions

* Add check to ensure that nix profile add works

* It's nix profile install, ana
2023-01-05 07:56:09 -08:00
Ana Hobden ab00af7924
Show revert instead of step while reverting (#158) 2023-01-05 13:44:18 +01:00
Ana Hobden a2daff2980
Document release flow (#155)
* Add release flow

* Touchups
2023-01-04 19:06:28 +00:00
Cole Helbling 33390d0c8a
release: init action to create release with buildkite artifacts (#150)
* buildkite: also build x86_64-darwin

* release: init action to create release with buildkite artifacts
2023-01-04 10:10:11 -08:00
Ana Hobden 14cb35b3e4
Un-whoops success message (#153) 2023-01-04 10:09:16 -08:00
Ana Hobden e27d01f221
Correctly expected error in default planner if nix installed (#151)
* Correctly expected error in default planner if nix installed

* fixup
2023-01-04 09:32:45 -08:00
Ana Hobden 55906e15bb
Note how to test action in CONTRIBUTING.md (#141) 2023-01-04 09:32:29 -08:00
Ana Hobden d510fa812f
Resolve a system unit ordering bug after update (#144) 2023-01-03 10:31:17 -08:00
Ana Hobden deee222ad2
Fix ubuntu 16.04 support (#140)
* Fix ubuntu 16.04 support

* Format

* Correct env settings

* Rearrange plan a bit
2022-12-23 13:24:06 -08:00
Ana Hobden 3706bd387a
BUGFIX: Call nix-store --load-db & add sandboxed Qemu tests (#138)
* Add metadata do Cargo.toml

* Add docs link

* wip

* Get it mostly working

* Handle empty channels, local files, offline mode

* Get them working

* Expand CONTRIBUTING.md

* Expand more

* Correct some formatting/mistypes

* More notes about steps

* Correct speeling

* Improve ubuntu naming

* Add note about specific branch/checkout testing

* Review corrections

* Change match to if
2022-12-23 11:07:14 -08:00
Luc Perkins 44b9e623cc
Remove newline before access-tokens (#136) 2022-12-23 10:43:55 -08:00
Cole Helbling 08e6af0388
buildkite: run on x86_64 and aarch64 linux (#131) 2022-12-23 10:41:22 -08:00
Ana Hobden ec1eaea42e
Add some more branding to action (#129) 2022-12-23 09:49:23 -08:00
Ana Hobden 860bc4d040
Added metadata (#134)
* Add metadata do Cargo.toml

* Add docs link
2022-12-21 19:58:18 +00:00
Ana Hobden b7033d0a6c
Correct the error message if the user doesn't have a tty (#133) 2022-12-21 11:37:55 -08:00