question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Migrate bots to GitHub Actions

See original GitHub issue

PDF.js has two dedicated bots for testing. However, this is all custom and maintained manually. This is already a problem now since the bots run quite old OS versions that lack a (modern enough) Python 3 version, which blocks the ttx upgrade for example (see #11802).

We could unblock this work by upgrading the OS versions, but for the longer term it would be better for the project to move towards a managed solution such as GitHub Actions. The latter integrates well with GitHub and our existing jobs, and reading quickly through the docs might allow us to create a botio-like flow where whitelisted users can comment on PRs to trigger actions (builds).

In terms of our builds, I mainly see a challenge for the browser tests since they are stateful, so we need to be able to fetch/store the reference images somewhere. I’m thinking this could be done in an S3 bucket, and let GitHub manage the credentials for that.

Let’s investigate if these solutions could work for us and how much logic we have to maintain ourselves. The objective is to use existing solutions as much as possible so we don’t have to build/maintain it ourselves, as well as improving reliability.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:15 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
brendandahlcommented, Sep 2, 2021

@timvandermeij I’ve added an s3 bucket. I’ve also added the following repository secrets:

AWS_ACCESS_KEY_ID AWS_REGION AWS_S3_BUCKET AWS_SECRET_ACCESS_KEY

1reaction
brendandahlcommented, Aug 9, 2021

@brendandahl Would it be possible for you to set up an S3 bucket and configure the required secrets for accessing it in GitHub’s secret manager? Once that’s done, we can test uploading our artifacts and reference images there. See https://dev.to/johnkevinlosito/deploy-static-website-to-s3-using-github-actions-4a0e for how to do this.

Yeah, we should be able to do that. Let me look into getting it set up.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Automating migration with GitHub Actions Importer
You can use GitHub Actions Importer to plan and automatically migrate your CI/CD pipelines to GitHub Actions from Azure DevOps, CircleCI, GitLab, Jenkins, ......
Read more >
Github Action/Bot for automatically generate migration files
Github Action /Bot for automatically generate migration files #16577 ... database changes necessary to merge it so you leave the migration file as...
Read more >
Migrate to GitHub actions #77 - web-platform-tests/wpt-pr-bot
Benefits: Easier to discover actions if they're invoked from the wpt repo (the actions themselves need not be defined there, but could be);...
Read more >
fastlane-bot migration to GitHub Actions · Issue #3
Based on the proposal, we would like to migrate to GitHub Actions. This will bring a bunch of improvements: well tested and small,...
Read more >
GitHub Actions Importer
The GitHub Actions Importer helps you plan and automate the migration of Azure DevOps, CircleCI, GitLab, Jenkins, and Travis CI pipelines to GitHub...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found