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

[core] Fix platform specific data with tests #30011

Merged
merged 3 commits into from
Jun 12, 2024
Merged

[core] Fix platform specific data with tests #30011

merged 3 commits into from
Jun 12, 2024

Conversation

mpodwysocki
Copy link
Member

Packages impacted by this PR

  • @azure/core-rest-pipeline
  • @typespec/ts-http-runtime

Issues associated with this PR

Describe the problem that is addressed by this PR

Checks for undefined process and process.versions. Added unit tests.

What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen?

Are there test cases added in this PR? (If not, why?)

Provide a list of related PRs (if any)

Command used to generate this PR:**(Applicable only to SDK release request PRs)

Checklists

  • Added impacted package name to the issue description
  • Does this PR needs any fixes in the SDK Generator?** (If so, create an Issue in the Autorest/typescript repository and link it here)
  • Added a changelog (if necessary)

@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

Copy link
Member

@maorleger maorleger left a comment

Choose a reason for hiding this comment

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

LGTM overall! just a few nits about the assertions and a question about the changes to package.json (mostly for my own understanding)

sdk/core/core-rest-pipeline/package.json Show resolved Hide resolved
const map = new Map<string, string>();

setPlatformSpecificData(map);
assert.ok(map.has("OS"));
Copy link
Member

Choose a reason for hiding this comment

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

nit: I wonder if isNotEmpty or exists would read better as assertions here?

isNotEmpty(map.get("OS")) or exists(map.get("OS"))?

@mcgear
Copy link

mcgear commented Jun 24, 2024

Is there a way to start using this version now? or do we have an idea when this will be released this week?

@xirzec
Copy link
Member

xirzec commented Jun 24, 2024

@jeremymeng were we planning to release core packages on Thursday?

@jeremymeng
Copy link
Member

@jeremymeng were we planning to release core packages on Thursday?

@mcgear @xirzec The planned July release date for core is 7/11, possibly because of the 7/4 holiday.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants