Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'origin/master' into docs/paragraphs-audio
Browse files Browse the repository at this point in the history
  • Loading branch information
hlomzik committed Nov 9, 2023
2 parents 17201c9 + 5b34c44 commit a3567e3
Show file tree
Hide file tree
Showing 70 changed files with 3,256 additions and 1,585 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_bundle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
ref: ${{ inputs.sha }}

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: "${{ env.NODE }}"

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/e2e_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ env:
jobs:
run:
name: "E2E Tests"
runs-on: ubuntu-latest
runs-on: ubuntu-latest-4c-16gb
# ci can be skipped with `[skip ci]` prefix in message
if: "!contains(github.event.head_commit.message, 'skip ci')"
steps:
Expand All @@ -27,7 +27,7 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
ref: ${{ inputs.sha }}

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: "${{ env.NODE }}"

Expand Down Expand Up @@ -87,7 +87,7 @@ jobs:
npm list --depth=1 || true
- name: Run e2e test suite
timeout-minutes: 40
timeout-minutes: 45
env:
NODE_ENV: 'production'
TEST_ENV: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
ref: ${{ inputs.sha }}

- name: "Setup NodeJS"
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: "${{ env.NODE }}"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/fun_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
ref: ${{ inputs.sha }}

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: "${{ env.NODE }}"

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr-labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ jobs:
- uses: hmarr/[email protected]

- name: "Validate PR's title"
uses: thehanimo/[email protected].0
uses: thehanimo/[email protected].1
with:
GITHUB_TOKEN: ${{ github.token }}
pass_on_octokit_error: false
configuration_path: ".github/pr-title-checker-config.json"

- name: "Set PR's label based on title"
uses: release-drafter/release-drafter@v5.24.0
uses: release-drafter/release-drafter@v5.25.0
with:
disable-releaser: true
config-name: autolabeler.yml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-set-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
fetch-depth: 1
path: ${{ env.LSF_DIR }}

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: "${{ env.NODE }}"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
ref: ${{ inputs.sha }}

- name: "Setup NodeJS"
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: "${{ env.NODE }}"

Expand Down
3 changes: 2 additions & 1 deletion e2e/fragments/AtImageView.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const Helpers = require('../tests/helpers');

module.exports = {
_stageSelector: '.konvajs-content',
_stageFrameSelector: '[class^="frame--"]',
_stageBBox: null,

_toolBarSelector: '.lsf-toolbar',
Expand Down Expand Up @@ -41,7 +42,7 @@ module.exports = {
},

async grabStageBBox() {
const bbox = await I.grabElementBoundingRect(this._stageSelector);
const bbox = await I.grabElementBoundingRect(this._stageFrameSelector);

return bbox;
},
Expand Down
4 changes: 4 additions & 0 deletions e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,9 @@
"v8-to-istanbul": "^9.0.0",
"xml2js": "^0.4.23",
"xmlbuilder": "^15.1.1"
},
"resolutions": {
"debug": "^4.3.1",
"electron": "^22.3.25"
}
}
1 change: 1 addition & 0 deletions e2e/setup/feature-flags.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ module.exports = {
fflag_fix_front_lsdv_4620_memory_leaks_100723_short: true,
fflag_feat_front_lsdv_4620_outliner_optimization_310723_short: true,
fflag_fix_front_lsdv_5248_double_click_delay_280823_short: true,
fflag_fix_front_leap_32_zoom_perf_190923_short: true,
};
6 changes: 3 additions & 3 deletions e2e/tests/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -532,11 +532,11 @@ async function generateImageUrl({ width, height }) {
}

const getCanvasSize = () => {
const stage = window.Konva.stages[0];
const imageObject = window.Htx.annotationStore.selected.objects.find(o => o.type === 'image');

return {
width: stage.width(),
height: stage.height(),
width: imageObject.canvasSize.width,
height: imageObject.canvasSize.height,
};
};
const getImageSize = () => {
Expand Down
12 changes: 0 additions & 12 deletions e2e/tests/nested-choices.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,6 @@ Scenario('Switching states at nested choices', async ({ I, LabelStudio })=>{

I.amOnPage('/');

LabelStudio.setFeatureFlags({
ff_dev_2007_rework_choices_280322_short: true,
ff_dev_2100_preselected_choices_250422_short: true,
ff_front_dev_2244_nested_choices_des_107_160522_short: true,
});

LabelStudio.init(params);

{
Expand Down Expand Up @@ -100,12 +94,6 @@ Scenario('Nested choices states from the annotation', async ({ I, LabelStudio })

I.amOnPage('/');

LabelStudio.setFeatureFlags({
ff_dev_2007_rework_choices_280322_short: true,
ff_dev_2100_preselected_choices_250422_short: true,
ff_front_dev_2244_nested_choices_des_107_160522_short: true,
});

// Load annotation with each type of selection for branches (fully checked, fully unchecked, partly checked)
LabelStudio.init({
...params,
Expand Down
7 changes: 0 additions & 7 deletions e2e/tests/regression-tests/dynamic-choices.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,6 @@ const assert = require('assert');
Feature('Dynamic choices').tag('@regress');

Scenario('Hotkeys for dynamic choices', async ({ I, LabelStudio })=>{
LabelStudio.setFeatureFlags({
ff_dev_2007_rework_choices_280322_short: true,
ff_dev_2007_dev_2008_dynamic_tag_children_250322_short: true,
ff_dev_2100_preselected_choices_250422_short: true,
ff_front_dev_2244_nested_choices_des_107_160522_short: true,
});

const params = {
config: `
<View>
Expand Down
6 changes: 0 additions & 6 deletions e2e/tests/regression-tests/preselected-choices.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ Scenario('Make a duplicate of annotation with preselected choices', async ({ I,
};

I.amOnPage('/');
LabelStudio.setFeatureFlags({
ff_dev_2100_preselected_choices_250422_short: true,
});
LabelStudio.init(params);
// Try to create copy of current annotation
AtTopbar.click('[aria-label="Copy Annotation"]');
Expand Down Expand Up @@ -75,9 +72,6 @@ Scenario('Make a duplicate of empty annotation with preselected choices', async
};

I.amOnPage('/');
LabelStudio.setFeatureFlags({
ff_dev_2100_preselected_choices_250422_short: true,
});
LabelStudio.init(params);
// Try to create copy of current annotation
AtTopbar.click('[aria-label="Copy Annotation"]');
Expand Down
1 change: 0 additions & 1 deletion e2e/tests/taxonomy.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ Feature('Taxonomy');
Before(({ LabelStudio }) => {
LabelStudio.setFeatureFlags({
fflag_feat_front_lsdv_5451_async_taxonomy_110823_short: false,
ff_dev_2007_dev_2008_dynamic_tag_children_250322_short: true,
fflag_fix_front_dev_3617_taxonomy_memory_leaks_fix: true,
ff_front_dev_1536_taxonomy_user_labels_150222_long: true,
ff_front_1170_outliner_030222_short: true,
Expand Down
Loading

0 comments on commit a3567e3

Please sign in to comment.