-
Notifications
You must be signed in to change notification settings - Fork 34
Add citizenlab url management with porcelain #1057
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
Open
aagbsn
wants to merge
41
commits into
master
Choose a base branch
from
add_citizenlab_url_management_with_porcelain
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
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
Conversation
This file contains hidden or 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 test helpers from oonimeasurements: create_jwt, create_session_token, client_with_admin_role, client_with_user_role FIXME: validation of session still fails, monkeypatch auth didn't seem to work
this is to preserve the keys in json response for backwards compatibility
update handler accepts either being None to differentiate behavior
api change in filelock 3.11.0 means that FileLock is not shared between threads by default
raises exception if lock was not held
this fixes hanging git processes left by clone_from
10 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This is the same service as #1050 but with gitpython replaced with https://dulwich.io/ (https://github.com/jelmer/dulwicha) which is a python implementation of git. The reason for the switch is that the gitpython project spawns a git process but leaves hanging zombie processes that consume file descriptors
gitpython-developers/GitPython#1333
gitpython-developers/GitPython#1215
It seems that using the _clone() method (e.g. clone_from()) is the culprit because swapping out clone_from with dulwich.porcelain.clone solved the zombie process problem, so I just replaced the rest of the library and this eliminates git and gitpython as dependencies.