-
Notifications
You must be signed in to change notification settings - Fork 29
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
GitHub action should use current repository #286
Comments
A note for the pull request #284: the tests should fail for #284 as it contains a bug that is fixed in #285. This is true when #284 was merged and tested with failures. |
Thanks for the analysis. This is most certainly correct. build_ocarina.sh can already fetch another repo, I will adjust the automated build accordingly. |
This issue should now be solved, I had to tweak the scripts to fetch the right repository. |
I'm creating this issue and providing some information that I'm examining in an attempt to explain why the pull request #284 passed the tests and failed when merged and hopefully fix a possible error in the automated build/test environment.
By looking at the automated build/test log for #284, we can see that, at a high level, it has the following key stages that are related to this discussion:
From the log, we can see that it does pull and check out the correct code with
/usr/bin/git checkout --progress --force refs/remotes/pull/284/merge
and yield the following message:which indicates that the current HEAD is
a768dfa
.However, in the
Build
stage, the log shows that it runscd ocarina-build ; ./build_ocarina.sh --scenario=github
which pulls the latest code directly from the main branch on GitHub.Provided there is no hidden arguments given in the above command, this runs the test against the latest code on GitHub (which is
5582e59
) rather than thea768dfa
code from the pull request.This speculation might be supported by the part of the log where it builds the code for archives.
In the same log for #284, it generates the following message when making the archive which attaches the master branch's hash value
5582e59
(possibly what the script gets from the currently checked-out branch) to the file name:In short, it might be worth checking if the build stage's
cd ocarina-build ; ./build_ocarina.sh --scenario=github
needs to be corrected to use the repository/code that is already checked out from previous stage.The text was updated successfully, but these errors were encountered: