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 (and demote the rest to warnings) #5983

Merged
merged 2 commits into from
Mar 8, 2022

Conversation

cpcallen
Copy link
Contributor

@cpcallen cpcallen commented Mar 5, 2022

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.
  • Modify build_tasks.js to not promote JSC_PARTIAL_ALIAS diagnostics to errors (leave them as warnings).

Behaviour Before Change

No (non-fatal) diagnostics would be emitted by the advanced compilation test.

Behaviour After Change

Ten JSC_PARTIAL_ALIAS warnings are emitted (which ought to be investigated!), and additional warnings and errors will be emitted if there are problems with the code.

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 (for real this time!)

* 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 cpcallen merged commit e11b583 into google:develop Mar 8, 2022
@cpcallen cpcallen deleted the make-alias-diags-warnings branch March 8, 2022 23:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants