Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: David Anyatonwu <[email protected]>
  • Loading branch information
onyedikachi-david committed Aug 27, 2024
1 parent 964bfa0 commit 4b3e47f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install -y xvfb pulseaudio ffmpeg imagemagick xdotool x11-xserver-utils xterm openbox alsa-utils
Xvfb :99 -ac -screen 0 1024x768x24 &
Xvfb :99 -ac -screen 0 1024x768 &
export DISPLAY=:99
echo "DISPLAY=:99" >> $GITHUB_ENV
sleep 2
Expand Down Expand Up @@ -199,6 +199,8 @@ jobs:
ps aux | grep -E 'Xvfb|xterm|screenpipe|simulate|openbox'
echo "Screenshot exists:"
ls -l /tmp/screenshot.png
echo "Screenshot content:"
file /tmp/screenshot.png
echo "X11 environment variables:"
env | grep -E 'DISPLAY|XAUTHORITY'
echo "X11 server check:"
Expand All @@ -207,6 +209,8 @@ jobs:
aplay -l
echo "PulseAudio status:"
pactl info
echo "Screenpipe log tail:"
tail -n 50 ./test_data/logs/screenpipe.log
done
echo "Health check failed after 4 minutes"
echo "Xvfb log:"
Expand Down
2 changes: 1 addition & 1 deletion scripts/launch_test_window.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
# Check if running on Ubuntu
if [[ "$(uname)" == "Linux" ]]; then
# Launch xterm with a visible window and some content
xterm -geometry 80x24+100+100 -e "echo 'Test Window'; while true; do date; sleep 1; done" &
xterm -geometry 80x24+100+100 -bg red -fg white -e "echo 'Test Window'; while true; do date; sleep 1; done" &
fi
2 changes: 1 addition & 1 deletion scripts/simulate_screen_activity.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ if [[ "$(uname)" == "Linux" ]]; then

# Function to capture screenshot
capture_screenshot() {
import -window root /tmp/screenshot.png
scrot -o /tmp/screenshot.png
}

# Main simulation loop
Expand Down

0 comments on commit 4b3e47f

Please sign in to comment.