@sentry/craft 3.12.1 → 3.12.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/craft +19 -18
- package/package.json +1 -1
package/dist/craft
CHANGED
|
@@ -118900,14 +118900,14 @@ async function getPRAndLabelsFromCommit(hashes) {
|
|
|
118900
118900
|
return {};
|
|
118901
118901
|
}
|
|
118902
118902
|
const commitInfo = {};
|
|
118903
|
-
const
|
|
118904
|
-
|
|
118905
|
-
|
|
118906
|
-
|
|
118907
|
-
|
|
118908
|
-
|
|
118903
|
+
const { repo, owner } = await getGlobalGitHubConfig();
|
|
118904
|
+
const chunks = [];
|
|
118905
|
+
for (let start = 0; start < hashes.length; start += MAX_COMMITS_PER_QUERY) {
|
|
118906
|
+
chunks.push(hashes.slice(start, start + MAX_COMMITS_PER_QUERY));
|
|
118907
|
+
}
|
|
118908
|
+
while (chunks.length > 0) {
|
|
118909
|
+
const subset = chunks.shift();
|
|
118909
118910
|
const commitsQuery = subset.map((hash) => `C${hash}: object(oid: "${hash}") {...PRFragment}`).join("\n");
|
|
118910
|
-
const { repo, owner } = await getGlobalGitHubConfig();
|
|
118911
118911
|
const graphqlQuery = `{
|
|
118912
118912
|
repository(name: "${repo}", owner: "${owner}") {
|
|
118913
118913
|
${commitsQuery}
|
|
@@ -118949,14 +118949,17 @@ async function getPRAndLabelsFromCommit(hashes) {
|
|
|
118949
118949
|
Object.assign(commitInfo, typedResponse.repository);
|
|
118950
118950
|
logger.trace("Query result:", commitInfo);
|
|
118951
118951
|
} catch (error3) {
|
|
118952
|
+
if (subset.length > 1) {
|
|
118953
|
+
const half = Math.ceil(subset.length / 2);
|
|
118954
|
+
logger.debug(
|
|
118955
|
+
`Failed to fetch PR info for ${subset.length} commits: ${error3.message || error3}. Retrying in chunks of ${half}.`
|
|
118956
|
+
);
|
|
118957
|
+
chunks.unshift(subset.slice(0, half), subset.slice(half));
|
|
118958
|
+
continue;
|
|
118959
|
+
}
|
|
118952
118960
|
withScope2((scope) => {
|
|
118953
118961
|
scope.setTag("error_type", "graphql_changelog_failure");
|
|
118954
|
-
scope.setTag("chunk_number", `${chunk + 1}`);
|
|
118955
|
-
scope.setTag("total_chunks", `${chunkCount}`);
|
|
118956
118962
|
scope.setContext("graphql_chunk", {
|
|
118957
|
-
chunkIndex: chunk + 1,
|
|
118958
|
-
totalChunks: chunkCount,
|
|
118959
|
-
commitsInChunk: subset.length,
|
|
118960
118963
|
totalHashes: hashes.length,
|
|
118961
118964
|
httpStatus: error3.status || error3.response?.status,
|
|
118962
118965
|
errorName: error3.name,
|
|
@@ -118965,11 +118968,9 @@ async function getPRAndLabelsFromCommit(hashes) {
|
|
|
118965
118968
|
captureException(error3);
|
|
118966
118969
|
});
|
|
118967
118970
|
logger.warn(
|
|
118968
|
-
`Failed to fetch PR info for
|
|
118971
|
+
`Failed to fetch PR info for commit ${subset[0]}: ${error3.message || error3}. Skipping this commit and continuing with remaining commits.`
|
|
118969
118972
|
);
|
|
118970
|
-
|
|
118971
|
-
commitInfo[`C${hash}`] = null;
|
|
118972
|
-
}
|
|
118973
|
+
commitInfo[`C${subset[0]}`] = null;
|
|
118973
118974
|
}
|
|
118974
118975
|
}
|
|
118975
118976
|
return Object.fromEntries(
|
|
@@ -227856,7 +227857,7 @@ var require_package7 = __commonJS({
|
|
|
227856
227857
|
"package.json"(exports2, module2) {
|
|
227857
227858
|
module2.exports = {
|
|
227858
227859
|
name: "@sentry/craft",
|
|
227859
|
-
version: "3.12.
|
|
227860
|
+
version: "3.12.2",
|
|
227860
227861
|
description: "The universal sentry workflow CLI",
|
|
227861
227862
|
main: "dist/craft",
|
|
227862
227863
|
repository: "https://github.com/getsentry/craft",
|
|
@@ -228065,7 +228066,7 @@ function getPackage() {
|
|
|
228065
228066
|
}
|
|
228066
228067
|
function getPackageVersion3() {
|
|
228067
228068
|
const { version: version2 } = getPackage();
|
|
228068
|
-
const buildInfo = "
|
|
228069
|
+
const buildInfo = "6a763ab19893ff85c830b709fb5633a61924945e";
|
|
228069
228070
|
return buildInfo ? `${version2} (${buildInfo})` : version2;
|
|
228070
228071
|
}
|
|
228071
228072
|
function semVerToString(s8) {
|