Commit Graph

1350 Commits

Author SHA1 Message Date
Rafael Oleza
0534a38ba4 Change the linter to be eslint 2019-05-13 17:48:11 +02:00
David Wilson
c8cafbf7c2 Remove cached-run-in-this-context dependency
This dependency is no longer needed now that we use Node's built-in APIs
2019-05-13 16:21:09 +02:00
David Wilson
2316b74b06 Change chromedriver/mksnapshot version check to only lock major version 2019-05-13 13:53:53 +02:00
David Wilson
262354ddab Remove cached-run-in-this-context dependency
This dependency is no longer needed now that we use Node's built-in APIs
2019-05-13 13:53:53 +02:00
David Wilson
7770ae214c Launch mksnapshot.js using the current Node 2019-05-13 13:52:58 +02:00
David Wilson
10664309fd Use the new Electron 3.0 snapshotting process with mksnapshot 2019-05-13 13:52:58 +02:00
David Wilson
525d25267c Update snapshot path from snapshot_blob to v8_context_snapshot
Related commit: 
3ac4c1f03f
2019-05-13 13:52:58 +02:00
Rafael Oleza
6222cee660 ⬆️ electron-packager@12.2.0 2019-05-13 11:20:51 +02:00
Winston Liu
d2482e602a
Package lock updates 2019-05-11 01:13:41 -04:00
Winston Liu
f629070698
Merge branch 'master' into wl-update-apm 2019-05-11 00:59:47 -04:00
Nathan Sobo
1d2878f92e Merge remote-tracking branch 'origin/master' into ns/notify 2019-05-10 15:38:36 -06:00
Rafael Oleza
db6031db03
Merge pull request #19297 from atom/startup-timing-markers
Add markers for more granular logging of startup time
2019-05-10 23:16:57 +02:00
Nathan Sobo
9a176f648f Test everything on Windows 2019-05-10 14:23:08 -06:00
Nathan Sobo
b1b1b15d49 Normalize %TEMP% to a long path on Windows CI
This avoids problems with assertions that involve paths inside the temp 
folder.
2019-05-10 13:46:57 -06:00
Rafael Oleza
e42531e413 Do not add the startup-time module to the snapshot 2019-05-10 19:50:51 +02:00
Nathan Sobo
138809a3a0 Add .eslintrc.json to improve support for editor integrations 2019-05-09 10:31:34 -06:00
Nathan Sobo
e58d52ee23 Add clarifying assertion to test script 2019-05-09 08:42:02 -06:00
Winston Liu
cfba94e4e4
Undebugify 2019-05-07 23:31:37 -04:00
Winston Liu
33be2276a4
⬆️ apm@2.2.2-1 to remove bundled node.exe 2019-05-07 21:12:39 -04:00
Winston Liu
a6eabb2ae4
Log apm install output 2019-05-07 20:35:25 -04:00
Winston Liu
d0265096fd
🎨 debug message 2019-05-07 20:02:54 -04:00
Winston Liu
a960367364
Pray tell, what is our arch? 2019-05-07 15:40:38 -04:00
Winston Liu
7512da8f3d
Okay, add it to the end 2019-05-07 15:29:04 -04:00
Winston Liu
ee9deacb48
Try running with verbose 2019-05-07 15:20:34 -04:00
Rafael Oleza
682fa45e36 Ignore some non-essential packages from the startup script 2019-04-25 18:00:44 +02:00
Rafael Oleza
4ceebe8a98 ⬆️ electron-link@0.4.0 2019-04-25 16:47:29 +02:00
Ash Wilson
57e4931206
⬆️ electron-link@0.3.3 2019-04-22 21:05:24 -04:00
Jason Rudolph
f3f32c45cc
Merge pull request #19176 from atom/respect-package-lock-on-ci
Teach CI to use versions specified in package-lock.json
2019-04-19 17:13:38 -04:00
Nathan Sobo
406e033323
Merge pull request #19183 from atom/ns/upload-windows-crashes-on-release-branches
On Azure DevOps, upload Windows crash dumps to S3 on release branches
2019-04-19 13:52:47 -06:00
Nathan Sobo
4bc43eb358 On Azure DevOps, upload Windows crash dumps to S3 on release branches
On release branches, we can't upload crash dumps because they will leak
secret environment variables. So instead we will upload them to our S3
bucket with 'private' ACL. They can then be manually retrieved via the
AWS CLI with our private credentials.
2019-04-18 17:04:49 -06:00
Nathan Sobo
7ef8f06cd2 Only upload Windows crash reports if the S3 key environment var is null
This seems like a more robust test than the isRelease variable I was
testing previously. Our goal is to not leak secrets such as the S3 key,
so this is a more direct test of that.
2019-04-18 15:15:31 -06:00
Nathan Sobo
b03d49973e On Azure DevOps, publish crash reports on non-release Windows branches
Since we don't expose sensitive information on these branches, we can
use the regular artifact publishing mechanism
2019-04-18 10:49:14 -06:00
Jason Rudolph
fce5a8974f
Fix issue upgrading npm & use upgraded version 2019-04-18 10:59:33 -04:00
Jason Rudolph
cb3f24fc5c
Use env var to specify path to npm binary 2019-04-18 09:53:40 -04:00
Jason Rudolph
680e48485a
Set PATH so that Azure DevOps macOS builds use correct npm
Before we run script/bootstrap on the macOS build, the preceding build
step installs npm 6.2.0 as the global npm version. It installs npm at
`/usr/local/bin/npm`. However, a _different_ version of npm appears
earlier in the PATH. The PATH looks like this:

```
/Users/vsts/hostedtoolcache/node/8.9.3/x64/bin:
/usr/local/lib/ruby/gems/2.6.0/bin:
/usr/local/opt/ruby/bin:
/usr/local/opt/curl/bin:
/usr/local/bin:
/usr/local/sbin:
/Users/vsts/bin:
/Users/vsts/.yarn/bin:
/usr/local/go/bin:
/Users/vsts/Library/Android/sdk/tools:
/Users/vsts/Library/Android/sdk/platform-tools:
/Users/vsts/Library/Android/sdk/ndk-bundle:
/Library/Frameworks/Mono.framework/Versions/Current/Commands:
/usr/bin:
/bin:
/usr/sbin:
/sbin:
/Users/vsts/.azcopy
```

There's an npm executable at
/Users/vsts/hostedtoolcache/node/8.9.3/x64/bin/npm.

To get the build to use the global version of npm, this commit puts
/usr/local/bin at the beginning of the PATH.
2019-04-17 17:27:32 -04:00
Jason Rudolph
ce94241bde
Configure Azure DevOps bootstrapping step to run with CI env vars 2019-04-17 12:23:05 -04:00
Jason Rudolph
4980439f0c
Require npm 6+ on CI
This change will allow us to use `npm ci` instead of `npm install` on 
CI, so that we can respect the package-lock.json file.
2019-04-17 11:48:28 -04:00
Rafael Oleza
91558332de Add debugging message specifying which step failed 2019-04-12 12:53:20 +02:00
Rafael Oleza
a7ac4a2147 Change the way exitCodes are passed from the test steps 2019-04-12 12:52:55 +02:00
Ash Wilson
ae5b1eb680
Exclude superstring from any dependency path 2019-04-08 13:49:09 -04:00
David Wilson
9ef6477b92 Temporarily disable draft release creation on release branches 2019-04-05 15:01:28 -07:00
Jason Rudolph
9e03795c20
Provide the BUILD_ARCH env var for bootstrapping Windows env on VSTS
`script/vsts/windows-run.js` checks the BUILD_ARCH env var, so let's 
make sure it's populated.
2019-04-03 13:11:24 -04:00
Jason Rudolph
166658f588
Add back bootstrapping to script/build on Windows
Hopefully this will resolve the error we're seeing here:

https://github.visualstudio.com/Atom/_build/results?buildId=37021&view=logs&jobId=97a617bf-bcbd-5dfa-bba2-cfba2747b693&taskId=1e1369e9-1c56-59b0-830c-f1606a680c8a&lineStart=13&lineEnd=19&colStart=1&colEnd=1

🤞
2019-04-02 19:43:45 -04:00
Jason Rudolph
5f52a8e0b0
Lint earlier in the build process 2019-04-02 19:43:44 -04:00
Rafael Oleza
3bfec7169a Exclude fuzzy-native from the v8 snapshot 2019-03-29 21:04:49 +01:00
Rafael Oleza
4d3e71d25a Ignore node_modules of the fuzzy-native package 2019-03-29 19:21:06 +01:00
Winston Liu
f7d123ca8c
Update package-lock.json 2019-03-26 14:44:08 -04:00
Rafael Oleza
874016b785 Add GITHUB_TOKEN env var to the npm install step (take 2)
This will prevent issues when installing the `vscode-ripgrep` package
2019-03-20 14:41:22 +01:00
David Wilson
ccc7233e51 Add GITHUB_TOKEN env var to the npm install step
This will prevent issues when installing the `vscode-ripgrep` package
2019-03-19 11:50:26 -07:00
Rafael Oleza
9d7467f7b2 ⬆️ fuzzy-finder@1.10.1 2019-03-19 12:45:42 +01:00
Ash Wilson
401a5a7d0a
Merge pull request #18946 from atom/aw/electron-version-in-build-env
Set Electron version within the build process environment
2019-03-06 11:53:46 -05:00
Ash Wilson
c513d1c024
Set ELECTRON_VERSION to the current Electron version. 2019-03-06 10:39:33 -05:00
Landon Abney
55cdc398f6 Use includes instead of indexOf
Co-Authored-By: rafeca <rafeca@gmail.com>
2019-02-28 19:30:03 +01:00
Rafael Oleza
8daaf3834e Enable linter on spec/ folder 2019-02-28 19:30:03 +01:00
Jason Rudolph
3b195122c4
Tell VSTS to build electron-* branches 2019-02-25 15:17:09 -05:00
Jason Rudolph
9ff5160b45
Update package-lock.json and script/package-lock.json 2019-02-25 15:14:53 -05:00
Jason Rudolph
c9e6d04e8c
Revert "Merge #18603 from atom/electron-3-0"
This reverts commit b92ae2ad04, reversing
changes made to d4fe5ccfeb.
2019-02-25 13:41:59 -05:00
Jason Rudolph
46fa62ac59
Revert "Merge #18815 from atom/electron-3.1.3"
This reverts commit e81f71318a, reversing
changes made to bded0c102a.
2019-02-25 13:37:35 -05:00
Rafael Oleza
034a05c8f4 Enable linter on packages/ folder 2019-02-25 13:05:02 +01:00
Ash Wilson
b5898b8e07
Actually dump minidump contents to the file 2019-02-22 15:02:47 -05:00
David Wilson
ce4180e9f1 Upload Windows delta nupkg artifacts in release builds 2019-02-17 15:12:07 -08:00
Ash Wilson
402fa903fd
Merge pull request #18802 from atom/aw/jasmine-junit-xml
Report test result metadata to Azure DevOps
2019-02-16 11:02:20 -05:00
Ash Wilson
efd9151589
Revert temporary script/test changes 2019-02-15 16:09:27 -05:00
Ash Wilson
06a1a38d25
Oh. Right. That's interpreted as a .bat file 2019-02-15 14:56:39 -05:00
Ash Wilson
60aaca8ecc
Er, maybe no separator at all? 2019-02-15 13:02:25 -05:00
Ash Wilson
a645a8e638
Windows path separator maybe 2019-02-15 11:16:33 -05:00
Ash Wilson
536c582e2b
Respect Atom.SkipTests 2019-02-15 11:16:19 -05:00
Ash Wilson
57ff580d66
Invoke the postprocessing script from CI 2019-02-15 10:09:36 -05:00
Ash Wilson
9d76594060
Windows entry point for postprocess-junit-results script 2019-02-15 10:06:07 -05:00
Ash Wilson
aa02ac8daa
Script to post-process JUnit XML output 2019-02-15 10:01:15 -05:00
Ash Wilson
5e236d6ad1
Use cheerio for XML parsing and serializing 2019-02-15 08:35:35 -05:00
Ash Wilson
8c8fb426fc
Merge pull request #18832 from atom/aw/report-crashes
Report macOS renderer crashes in CI
2019-02-12 12:23:40 -05:00
Ash Wilson
4d090b8f1e
Set test run titles in PublishTestResults tasks 2019-02-12 11:59:38 -05:00
Ash Wilson
50b8dad3b9
Set TEST_JUNIT_RUN to the current suite name 2019-02-12 11:59:20 -05:00
David Wilson
363741a88f Fix artifact upload of OLD_RELEASE_NOTES.md 2019-02-11 11:42:07 -08:00
David Wilson
2ac4beea63 Update release notes when creating another draft for same version 2019-02-11 11:42:07 -08:00
David Wilson
1571175eea Minor fixes to draft release creation
- Don't upload artifacts for a release that is already published
- Fix release notes on draft releases
- Fix Linux package uploading for draft releases
2019-02-11 11:42:07 -08:00
Ash Wilson
e1be511851
Unconditionally dump results 2019-02-11 13:33:35 -05:00
Ash Wilson
3b7ac36bec
Azure doesn't like trailing whitespace 2019-02-11 13:31:59 -05:00
Ash Wilson
6e69bc0d7d
Upload crash reports on macOS 2019-02-11 10:44:51 -05:00
Ash Wilson
65c0cc3122
Use spaces in prepareEnv() calls 2019-02-11 10:14:58 -05:00
Ash Wilson
da891bd120
Use spaces in TEST_JUNIT_XML_RUN 2019-02-11 10:13:31 -05:00
Ash Wilson
f4f3d12719
Remove intermediate directory and TEST- prefix 2019-02-11 10:13:10 -05:00
David Wilson
9264a6606a
Remove unnecessary clause in release notes upload task 2019-02-08 14:00:43 -08:00
David Wilson
e3661349b9 🔒 2019-02-08 13:33:31 -08:00
David Wilson
7c08366bac 👕 2019-02-08 13:33:31 -08:00
David Wilson
120a2b3771 Finish automated release notes generation 2019-02-08 13:33:31 -08:00
David Wilson
cdc8a23bc3 Remove shebang from upload-artifacts.js 2019-02-08 13:33:31 -08:00
David Wilson
3d85d5e5e2 Bump pr-changelog 2019-02-08 13:33:31 -08:00
David Wilson
025c56f3c1 🔒 Update package-lock.json 2019-02-08 13:33:31 -08:00
David Wilson
83b90df5fe Slight cleanup after rebase 2019-02-08 13:33:31 -08:00
David Wilson
0fc3b34292 Move upload-linux-package.js to script/vsts/lib 2019-02-08 13:33:31 -08:00
David Wilson
944a017f70 WIP: Generate changelog 2019-02-08 13:33:31 -08:00
David Wilson
053955165d Allow release build version to be overridden by ATOM_RELEASE_VERSION 2019-02-08 13:33:31 -08:00
David Wilson
3d532e6b68 Use Build.BuildId for more useful build versions 2019-02-08 13:33:31 -08:00
David Wilson
1b3ad8ecbb Create draft releases on successful release builds 2019-02-08 13:33:30 -08:00
David Wilson
7c56ae28a7 Move release publishing script and deps under script/vsts 2019-02-08 13:33:30 -08:00
David Wilson
2c8b8ef77e Change chromedriver/mksnapshot version check to only lock major version 2019-02-07 15:03:23 -08:00
Ash Wilson
65661ba8a3
Report test suites individually 2019-02-07 08:49:42 -05:00
Ash Wilson
55874e8353
Include suite name and optional run prefix in JUnit output filename 2019-02-07 08:49:03 -05:00
Ash Wilson
284ae721c7
Run everything everywhere mwahahaha 2019-02-07 08:48:34 -05:00
Ash Wilson
4f575e0340
Does that expect a forward slash? 2019-02-06 21:14:40 -05:00
Ash Wilson
8dfdccbb10
One Mocha suite, one Jasmine suite 2019-02-06 20:21:19 -05:00
Ash Wilson
7361720363
Quoting is a thing 2019-02-06 20:20:13 -05:00
Ash Wilson
c11442df5e
Explicit test-results.xml glob 2019-02-06 19:45:41 -05:00
Ash Wilson
f42de37cbc
Set ROOT instead of PATH 2019-02-06 14:23:54 -05:00
Ash Wilson
b118b91075
Use a subdirectory 2019-02-06 13:16:34 -05:00
Ash Wilson
d3eb451e55
Fail less on empty or missing result directories 2019-02-06 10:40:33 -05:00
Ash Wilson
bef6edb343
Respect Atom.SkipTests 2019-02-06 10:39:59 -05:00
Ash Wilson
ccc95917cd
Use Common.TestResultsDirectory for test results 2019-02-06 10:39:26 -05:00
Ash Wilson
69df3439f9
Use find instead of ls 2019-02-06 10:14:00 -05:00
Ash Wilson
399a0b7363
I could swear you used to be able to shorten that 2019-02-05 20:15:39 -05:00
Ash Wilson
c6d0afb304
Dump the test-results folder 2019-02-05 20:12:37 -05:00
Ash Wilson
756f1196da
Use backslashes on Windows in case something is being dumb 2019-02-05 20:12:25 -05:00
Ash Wilson
847f7aff4c
Use searchFolder and mergeTestResults 2019-02-05 20:12:03 -05:00
Ash Wilson
fe5bdeed21
Let's see if it magically works 2019-02-05 14:28:35 -05:00
Ash Wilson
afd6576566
Set ATOM_JASMINE_REPORTER to "list" on our CI builds 2019-02-05 10:29:09 -05:00
Ash Wilson
c192aeaa14
⬆️ electron-link 2019-02-04 14:33:04 -05:00
David Wilson
6903be1b60 Remove cached-run-in-this-context dependency
This dependency is no longer needed now that we use Node's built-in APIs
2019-01-30 10:55:29 -08:00
David Wilson
89de78b904 Launch mksnapshot.js using the current Node 2019-01-18 15:13:24 -08:00
David Wilson
7e5ba7c1ab Use the new Electron 3.0 snapshotting process with mksnapshot 2019-01-18 15:13:24 -08:00
David Wilson
71bf72aac6 Update snapshot path from snapshot_blob to v8_context_snapshot
Related commit: 
3ac4c1f03f
2019-01-18 15:12:55 -08:00
David Wilson
8dbd98a714 ⬆️ :electron: electron@3.0.0-beta.9 2019-01-18 15:12:55 -08:00
Winston Liu
b01b2fb79d
⬆️ status-bar@1.8.17 2019-01-10 22:10:43 -05:00
Ash Wilson
67c3535a36
Accept arguments to manually filter script/test 2019-01-08 20:36:27 -05:00
Winston Liu
4e0ad70771
⬆️ find-and-replace@0.215.15 2019-01-04 12:20:59 -05:00
Ash Wilson
81f066394d
Merge pull request #18641 from atom/aw/github-up-dev
Upgrade GitHub package on dev
2019-01-03 13:51:32 -05:00
Ash Wilson
f18454d693
Forgot the lockfile bump 2019-01-02 16:09:22 -05:00
Ash Wilson
3caaabf304
⬆️ electron-link 2019-01-02 16:02:42 -05:00
Ash Wilson
8274b4744e
Use the electron-link prerelease 2019-01-02 13:40:11 -05:00
Ash Wilson
d0f3fc1503
Handle temp module version divergence 2019-01-02 11:33:09 -05:00
Ash Wilson
75200c6227
⬆️ electron-link 2018-12-21 08:40:38 -05:00
David Wilson
065cb690c0 Delete 'packages/**/node_modules' in script/clean 2018-12-19 10:55:20 -08:00
David Wilson
4fa1dbff9a Resolve dereferenced symlinks relative to node_modules 2018-12-13 10:04:36 -08:00
David Wilson
d3cfbf97f9 Copy all node_modules paths in one step 2018-12-12 21:43:36 -08:00
David Wilson
05c8b9d1a1 Improve comments for clarity 2018-12-11 14:50:02 -08:00
David Wilson
425bbf8485 Only deref top-level symlinks in node_modules when copying assets 2018-12-11 13:08:55 -08:00
Winston Liu
a2dec3fb1d
⬆️ tree-view@0.224.4 2018-11-15 11:47:52 -05:00
simurai
9b9062b9f7 Update package-locks 2018-11-14 15:46:44 +09:00
David Wilson
be2eea05cf Fetch existing package details as JSON 2018-10-30 09:03:57 -07:00
David Wilson
0423bf75ac Enable upload of Linux packages to packagecloud from release builds 2018-10-30 08:31:57 -07:00
David Wilson
5b4ef69e24 Clean up unhelpful 'No README data' warnings in Atom build
Co-Authored-By: Tilde Ann Thurium <annthurium@github.com>
2018-10-03 15:24:35 -07:00
David Wilson
df2018e93c Use spawnSync instead of execSync in script/vsts/windows-run.js 2018-09-27 13:39:19 -07:00
David Wilson
bddf799e26 Customize atom.cmd for channel-specific atom.exe 2018-09-20 13:15:50 -07:00
David Wilson
eb7f0aa452 Produce channel-specific Atom .exe and .cmd files on Windows 2018-09-20 12:05:01 -07:00
David Wilson
2bbc91a3a8 Return a non-zero error code when windows-run.js CI script fails on VSTS 2018-09-18 09:30:36 -07:00
David Wilson
fe15f2dae5 Set the productName similarly on all platforms 2018-09-17 15:43:29 -07:00
David Wilson
57e4880433 Use the channel-qualified Atom title when packaging Windows releases 2018-09-17 15:43:10 -07:00
David Wilson
e6507c59cb Turn RELEASES file support back on for Windows x86 builds 2018-09-14 23:02:20 -07:00
David Wilson
0eb040a382 👕 2018-09-14 21:54:32 -07:00