-
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
push vs PR commit #55
Comments
@yarikoptic Appveyor's build objects have a |
sad, could you please file and issue with travis? (I am still hopeful to look forward to just have those resolved instead of us coming up with workarounds) |
@yarikoptic Support ticket filed. |
one possible workaround for this and #42 (commit time) could be: establish a local clone of the repository with the fetch of all PRs refs, as I mentioned in #42 (comment) . It would unlikely work for historical PRs. |
I wonder if a lightweight solution could be to just get the corresponding PR pull/head refs, e.g. like
(but this doesn't work... just trying to mimic on what git is likely to be doing, may be agent needs to be overriden) then we could mate both commits (PR head and merge). Another strategy could be to take information about parent commit from a CI which supports it before considering a CI which doesn't |
Please choose any path you like @jwodder to go forward on this one. IMHO local cached clone might be best since would allow for other interrogations and might help reduce needed amount of API calls -- so we could interrogate clone first (e.g. for push-vs-pr commit , or commit date, or for this specific issue I think we should use push commit as the |
@yarikoptic I don't think a local clone would work. Aren't the merge commits something created on the fly by Travis rather than something that actually exists in the repo? How did Also, getting the PR head from the GitHub API wouldn't work, as it could have changed since the build was run. |
@yarikoptic I think |
@yarikoptic Do we want to add a field with the same meaning as |
we fetch all those merges too, see #42 (comment) referenced above.
yes. For those -
by itself it is a bit misleading.
sorry, not following -- I think we are already talking about adding a new field Re |
You said that "we should use push commit as the |
fair enough... ok -- what about adding |
@yarikoptic So:
Is that what you want? * I'd actually prefer the unknown value to be " |
well - you started to implement support as |
What I wonder now how to address the issue that I might want just |
Which two being available? I count three different commit hashes we could be interested in:
|
clarification question:
I think that CI does not create merge commit and takes it from the PR's merge ref from github. Am I incorrect? If I am correct, we have only 2 commits: head or merge ref, and then CI runs on one of them for the PR (thus some times we do see two separate runs). So there are no 3 commits, just 2 (PR head and merge). |
moreover if PR "merge" could be fast forwarded, there might even be no separate |
I don't know.
Well, there are three definitions of "the commit associated with this build." |
please check. E.g. by using that
I kept mentioning, and comparing those heads to the ones you see in CIs for a PR.
yeah - we (well, probably I) confused ourselves by choices. But I think we are arriving to finale with the next option which I think would be the best ever:
Then regardless of either a CI merges, or does some other dance to prepare build state commit -- |
@yarikoptic It appears that the merge commits are created by GitHub. However, once a PR is updated, the old merge commit ceases to exist. |
even though they might disappear (#55 (comment)), if either cron job is ran fast enough, or we figure out how to establish |
I had mentioned that I had only github actions in one folder and apparently travis + appveyor gets sorted out into another:
because:
so 5a27faf is the merge of that PR commit into corresponding branch.
For the purpose of
tinuous
I would have liked to have all of those under the same commit/directory for the PR or it would be hard to impossible to bring them together into coherent collection of the CI logs for a given state of the PR. I wonder if that is possible?! is the original commit of the PR branch returned by travis and appveyor? then may be we could haverefcommit
andrefcommit_abbrev
or alike.The text was updated successfully, but these errors were encountered: