Skip to content

Commit

Permalink
fix: new coverage locations
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc committed Sep 26, 2023
1 parent adc281a commit 8c8565e
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/registry/coverage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,18 @@ export const getCurrentApiVersion = async (): Promise<number> =>
export const getCoverage = async (apiVersion: number): Promise<CoverageObject> => {
const results = await Promise.allSettled(
// one of these will match the current version, but they differ during the release cycle
[44, 45, 46].map(async (na) =>
got(getProxiedOptions(`https://na${na}.test1.pc-rnd.salesforce.com/mdcoverage/api.jsp`)).json<CoverageObject>()
// references: https://confluence.internal.salesforce.com/pages/viewpage.action?pageId=194189303
[
{ cell: 'sdb3', test: 1 },
{ cell: 'ora3', test: 1 },
{ cell: 'sdb6', test: 1 },
{ cell: 'ora6', test: 1 },
{ cell: 'ora8', test: 2 },
{ cell: 'sdb14', test: 2 },
].map(async ({ cell, test }) =>
got(
getProxiedOptions(`https://${cell}.test${test}.pc-rnd.pc-aws.salesforce.com/mdcoverage/api.jsp`)
).json<CoverageObject>()
)
);
for (const result of results) {
Expand Down

1 comment on commit 8c8565e

@svc-cli-bot
Copy link
Collaborator

Choose a reason for hiding this comment

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

Benchmark

Benchmark suite Current: 8c8565e Previous: 7b7ed77 Ratio
eda-componentSetCreate-linux 305 ms 257 ms 1.19
eda-sourceToMdapi-linux 9255 ms 6070 ms 1.52
eda-sourceToZip-linux 6015 ms 4465 ms 1.35
eda-mdapiToSource-linux 5123 ms 3770 ms 1.36
lotsOfClasses-componentSetCreate-linux 556 ms 585 ms 0.95
lotsOfClasses-sourceToMdapi-linux 11087 ms 7845 ms 1.41
lotsOfClasses-sourceToZip-linux 8549 ms 6306 ms 1.36
lotsOfClasses-mdapiToSource-linux 5349 ms 3991 ms 1.34
lotsOfClassesOneDir-componentSetCreate-linux 923 ms 759 ms 1.22
lotsOfClassesOneDir-sourceToMdapi-linux 15766 ms 11179 ms 1.41
lotsOfClassesOneDir-sourceToZip-linux 14262 ms 10207 ms 1.40
lotsOfClassesOneDir-mdapiToSource-linux 9417 ms 7105 ms 1.33

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.