• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

wikimedia / parsoid / 2682
85%

Build:
DEFAULT BRANCH: master
Ran 05 Jun 2019 10:56PM UTC
Jobs 3
Files 152
Run time 7min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
2682

push

travis-ci

jenkins-bot
c6c8b294 followup: Emit EOFTk in 'start' rule + tweak 'start_async' rule

* c6c8b294 added an unnecessary check to the start_async rule to decide
  whether to terminate the loop. That check was unnecessary. I removed
  it and documented it.

* As part of c6c8b294, to support generator behavior of the Grammar and
  tokenizer, I had to remove the EOFTk append from the async grammar
  action and move it to the tokenizer. To make the grammar uniform,
  I removed it from the "start" rule as well and added it to
  PegTokenizer::tokenizeSync, but forgot to account for the fact that
  tokenizeSync is used with non-start rules => we were now emitting
  EOFTk where it wasn't expected.

  56e0335a tried to address that but it was considered hacky and it
  turns out that we use the 'tokenizeAs' function in lots of places
  in the codebase which I didn't fix up at all. I was focused on the
  single crasher I ran into while testing.

  This patch reverts the change to the "start" rule and moves the
  EOFTk append from PegTkenizer::tokenizeSync back to the "start" rule.

* The codebase has a number of places where we strip an unneeded EOFTk.
  In the future, we should clean this up. The EOFTk may only be really
  needed by the HTML5TreeBuilder which runs only as part of the
  "text/mediawiki/full" and "tokens/mediawiki/expanded" pipelines.
  So, we could probably inspect pipeline type and/or rule to decide
  whether to insert the EOFTk.

  Or, an alternative would be to add a parser option to let the caller
  decide if it needs an EOFTk signal.

  This cleanup can come in the future.

Change-Id: I3048c5493

9530 of 12004 branches covered (79.39%)

14903 of 17618 relevant lines covered (84.59%)

90406.88 hits per line

Jobs
ID Job ID Ran Files Coverage
1 2682.1 05 Jun 2019 11:00PM UTC 0
84.59
Travis Job 2682.1
2 2682.2 05 Jun 2019 10:56PM UTC 0
84.59
Travis Job 2682.2
3 2682.3 05 Jun 2019 11:03PM UTC 0
84.62
Travis Job 2682.3
Source Files on build 2682
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2682
  • f31b8771 on github
  • Prev Build on master (#2681)
  • Next Build on master (#2683)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc