Repository navigation
fix(desktop-gpui): keep the camera bubble above the picker overlays #3441
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
83c1e0d
test(desktop-gpui): probe how the picker overlays stack against the c…
richiemcilroy 16ec5a6
ci(desktop-gpui): link Spacedrive.framework where the picker smoke bi…
richiemcilroy 1af0612
test(desktop-gpui): read X11 stacking from the window tree and run th…
richiemcilroy 80d5266
fix(desktop-gpui): keep the camera bubble above the picker overlays
richiemcilroy 9914f72
ci(desktop-gpui): run the Windows picker smoke on windows-2022
richiemcilroy 77a2f41
fix(desktop-gpui): raise the camera outside the gpui borrow and re-te…
richiemcilroy 831427b
Merge origin/main into fix/gpui-camera-above-picker
richiemcilroy 986e882
chore(desktop-gpui): drop comments that restate the picker smoke
richiemcilroy c575453
fix(desktop-gpui): the picker smoke reads the probe's own verdict, no…
richiemcilroy 9813a90
Merge main into fix/gpui-camera-above-picker
richiemcilroy b55f926
ci(picker-smoke): skip the matrix for fork pull requests that change …
richiemcilroy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,167 @@ | ||
| name: Picker smoke (real app) | ||
|
|
||
| on: | ||
| pull_request: | ||
| types: [opened, synchronize, reopened, ready_for_review] | ||
| paths: | ||
| - "apps/desktop-gpui/src/target_overlay.rs" | ||
| - "apps/desktop-gpui/src/app_windows.rs" | ||
| - "apps/desktop-gpui/src/camera_window.rs" | ||
| - "apps/desktop-gpui/src/picker_probe.rs" | ||
| - "apps/desktop-gpui/src/platform.rs" | ||
| - "apps/desktop-gpui/src/platform/**" | ||
| - "scripts/picker-smoke/**" | ||
| - ".github/workflows/picker-smoke.yml" | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
| pull-requests: read | ||
|
|
||
| concurrency: | ||
| group: picker-smoke-${{ github.event.pull_request.number || github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| # A pull request from a fork that changes only this workflow or the smoke's | ||
| # scripts does not queue the three-runner matrix; one that also changes the | ||
| # app does, and so does any change from this repository. | ||
| scope: | ||
| name: Scope | ||
| runs-on: blacksmith-2vcpu-ubuntu-2404 | ||
| timeout-minutes: 5 | ||
| outputs: | ||
| run: ${{ steps.scope.outputs.run }} | ||
| steps: | ||
| - name: Scope | ||
| id: scope | ||
| env: | ||
| GH_TOKEN: ${{ github.token }} | ||
| EVENT: ${{ github.event_name }} | ||
| PR: ${{ github.event.pull_request.number }} | ||
| SAME_REPO: ${{ github.event.pull_request.head.repo.full_name == github.repository }} | ||
| run: | | ||
| set -euo pipefail | ||
| if [[ "$EVENT" != pull_request || "$SAME_REPO" == true ]]; then | ||
| echo "run=true" >> "$GITHUB_OUTPUT"; exit 0 | ||
| fi | ||
| gh api "repos/$GITHUB_REPOSITORY/pulls/$PR/files" --paginate --jq '.[].filename' > "$RUNNER_TEMP/changed.txt" | ||
| app='^apps/desktop-gpui/src/' | ||
| if grep -qE "$app" "$RUNNER_TEMP/changed.txt"; then | ||
| echo "run=true" >> "$GITHUB_OUTPUT" | ||
| else | ||
| echo "run=false" >> "$GITHUB_OUTPUT" | ||
| echo "A fork pull request that changes no app code does not run the picker smoke." | tee -a "$GITHUB_STEP_SUMMARY" | ||
| fi | ||
|
|
||
| smoke: | ||
| name: Picker smoke (${{ matrix.settings.name }}) | ||
| needs: scope | ||
| if: needs.scope.outputs.run == 'true' | ||
| timeout-minutes: 60 | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| settings: | ||
| - name: macOS | ||
| slug: macos | ||
| target: aarch64-apple-darwin | ||
| runner: blacksmith-6vcpu-macos-15 | ||
| - name: Windows | ||
| slug: windows | ||
| target: x86_64-pc-windows-msvc | ||
| runner: windows-2022 | ||
| - name: Linux X11 | ||
| slug: linux-x11 | ||
| target: x86_64-unknown-linux-gnu | ||
| runner: blacksmith-8vcpu-ubuntu-2404 | ||
| runs-on: ${{ matrix.settings.runner }} | ||
| env: | ||
| CARGO_PROFILE_DEV_DEBUG: "0" | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Install Linux desktop dependencies | ||
| if: ${{ runner.os == 'Linux' }} | ||
| uses: ./.github/actions/install-desktop-deps | ||
|
|
||
| - name: Install a window manager and a test window | ||
| if: ${{ runner.os == 'Linux' }} | ||
| run: sudo apt-get install -y openbox xterm | ||
|
|
||
| - name: Rust setup | ||
| uses: dtolnay/rust-toolchain@1.95.0 | ||
| with: | ||
| targets: ${{ matrix.settings.target }} | ||
|
|
||
| - uses: ./.github/actions/setup-rust-cache | ||
| with: | ||
| target: ${{ matrix.settings.target }} | ||
| prefix-key: v1-rust-gpui | ||
| save-cache: "false" | ||
| workspaces: apps/desktop-gpui -> target | ||
|
|
||
| - name: Run setup | ||
| shell: bash | ||
| run: node scripts/setup.js | ||
| env: | ||
| RUST_TARGET_TRIPLE: ${{ matrix.settings.target }} | ||
|
|
||
| - name: Prepare GPUI dependency | ||
| shell: bash | ||
| run: | | ||
| node scripts/sync-desktop-versions.mjs | ||
| ./scripts/prepare-gpui-dependency.sh | ||
|
|
||
| - name: Build the app | ||
| shell: bash | ||
| run: | | ||
| cargo +1.95.0 build --manifest-path apps/desktop-gpui/Cargo.toml --locked \ | ||
| --target ${{ matrix.settings.target }} --bin cap-gpui | ||
| if [[ "$RUNNER_OS" == "macOS" ]]; then | ||
| for frameworks in "$GITHUB_WORKSPACE/apps/desktop-gpui/target/${{ matrix.settings.target }}/debug/Frameworks" \ | ||
| "$GITHUB_WORKSPACE/apps/desktop-gpui/target/${{ matrix.settings.target }}/Frameworks"; do | ||
| mkdir -p "$frameworks" | ||
| ln -sfn "$GITHUB_WORKSPACE/target/Frameworks/Spacedrive.framework" "$frameworks/Spacedrive.framework" | ||
| done | ||
| fi | ||
|
|
||
| - name: Picker probe | ||
| shell: bash | ||
| run: | | ||
| app="$GITHUB_WORKSPACE/apps/desktop-gpui/target/${{ matrix.settings.target }}/debug/cap-gpui" | ||
| out="$RUNNER_TEMP/picker-smoke" | ||
| case "$RUNNER_OS" in | ||
| macOS) | ||
| caffeinate -u -t 2 | ||
| open -a TextEdit | ||
| sleep 2 | ||
| scripts/picker-smoke/run.sh "$app" "$out" | ||
| ;; | ||
| Windows) | ||
| export PATH="$(cygpath "$GITHUB_WORKSPACE/target/debug"):$PATH" | ||
| notepad.exe & | ||
| sleep 2 | ||
| scripts/picker-smoke/run.sh "$app.exe" "$out" | ||
| ;; | ||
| Linux) | ||
| export LD_LIBRARY_PATH="$GITHUB_WORKSPACE/target/native-deps/lib:$GITHUB_WORKSPACE/target/debug${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" | ||
| Xvfb :99 -screen 0 1920x1080x24 -noreset & | ||
| export DISPLAY=:99 | ||
| sleep 1 | ||
| openbox & | ||
| sleep 1 | ||
| xterm -geometry 100x30+300+200 & | ||
| sleep 1 | ||
| scripts/picker-smoke/run.sh "$app" "$out" | ||
| ;; | ||
| esac | ||
|
|
||
| - name: Upload logs | ||
| if: always() | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: picker-smoke-${{ matrix.settings.slug }} | ||
| path: ${{ runner.temp }}/picker-smoke | ||
| retention-days: 7 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P2: Fork pull requests can queue three full-platform app builds by editing only the new smoke workflow
Self-referencing
pathslets a fork queue 3 full app builds (60-min timeout) by editing only CI/harness files.Gate workflow/harness-only triggers to same-repo PRs (as perf-budget.yml does) or drop those paths from the fork-triggerable filters.
AI prompt