-
Notifications
You must be signed in to change notification settings - Fork 4k
Sync htmlparser changes from g3 #40261
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
Open
amaltas
wants to merge
36
commits into
main
Choose a base branch
from
validator_engine_sync
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 34 commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
c4d78c1
Internal Code Change
a-googler f4fd254
Fixed lint errors for license.
banaag dbd5f13
Various lint fixes.
amaltas b06f8f3
Few more lint errors/warnings fixes.
amaltas 4fd05a9
Create announce mailing list to notify important updates to clients.
amaltas 131a63b
Mark htmlparser Node.DebugString as const.
a-googler c9c47c4
No description.
a-googler a17c5b1
Automated Code Change
a-googler fee2792
Add a missing include for `std::alignment_of_v`
a-googler 3696813
Internal cleanup.
amaltas b384f42
Split htmlparser README in internal and externals.
amaltas 60663e0
Automated Code Change
a-googler 1e1f518
Fix tokenization of HTML tag attributes for the edge case of attribut…
a-googler dfe4bff
Remove unused dependency by using c++ attribute [[fallthrough]] inste…
amaltas b1cb77b
Fix tokenization of HTML tag attributes for the edge case of attribut…
a-googler 5391e42
Fix rendering of RAWTEXT nodes.
a-googler 0eecb00
Automated Code Change
a-googler 2131a4c
Internal change.
a-googler 491e00d
cleans up JsonDict and JsonArray
a-googler fb008e4
Add `const` iterators to `htmlparser::Document` to allow range-based …
a-googler a6feb62
No description.
a-googler 3303a69
Fix parsing of RawOrRCDATA
a-googler 7a31297
Fix end tag parsing
a-googler 694cafc
Support unescaping decimal single digit html codes.
a-googler 2c44e1e
Use string_view instead of copying string in UnescapeEntity. When the…
a-googler fede34a
Initialize Token struct token_type and atom explicitly.
a-googler 0aae564
Reduce allocs for variadic homogeneous arguments and for known sized …
a-googler 3b7f656
Having a trailing comma in function call arguments is invalid C++ cod…
a-googler 6413057
Reduce some allocs from TagAttr in Tokenizer.
a-googler 2973255
Restore previous build from this pull request
amaltas b697944
Restoring validator-internal.cc
amaltas d5b4eb5
Update validator_test.cc
amaltas 62a0b8b
Update WORKSPACE
amaltas 7173515
Disable validator tests in circleci flow
amaltas 743cecb
Update config.yml
amaltas ea5e935
Skip validator tests if htmlparser only changes
amaltas 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
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
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
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
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
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
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 |
---|---|---|
|
@@ -15,6 +15,7 @@ | |
// | ||
|
||
#include <iostream> | ||
#include <string> | ||
|
||
#include "glog/logging.h" | ||
#include "absl/flags/flag.h" | ||
|
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# proto-file: devtools/blueprint/blueprint_file.proto | ||
# proto-message: BlueprintFile | ||
# DO NOT EDIT! Regenerate the contents by running go/bluze after changing any BUILD file or the Blueprint. | ||
# Override the default values in third_party.htmlparser.blueprint instead. | ||
|
||
buildable_unit: { | ||
name: "third_party.htmlparser" | ||
build_pattern: "//third_party/htmlparser/..." | ||
test_pattern: "//third_party/htmlparser/..." | ||
test_tag_filter: "-nofastbuild" | ||
build_tag_filter: "-nofastbuild" | ||
enable_coverage: true | ||
enable_presubmit: true | ||
enable_continuous_build: true | ||
continuous_build_email: { | ||
build_cop_email_id: "other-3p-community-maintainers+htmlparser+buildgardener@google.com" | ||
} | ||
enable_release: false | ||
} | ||
buildable_unit: { | ||
name: "third_party.htmlparser.opt" | ||
test_pattern: "//third_party/htmlparser/..." | ||
test_tag_filter: "-noopt" | ||
build_flag: "--compilation_mode=opt" | ||
enable_coverage: false | ||
enable_presubmit: false | ||
enable_continuous_build: false | ||
continuous_build_email: { | ||
build_cop_email_id: "other-3p-community-maintainers+htmlparser+buildgardener@google.com" | ||
} | ||
enable_release: false | ||
[tap.tap_settings]: { | ||
on_demand: true | ||
on_demand_frequency: EVERY_4_HOURS | ||
} | ||
} | ||
continuous_tests: { | ||
name: "third_party.htmlparser" | ||
buildable_unit_name: "third_party.htmlparser" | ||
} | ||
continuous_tests: { | ||
name: "third_party.htmlparser.opt" | ||
buildable_unit_name: "third_party.htmlparser.opt" | ||
} |
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
@banaag can you give an LGTM on this part, or do we need it back?
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.
@amaltas why are we turning off the validator tests? is this temporary?
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.
Amaltas says it's just temporary, we can reactivate after submission of the PR
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.
@amaltas instead of disabling all validator tests, can you try changing this line here
amphtml/build-system/pr-check/build-targets.js
Line 297 in 6a610ba
you can try adding
file.startsWith('validator/cpp/htmlparser/')
. This will at least only exclude the htmlparser changes from triggering the validator.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.
done
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.
Unfortunately this didn't work.