Project

General

Profile

tickets #21856

Self hosted websites for openqa.suse.de tests

Added by dasantiago over 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
Servers hosted in NBG
Target version:
-
Start date:
2017-08-10
Due date:
% Done:

100%

Estimated time:
(Total: 0.00 h)

Description

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi!

On some tests (firefox) in openQA.suse.de we are relying on some third
party websites (html5test.com). This lately has been causing some
problems as shown in https://progress.opensuse.org/issues/20228

Fortunately the website code is hosted in github: https://github.com/We
bPlatformTest/HTML5test and in https://github.com/WhichBrowser/Parser-
PHP

As discussed, the best option would be to setup a page at
static.opensuse.org

However the first website uses a backend, but since we are interested
only in the front page, i clone the repo to gitlab and i cleaned the
webpage. So it's not using backend anymore. Please check the project
at:
https://gitlab.suse.de/dasantiago/html5test_clean/tree/master/public

This clean version is running on: http://tragicbox.suse.cz:3000/index.h
tml

All the external links point to the original locations (only the "save
results" isn't working).

However for this project to be completely independent, i still need to
change a javascript call to the whichbrowser project. Unfortunatelly i
was unable to install it localy.

The whichbrowser project just parses the UserAgent headers with regular
expressions and returns some javascript that is used in the html5test
page.

Please setup the domain for project whichbrowser and let me know the
url. After that i'll do the final change to the html5test_clean project
so it can be set in the static.opensuse.org domain.

Best regards,
David Santiago 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBAgAGBQJZiyQGAAoJEM+1kXb3oIrKEkkP/RLFOcvEWb3TnLAA78W0uQ6G
GE/RCW+qLXhtA/rRd+fTnxyM8h9ghrntqDt0osBaKwgMxDEQ0TkY1SK8UJPHdT2Q
zcZzaNYDCp6yB2lp+Na0FGBlpnR/DOJOhbWMnMZ+fuMyaDHJ4SXyKZ42smxg1vRo
pIsKjDelru9cIAL/Vr8UoUt+nLrTlYz5dpfaSihNXV9P0e3GLV0rK0noUfzbeGx+
FpS7WbaNipy/Vlvfca7p8o6aC577yUEPJdV1vcyMlNDyP+r89zOVuBPTLOn0lZ/K
8zrT1r4rUDalLhz4Y25FZvBrFXo8usj4AyGxMY+BWChGSww3N92UFHAWxdPaJoIs
BOgIbUZPUXfQSDirQYUbB+j9wIOIiK62tfxoEkqGP/7UkboYZBKhbwznwfIC1x9q
oBevXUJqCCcnY1tisAUvjU5G1xDtL02lFHf3J8iZIu3+dzeDkR9mV8Jt0eHBtbz7
DpM4hOQTMWzfBHZT5vMxFBTqppyg+O5WYobhLvdk4o5vXww0wYML1Pqp7sTmNzj8
OOirXF/pwtRYMIBq5+SQATljORENmwZDNFt+4OMqp/MStRztmTRZkP92lrF7xhe2
4R8BtFQWRh4L6z6NcpmtE6zKhuvg1FlS6gDM8nH6H1XgfvQDgBEwLovlF5KuAgrX
np5I8m6f48Ano3G30FD7
=w3jQ
-----END PGP SIGNATURE-----


Subtasks

History

#1 Updated by tampakrap over 4 years ago

  • Category set to Servers hosted in NBG
  • Assignee set to tampakrap

#2 Updated by tampakrap about 4 years ago

  • Private changed from Yes to No

#3 Updated by tampakrap about 4 years ago

  • Status changed from New to Closed

The code is at https://github.com/openSUSE/HTML5test The PHP parts have been stripped out, thus the site is totally static now, so I deployed it on static.opensuse.org.

#4 Updated by TBro about 4 years ago

tampakrap wrote:

The code is at https://github.com/openSUSE/HTML5test The PHP parts have been stripped out, thus the site is totally static now, so I deployed it on static.opensuse.org.

And by "totally static" you mean?

https://html5test.opensuse.org/ is loading - at least for me accesing it with Firefox some really shitty + nasty Javascript redirections to the following services:

  • whichbrowser.net
  • buysellads.com
  • google-analytics.com

and maybe more, I didn't load all of this Javascript prevented by my Browser...

So on static.o.o instead of delivering content, for HTML5Test, this test does not load, but tries to detect my browser with whichbrowser.net, another gr8 piece of software, which tells us on their github page to not use it.

So... instead of having a failing html5test-external-service, we have a failing whichbrowser.net service for openQA in the future.

Great achievement unlocked.

Sorry, but if we do this, we should at least remove this ad-bullshit and google-analytics... than we can discuss if we want to have whichbrowser.opensuse.org as well to complete this html5test service and have it completely self-hosted.

Cheers,
Thorsten

#5 Updated by TBro about 4 years ago

  • Status changed from Closed to Feedback

#6 Updated by tampakrap about 4 years ago

fair enough, I disabled the webpage till the concerns above get resolved

#7 Updated by dasantiago about 4 years ago

Yes the whichbrowser JS call needs to be fixed. I'll fix that as soon as have some time (it's just some regular expression parsing the user-agent string).

Sorry about the ads, i use ublock, so i completely missed them :-(

#8 Updated by dasantiago about 4 years ago

I just did a generic cleanup of the webpage.

Please deploy it and confirm if everything is fine.

Btw, for some reason the result of test "Content Security Policy 1" in security gives a different value than the online version. I don't know why.

This is the PR, ready to get merged: https://github.com/openSUSE/HTML5test/pull/1

#9 Updated by tampakrap almost 4 years ago

I replied on the pull request

#10 Updated by dasantiago almost 4 years ago

Thank you.

I already updated the commit.

Those were assets that were not being referenced in the code anymore. So i removed them.

#11 Updated by okurz almost 4 years ago

This is an autogenerated message for openQA integration by the openqa_review script:

This bug is still referenced in a failing openQA test: rescue
https://openqa.opensuse.org/tests/584682

#12 Updated by tampakrap almost 4 years ago

  • Status changed from Feedback to Closed

done

Also available in: Atom PDF