w3c / aria-at-app

Test runner and results reporter for ARIA-AT
http://aria-at.w3.org/
Other
35 stars 15 forks source link

Run `import-tests` during deploy #1099

Closed howard-e closed 1 month ago

howard-e commented 1 month ago

The following error is now getting thrown when environment deploys are done; see trace below:

reported error message ```json { "changed": true, "cmd": [ "./deploy/scripts/export-and-exec.sh", "/home/aria-bot/config.env", "yarn", "workspace", "client", "build" ], "delta": "0:00:50.421644", "end": "2024-05-20 14:23:13.958503", "msg": "non-zero return code", "rc": 1, "start": "2024-05-20 14:22:23.536859", "stderr": "`isModuleDeclaration` has been deprecated, please migrate to `isImportOrExportDeclaration`\n at isModuleDeclaration (/home/aria-bot/aria-at-report/node_modules/@babel/types/lib/validators/generated/index.js:3940:35)\n at PluginPass.Program (/home/aria-bot/aria-at-report/node_modules/babel-plugin-lodash/lib/index.js:102:44)\nerror Command failed with exit code 1.\nerror Command failed.\nExit code: 1\nCommand: /usr/bin/node\nArguments: /usr/share/yarn/lib/cli.js build\nDirectory: /home/aria-bot/aria-at-report/client\nOutput:", "stderr_lines": [ "`isModuleDeclaration` has been deprecated, please migrate to `isImportOrExportDeclaration`", " at isModuleDeclaration (/home/aria-bot/aria-at-report/node_modules/@babel/types/lib/validators/generated/index.js:3940:35)", " at PluginPass.Program (/home/aria-bot/aria-at-report/node_modules/babel-plugin-lodash/lib/index.js:102:44)", "error Command failed with exit code 1.", "error Command failed.", "Exit code: 1", "Command: /usr/bin/node", "Arguments: /usr/share/yarn/lib/cli.js build", "Directory: /home/aria-bot/aria-at-report/client", "Output:" ], "stdout": "yarn workspace v1.22.19\nyarn run v1.22.19\n$ webpack --config webpack.prod.js\nassets by status 2.13 MiB [cached] 7 assets\norphan modules 3.47 MiB [orphan] 817 modules\nruntime modules 3.68 KiB 11 modules\nbuilt modules 5.26 MiB [built]\n modules by path ../node_modules/ 2.49 MiB\n javascript modules 2.43 MiB 756 modules\n json modules 62.9 KiB 9 modules\n modules by path ./ 2.75 MiB 30 modules\n asset modules 4.4 KiB\n data:image/svg+xml,%3csvg xmlns=%27.. 281 bytes [built] [code generated]\n + 15 modules\n modules by path ../shared/*.js 16 KiB\n ../shared/index.js 212 bytes [built] [code generated]\n ../shared/convertAssertionPriority.js 604 bytes [built] [code generated]\n ../shared/getMetrics.js 15.3 KiB [built] [code generated]\n readable-stream (ignored) 15 bytes [built] [code generated]\n\nERROR in ./components/CandidateReview/CandidateTestPlanRun/InstructionsRenderer.jsx 28:0-90\nModule not found: Error: Can't resolve '../../../resources/aria-at-test-run.mjs' in '/home/aria-bot/aria-at-report/client/components/CandidateReview/CandidateTestPlanRun'\n @ ./components/TestReview/index.jsx 26:0-96 190:159-179\n @ ./routes/index.js 16:0-50 56:46-56\n @ ./components/App/App.jsx 21:0-34 128:5-11\n @ ./components/App/index.js 1:0-24 2:15-18\n @ ./index.js 10:0-35 16:219-222\n\nERROR in ./components/CandidateReview/CandidateTestPlanRun/InstructionsRenderer.jsx 29:0-98\nModule not found: Error: Can't resolve '../../../resources/aria-at-test-io-format.mjs' in '/home/aria-bot/aria-at-report/client/components/CandidateReview/CandidateTestPlanRun'\n @ ./components/TestReview/index.jsx 26:0-96 190:159-179\n @ ./routes/index.js 16:0-50 56:46-56\n @ ./components/App/App.jsx 21:0-34 128:5-11\n @ ./components/App/index.js 1:0-24 2:15-18\n @ ./index.js 10:0-35 16:219-222\n\nERROR in ./components/CandidateReview/CandidateTestPlanRun/InstructionsRenderer.jsx 30:0-72\nModule not found: Error: Can't resolve '../../../resources/aria-at-test-window.mjs' in '/home/aria-bot/aria-at-report/client/components/CandidateReview/CandidateTestPlanRun'\n @ ./components/TestReview/index.jsx 26:0-96 190:159-179\n @ ./routes/index.js 16:0-50 56:46-56\n @ ./components/App/App.jsx 21:0-34 128:5-11\n @ ./components/App/index.js 1:0-24 2:15-18\n @ ./index.js 10:0-35 16:219-222\n\nERROR in ./components/CandidateReview/CandidateTestPlanRun/InstructionsRenderer.jsx 32:0-60\nModule not found: Error: Can't resolve '../../../resources/commands.json' in '/home/aria-bot/aria-at-report/client/components/CandidateReview/CandidateTestPlanRun'\n @ ./components/TestReview/index.jsx 26:0-96 190:159-179\n @ ./routes/index.js 16:0-50 56:46-56\n @ ./components/App/App.jsx 21:0-34 128:5-11\n @ ./components/App/index.js 1:0-24 2:15-18\n @ ./index.js 10:0-35 16:219-222\n\nERROR in ./components/CandidateReview/CandidateTestPlanRun/InstructionsRenderer.jsx 33:0-58\nModule not found: Error: Can't resolve '../../../resources/support.json' in '/home/aria-bot/aria-at-report/client/components/CandidateReview/CandidateTestPlanRun'\n @ ./components/TestReview/index.jsx 26:0-96 190:159-179\n @ ./routes/index.js 16:0-50 56:46-56\n @ ./components/App/App.jsx 21:0-34 128:5-11\n @ ./components/App/index.js 1:0-24 2:15-18\n @ ./index.js 10:0-35 16:219-222\n\nERROR in ./components/TestRenderer/AssertionsFieldset/index.jsx 7:0-58\nModule not found: Error: Can't resolve '../../../resources/support.json' in '/home/aria-bot/aria-at-report/client/components/TestRenderer/AssertionsFieldset'\n @ ./components/TestRenderer/index.jsx 34:0-54 418:41-59\n @ ./components/TestRun/index.jsx 32:0-43 1238:84-96\n @ ./routes/index.js 11:0-42 46:46-53 52:40-47\n @ ./components/App/App.jsx 21:0-34 128:5-11\n @ ./components/App/index.js 1:0-24 2:15-18\n @ ./index.js 10:0-35 16:219-222\n\nERROR in ./components/TestRenderer/index.jsx 29:0-87\nModule not found: Error: Can't resolve '../../resources/aria-at-test-run.mjs' in '/home/aria-bot/aria-at-report/client/components/TestRenderer'\n @ ./components/TestRun/index.jsx 32:0-43 1238:84-96\n @ ./routes/index.js 11:0-42 46:46-53 52:40-47\n @ ./components/App/App.jsx 21:0-34 128:5-11\n @ ./components/App/index.js 1:0-24 2:15-18\n @ ./index.js 10:0-35 16:219-222\n\nERROR in ./components/TestRenderer/index.jsx 30:0-95\nModule not found: Error: Can't resolve '../../resources/aria-at-test-io-format.mjs' in '/home/aria-bot/aria-at-report/client/components/TestRenderer'\n @ ./components/TestRun/index.jsx 32:0-43 1238:84-96\n @ ./routes/index.js 11:0-42 46:46-53 52:40-47\n @ ./components/App/App.jsx 21:0-34 128:5-11\n @ ./components/App/index.js 1:0-24 2:15-18\n @ ./index.js 10:0-35 16:219-222\n\nERROR in ./components/TestRenderer/index.jsx 31:0-69\nModule not found: Error: Can't resolve '../../resources/aria-at-test-window.mjs' in '/home/aria-bot/aria-at-report/client/components/TestRenderer'\n @ ./components/TestRun/index.jsx 32:0-43 1238:84-96\n @ ./routes/index.js 11:0-42 46:46-53 52:40-47\n @ ./components/App/App.jsx 21:0-34 128:5-11\n @ ./components/App/index.js 1:0-24 2:15-18\n @ ./index.js 10:0-35 16:219-222\n\nERROR in ./components/TestRenderer/index.jsx 36:0-55\nModule not found: Error: Can't resolve '../../resources/support.json' in '/home/aria-bot/aria-at-report/client/components/TestRenderer'\n @ ./components/TestRun/index.jsx 32:0-43 1238:84-96\n @ ./routes/index.js 11:0-42 46:46-53 52:40-47\n @ ./components/App/App.jsx 21:0-34 128:5-11\n @ ./components/App/index.js 1:0-24 2:15-18\n @ ./index.js 10:0-35 16:219-222\n\nERROR in ./components/TestRenderer/index.jsx 37:0-57\nModule not found: Error: Can't resolve '../../resources/commands.json' in '/home/aria-bot/aria-at-report/client/components/TestRenderer'\n @ ./components/TestRun/index.jsx 32:0-43 1238:84-96\n @ ./routes/index.js 11:0-42 46:46-53 52:40-47\n @ ./components/App/App.jsx 21:0-34 128:5-11\n @ ./components/App/index.js 1:0-24 2:15-18\n @ ./index.js 10:0-35 16:219-222\n\nERROR in ./components/TestRenderer/utils.js 11:0-57\nModule not found: Error: Can't resolve '@client/resources/support.json' in '/home/aria-bot/aria-at-report/client/components/TestRenderer'\n @ ./components/CandidateReview/CandidateTestPlanRun/InstructionsRenderer.jsx 27:0-82 147:22-42 152:24-40 153:31-47\n @ ./components/TestReview/index.jsx 26:0-96 190:159-179\n @ ./routes/index.js 16:0-50 56:46-56\n @ ./components/App/App.jsx 21:0-34 128:5-11\n @ ./components/App/index.js 1:0-24 2:15-18\n @ ./index.js 10:0-35 16:219-222\n\nERROR in ./components/TestReview/index.jsx 31:0-55\nModule not found: Error: Can't resolve '../../resources/support.json' in '/home/aria-bot/aria-at-report/client/components/TestReview'\n @ ./routes/index.js 16:0-50 56:46-56\n @ ./components/App/App.jsx 21:0-34 128:5-11\n @ ./components/App/index.js 1:0-24 2:15-18\n @ ./index.js 10:0-35 16:219-222\n\n13 errors have detailed information that is not shown.\nUse 'stats.errorDetails: true' resp. '--stats-error-details' to show it.\n\nwebpack 5.75.0 compiled with 13 errors in 47354 ms\ninfo Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.\ninfo Visit https://yarnpkg.com/en/docs/cli/workspace for documentation about this command.", "stdout_lines": [ "yarn workspace v1.22.19", "yarn run v1.22.19", "$ webpack --config webpack.prod.js", "assets by status 2.13 MiB [cached] 7 assets", "orphan modules 3.47 MiB [orphan] 817 modules", "runtime modules 3.68 KiB 11 modules", "built modules 5.26 MiB [built]", " modules by path ../node_modules/ 2.49 MiB", " javascript modules 2.43 MiB 756 modules", " json modules 62.9 KiB 9 modules", " modules by path ./ 2.75 MiB 30 modules", " asset modules 4.4 KiB", " data:image/svg+xml,%3csvg xmlns=%27.. 281 bytes [built] [code generated]", " + 15 modules", " modules by path ../shared/*.js 16 KiB", " ../shared/index.js 212 bytes [built] [code generated]", " ../shared/convertAssertionPriority.js 604 bytes [built] [code generated]", " ../shared/getMetrics.js 15.3 KiB [built] [code generated]", " readable-stream (ignored) 15 bytes [built] [code generated]", "", "ERROR in ./components/CandidateReview/CandidateTestPlanRun/InstructionsRenderer.jsx 28:0-90", "Module not found: Error: Can't resolve '../../../resources/aria-at-test-run.mjs' in '/home/aria-bot/aria-at-report/client/components/CandidateReview/CandidateTestPlanRun'", " @ ./components/TestReview/index.jsx 26:0-96 190:159-179", " @ ./routes/index.js 16:0-50 56:46-56", " @ ./components/App/App.jsx 21:0-34 128:5-11", " @ ./components/App/index.js 1:0-24 2:15-18", " @ ./index.js 10:0-35 16:219-222", "", "ERROR in ./components/CandidateReview/CandidateTestPlanRun/InstructionsRenderer.jsx 29:0-98", "Module not found: Error: Can't resolve '../../../resources/aria-at-test-io-format.mjs' in '/home/aria-bot/aria-at-report/client/components/CandidateReview/CandidateTestPlanRun'", " @ ./components/TestReview/index.jsx 26:0-96 190:159-179", " @ ./routes/index.js 16:0-50 56:46-56", " @ ./components/App/App.jsx 21:0-34 128:5-11", " @ ./components/App/index.js 1:0-24 2:15-18", " @ ./index.js 10:0-35 16:219-222", "", "ERROR in ./components/CandidateReview/CandidateTestPlanRun/InstructionsRenderer.jsx 30:0-72", "Module not found: Error: Can't resolve '../../../resources/aria-at-test-window.mjs' in '/home/aria-bot/aria-at-report/client/components/CandidateReview/CandidateTestPlanRun'", " @ ./components/TestReview/index.jsx 26:0-96 190:159-179", " @ ./routes/index.js 16:0-50 56:46-56", " @ ./components/App/App.jsx 21:0-34 128:5-11", " @ ./components/App/index.js 1:0-24 2:15-18", " @ ./index.js 10:0-35 16:219-222", "", "ERROR in ./components/CandidateReview/CandidateTestPlanRun/InstructionsRenderer.jsx 32:0-60", "Module not found: Error: Can't resolve '../../../resources/commands.json' in '/home/aria-bot/aria-at-report/client/components/CandidateReview/CandidateTestPlanRun'", " @ ./components/TestReview/index.jsx 26:0-96 190:159-179", " @ ./routes/index.js 16:0-50 56:46-56", " @ ./components/App/App.jsx 21:0-34 128:5-11", " @ ./components/App/index.js 1:0-24 2:15-18", " @ ./index.js 10:0-35 16:219-222", "", "ERROR in ./components/CandidateReview/CandidateTestPlanRun/InstructionsRenderer.jsx 33:0-58", "Module not found: Error: Can't resolve '../../../resources/support.json' in '/home/aria-bot/aria-at-report/client/components/CandidateReview/CandidateTestPlanRun'", " @ ./components/TestReview/index.jsx 26:0-96 190:159-179", " @ ./routes/index.js 16:0-50 56:46-56", " @ ./components/App/App.jsx 21:0-34 128:5-11", " @ ./components/App/index.js 1:0-24 2:15-18", " @ ./index.js 10:0-35 16:219-222", "", "ERROR in ./components/TestRenderer/AssertionsFieldset/index.jsx 7:0-58", "Module not found: Error: Can't resolve '../../../resources/support.json' in '/home/aria-bot/aria-at-report/client/components/TestRenderer/AssertionsFieldset'", " @ ./components/TestRenderer/index.jsx 34:0-54 418:41-59", " @ ./components/TestRun/index.jsx 32:0-43 1238:84-96", " @ ./routes/index.js 11:0-42 46:46-53 52:40-47", " @ ./components/App/App.jsx 21:0-34 128:5-11", " @ ./components/App/index.js 1:0-24 2:15-18", " @ ./index.js 10:0-35 16:219-222", "", "ERROR in ./components/TestRenderer/index.jsx 29:0-87", "Module not found: Error: Can't resolve '../../resources/aria-at-test-run.mjs' in '/home/aria-bot/aria-at-report/client/components/TestRenderer'", " @ ./components/TestRun/index.jsx 32:0-43 1238:84-96", " @ ./routes/index.js 11:0-42 46:46-53 52:40-47", " @ ./components/App/App.jsx 21:0-34 128:5-11", " @ ./components/App/index.js 1:0-24 2:15-18", " @ ./index.js 10:0-35 16:219-222", "", "ERROR in ./components/TestRenderer/index.jsx 30:0-95", "Module not found: Error: Can't resolve '../../resources/aria-at-test-io-format.mjs' in '/home/aria-bot/aria-at-report/client/components/TestRenderer'", " @ ./components/TestRun/index.jsx 32:0-43 1238:84-96", " @ ./routes/index.js 11:0-42 46:46-53 52:40-47", " @ ./components/App/App.jsx 21:0-34 128:5-11", " @ ./components/App/index.js 1:0-24 2:15-18", " @ ./index.js 10:0-35 16:219-222", "", "ERROR in ./components/TestRenderer/index.jsx 31:0-69", "Module not found: Error: Can't resolve '../../resources/aria-at-test-window.mjs' in '/home/aria-bot/aria-at-report/client/components/TestRenderer'", " @ ./components/TestRun/index.jsx 32:0-43 1238:84-96", " @ ./routes/index.js 11:0-42 46:46-53 52:40-47", " @ ./components/App/App.jsx 21:0-34 128:5-11", " @ ./components/App/index.js 1:0-24 2:15-18", " @ ./index.js 10:0-35 16:219-222", "", "ERROR in ./components/TestRenderer/index.jsx 36:0-55", "Module not found: Error: Can't resolve '../../resources/support.json' in '/home/aria-bot/aria-at-report/client/components/TestRenderer'", " @ ./components/TestRun/index.jsx 32:0-43 1238:84-96", " @ ./routes/index.js 11:0-42 46:46-53 52:40-47", " @ ./components/App/App.jsx 21:0-34 128:5-11", " @ ./components/App/index.js 1:0-24 2:15-18", " @ ./index.js 10:0-35 16:219-222", "", "ERROR in ./components/TestRenderer/index.jsx 37:0-57", "Module not found: Error: Can't resolve '../../resources/commands.json' in '/home/aria-bot/aria-at-report/client/components/TestRenderer'", " @ ./components/TestRun/index.jsx 32:0-43 1238:84-96", " @ ./routes/index.js 11:0-42 46:46-53 52:40-47", " @ ./components/App/App.jsx 21:0-34 128:5-11", " @ ./components/App/index.js 1:0-24 2:15-18", " @ ./index.js 10:0-35 16:219-222", "", "ERROR in ./components/TestRenderer/utils.js 11:0-57", "Module not found: Error: Can't resolve '@client/resources/support.json' in '/home/aria-bot/aria-at-report/client/components/TestRenderer'", " @ ./components/CandidateReview/CandidateTestPlanRun/InstructionsRenderer.jsx 27:0-82 147:22-42 152:24-40 153:31-47", " @ ./components/TestReview/index.jsx 26:0-96 190:159-179", " @ ./routes/index.js 16:0-50 56:46-56", " @ ./components/App/App.jsx 21:0-34 128:5-11", " @ ./components/App/index.js 1:0-24 2:15-18", " @ ./index.js 10:0-35 16:219-222", "", "ERROR in ./components/TestReview/index.jsx 31:0-55", "Module not found: Error: Can't resolve '../../resources/support.json' in '/home/aria-bot/aria-at-report/client/components/TestReview'", " @ ./routes/index.js 16:0-50 56:46-56", " @ ./components/App/App.jsx 21:0-34 128:5-11", " @ ./components/App/index.js 1:0-24 2:15-18", " @ ./index.js 10:0-35 16:219-222", "", "13 errors have detailed information that is not shown.", "Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.", "", "webpack 5.75.0 compiled with 13 errors in 47354 ms", "info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.", "info Visit https://yarnpkg.com/en/docs/cli/workspace for documentation about this command." ] } ```

This PR updates /deploy/../main.yml to account for /client/resources being untracked by also running the import-script during the deploy. This follows the #1064 merge.