You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 16, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 16, 2024. It is now read-only.
Use Salt gitfs to keep master synced with repo #264
This has been around for a long time, although I'm not sure exactly when it was added (at least as old as 2014.7.0, possibly as old as 0.16.3 based on a quick skim of the docs).
I'm not yet sure about how this would interact with the workflow of iterating on changes directly on the servo-master machine.
If we don't have a local filesystem we can edit, what's the procedure for doing test highstate against the live system? There are a few pieces (e.g., the web hooks, buildbot, etc.) that we have no testing for and, in practice, I've needed to do and roll out 3 or 4 fixup tries before I actually get the original patch that was r+'d live.
We can pass a command line flag to the salt command to point to a different configuration directory, which lets us set up test configurations that point at local files to use interactively. This way, regular salt commands continue to use the gitfs fileserver backend, and we can set up separate temporary directories for testing. I'd recommend putting such directories in /tmp so they don't stick around too long.
That being said, testing in production makes me uneasy and I'd prefer to build a better testing story for our configurations, both making testing inside Vagrant easier and adding more automated functional tests. It's just too easy to forget to pass a command line flag to Salt (I've done this more times on my own setup than I'd like to admit).
FYI, I've been looking into this for #350. The solution I mentioned above (custom config directories) won't work, but I've found an alternative solution. See #350 for the details.
Activity
metajack commentedon Mar 22, 2016
+1
Is this feature new? I don't remember seeing this back when we set this up.
aneeshusa commentedon Mar 22, 2016
This has been around for a long time, although I'm not sure exactly when it was added (at least as old as
2014.7.0, possibly as old as0.16.3based on a quick skim of the docs).I'm not yet sure about how this would interact with the workflow of iterating on changes directly on the
servo-mastermachine.Master needs pygit2 for gitfs
Master needs pygit2 for gitfs
Master needs python-git for gitfs
larsbergstrom commentedon Apr 7, 2016
If we don't have a local filesystem we can edit, what's the procedure for doing test
highstateagainst the live system? There are a few pieces (e.g., the web hooks, buildbot, etc.) that we have no testing for and, in practice, I've needed to do and roll out 3 or 4 fixup tries before I actually get the original patch that was r+'d live.cc @edunham
aneeshusa commentedon Apr 7, 2016
We can pass a command line flag to the
saltcommand to point to a different configuration directory, which lets us set up test configurations that point at local files to use interactively. This way, regularsaltcommands continue to use the gitfs fileserver backend, and we can set up separate temporary directories for testing. I'd recommend putting such directories in/tmpso they don't stick around too long.That being said, testing in production makes me uneasy and I'd prefer to build a better testing story for our configurations, both making testing inside Vagrant easier and adding more automated functional tests. It's just too easy to forget to pass a command line flag to Salt (I've done this more times on my own setup than I'd like to admit).
aneeshusa commentedon May 1, 2016
Hit the wrong button, whoops.
aneeshusa commentedon May 1, 2016
FYI, I've been looking into this for #350. The solution I mentioned above (custom config directories) won't work, but I've found an alternative solution. See #350 for the details.
Auto merge of #350 - aneeshusa:saltify-salt-master, r=edunham