-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide reproducible software environment deployment with GNU Guix #1
Open
civodul
wants to merge
3
commits into
c-torre:full-replication
Choose a base branch
from
civodul:guix-environment
base: full-replication
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: build | ||
on: [ push ] | ||
jobs: | ||
build: | ||
name: Build environment | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Guix cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.cache/guix | ||
# use a key that (almost) never matches | ||
key: guix-cache-${{ github.sha }} | ||
restore-keys: | | ||
guix-cache- | ||
- name: Install Guix | ||
uses: PromyLOPh/guix-install-action@v1 | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Build environment | ||
run: guix time-machine -C channels.scm -- shell -m manifest.scm -- python --version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
;; Set of GNU Guix channels to use to reproduce this computational | ||
;; experiment. Run: | ||
;; | ||
;; guix time-machine -C channels.scm -- shell -m manifest.scm | ||
;; | ||
;; to enter the environment built from this very Guix revision. | ||
|
||
(list (channel | ||
(name 'guix) | ||
(url "https://git.savannah.gnu.org/git/guix.git") | ||
(branch "master") | ||
(commit | ||
"dc90c0807d0a46cdd4b0a2c2b3f9becca9f97285") | ||
(introduction | ||
(make-channel-introduction | ||
"9edb3f66fd807b096b48283debdcddccfea34bad" | ||
(openpgp-fingerprint | ||
"BBB0 2DDF 2CEA F6A8 0D1D E643 A2A0 6DF2 A33A 54FA"))))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
;; GNU Guix manifest to set up the execution environment of this | ||
;; computational experiment. Run: | ||
;; | ||
;; guix shell -m manifest.scm | ||
;; | ||
;; to enter the environment, possibly adding '--container' to avoid | ||
;; interference with the host system. | ||
|
||
(specifications->manifest | ||
'("coreutils" | ||
"findutils" | ||
"sed" | ||
"grep" | ||
|
||
"python-wrapper" | ||
"python-matplotlib" | ||
"python-numpy" | ||
"python-pandas" | ||
"python-scipy" | ||
"python-tqdm")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
out of curiosity, shouldn't channel inferiors (that provide packages versions which are as close as possible to the minimal version constraints in
requirements.txt
) be defined?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is more of a philosophical than a technical question. It depends on the criteria that the authors applied to define those minimal version constraints, and that is hardly ever documented. In practice, judging from my own experience, version constraints are rarely useful for reproducibility. The fundamental assumption that "x.x or higher" yields the same results is simply wrong. Only strict version equality (same commit ID) has practical value.