Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upqubesos.github.io: travis builds ~/old_site using merge head instead of base #2935
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
jpouellet
Jul 22, 2017
Contributor
@marmarek I've attempted various solutions similar to what I'd tried earlier in my initial travis PR & initial spell-checking PR, but everything feels like an ugly hack. Help requested.
Spell checking has been re-written and is now only blocking on this. It works fine for qubes-doc (baseline PR & log, misspelling PR & log), but not for qubesos.github.io (misspelling PR & false-negative log).
|
@marmarek I've attempted various solutions similar to what I'd tried earlier in my initial travis PR & initial spell-checking PR, but everything feels like an ugly hack. Help requested. Spell checking has been re-written and is now only blocking on this. It works fine for qubes-doc (baseline PR & log, misspelling PR & log), but not for qubesos.github.io (misspelling PR & false-negative log). |
added a commit
to marmarek/qubesos.github.io
that referenced
this issue
Jul 23, 2017
marmarek
referenced this issue
in QubesOS/qubesos.github.io
Jul 23, 2017
Merged
travis: use separate working directory for main repo too #114
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Jul 23, 2017
Member
The important difference is: in qubes-doc (and others) we have this in .travis.yml:
install: git clone https://github.com/${TRAVIS_REPO_SLUG%%/*}/qubesos.github.io ~/qubesos.github.io
script: ~/qubesos.github.io/_utils/travis.sh
But on qubesos.github.io we have just:
script: ./_utils/travis.sh
So, in the later case, we use sources already downloaded by travis, but for qubes-doc we download "old" sources explicitly.
Let me try to fix this asymmetry: QubesOS/qubesos.github.io#114
Example fixed diff: https://travis-ci.org/marmarek/qubesos.github.io#L742
|
The important difference is: in qubes-doc (and others) we have this in .travis.yml:
But on qubesos.github.io we have just:
So, in the later case, we use sources already downloaded by travis, but for qubes-doc we download "old" sources explicitly. |
jpouellet commentedJul 22, 2017
If the PR is for a submodule, everything goes as expected.
If the PR is for qubesos.github.io itself, then ~/old_site is built using the merge HEAD (newer commit) instead of the merge base (older commit).
This is evident through the diffs, where diffs for PRs against qubesos.github.io itself only ever contain something like:
Example of non-empty travis diff against qubes-doc (demonstrating correct behavior):
Example of empty travis diff against qubesos.github.io (demonstrating incorrect behavior):