-
Notifications
You must be signed in to change notification settings - Fork 4
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
snapshot: Include hostname in commit message #63
base: main
Are you sure you want to change the base?
Conversation
dd1298c
to
c45d343
Compare
@wmanley do you think |
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.
Agree in principle.
It would also be good to include the path to the worktree on that machine.
@wmanley do you think
socket.gethostname()
is safe to use anywhere?
I'd have thought so.
stbt_rig.py
Outdated
if "CI" in os.environ: | ||
return "CI" |
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.
What's the thinking here?
If we're reporting hostname we should just report hostname. We could separately report whether "CI"
is in os.environ
as necessary.
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's just for the stbt-rig unit tests to pass. But now I realise CI
is probably going to be set in many real-world uses of stbt_rig.py
.
Longer term I'd like to take this in another direction - snapshot being a long running process including watching the filesystem - and the snapshot on the portal only existing while that process is running. This would enable responding to changes like switching branch or saving pngs. We could also enable two way communication with the portal - pulling when we make edits on the portal. But I've got no current plans to work on this. |
So that the Portal can show a description such as "@user's uncommitted changes on {hostname}". Note: Hostname of GitHub Actions runners are like "fv-az1500-136" (ubuntu) or "Mac-1709811484995.local" (macos).
c45d343
to
ccbff9c
Compare
So that the Portal can show a description such as "@user's uncommitted changes on {hostname}".