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

qubesos.github.io: travis builds ~/old_site using merge head instead of base #2935

Closed
jpouellet opened this Issue Jul 22, 2017 · 2 comments

Comments

Projects
None yet
2 participants
@jpouellet
Contributor

jpouellet commented Jul 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:

--- /home/travis/old_site/feed.xml	2017-07-22 20:26:33.810322999 +0000
+++ ./_site/feed.xml	2017-07-22 20:27:10.958322999 +0000
@@ -6,8 +6,8 @@
 </description>
     <link>https://www.qubes-os.org/</link>
     <atom:link href="https://www.qubes-os.org/feed.xml" rel="self" type="application/rss+xml"/>
-    <pubDate>Sat, 22 Jul 2017 20:25:59 +0000</pubDate>
-    <lastBuildDate>Sat, 22 Jul 2017 20:25:59 +0000</lastBuildDate>
+    <pubDate>Sat, 22 Jul 2017 20:26:36 +0000</pubDate>
+    <lastBuildDate>Sat, 22 Jul 2017 20:26:36 +0000</lastBuildDate>
     <generator>Jekyll v3.4.5</generator>

Example of non-empty travis diff against qubes-doc (demonstrating correct behavior):

Example of empty travis diff against qubesos.github.io (demonstrating incorrect behavior):

@jpouellet

This comment has been minimized.

Show comment
Hide comment
@jpouellet

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).

Contributor

jpouellet commented Jul 22, 2017

@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 added a commit to marmarek/qubesos.github.io that referenced this issue Jul 23, 2017

travis: use separate working directory for main repo too
Do not start from what travis have downloaded, because in case of PR we
expect to build the old version first (but travis have downloaded new
one already).

Fixes QubesOS/qubes-issues#2935

@marmarek marmarek referenced this issue in QubesOS/qubesos.github.io Jul 23, 2017

Merged

travis: use separate working directory for main repo too #114

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

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

Member

marmarek commented Jul 23, 2017

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

qubesos-bot-jpo pushed a commit to qubesos-bot-jpo/qubesos.github.io that referenced this issue Jul 24, 2017

travis: use separate working directory for main repo too
Do not start from what travis have downloaded, because in case of PR we
expect to build the old version first (but travis have downloaded new
one already).

Fixes QubesOS/qubes-issues#2935
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment