coactions / setup-xvfb Goto Github PK
View Code? Open in Web Editor NEWRun your tests headlessly by enabling xvfb
Home Page: https://github.com/marketplace/actions/setup-xvfb
License: MIT License
Run your tests headlessly by enabling xvfb
Home Page: https://github.com/marketplace/actions/setup-xvfb
License: MIT License
I tried to do:
run: npm install ... ; bash script.sh
to no avail,
I also did:
run: |
npm install
bash script.sh
which also failed.
The latter returned this:
Command: npm install -g terminalizer
/usr/bin/xvfb-run --auto-servernum npm install -g terminalizer
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
added 260 packages in 9s
32 packages are looking for funding
run `npm fund` for details
/usr/bin/bash /home/runner/work/_actions/coactions/setup-xvfb/v1/dist/cleanup.sh
/usr/bin/bash: /home/runner/work/_actions/coactions/setup-xvfb/v1/dist/cleanup.sh: No such file or directory
Command: cd docs/os/Animations
/usr/bin/xvfb-run --auto-servernum cd docs/os/Animations
/usr/bin/bash /home/runner/work/_actions/coactions/setup-xvfb/v1/dist/cleanup.sh
/usr/bin/bash: /home/runner/work/_actions/coactions/setup-xvfb/v1/dist/cleanup.sh: No such file or directory
Command: bash create.sh
/usr/bin/xvfb-run --auto-servernum bash create.sh
bash: create.sh: No such file or directory
/usr/bin/bash /home/runner/work/_actions/coactions/setup-xvfb/v1/dist/cleanup.sh
/usr/bin/bash: /home/runner/work/_actions/coactions/setup-xvfb/v1/dist/cleanup.sh: No such file or directory
Error: The process '/usr/bin/xvfb-run' failed with exit code 127
which I don't know if it is my problem or not? It looks weird though.
While running this action it's always throwing warning
/usr/bin/bash: /home/runner/work/_actions/coactions/setup-xvfb/v1.0.1/dist/cleanup.sh: No such file or directory
as cleanup.sh in the build process is actually not copied to dist folder
Builds using this action produce output like
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: coactions/setup-xvfb@b6b4fcfb9f5a895edadc3bc76318fae0ac17c8b3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
It would be nice to not see it.
Looking through the docs I wasn't sure if this is possible:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
...
- name: Build and Test
uses: coactions/setup-xvfb@v1
env:
BUILD_ID: "..."
BUILD_TYPE: "..."
BUILD_LABEL: "..."
with:
shell: bash
run: whatever
Is env
as well as shell: bash
supported? Especially for Windows this is important because PowerShell does not work in my case .
See at the bottom of: https://github.com/actions/runner-images/blob/main/images/linux/Ubuntu2204-Readme.md
And a successful run at https://github.com/fregante/text-field-edit/actions/runs/6107546540/workflow#L28
I'd probably add a notice to the repo and/or deprecate it.
Hi, I am trying use this setup-xvfb
action for a Python Qt project I am developing and I get "Aborted (core dumped)". I reduced my setup to a minimal example, see https://github.com/hakonhagland/pytest-xvfb-test, and this github action job log:
https://github.com/hakonhagland/pytest-xvfb-test/actions/runs/5626878877/job/15248519431
[...]
File "/opt/hostedtoolcache/Python/3.10.12/x64/lib/python3.10/runpy.py", line 86 in _run_code
File "/opt/hostedtoolcache/Python/3.10.12/x64/lib/python3.10/runpy.py", line 196 in _run_module_as_main
Extension modules: PyQt6.QtCore, PyQt6.QtGui, PyQt6.QtWidgets, PyQt6.QtTest (total: 4)
Aborted (core dumped)
/usr/bin/bash /home/runner/work/_actions/coactions/setup-xvfb/v1/dist/cleanup.sh
/usr/bin/bash: /home/runner/work/_actions/coactions/setup-xvfb/v1/dist/cleanup.sh: No such file or directory
Error: The process '/usr/bin/xvfb-run' failed with exit code 134
The workflow step that triggers the issue is like this:
- name: Run unit tests
uses: coactions/setup-xvfb@v1
with:
run: |
poetry run python -m pytest
Any ideas what could be wrong?
Hi guys,
This issue was previously raised here. I was wondering whether it was solved somehow. Do you guys have any plans for this?
Cheers,
Ilan.
When migrating to this action a discussion about mutter as an alternative to xvfb came up:
eclipse-m2e/m2e-core#1344 (comment)
The main reasoning was that mutter would be the preferred way compared to xvfb and xvfb seems to be not as actively maintained as mutter. Can you share your assessment about that?
Would it be interesting for you to provide a similar action like this one, but for mutter? For example setup-mutter?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.