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

scriptype / writ-cms / 27648284015
54%

Build:
DEFAULT BRANCH: master
Ran 16 Jun 2026 09:09PM UTC
Jobs 4
Files 132
Run time 1min
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

16 Jun 2026 09:07PM UTC coverage: 57.276% (-0.2%) from 57.494%
27648284015

push

github

scriptype
Keep contentTree fresh on update entry

To allow that to happen, api returns the fresh path of updated entry, so
contentPanel can re-fetch contentModel, find the updated node by using
the fresh path and pass the node back to editor.

But fetching contentModel right after updateEntry caused a race
condition (even when updateEntry was awaited). Because, updateEntry
triggers a new build, and server was not waiting until it's finished.

After some playing around, manually triggering build on post update
endpoint and wrapping it with flag setters to guard watcher looked like
the most robust option to fix the issue. A guardWatcher middleware on
the horizon.

One finding from the playing around is how to reproduce #19: Removing
await from watcher onChange and thus racing the conditions.

647 of 1119 branches covered (57.82%)

Branch coverage included in aggregate %.

1 of 57 new or added lines in 8 files covered. (1.75%)

3 existing lines in 3 files now uncovered.

2242 of 3925 relevant lines covered (57.12%)

737.28 hits per line

Uncovered Changes

Lines Coverage ∆ File
21
0.0
0.0% src/cms/server/public/app/components/ContentPanel/index.js
9
0.0
0.0% src/cms/index.js
8
0.0
0.0% src/cms/server/router/api/post.js
8
64.81
-14.73% src/ssg/index.js
5
0.0
0.0% src/cms/api/models/post.js
2
0.0
0.0% src/cms/server/index.js
2
0.0
0.0% src/cms/server/public/api.js
1
0.0
0.0% src/cms/server/router/api/index.js

Coverage Regressions

Lines Coverage ∆ File
1
0.0
0.0% src/cms/api/models/post.js
1
0.0
0.0% src/cms/index.js
1
64.81
-14.73% src/ssg/index.js
Jobs
ID Job ID Ran Files Coverage
1 27648284015.1 16 Jun 2026 09:09PM UTC 132
57.12
GitHub Action Run
2 27648284015.2 16 Jun 2026 09:09PM UTC 132
57.12
GitHub Action Run
3 27648284015.3 16 Jun 2026 09:10PM UTC 132
57.24
GitHub Action Run
4 27648284015.4 16 Jun 2026 09:10PM UTC 132
57.24
GitHub Action Run
Source Files on build 27648284015
  • Tree
  • List 132
  • Changed 132
  • Source Changed 132
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #27648284015
  • 7dd31a42 on github
  • Prev Build on master (#27567863917)
  • Next Build on master (#27648284015)
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