Skip to content
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

fix(tests): Enable --debug for test:compile:advanced; fix some errors #5959

Merged
merged 1 commit into from
Mar 1, 2022

Conversation

cpcallen
Copy link
Contributor

The basics

  • I branched from develop
  • My pull request is against develop
  • My code follows the style guide

The details

Resolves

Proposed Changes

  • Pass the --debug flag when running the buildAdvancedCompilationTest gulp task.
  • Migrate test/compile/main.js to goog.module.
    • Use more selective goog.requires.
    • @suppress "extra" requires needed for side effects.

Behaviour Before Change

The compiled output (tests/compile/main_compressed.js) was 402441 bytes.

Behavior After Change

The compiled output (tests/compile/main_compressed.js) is 373888 bytes (a 7% reduction).

Reason for Changes

  • Make advanced compilation test actually test partial compilation.
  • Make sure that it picks up any errors that might only be generated when doing ADVANCED_OPTIMIZATIONS.

Test Coverage

  • npm test completes successfully.

* Enable the --debug flag when running the
  buildAdvancedCompilationTest gulp task.
* Migrate test/compile/main.js to goog.module.
  * Use more selective goog.requires.
    * Reduces compiled size from ~400k to ~370k.
  * @Suppress "extra" requires needed for side effects.
@cpcallen cpcallen merged commit 88334be into google:develop Mar 1, 2022
@cpcallen cpcallen deleted the advanced-compile--debug branch March 1, 2022 16:31
BeksOmega added a commit that referenced this pull request Mar 1, 2022
BeksOmega added a commit that referenced this pull request Mar 1, 2022
cpcallen added a commit to cpcallen/blockly that referenced this pull request Mar 5, 2022
* Enable the --debug flag when running the
  buildAdvancedCompilationTest gulp task.
* Remove partialAlias diagnostic group from `JSC_ERROR`, demoting
  JSC_PARTIAL_NAMESPACE to warning.

Reverts "Revert 'fix(tests): Enable --debug for test:compile:advanced;
fix some errors (google#5959)'".
cpcallen added a commit that referenced this pull request Mar 8, 2022
…rors (and demote the rest to warnings) (#5983)

* refactor(tests): Migrate tests/compile/main.js to goog.module

* feat(tests): Enable --debug for test:compile:advanced; demote errors

  * Enable the --debug flag when running the
    buildAdvancedCompilationTest gulp task.
  * Remove partialAlias diagnostic group from `JSC_ERROR`, demoting
    JSC_PARTIAL_NAMESPACE to warning.

  Reverts "Revert 'fix(tests): Enable --debug for test:compile:advanced;
  fix some errors (#5959)'".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants