Skip to content
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

Add git hash in config #253

Merged
merged 9 commits into from
Jul 20, 2023
Merged

Add git hash in config #253

merged 9 commits into from
Jul 20, 2023

Conversation

derpyplops
Copy link
Collaborator

Useful when you want to compare runs across multiple branches/commits

elk/run.py Outdated Show resolved Hide resolved
elk/run.py Outdated
)
except Exception as e:
print(f"Could not get git revision hash, stack trace: {e}")
return "ERROR_HASH_NOT_FOUND"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry to be so picky about this, but this really shouldn't be any kind of "error" because if the user installs from PyPI then it's expected that there won't be a git hash

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh ok. I had assumed that wouldn't be an issue as there aren't any users who are doing that now, or am I mistaken?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clément Dumas tried to do it. And I'd like to get more people using it soon

Copy link
Member

@norabelrose norabelrose left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After my fix this LGTM. The try-catch didn't actually fix the problem with non-editable installs before but now it does.

@norabelrose norabelrose merged commit 1b31702 into main Jul 20, 2023
6 checks passed
@norabelrose norabelrose deleted the add-git-hash-in-config branch July 20, 2023 21:54
norabelrose added a commit that referenced this pull request Jul 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants