Страница:
Bots
Страницы
Additional Learning Resources
Benchmarking your changes
Bisecting a Regression
Bots
Contributing
Debugging PDF.js
Enumeration Assignments for the Telemetry Histograms
Frequently Asked Questions
Gallery of user projects and modifications
Home
PDF Viewer (Chrome extension)
Release Process
Setting up pdf.js Development Environment for Windows
Setup PDF.js in a website
Squashing Commits
Style Guide
Subscribe to Mozilla's Bugzilla Firefox PDF Viewer component
Third party viewer usage
Updating pdf.js on Mozilla Central
Viewer options
Windows Bot Setup
23
Bots
Tim van der Meij редактировал(а) эту страницу 2024-07-01 18:23:08 +02:00
Содержание
PDF.js maintains two bots that perform various tasks for pull requests. The bots are controlled by the owners and selected collaborators of the project. This page lists the characteristics of the bots and describe the tasks that they are able to perform.
Tasks
We use GitHub Actions for linting and running subset of the tests, but we use the bots for all other tasks like generating a preview for a pull request and running all tests. The available bot commands are:
preview
(generates a preview build for the pull request)unittest
(runs the unit tests)integrationtest
(runs the integration tests)browsertest
(runs the reference tests)test
(runs all tests, i.e., the unit tests, font tests, integration tests and reference tests)xfatest
(runs all tests, i.e., the unit tests, font tests, integration tests and reference tests, but limits the reference tests to only XFA documents for faster XFA development)makeref
(generates new reference images for the reference tests, for instance when a pull request changes the rendering of some PDFs)
Characteristics
PDF.js uses a Linux and a Windows bot that both run Node.js 20.14.0 LTS. The Linux bot has a few additional font packages to improve font rendering:
latex-cjk-all
xfonts-wqy
fonts-arphic-ukai
fonts-arphic-uming
fonts-ipafont-mincho
fonts-ipafont-gothic
fonts-unfonts-core
Setup
Windows (outdated, but kept for reference)