-
Notifications
You must be signed in to change notification settings - Fork 3.8k
fix(build): build/test on windows #6431
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
Merged
cpcallen
merged 6 commits into
google:develop
from
yamadayutaka:feature/build_test_windows
Oct 27, 2022
Merged
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
a4cf041
build: build/test on windows
yamadayutaka 0b42d80
fix: Modified based on review suggestions.
yamadayutaka 4405364
fix: Modified based on review suggestions.
yamadayutaka 0631e06
fix: Formatting test output as previously.
yamadayutaka 93e95e0
fix: Modified based on review suggestions.
yamadayutaka 3069e29
Merge branch 'develop' into feature/build_test_windows
cpcallen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: Modified based on review suggestions.
* Change generator test output directory. * Formatting test output as previously.
- Loading branch information
commit 4405364cb473b83b5a5da3db9c3cb771f33d82e2
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -104,7 +104,9 @@ const NAMESPACE_PROPERTY = '__namespace__'; | |
const chunks = [ | ||
{ | ||
name: 'blockly', | ||
entry: path.join(CORE_DIR, 'main.js'), | ||
entry: posixPath((argv.compileTs) ? | ||
path.join(TSC_OUTPUT_DIR, CORE_DIR, 'main.js') : | ||
path.join(CORE_DIR, 'main.js')), | ||
exports: 'module$build$src$core$blockly', | ||
reexport: 'Blockly', | ||
}, | ||
|
@@ -364,7 +366,6 @@ function buildDeps(done) { | |
const args = roots.map(root => `--root '${root}' `).join(''); | ||
exec( | ||
`closure-make-deps ${args}`, | ||
{stdio: ['inherit', 'inherit', 'pipe']}, | ||
(error, stdout, stderr) => { | ||
console.warn(filterErrors(stderr)); | ||
if (error) { | ||
|
@@ -380,7 +381,6 @@ function buildDeps(done) { | |
testRoots.map(root => `--root '${root}' `).join(''); | ||
exec( | ||
`closure-make-deps ${testArgs}`, | ||
{stdio: ['inherit', 'inherit', 'pipe']}, | ||
(error, stdout, stderr) => { | ||
console.warn(filterErrors(stderr)); | ||
if (error) { | ||
|
@@ -536,11 +536,6 @@ return ${chunk.exports}; | |
* closure-calculate-chunks. | ||
*/ | ||
function getChunkOptions() { | ||
if (argv.compileTs) { | ||
chunks[0].entry = path.join(TSC_OUTPUT_DIR, chunks[0].entry); | ||
} | ||
Comment on lines
-523
to
-525
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, I should have deleted this bit a long time ago. |
||
// Convert chunk entry path to posix. | ||
chunks.forEach(chunk => chunk.entry = posixPath(chunk.entry)); | ||
const basePath = | ||
path.join(TSC_OUTPUT_DIR, 'closure', 'goog', 'base_minimal.js'); | ||
const cccArgs = [ | ||
|
@@ -578,9 +573,9 @@ function getChunkOptions() { | |
// chunk depends on any chunk but the first), so we look for | ||
// one of the entrypoints amongst the files in each chunk. | ||
const chunkByNickname = Object.create(null); | ||
// Convert js file path to posix. | ||
const jsFiles = rawOptions.js.slice() | ||
.map(p => posixPath(p)); // Will be modified via .splice! | ||
// Copy and convert to posix js file paths. | ||
// Result will be modified via `.splice`! | ||
const jsFiles = rawOptions.js.map(p => posixPath(p)); | ||
const chunkList = rawOptions.chunk.map((element) => { | ||
const [nickname, numJsFiles, parentNick] = element.split(':'); | ||
|
||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
It appears that you are trying to helpfully merge in code from
getChunkOptions
that I should have deleted that code in PR #6220. Ooops! Since it obviously hasn't been causing any problems until now I'm not going to block this PR because of my own mistake.I believe that if I had removed that code as I intended to then the you would have written this instead, and I will apply this fix in another PR I am preparing that touches all of this again anyway: