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

wikimedia / parsoid / 2682 / 3
85%
master: 85%

Build:
DEFAULT BRANCH: master
Ran 05 Jun 2019 11:03PM UTC
Files 152
Run time 7s
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

05 Jun 2019 10:47PM UTC coverage: 84.618% (+0.03%) from 84.59%
2682.3

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

9531 of 12004 branches covered (79.4%)

14908 of 17618 relevant lines covered (84.62%)

31112.02 hits per line

Source Files on job 2682.3
  • Tree
  • List 0
  • Changed 20
  • Source Changed 0
  • Coverage Changed 20
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 2497
  • Travis Job 2682.3
  • f31b8771 on github
  • Prev Job for on master (#2681.2)
  • Next Job for on master (#2683.1)
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