Files
undergroundwires 287b8e61a0 Improve URL checks to reduce false-negatives
This commit improves the URL health checking mechanism to reduce false
negatives.

- Treat all 2XX status codes as successful, addressing issues with codes
  like `204`.
- Improve URL matching to exclude URLs within Markdown inline code block
  and support URLs containing parentheses.
- Add `forceHttpGetForUrlPatterns` to customize HTTP method per URL to
  allow verifying URLs behind CDN/WAFs that do not respond to HTTP HEAD.
- Send the Host header for improved handling of webpages behind proxies.
- Improve formatting and context for output messages.
- Fix the defaulting options for redirects and cookie handling.
- Update the user agent pool to modern browsers and platforms.
- Add support for randomizing TLS fingerprint to mimic various clients
  better, improving the effectiveness of checks. However, this is not
  fully supported by Node.js's HTTP client; see nodejs/undici#1983 for
  more details.
- Use `AbortSignal` instead of `AbortController` as more modern and
  simpler way to handle timeouts.
2024-03-15 13:42:29 +01:00
..
2023-12-28 11:57:38 +01:00

check-desktop-runtime-errors

This script automates the processes of:

  1. Building
  2. Packaging
  3. Installing
  4. Executing
  5. Verifying Electron distributions

It runs the application for a duration and detects runtime errors in the packaged application via:

  • Log verification: Checking application logs for errors and validating successful application initialization.
  • stderr monitoring: Continuous listening to the stderr stream for unexpected errors.
  • Window title inspection: Checking for window titles that indicate crashes before logging becomes possible.

Upon error, the script captures a screenshot (if --screenshot is provided) and terminates.

Options

  • --build: Clears the electron distribution directory and forces a rebuild of the Electron app.
  • --screenshot: Takes a screenshot of the desktop environment after running the application.

This module provides utilities for building, executing, and validating Electron desktop apps. It can be used to automate checking for runtime errors during development.

Configs

Configurations are defined in config.ts.