-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into fix/overflow-all-children-elements
- Loading branch information
Showing
101 changed files
with
979 additions
and
701 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
Validating CODEOWNERS rules …
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,21 @@ | ||
import * as path from 'path'; | ||
import { scenarioIterations } from './scenarioIterations'; | ||
import { scenarioRenderTypes } from './scenarioRenderTypes'; | ||
import { scenarioNames } from './scenarioNames'; | ||
|
||
const projectRoot = path.join(__dirname, '../../'); | ||
const projectRootPath = 'apps/perf-test-react-components'; | ||
const outDir = path.join(projectRoot, './dist'); | ||
const tempDir = path.join(projectRoot, './logfiles'); | ||
const scenariosSrcDirPath = path.join(projectRoot, './src/scenarios'); | ||
|
||
export const config = { | ||
projectName: '@fluentui/react-components', | ||
projectRootPath, | ||
outDir, | ||
tempDir, | ||
scenariosSrcDirPath, | ||
scenarioIterations, | ||
scenarioRenderTypes, | ||
scenarioNames, | ||
}; |
3 changes: 2 additions & 1 deletion
3
...eact-components/src/scenarioIterations.ts → ...ts/config/perf-test/scenarioIterations.ts
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
import type { ScenarioIterations } from '@fluentui/scripts-tasks'; | ||
// You don't have to add scenarios to this structure unless you want their iterations to differ from the default. | ||
export const scenarioIterations = { | ||
export const scenarioIterations: ScenarioIterations = { | ||
MakeStyles: 50000, | ||
FluentProviderWithTheme: 10, | ||
}; |
3 changes: 2 additions & 1 deletion
3
...est-react-components/src/scenarioNames.ts → ...ponents/config/perf-test/scenarioNames.ts
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
import type { ScenarioNames } from '@fluentui/scripts-tasks'; | ||
// You don't have to add scenarios to this structure unless you want their display name to differ | ||
// from their scenario name. | ||
export const scenarioNames = {}; | ||
export const scenarioNames: ScenarioNames = {}; |
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 |
---|---|---|
@@ -1,7 +1,8 @@ | ||
import { getPerfRegressions } from './tasks/perf-test'; | ||
import { preset, task, series } from '@fluentui/scripts-tasks'; | ||
import { preset, task, series, getPerfRegressions } from '@fluentui/scripts-tasks'; | ||
|
||
import { config } from './config/perf-test'; | ||
|
||
preset(); | ||
|
||
task('run-perf-test', getPerfRegressions); | ||
task('run-perf-test', () => getPerfRegressions(config)); | ||
task('perf-test', series('build', 'bundle', 'run-perf-test')); |
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,10 @@ | ||
import { loadScenarios, render } from '@fluentui/scripts-perf-test-flamegrill'; | ||
|
||
bootstrap(); | ||
|
||
function bootstrap() { | ||
const reqContext = require.context('./scenarios/', false, /^\.\/[^\.]*\.(j|t)sx?$/); | ||
const scenarios = loadScenarios(reqContext); | ||
|
||
render(scenarios); | ||
} |
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
apps/perf-test-react-components/src/scenarios/scenarioList.ts
This file was deleted.
Oops, something went wrong.
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,24 @@ | ||
import * as path from 'path'; | ||
import { scenarioIterations } from './scenarioIterations'; | ||
import { scenarioRenderTypes } from './scenarioRenderTypes'; | ||
import { scenarioNames } from './scenarioNames'; | ||
|
||
const projectRoot = path.join(__dirname, '../../'); | ||
const projectRootPath = 'apps/perf-test'; | ||
const outDir = path.join(projectRoot, './dist'); | ||
const tempDir = path.join(projectRoot, './logfiles'); | ||
const scenariosSrcDirPath = path.join(projectRoot, './src/scenarios'); | ||
|
||
export const config = { | ||
projectName: '@fluentui/react', | ||
projectRootPath, | ||
outDir, | ||
tempDir, | ||
scenarioIterations, | ||
scenarioRenderTypes, | ||
scenariosSrcDirPath, | ||
excludeScenarios: [ | ||
// TeachingBubble perf test is hanging after puppeteer pin to v19. Disabling for now to unblock SWC migration work. | ||
'TeachingBubble', | ||
], | ||
}; |
4 changes: 3 additions & 1 deletion
4
apps/perf-test/src/scenarioIterations.ts → ...st/config/perf-test/scenarioIterations.ts
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
4 changes: 3 additions & 1 deletion
4
apps/perf-test/src/scenarioNames.ts → ...rf-test/config/perf-test/scenarioNames.ts
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 |
---|---|---|
@@ -1,7 +1,8 @@ | ||
import { getPerfRegressions } from './tasks/perf-test'; | ||
import { preset, task, series } from '@fluentui/scripts-tasks'; | ||
import { preset, task, series, getPerfRegressions } from '@fluentui/scripts-tasks'; | ||
|
||
import { config } from './config/perf-test'; | ||
|
||
preset(); | ||
|
||
task('run-perf-test', getPerfRegressions); | ||
task('run-perf-test', () => getPerfRegressions(config)); | ||
task('perf-test', series('build', 'bundle', 'run-perf-test')); |
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,14 @@ | ||
import { loadScenarios, render } from '@fluentui/scripts-perf-test-flamegrill'; | ||
|
||
import { initializeIcons } from '@fluentui/react/lib/Icons'; | ||
|
||
bootstrap(); | ||
|
||
function bootstrap() { | ||
const reqContext = require.context('./scenarios/', false, /^\.\/[^\.]*\.(j|t)sx?$/); | ||
const scenarios = loadScenarios(reqContext); | ||
|
||
initializeIcons(); | ||
|
||
render(scenarios); | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.