tech-story: [M3-9052] - Migrate PlacementGroups to Tanstack router #21353
ci.yml
on: pull_request
test-manager
14m 43s
typecheck-ui
26s
typecheck-manager
1m 15s
build-manager
0s
publish-sdk
0s
publish-storybook
0s
Annotations
4 errors and 14 warnings
src/routes/routes.test.tsx > Migration Router > route: /placement-groups/create:
packages/manager/src/routes/routes.test.tsx#L57
TestingLibraryElementError: Unable to find role="heading"
Ignored nodes: comments, script, style
<body
style="padding-right: 1024px; overflow: hidden;"
>
<div
aria-hidden="true"
>
<div
data-testid="migration-router"
>
<div
class="MuiGrid2-root MuiGrid2-container MuiGrid2-direction-xs-row css-1tueisv-MuiGrid2-root"
data-qa-entity-header="true"
>
<div
class="MuiGrid2-root MuiGrid2-direction-xs-row css-27y2fm-MuiGrid2-root"
>
<div
class="css-13hlpjo-StyledRootDiv"
>
<div
class="css-7wrpxj-StyledDiv"
>
<div
class="css-hfoiwb-StyledDiv"
>
<h1
class="MuiTypography-root MuiTypography-h1 css-6cpn15-MuiTypography-root-StyledH1Header"
data-qa-header="Placement Groups"
tabindex="0"
>
Placement Groups
</h1>
</div>
</div>
</div>
</div>
<div
class="MuiGrid2-root MuiGrid2-direction-xs-row css-27y2fm-MuiGrid2-root"
>
<div
class="MuiGrid2-root MuiGrid2-direction-xs-row css-6r0yxx-MuiGrid2-root"
>
<a
aria-label="Docs - link opens in a new tab"
class="css-1gyjd8d-root docsButton css-1a970vz-StyledDocsLink"
data-testid="external-link"
href="https://techdocs.akamai.com/cloud-computing/docs/work-with-placement-groups"
rel="noopener noreferrer"
target="_blank"
>
<svg
height="18"
viewBox="0 0 20 20"
width="18"
xmlns="http://www.w3.org/2000/svg"
>
<g
fill="none"
fill-rule="evenodd"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="1.25"
>
<path
d="M1.974 19.375c-.727 0-1.316-.56-1.316-1.25V1.875c0-.69.589-1.25 1.316-1.25h13.158c.343 0 .672.127.918.355l2.632 2.402c.254.236.397.558.397.895v15.098H1.974zM4.605 6.875L15.132 6.875M4.605 10.625L9.868 10.625M4.605 14.375L12.105 14.5"
/>
</g>
</svg>
Docs
</a>
<div
class="css-80jyct"
>
<button
aria-disabled="false"
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorPrimary MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorPrimary css-r1tcgg-MuiButtonBase-root-MuiButton-root"
data-testid="button"
tabindex="0"
type="button"
>
<span
class="css-fn767b"
data-testid="loadingIcon"
>
Create Placement Group
</span>
<span
class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root"
/>
</button>
</div>
</div>
</div>
</div>
<div
class="MuiBox-root css-0"
>
<div
class="visually-hidden MuiBox-root css-15ybjgl"
data-testid="inputLabelWrapper"
>
<label
class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-animated MuiFormLabel-colorPrimary MuiInputLabel-root MuiInputLabel-animated css-17cf11i-MuiFormLabel-root-MuiInputLabel-root"
data-qa-textfield-label="Search"
for="search"
>
Search
</label>
</div>
<div
class="MuiBox-root css-0"
>
<div
|
src/features/PlacementGroups/PlacementGroupsDetail/PlacementGroupsDetail.test.tsx > PlacementGroupsLanding > renders breadcrumbs, docs link and tabs:
packages/manager/src/features/PlacementGroups/PlacementGroupsDetail/PlacementGroupsDetail.test.tsx#L124
TestingLibraryElementError: Unable to find an element with the text: /my first pg/i. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.
Ignored nodes: comments, script, style
<body>
<div>
<div
style="padding: .5rem; max-width: 100%;"
>
<div
style="display: flex; align-items: center; gap: .5rem;"
>
<strong
style="font-size: 1rem;"
>
Something went wrong!
</strong>
<button
style="appearance: none; font-size: .6em; border: 1px solid currentcolor; padding: .1rem .2rem; font-weight: bold; border-radius: .25rem;"
>
Hide Error
</button>
</div>
<div
style="height: .25rem;"
/>
<div>
<pre
style="font-size: .7em; border: 1px solid red; border-radius: .25rem; padding: .3rem; color: red; overflow: auto;"
>
<code>
Invariant failed: Could not find an active match from "/placement-groups/$id"
</code>
</pre>
</div>
</div>
</div>
</body>
❯ Object.getElementError ../../node_modules/@testing-library/dom/dist/config.js:37:19
❯ ../../node_modules/@testing-library/dom/dist/query-helpers.js:76:38
❯ ../../node_modules/@testing-library/dom/dist/query-helpers.js:52:17
❯ getByText ../../node_modules/@testing-library/dom/dist/query-helpers.js:95:19
❯ src/features/PlacementGroups/PlacementGroupsDetail/PlacementGroupsDetail.test.tsx:124:12
|
src/features/PlacementGroups/PlacementGroupsLanding/PlacementGroupsLanding.test.tsx:
packages/manager/src/components/TransferDisplay/TransferDisplayDialog.tsx#L7
Error: [vitest] There was an error when mocking a module. If you are using "vi.mock" factory, make sure there are no top level variables inside, since this call is hoisted to top of the file. Read more: https://vitest.dev/api/vi.html#vi-mock
❯ src/components/TransferDisplay/TransferDisplayDialog.tsx:7:31
Caused by: Caused by: ReferenceError: Cannot access '__vi_import_6__' before initialization
❯ src/features/PlacementGroups/PlacementGroupsLanding/PlacementGroupsLanding.test.tsx:35:15
❯ src/components/TransferDisplay/TransferDisplayDialog.tsx:7:31
|
test-manager
Process completed with exit code 1.
|
build-validation
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
lint (@linode/api-v4)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
test-ui
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
lint (@linode/ui)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
test-search
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
test-sdk
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
lint (@linode/validation)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
build-sdk
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
lint (linode-manager)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
validate-sdk
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
typecheck-ui
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
typecheck-manager
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
build-storybook
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
test-manager
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
packages-api-v4-lib
|
337 KB |
|
packages-validation-lib
|
147 KB |
|
storybook-build
|
11.3 MB |
|