Skip to content

Commit

Permalink
Revert "Chore: Fixing force upload failing on ATS"
Browse files Browse the repository at this point in the history
  • Loading branch information
KrishnaSuravarapu authored Mar 21, 2024
1 parent ddb95c2 commit f85e655
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 deletions.
10 changes: 1 addition & 9 deletions bin/commands/runs.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,15 +263,7 @@ module.exports = function run(args, rawArgs) {

let test_zip_size = utils.fetchZipSize(path.join(process.cwd(), config.fileName));
let npm_zip_size = utils.fetchZipSize(path.join(process.cwd(), config.packageFileName));
let node_modules_size = await utils.fetchFolderSize(path.join(process.cwd(), "node_modules"));

if (Constants.turboScaleObj.enabled) {
// Note: Calculating md5 here for turboscale force-upload so that we don't need to re-calculate at hub
let zip_md5sum = await checkUploaded.checkSpecsMd5(bsConfig.run_settings, args, {markBlockStart, markBlockEnd});
let npm_package_md5sum = await checkUploaded.checkPackageMd5(bsConfig.run_settings);
Object.assign(md5data, { npm_package_md5sum });
Object.assign(md5data, { zip_md5sum });
}
let node_modules_size = await utils.fetchFolderSize(path.join(process.cwd(), "node_modules"))

//Package diff
let isPackageDiff = false;
Expand Down
9 changes: 4 additions & 5 deletions bin/helpers/checkUploaded.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ const crypto = require('crypto'),

const checkSpecsMd5 = (runSettings, args, instrumentBlocks) => {
return new Promise(function (resolve, reject) {
if (args["force-upload"]) {
return resolve("force-upload");
}
let cypressFolderPath = undefined;
if (runSettings.home_directory) {
cypressFolderPath = runSettings.home_directory;
Expand Down Expand Up @@ -163,8 +166,4 @@ const checkUploadedMd5 = (bsConfig, args, instrumentBlocks) => {
});
};

module.exports = {
checkSpecsMd5,
checkPackageMd5,
checkUploadedMd5
};
exports.checkUploadedMd5 = checkUploadedMd5;

0 comments on commit f85e655

Please sign in to comment.