Commit Graph

44 Commits

Author SHA1 Message Date
Renan Castro
6f8029eb2e Fix browserstack tests - remove testing for IE 9.
- upgrade dev bundle for final version of meteor/babel
2022-02-18 14:37:58 -03:00
filipenevola
83d99bfbc6 Browserstack tests should run only on browserstack-check branch
These tests are flaky and also we are going to run them only before releases in a specific internal server
2021-03-30 10:05:13 -04:00
Christian Klaussner
0e9660097d Update self-tests for mongo-free autoupdate 2018-11-03 13:32:01 -04:00
Ben Newman
a756af487b Merge branch 'devel' into release-1.7.1 2018-07-18 12:42:01 -04:00
Ben Newman
2450ffe84d Remove unreliable modification of Autoupdate versions from self-test. 2018-07-16 18:59:51 -04:00
Toine van Kampen
92b72bc46b Fix Failing Tests
Ensure Hot Code Push and Package Tests account for possible multiple runs.
2018-07-15 10:17:01 +10:00
James Burgess
c9ff7a55aa Fix flakey test 'javascript hot code push' 2018-02-03 11:57:18 +01:00
Ben Newman
66e2c5f894 Revert "Mark JS hot-code-push test "slow" so CircleCI will skip it."
This reverts commit 5ae7a0954d.
2018-01-16 20:24:53 -05:00
Jesse Rosenberger
e8fad2af2d Define Sandbox clients when running versioning hot code push test.
Since this test utilizes the `testWithAllClients` technique, which runs
the tests in various clients/browsers, it's necessary for the tests
`Sandbox` to define `clients`, otherwise the function within
`testWithAllClients` will not be executed at all.  This was causing this
particular test to always return success (it was running without failure
on exactly zero clients).

Also the technique of setting `this.baseTimeout` appeared to cause
problems, likely because it overrides various other values instead of
using `waitSecs` (we don't use the `baseTimeout` technique in other
places within self-tests either).

Discovered during testing, as mentioned in
https://github.com/meteor/meteor/pull/9439#pullrequestreview-83139232.
2017-12-13 16:07:59 +02:00
Ben Newman
5146864012 Merge branch 'release-1.5.1' into release-1.6 2017-07-10 13:22:45 -04:00
Ben Newman
86eedd4bc6 Make METEOR_WATCH_PRIORITIZE_CHANGED opt-out instead of opt-in.
This restores the behavior of 8c70716954 by
default, with the option of disabling the prioritized file watching system
by setting METEOR_WATCH_PRIORITIZE_CHANGED explicitly to "false".

The self-tests where the environment variable is explicitly set form a
nice to-do list of tests that should be improved to be more robust to cope
with differences in file watcher timing.

Helps with #8648 and similar issues.
2017-07-10 12:31:11 -04:00
Ben Newman
42526ea5a8 Additional timeouts for CSS hot code push tests. 2017-06-27 19:22:04 -04:00
Ben Newman
5ae7a0954d Mark JS hot-code-push test "slow" so CircleCI will skip it.
This test has been the primary source of test suite unreliability in
recent weeks. By marking it "slow" I'm effectively disabling it on
CircleCI, which I think is acceptable because (1) it is, in fact, quite
slow; (2) it passes locally on Linux; and (3) it depends on the timing of
file change notifications, which is a recipe for test flakiness due to the
general non-determinism of file watching, but not necessarily a sign of a
broken developer experience.

Like other "slow" tests, I will keep running this test locally via

  meteor self-test --slow 'javascript hot code push'

as part of the manual QA testing that we do.
2016-10-22 13:56:06 -04:00
Ben Newman
0492b21333 Attempt to fix hot-code-push test by adding additional timeout. 2016-10-22 11:59:45 -04:00
Martijn Walraven
0486b473e8 Make some more self tests pass 2016-03-18 20:40:57 +01:00
Slava Kim
39d8aef3d9 move files into console/ tool-testing/ 2015-08-06 16:39:00 -07:00
Sashko Stubailo
90f36cc3eb Fix the hot code push tests by adding packages 2015-08-06 16:20:08 -07:00
Sashko Stubailo
a50095b2a6 Remove lots of mentions of meteor-platform in tests 2015-08-05 15:15:13 -07:00
Slava Kim
8a8db83d29 Move files into tools/utils 2015-08-03 20:32:38 -07:00
Slava Kim
5c21cc8490 Fix the test to match new error message 2015-08-01 13:01:57 -07:00
David Glasser
779f942aa3 Improvements to hot-code-push test
This test had been somewhat flaky.  It seems to be less flaky now.
Changes include:

- Trying to not send the client->server logging RPC if the client is
  about to reload due to autoupdate
- Making sure that the client doesn't send anything at all until a
  little bit after starting, in order to make the ordering of messages
  between tool-printed and server-printed messages more predictable

Also updated from standard-app-packages to meteor-tool.
2015-04-02 16:45:39 -04:00
David Glasser
2eb2f426e5 Fix self-test broken by bb271987e
Note that this test has been flaky in the past, but this was just a full
breakage.
2015-04-02 16:45:39 -04:00
Avital Oliver
aa6e1b3909 Remove unused tag from self-test 2015-02-11 19:40:40 -08:00
Sashko Stubailo
23e71a764f Mark two tests as client-refresh 2015-02-10 11:42:36 -08:00
Sashko Stubailo
e7167e5257 Factor out almost all fs. and path. calls in the tool
This will be useful when we want to be smart with windows file paths later
Also, all of the file calls are asynchronous with fibers now, which comes with
many benefits.

This is a combination of 23 commits. Original messages:
Wrap a large number of fs calls inside files.*

Convert a few more fs calls to files.*

More moving fs.* to files

Implement read/write streams and open/read/close

Get rid of fs from auth.js

Remove fs and unused imports from catalog-local and catalog-remote

Remove unused imports from catalog.js

Replace a whole lot of fs calls

Fix error

Migrate a lot more fs. calls to files.

Add a temporary symlink method

Convert old test to files.*

Use files.pathX instead of path.x everywhere

Replace path.x to files.pathX in tests

Small fixes to files.js and one rename

Make cleanup run in a fiber

Make wrapping functions take function name in case we need it

Add some timeouts and stuff to HCP tests

wrapFsFunc also makes a sync version of the function

Sometimes you just don't want to yield!

Make sure JsImage readFromDisk doesn't yield

Remove unused imports from npm test

Change order of test now that some things don't yield

Fix missing files import, and add a debug error printout
2014-12-15 15:32:06 -08:00
David Glasser
7d4757b3ac Show package changes and prerelease warnings
This reimplements functionality that had been removed as part of the
`isopack-cache` branch refactoring.

Information about package changes is encapsulated inside a
PackageMapDelta object on the ProjectContext.  It is the responsibility
of the command that prepares the ProjectContext to choose to call
projectContext.packageMapDelta.displayOnConsole at the appropriate time
if it wishes to display changes.

Part of #3006.
2014-12-01 01:26:35 -08:00
David Glasser
1d4c3e7387 comment tweaks 2014-11-25 09:35:34 -08:00
David Glasser
a0c05857d9 Fix client refresh bundle failure crash
hot-code-push file passes
2014-11-25 09:06:28 -08:00
Justin SB
828debbeb4 Add a sleep to the CSS HCP test 2014-10-10 02:58:49 -07:00
Justin SB
5e2cb2bfc5 Remove 'random' pauses in HCP tests; insert the one which works
Still better to fix this properly, but this gives us a single starting point
2014-10-04 17:16:03 -07:00
Justin SB
d26387fdd7 More delays in JS HCP self-test 2014-09-19 20:45:07 -07:00
Justin SB
4d572fcc1d Insert some pauses to see if this does indeed fix the self-test
This would be a hack, but it does seem to work
2014-09-19 20:17:58 -07:00
Emily Stark
404f1cc17e Remove trailing commas 2014-09-09 16:41:06 -07:00
Matthew Arbesfeld
0bf177ca0b Create more hot code push tests and let --browserstack use many browsers. 2014-08-29 11:07:13 -07:00
Matthew Arbesfeld
c9476a350f Fix typo in autoupdate and bump autoupdate package version. 2014-08-13 17:36:12 -07:00
Matthew Arbesfeld
1f6f15dc20 Fix autoupdate in cases where Autoupdate.autoupdateVersion is set.
If Autoupdate.autoupdateVersion is set outside of the Autoupdate
package, we wouldn't notify the client of the new version. This
patch simplifies the updating logic by only having one document
per version type.
2014-08-10 17:27:22 -07:00
Matthew Arbesfeld
4d288bd39b Fix the case where the autoupdateVersion and autoupdateVersionRefreshable
strings are identical in the autoupdate package.

If the server set AUTOUPDATE_VERSION, this case was alsways triggered.
2014-08-06 17:36:12 -07:00
David Glasser
ddc3657e4f Watch files which fail before emitting a resource
Regression introduced by the CSS watching code (specifically, f230eba62)
by the sourceIsWatched check. We need to be able to tell the difference
between "source handler didn't do anything because there was an error"
and "source handler didn't do anything because it's web-specific and
this is an os arch".

A simple fix would have been to interpret compileStep.error as
"sourceIsWatched = true", but I didn't think of that until after doing
it the slightly more complicated but more precise way :)

Also, ensure that if the runner rebuilds the client and there's an
error, it properly kills the app process (and the watchers and the
keepalive interval, etc).
2014-08-04 21:32:22 -07:00
David Glasser
ab804499ca fix hot code push test to create directories
presumably this was previously tested on a checkout where
tools/tests/apps/hot-code-push-test/client existed, but git doesn't know
how to check in empty directories.  (another alternative would be to
check in a dummy file in that directory)
2014-07-21 16:38:39 -07:00
Matthew Arbesfeld
0fc0fce64a Fix Avi's comments. 2014-07-09 10:53:21 -07:00
Matthew Arbesfeld
ee0b9eea51 Update tests 2014-07-09 10:31:44 -07:00
Matthew Arbesfeld
4b88e70629 Fix client css insert 2014-07-09 10:31:44 -07:00
Matthew Arbesfeld
f230eba62b Client CSS and template injection. 2014-07-09 10:31:44 -07:00
Matthew Arbesfeld
ff3c9746f0 Implement client side testing for self-test.
This patch enables a user to pass --phantomjs and/or --browserstack to
`meteor self-test` to run tests against a connected client.
2014-07-01 18:12:07 -07:00