Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: fallback to latest supported patch version #687

Merged
merged 9 commits into from
Jan 10, 2024

Conversation

vadson71
Copy link
Contributor

@vadson71 vadson71 commented Jan 4, 2024

No description provided.

Copy link

changeset-bot bot commented Jan 4, 2024

🦋 Changeset detected

Latest commit: 825e962

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 13 packages
Name Type
@ui5-language-assistant/xml-views-completion Patch
@ui5-language-assistant/xml-views-validation Patch
@ui5-language-assistant/xml-views-tooltip Patch
@ui5-language-assistant/language-server Patch
@ui5-language-assistant/test-utils Patch
@ui5-language-assistant/semantic-model Patch
@ui5-language-assistant/logic-utils Patch
@ui5-language-assistant/context Patch
vscode-ui5-language-assistant Patch
@ui5-language-assistant/vscode-ui5-language-assistant-bas-ext Patch
@ui5-language-assistant/binding Patch
@ui5-language-assistant/fe Patch
@ui5-language-assistant/xml-views-quick-fix Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vadson71 vadson71 force-pushed the feat/27819/fallbackToLatestPatch branch from 93823ce to d615382 Compare January 5, 2024 09:33
…into feat/27819/fallbackToLatestPatch

# Conflicts:
#	packages/context/src/types.ts
#	packages/context/src/ui5-model.ts
#	packages/context/test/unit/ui5-model.test.ts
#	packages/language-server/test/unit/completion-items-classes.test.ts
#	packages/language-server/test/unit/completion-items-literals.test.ts
#	packages/language-server/test/unit/completion-items.test.ts
#	packages/language-server/test/unit/documentation.test.ts
#	packages/language-server/test/unit/hover.test.ts
#	packages/language-server/test/unit/quick-fix.test.ts
#	packages/language-server/test/unit/snapshots/xml-view-diagnostics/snapshots-utils.ts
#	packages/logic-utils/test/unit/find-classes-matching.test.ts
#	packages/logic-utils/test/unit/get-super-class.test.ts
#	packages/logic-utils/test/unit/xml-node-to-ui5-node.test.ts
#	packages/semantic-model/test/unit/api.test.ts
#	packages/semantic-model/test/unit/unit.test.ts
#	packages/semantic-model/test/unit/utils.test.ts
#	packages/xml-views-completion/test/unit/api.test.ts
#	packages/xml-views-completion/test/unit/providers/attributeName/namespace.test.ts
#	packages/xml-views-completion/test/unit/providers/attributeName/prop-event-assoc.test.ts
#	packages/xml-views-completion/test/unit/providers/attributeValue/boolean-literal.test.ts
#	packages/xml-views-completion/test/unit/providers/attributeValue/enum.test.ts
#	packages/xml-views-completion/test/unit/providers/attributeValue/namespace.test.ts
#	packages/xml-views-completion/test/unit/providers/elementName/aggregation.test.ts
#	packages/xml-views-completion/test/unit/providers/elementName/classes.test.ts
#	packages/xml-views-tooltip/test/unit/tooltip.test.ts
#	packages/xml-views-validation/test/unit/api.test.ts
#	packages/xml-views-validation/test/unit/validators/attributes/invalid-boolean-value.test.ts
#	packages/xml-views-validation/test/unit/validators/attributes/unknown-attribute-key.test.ts
#	packages/xml-views-validation/test/unit/validators/attributes/unknown-enum-value.test.ts
#	packages/xml-views-validation/test/unit/validators/attributes/unknown-xmlns-namespace.test.ts
#	packages/xml-views-validation/test/unit/validators/attributes/use-of-depracated-attribute.test.ts
#	packages/xml-views-validation/test/unit/validators/document/non-unique-id.test.ts
#	packages/xml-views-validation/test/unit/validators/element/cardinality-of-aggregation.test.ts
#	packages/xml-views-validation/test/unit/validators/element/non-stable-id.test.ts
#	packages/xml-views-validation/test/unit/validators/element/type-of-aggregation.test.ts
#	packages/xml-views-validation/test/unit/validators/element/use-of-deprecated-aggregation.test.ts
#	packages/xml-views-validation/test/unit/validators/element/use-of-deprecated-class.test.ts
#	test-packages/test-utils/api.d.ts
#	test-packages/test-utils/src/utils/semantic-model-provider.ts
packages/context/src/ui5-model.ts Outdated Show resolved Hide resolved
packages/context/src/ui5-model.ts Outdated Show resolved Hide resolved
packages/context/src/ui5-model.ts Show resolved Hide resolved
import semverMinSatisfying from "semver/ranges/min-satisfying";
import { Response } from "node-fetch";

const GET_MODEL_TIMEOUT = 30000;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any specific reason to have this timeout? By default it pick this https://github.com/SAP/ui5-language-assistant/blob/master/jest.setup.js#L1

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is used it tests where semantic model is downloaded from internet resources. In rare cases requests to server may take long while (due to some network issues for instance). In that case the shorter timeout will help to push forward the pending test execution

Copy link

@vadson71 vadson71 merged commit 0186685 into master Jan 10, 2024
9 checks passed
@vadson71 vadson71 deleted the feat/27819/fallbackToLatestPatch branch January 10, 2024 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants