Commit Graph

1968 Commits

Author SHA1 Message Date
aminya
a1bca32f34 declare core, cli and preset as external 2020-11-26 16:02:06 -06:00
aminya
cdf96a45ff declare the whole @babel babel-preset packages as external 2020-11-26 16:02:06 -06:00
aminya
77fabfb786 use babel-preset-atomic 2020-11-26 16:02:06 -06:00
aminya
84eb6c5546 use babel-plugin-add-module-exports 2020-11-26 16:02:06 -06:00
aminya
5062a9f2a9 remove async to generator 2020-11-26 16:02:05 -06:00
Amin Yahyaabadi
93a4f0b83a fix remaining 'babel-core's 2020-11-26 16:02:05 -06:00
Amin Yahyaabadi
4e85453221 babel proposal plugins to replace the old stage-0 plugin 2020-11-26 16:02:05 -06:00
Amin Yahyaabadi
c4c377a572 add babel react and flow. 2020-11-26 16:02:05 -06:00
Amin Yahyaabadi
f169f61abe Update babel-eslint 2020-11-26 16:02:05 -06:00
Amin Yahyaabadi
2cd409dcbb upgrade babel in script/package-json 2020-11-26 16:02:05 -06:00
aminya
17597a3b70 Update package-lock files 2020-11-26 15:49:42 -06:00
aminya
ae1aee7d2d Merge branch 'master' into upstream_master 2020-11-26 15:42:54 -06:00
Benjamin Gray
0a169b5794
Update the macOS Azure CI image to macos-10.15 (#21318) 2020-11-18 14:01:57 +03:00
Amin Yahyaabadi
5d3df55641
Run Prettier script/test (#21624)
* run prettier on script/test + replcae `==` with `===`

Fixes: 
script\test.js:391 Expected '===' and instead saw '=='. (eqeqeq)
script\test.js:394 Expected '===' and instead saw '=='. (eqeqeq)
script\test.js:474 Expected '===' and instead saw '=='. (eqeqeq)

* remove excess spawn 

The next line calls spawnTest
2020-11-02 17:55:48 +03:00
aminya
d50b3dca34 Merge branch 'master' into upstream_master 2020-10-30 20:21:39 -05:00
DeeDeeG
d600556858
CI: Get 32-bit Node via the official NodeTool task (#21490)
The official NodeTool@0 task can now download 32-bit Node even on Windows x64 hosts. (As of this PR: microsoft/azure-pipelines-tasks#13399)
2020-10-30 15:26:45 +03:00
aminya
20b3c24e1b Merge branch 'master' into upstream_master 2020-10-20 23:13:06 -05:00
Atom Build Bot
5b0a00b027
Merge postcss-selector-parser-6.0.4 into master 2020-10-13 05:12:01 +02:00
Musa Ibrahim
a60471b1d9
Merge pull request #21326 from Aerijo/lint-job
Separate lint into own job
2020-10-08 20:42:14 +01:00
Musa Ibrahim
5b8840b415
Merge pull request #21413 from DeeDeeG/bootstrap-apm-print-current-Atom-version
script/bootstrap: Make `apm --version` print the Atom version currently being bootstrapped
2020-10-08 20:31:52 +01:00
Benjamin Gray
40175271d2
Remove electron configuration (#21354)
* remove electron configuration
2020-10-08 20:14:44 +03:00
darangi
0414ee6b30 fix lint 2020-10-06 15:10:15 +01:00
darangi
32e92c13f0 add util-deprecate to snapshot blacklist 2020-10-06 14:49:11 +01:00
Benjamin Gray
76f80eadb8
Consistent CI job names (#21327)
* consistent job names
2020-10-06 16:46:12 +03:00
Amin Yahyaabadi
aca4c328af fix release notes config path 2020-10-03 18:44:09 -05:00
darangi
ab5e729e31 merge dependency bumps 2020-10-02 12:06:03 +01:00
Amin Yahyaabadi
609f2236ec parallelize clean 2020-10-01 22:02:00 -05:00
Amin Yahyaabadi
619ec1059f make test executable
Fixes https://github.com/atom-ide-community/atom/issues/204
2020-10-01 19:57:14 -05:00
Amin Yahyaabadi
1808785e66 missed upstream change 2020-10-01 19:09:42 -05:00
Amin Yahyaabadi
ca9daf7421
Merge pull request #198 from atom-ide-community/config-repo 2020-10-01 18:29:41 -05:00
Amin Yahyaabadi
4baccf2313 parallelize copy-assets 2020-10-01 05:54:09 -05:00
Amin Yahyaabadi
58ca358383 destructure REPO_OWNER, MAIN_REPO, NIGHTLY_RELEASE_REPO from config 2020-10-01 05:35:50 -05:00
Amin Yahyaabadi
d0ef9a1f22 add REPO_OWNER, MAIN_REPO, NIGHTLY_RELEASE_REPO to config 2020-10-01 05:31:04 -05:00
DeeDeeG
e49879918f script/bootstrap: apm prints the current Atom ver
Lets apm know where this repository's Atom metadata is located,
so that `apm --version` prints the version of Atom being bootstrapped.

Previously, this would print "unknown" if no Atom was installed to the
system, or whatever stable version was installed...
which was irrelevant info during the bootstrapping process.

This should be more straightforward, and less confusing.
2020-09-30 12:34:10 -04:00
Amin Yahyaabadi
ed3f73c1bd run prebuildLessCache in series 2020-09-30 01:46:31 -05:00
Amin Yahyaabadi
7c533694a7 Revert "run prebuildLessCache on a thread"
This reverts commit 8f1a2c42bffd2713904c321c0bdf7ec8ee71d146.
2020-09-30 01:46:31 -05:00
Amin Yahyaabadi
2ad224b2ad use async await in build 2020-09-30 01:46:31 -05:00
Amin Yahyaabadi
ebfea74cf7 make transpile parallel 2020-09-30 01:46:31 -05:00
Amin Yahyaabadi
cdd84502fa run prebuildLessCache on a thread 2020-09-30 01:46:31 -05:00
Amin Yahyaabadi
bab37eeda9 run transpileBabelPaths on a thread 2020-09-30 01:46:31 -05:00
Amin Yahyaabadi
6dc39006af run transpileCoffeeScriptPaths on a thread 2020-09-30 01:46:31 -05:00
Amin Yahyaabadi
cb41f48f51 run transpileCsonPaths on a thread 2020-09-30 01:46:31 -05:00
Amin Yahyaabadi
94897624f2 run transpilePackagesWithCustomTranspilerPaths on a thread 2020-09-30 01:46:31 -05:00
Amin Yahyaabadi
846b58336f run transpilePegJsPaths on a thread 2020-09-30 01:46:31 -05:00
Amin Yahyaabadi
28900612f1 don't set JOBS if already defined. 2020-09-30 01:46:30 -05:00
Amin Yahyaabadi
51b3a24d37 add option for showing version 2020-09-30 01:46:30 -05:00
Amin Yahyaabadi
6d4bd27cbd remove unnecessary env variable
It is not used in script-runner
2020-09-30 01:46:30 -05:00
Amin Yahyaabadi
db7005c41c update locks 2020-09-30 01:43:42 -05:00
Amin Yahyaabadi
5546bff4fc Merge branch 'master' into upstream_master 2020-09-30 01:37:15 -05:00
Musa Ibrahim
2bb82aafb4
Merge pull request #21398 from atom-ide-community/exclude-tests
exclude test folders from the packaged app
2020-09-29 09:57:19 +01:00
Amin Yahyaabadi
3baa299bf4
Merge pull request #190 from atom-ide-community/exclude-tests 2020-09-28 01:26:42 -05:00
Amin Yahyaabadi
83bc6b8379 exclude specific spec folders
Picked by hand to make sure they are test
2020-09-27 20:41:56 -05:00
Amin Yahyaabadi
449d6e6d80 exclude test folders from packaged app 2020-09-27 14:27:22 -05:00
Ash Wilson
efca1361f5 Prevent node_modules/nan pattern from matching node_modules/nanoid 2020-09-27 10:28:51 -04:00
Amin Yahyaabadi
29f3d28127 Merge branch 'master' into upstream_master 2020-09-26 14:52:21 -05:00
darangi
166fde8fdb fixed issue with re-open closed PRs 2020-09-25 08:54:39 +01:00
Amin Yahyaabadi
8dd9901ef8 use the pre-installed Visual Studio 2017 instead of windows-build-tools
Windows-build-tools v4 (which is an old unmaintaind version) installs 
Visual Studio 2015. But we can use the pre-installed 2017 in 
vs2017-win2016

Requires https://github.com/atom/apm/pull/892
2020-09-24 03:55:20 -05:00
Amin Yahyaabadi
6cc06dc029 Cache script/script-runner/node_modules
Fixes https://github.com/atom-ide-community/atom/issues/183
2020-09-23 07:19:19 -05:00
Amin Yahyaabadi
b0820ffd74 Merge branch 'master' into upstream_master 2020-09-23 07:04:04 -05:00
Amin Yahyaabadi
203ddae682 fix process.env.CI 2020-09-19 06:23:45 -05:00
dependabot[bot]
bd8036acca Bump acorn from 5.7.1 to 5.7.4 in /script
Bumps [acorn](https://github.com/acornjs/acorn) from 5.7.1 to 5.7.4.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/5.7.1...5.7.4)

Signed-off-by: dependabot[bot] <support@github.com>
2020-09-18 22:02:36 +03:00
Sadick
cd7a8e47e3
Merge branch 'master' into lint-job 2020-09-18 12:13:19 +03:00
Amin Yahyaabadi
f2f8a1e8cf install the latest dpkg 2020-09-18 03:55:06 -05:00
Amin Yahyaabadi
f40ac60e45 use sudo instead of fakeroot if available
fakeroot is slower than sudo
2020-09-18 03:55:00 -05:00
Amin Yahyaabadi
9f91544ad7 linux deb: don't compress unless on release-branch 2020-09-18 03:54:36 -05:00
Amin Yahyaabadi
b72c9049f4 install vst/script deps on IsSignedZipBranch 2020-09-18 01:09:03 -05:00
Amin Yahyaabadi
f3e9434410 add core main timeout retry trigger 2020-09-17 19:51:47 -05:00
Amin Yahyaabadi
4da6c7f544 Merge branch 'master' into upstream_master 2020-09-17 19:44:28 -05:00
Amin Yahyaabadi
7d14d560c1 Finalize in the end (not between retry attempts)
don't finalize until the end which the test fails or passes.
2020-09-17 18:46:28 -05:00
Amin Yahyaabadi
30c35eec46 add Error Downloading Update to the retry commands 2020-09-17 18:46:28 -05:00
Amin Yahyaabadi
0572568ef5 increase the retryNumber to 6 2020-09-17 18:46:28 -05:00
Amin Yahyaabadi
e187bf26cb Retry 4 times 2020-09-17 18:46:28 -05:00
Amin Yahyaabadi
c48aacd0e7 pass exitCode 2020-09-17 18:46:28 -05:00
Amin Yahyaabadi
8450f16bdb call the callback only on fail or success
Don't call the callback on retry
2020-09-17 18:46:28 -05:00
Amin Yahyaabadi
4f0acf4a83 call the callback after retrying 2020-09-17 18:46:28 -05:00
Amin Yahyaabadi
7063b48f05 Retry the timed out tests for a number of times 2020-09-17 18:46:28 -05:00
Amin Yahyaabadi
5d09c88927 shouldTryAgain 2020-09-17 18:46:28 -05:00
Amin Yahyaabadi
d7f5ea58e0 isTimedOut 2020-09-17 18:46:28 -05:00
Amin Yahyaabadi
3b10e63204 createTestKey 2020-09-17 18:46:28 -05:00
Amin Yahyaabadi
44f7b43bbb retryOrFailTest 2020-09-17 18:46:28 -05:00
Sadick
86a7b38fa5
Merge pull request #21336 from atom/fix-typo
DependsOn windows_tests
2020-09-17 17:17:16 +03:00
sadick254
951efc40ec DependsOn windows_tests 2020-09-17 07:20:55 +03:00
Benjamin Gray
4d9241b9b3 remove lint caching 2020-09-17 11:18:53 +10:00
Benjamin Gray
19ef091441 fix template path 2020-09-17 11:14:44 +10:00
Benjamin Gray
4a619cdd6d fix ci invocation 2020-09-17 11:13:35 +10:00
Benjamin Gray
a44f440a36 add cache template 2020-09-17 11:13:12 +10:00
Benjamin Gray
278d490277 see if this caches 2020-09-17 10:58:48 +10:00
Benjamin Gray
323a3830b9 add Lint as release dependency 2020-09-17 10:56:30 +10:00
Benjamin Gray
d2391a0b65 lint the other locations too 2020-09-17 10:56:30 +10:00
Benjamin Gray
38f81781ba tweak lint job 2020-09-17 10:56:30 +10:00
Benjamin Gray
47d2326bd7 relocate lint.yml 2020-09-17 10:56:30 +10:00
Benjamin Gray
91a79ef4ac separate lint into own job 2020-09-17 10:56:30 +10:00
Amin Yahyaabadi
40898dd090 lint 2020-09-16 16:27:19 -05:00
dependabot[bot]
2c94956eb9
Bump eslint-utils from 1.3.1 to 1.4.3 in /script
Bumps [eslint-utils](https://github.com/mysticatea/eslint-utils) from 1.3.1 to 1.4.3.
- [Release notes](https://github.com/mysticatea/eslint-utils/releases)
- [Commits](https://github.com/mysticatea/eslint-utils/compare/v1.3.1...v1.4.3)

Signed-off-by: dependabot[bot] <support@github.com>
2020-09-16 11:01:55 +00:00
Sadick
b94532ed4d
Merge pull request #21109 from atom-ide-community/windows_tests_4upstream
Parallelize Tests in CI (+ Refactor and Improvements)
2020-09-16 13:56:39 +03:00
Amin Yahyaabadi
f15eefb147 Update hard-coded GitHub URLs to be dynamic
Set the following environment variables to override the defaults:

REPO_OWNER            (default: 'atom')
MAIN_REPO             (default: 'atom')
NIGHLTY_RELEASE_REPO  (default: 'atom-nightly-releases')

Co-Authored-By: DeeDeeG <DeeDeeG@users.noreply.github.com>
2020-09-16 03:46:37 -05:00
Amin Yahyaabadi
5f35bd0bd9 add GITHUB_TOKEN in case needed for downloading 2020-09-16 03:33:09 -05:00
Amin Yahyaabadi
4396b62402 IsNightlyBranch variable 2020-09-16 03:28:27 -05:00
Amin Yahyaabadi
b41ec1821d Install script/vsts on nightly or release branch 2020-09-16 03:27:18 -05:00
Sadick
b17a5ab6f6
Merge pull request #21212 update npm@6.14.8
update npm@6.14.8
2020-09-16 11:04:54 +03:00
Sadick
b6da674260
Merge pull request #20632
Bump https-proxy-agent from 2.2.1 to 2.2.4 in /script/vsts
2020-09-16 10:59:51 +03:00
Amin Yahyaabadi
36aab2b0e3 Finalize in the end (not between retry attempts)
don't finalize until the end which the test fails or passes.
2020-09-16 01:46:09 -05:00
Amin Yahyaabadi
2ac5d996a6 use preparation instead of installing scripts/vsts 2020-09-16 01:19:54 -05:00
Amin Yahyaabadi
a2512fc887 Merge branch 'master' into upstream_master 2020-09-16 01:16:29 -05:00
Amin Yahyaabadi
3dbe763e14 test on windows-2019
This increases the test-pass rate and reduced the timeouts

https://github.com/atom-ide-community/atom/pull/109
2020-09-16 00:41:26 -05:00
Amin Yahyaabadi
c419744ee3 Update lock files 2020-09-16 00:29:28 -05:00
Amin Yahyaabadi
7040bf9e44 use npm 6.14.8 in ci 2020-09-16 00:18:00 -05:00
Amin Yahyaabadi
fca933fe43 use npm 6.14.8 in script/ 2020-09-16 00:17:37 -05:00
Sadick
0628ba5803
Merge pull request #20043 from atom/dependabot/npm_and_yarn/script/mixin-deep-1.3.2
Bump mixin-deep from 1.3.1 to 1.3.2 in /script
2020-09-16 06:56:34 +03:00
Sadick
94b39402cc
Merge pull request #21249 from atom/dependabot/npm_and_yarn/script/vsts/decompress-4.2.1
Bump decompress from 4.2.0 to 4.2.1 in /script/vsts
2020-09-16 06:53:15 +03:00
Amin Yahyaabadi
a9e690d165 refactor the static parts out of the test function which runs by async 2020-09-15 20:40:03 -05:00
dependabot[bot]
1c5413af1b
Bump mixin-deep from 1.3.1 to 1.3.2 in /script
Bumps [mixin-deep](https://github.com/jonschlinkert/mixin-deep) from 1.3.1 to 1.3.2.
- [Release notes](https://github.com/jonschlinkert/mixin-deep/releases)
- [Commits](https://github.com/jonschlinkert/mixin-deep/compare/1.3.1...1.3.2)

Signed-off-by: dependabot[bot] <support@github.com>
2020-09-15 20:29:04 +00:00
dependabot[bot]
d2e257aabf Bump https-proxy-agent from 2.2.1 to 2.2.4 in /script/vsts
Bumps [https-proxy-agent](https://github.com/TooTallNate/node-https-proxy-agent) from 2.2.1 to 2.2.4.
- [Release notes](https://github.com/TooTallNate/node-https-proxy-agent/releases)
- [Commits](https://github.com/TooTallNate/node-https-proxy-agent/compare/2.2.1...2.2.4)

Signed-off-by: dependabot[bot] <support@github.com>
2020-09-15 23:26:03 +03:00
dependabot[bot]
1cb581717c
Bump node-fetch from 2.2.0 to 2.6.1 in /script/vsts
Bumps [node-fetch](https://github.com/bitinn/node-fetch) from 2.2.0 to 2.6.1.
- [Release notes](https://github.com/bitinn/node-fetch/releases)
- [Changelog](https://github.com/node-fetch/node-fetch/blob/master/docs/CHANGELOG.md)
- [Commits](https://github.com/bitinn/node-fetch/compare/v2.2.0...v2.6.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-09-15 20:09:13 +00:00
Sadick
1da06ef5fa
Merge pull request #21294
Bump node-fetch from 2.6.0 to 2.6.1 in /script
2020-09-15 23:08:03 +03:00
Amin Yahyaabadi
ebe480dfe2 Update package-lock.json 2020-09-14 21:29:42 -05:00
Amin Yahyaabadi
73d78b6f8c use @aminya/electron-link@^0.6.3" 2020-09-14 21:24:00 -05:00
Amin Yahyaabadi
85e0f06e69
Merge pull request #159 from atom-ide-community/timed-out-tests-more 2020-09-14 18:38:49 -05:00
Amin Yahyaabadi
d72a8eeaf1 use 'max' for JOBs to use all available cores
https://github.com/nodejs/node-gyp/pull/1770
2020-09-14 17:45:00 -05:00
Amin Yahyaabadi
82abb4ded2 rename windows jobs
to be consistent with macOS
2020-09-14 17:37:37 -05:00
aminya
96480ea5b9 Use async.series
Revert b61475ffe4
2020-09-14 17:37:37 -05:00
Amin Yahyaabadi
3993c420b1 collect output only if stdout exits 2020-09-14 17:37:37 -05:00
aminya
bef8d82106 fix: rename windows job back to Windows 2020-09-14 17:37:36 -05:00
Amin Yahyaabadi
3b796f7995 refactor spawnTest 2020-09-14 17:37:36 -05:00
Amin Yahyaabadi
a69e0f8117 function to create packageTestSuites only when needed 2020-09-14 17:37:36 -05:00
Amin Yahyaabadi
f4bdb22e7d function to create coreRenderProcessTestSuites
only when needed
2020-09-14 17:37:36 -05:00
aminya
66c743465c print the used testCommand for failed tests 2020-09-14 17:37:36 -05:00
aminya
d742f25895 macos: run core main tests in the build phase 2020-09-14 17:37:11 -05:00
aminya
7d93415093 bootstrap in case cache misses 2020-09-14 17:37:11 -05:00
aminya
849216a750 always upload atom windows.zip for x64 2020-09-14 17:37:11 -05:00
aminya
fa6a8e32ce Run windows core main tests in the build step 2020-09-14 17:37:11 -05:00
aminya
62b440d870 Run windows renderer tests in parallel 2020-09-14 17:37:10 -05:00
aminya
a4fac1e772 test: use Azure format for printing 2020-09-14 17:37:10 -05:00
aminya
a69bf7be10 warn before error reporting
Helps visually
2020-09-14 17:26:50 -05:00
aminya
e386c2bf02 run tests using async.parallel 2020-09-14 17:26:50 -05:00
aminya
d04d91835c allow requesting parallel tests for all OS 2020-09-14 17:26:50 -05:00
aminya
b992fbf1b1 parallelize core tests 2020-09-14 17:26:50 -05:00
aminya
a598fdd26e run package tests in parallel for windows tests 2020-09-14 17:26:50 -05:00
Amin Yahyaabadi
0599fbd796 add Error Downloading Update to the retry commands 2020-09-14 16:07:50 -05:00
Amin Yahyaabadi
fd0718792b increase the retryNumber to 6 2020-09-14 16:04:18 -05:00
Sadick
9d65b79d7a
Merge pull request #21081 from atom-ide-community/CI_templates_4upstream
Cross-platform CI scripts
2020-09-14 17:34:42 +03:00
Benjamin Gray
2bc1a117b6 ⬆️ fs-extra@9.0.1 2020-09-14 13:54:33 +03:00
Amin Yahyaabadi
a20ccc3acf set JOBS to enabled parallel builds in node-gyp 2020-09-13 21:16:37 -05:00
Amin Yahyaabadi
0ad2f9b7bf execFileSync bootstrap in build script 2020-09-13 21:16:37 -05:00
Amin Yahyaabadi
e6fe32bd21 parallelize bootstrap 2020-09-13 21:16:37 -05:00
Amin Yahyaabadi
7cf6c4cabb run installApm in a thread 2020-09-13 21:16:37 -05:00
Amin Yahyaabadi
fe90f78ba7 run installScriptDependencies in a thread 2020-09-13 21:16:37 -05:00
Amin Yahyaabadi
4c7688e595 script runner package-lock.json 2020-09-13 21:16:37 -05:00
Amin Yahyaabadi
47143207ac add script-runner/package json files to cache tracker 2020-09-13 21:16:37 -05:00
Amin Yahyaabadi
776b06971c script runner (threads) 2020-09-13 21:16:37 -05:00