-
Notifications
You must be signed in to change notification settings - Fork 284
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
Update to karma-chrome-launcher, removal of GitPod, refactor of export example to remove jQuery #716
Update to karma-chrome-launcher, removal of GitPod, refactor of export example to remove jQuery #716
Conversation
995384f
to
4484514
Compare
@jywarren updated Note I tested the Where did this url come from ? //34.74.118.242/api/v2/export/ |
15a2c77
to
d836b76
Compare
d836b76
to
d24a807
Compare
@jywarren @VladimirMikulic @rexagod ok going to hold on this for now. I got headless chrome working in travis and locally, but unfortunately the only way to make it work in Gitpod is by adding the --no-sandbox option, which is a security risk we prob shouldn't take? We could run PhantomJS in gitpod, but it's not ideal because its a) deprecated and b) not compatible if we bump other packages like Soo options are:
What are your guys thoughts? I sorta just lean towards 1, i figure theyll work out this sandbox stuff eventually and we can readd then. 3 would be awesome but time consuming! |
58383c2
to
6f6c993
Compare
beb3efb
to
d3d5048
Compare
I don't know if it will resolve that, but it will allow you to replace PhantomJS easily without having to configure a test image with a Chromium that works properly in such an environment. We were using a docker image on our end with a Chromium installation, but after a Chromium recent release the tests were not executing at all, because of an issue with headless environment. I don't recall what was the issue, but using the Chromium binary from puppeteer solved the issue for us. |
@MLefebvreICO puppeteer still presents the same issue with the sandbox :( so what do you think would be the most move from the other options i mentioned before? |
@jywarren ok I decided to drop Gitpod support in the mean time. I'll open an issue regarding updating our testing framework! I'm going to merge this to fix some of our CI issues |
Hi! Sorry, just catching up here. I believe You can read about @sashadev-sky can you add it back in, pls? Thanks!!! (resolved in #750, follow-up in #735) |
success: function(data) { opts.handleStatusRes(data, opts) }, // this handles the initial response | ||
}); | ||
} | ||
const fetchStatusUrl = (mergedOpts) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These look good, but without the upstream server working, I guess I would not have merged these changes without testing it against the cloud export server!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you elaborate please? I have some catching up to do! Is there anything that i should focus on immediately?
Hi Sasha - just replying on this too -- so, i think it's really important to ensure we don't break export functionality -- i believe the upstream cloud cluster is just offline right now, so I'm going to open an issue to ensure we test this new code against a working cloud export service. Actually, can we aim to do these kinds of changes in individual feature-specific PRs in the future? That can help us solve things separately without having to merge things we aren't yet sure of like the exporter, and not have them hold up the overall release. Thank you so much! This is a really amazing PR! Thanks for your fantastic work on it! |
Fixes #685 (<=== Add issue number here)
Fixes #713
Fixes #710
Fixes #642
References #681
Make sure these boxes are checked before your pull request (PR) is ready to be reviewed and merged. Thanks!
grunt test
If tests do fail, click on the red
X
to learn why by reading the logs.Please be sure you've reviewed our contribution guidelines at https://publiclab.org/contributing-to-public-lab-software
Thanks!
===========================
phantomjs
dependencieskarma
,mocha
,karma-mocha
,sinon
andkarma-coverage
--no-sandbox
option, so we are better off just removing support for it until this issue is resolved or we change our testing framework to one that doesn't require a real browser env.webpack.config.js
andWEBPACK.md
to removejquery
andpromise-polyfill
from vendor.js (no longer needed),leaflet.css
from vendor.css (we don't includeleaflet.js
for vendor.js to allow any leaflet version so should do the same with css), and updateport
8080 -> 8081 (8080 is typically in use in my dev env. so inconvenient)src/edit/DistortableCollection.Edit.js
to use ES6 syntax ... trying to make export.html file work correctly but stuck on thisTESTING.MD
leaflet
asdevDependency
for running tests0.20.7
->0.21.7
===========================