-
Notifications
You must be signed in to change notification settings - Fork 323
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/develop' into wip/jtulach/Autosc…
…opedConstructors_8645
- Loading branch information
Showing
231 changed files
with
6,691 additions
and
3,697 deletions.
There are no files selected for viewing
This file contains 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,46 @@ | ||
# This file is manually managed. It is used to upload benchmarks to to the | ||
# https://github.com/enso-org/engine-benchmark-results repository. | ||
|
||
name: Benchmarks upload | ||
on: | ||
workflow_run: | ||
workflows: ["Benchmark Engine", "Benchmark Standard Libraries"] | ||
types: | ||
- completed | ||
jobs: | ||
upload-benchmarks: | ||
name: Upload benchmarks | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout enso repository | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: enso-org/enso | ||
path: enso | ||
- name: Checkout engine-benchmark-results repository | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: enso-org/engine-benchmark-results | ||
path: engine-benchmark-results | ||
token: ${{ secrets.ENSO_BENCHMARK_RESULTS_TOKEN }} | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y \ | ||
python3 \ | ||
python3-jinja2 \ | ||
python3-numpy \ | ||
python3-pandas | ||
sudo apt-get install -y gh | ||
- name: Set up git | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Enso CI Bot" | ||
- name: Upload benchmarks | ||
run: | | ||
cd enso/tools/performance/engine-benchmarks | ||
python3 website_regen.py \ | ||
-v \ | ||
--local-repo ${{ github.workspace }}/engine-benchmark-results | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.ENSO_BENCHMARK_RESULTS_TOKEN }} |
This file contains 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 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 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 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 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,58 @@ | ||
import { expect, test } from '@playwright/test' | ||
import assert from 'assert' | ||
import { nextTick } from 'vue' | ||
import * as actions from './actions' | ||
import * as customExpect from './customExpect' | ||
import * as locate from './locate' | ||
|
||
test('Selecting nodes by click', async ({ page }) => { | ||
await actions.goToGraph(page) | ||
const node1 = locate.graphNodeByBinding(page, 'five') | ||
const node2 = locate.graphNodeByBinding(page, 'ten') | ||
await customExpect.not.toBeSelected(node1) | ||
await customExpect.not.toBeSelected(node2) | ||
|
||
await locate.graphNodeIcon(node1).click() | ||
await customExpect.toBeSelected(node1) | ||
await customExpect.not.toBeSelected(node2) | ||
|
||
await locate.graphNodeIcon(node2).click() | ||
await customExpect.not.toBeSelected(node1) | ||
await customExpect.toBeSelected(node2) | ||
|
||
await page.waitForTimeout(600) // Avoid double clicks | ||
await locate.graphNodeIcon(node1).click({ modifiers: ['Shift'] }) | ||
await customExpect.toBeSelected(node1) | ||
await customExpect.toBeSelected(node2) | ||
|
||
await locate.graphNodeIcon(node2).click() | ||
await customExpect.not.toBeSelected(node1) | ||
await customExpect.toBeSelected(node2) | ||
|
||
await page.mouse.click(200, 200) | ||
await customExpect.not.toBeSelected(node1) | ||
await customExpect.not.toBeSelected(node2) | ||
}) | ||
|
||
test('Selecting nodes by area drag', async ({ page }) => { | ||
await actions.goToGraph(page) | ||
const node1 = locate.graphNodeByBinding(page, 'five') | ||
const node2 = locate.graphNodeByBinding(page, 'ten') | ||
await customExpect.not.toBeSelected(node1) | ||
await customExpect.not.toBeSelected(node2) | ||
|
||
const node1BBox = await node1.locator('.selection').boundingBox() | ||
const node2BBox = await node2.boundingBox() | ||
assert(node1BBox) | ||
assert(node2BBox) | ||
await page.mouse.move(node1BBox.x - 50, node1BBox.y - 50) | ||
await page.mouse.down() | ||
await page.mouse.move(node1BBox.x - 49, node1BBox.y - 49) | ||
await expect(page.locator('.SelectionBrush')).toBeVisible() | ||
await page.mouse.move(node2BBox.x + node2BBox.width, node2BBox.y + node2BBox.height) | ||
await customExpect.toBeSelected(node1) | ||
await customExpect.toBeSelected(node2) | ||
await page.mouse.up() | ||
await customExpect.toBeSelected(node1) | ||
await customExpect.toBeSelected(node2) | ||
}) |
This file contains 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 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 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 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.