Skip to content

Commit

Permalink
[Build] Version bump for 1.1 release (#722)
Browse files Browse the repository at this point in the history
Bumps the minor to 1.1 for the 1.0 release.

Needed to modify the artifact.js file to the newly formatted artifact URL
so that tests work out of the box.

Issue resolved:
#681

Signed-off-by: Kawika Avilla <[email protected]>
  • Loading branch information
kavilla authored Aug 18, 2021
1 parent 7df5e2a commit 9cfbd56
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"dashboarding"
],
"private": true,
"version": "1.0.0",
"version": "1.1.0",
"branch": "main",
"types": "./opensearch_dashboards.d.ts",
"tsdocMetadata": "./build/tsdoc-metadata.json",
Expand Down
13 changes: 9 additions & 4 deletions packages/osd-opensearch/src/artifact.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,8 @@ async function getArtifactSpecForSnapshotFromUrl(urlVersion, log) {
throw createCliError(`Snapshots are only available for Linux`);
}

const latestUrl = `${DAILY_SNAPSHOTS_BASE_URL}/${desiredVersion}`;
const latestFile = `opensearch-${desiredVersion}-SNAPSHOT-${platform}-${arch}-latest.tar.gz`;
const latestUrl = `${DAILY_SNAPSHOTS_BASE_URL}/${desiredVersion}-SNAPSHOT`;
const latestFile = `opensearch-min-${desiredVersion}-SNAPSHOT-${platform}-${arch}-latest.tar.gz`;
const completeLatestUrl = `${latestUrl}/${latestFile}`;

let { abc, resp } = await verifySnapshotUrl(completeLatestUrl, log);
Expand All @@ -208,8 +208,13 @@ async function getArtifactSpecForSnapshotFromUrl(urlVersion, log) {
let completeUrl = null;
let snapshotFile = null;

// This checks and uses an RC if a RC exists at a higher increment than RC1 or it tries to use RC1
// This is in replacement of having a manifest URL, so the exact RC number is unknown but expect it not to be a large number
/**
* TODO: This might not be relevant anymore. After a few iterations if RC builds are no longer being built
* then we can remove this logic.
*
* This checks and uses an RC if a RC exists at a higher increment than RC1 or it tries to use RC1
* This is in replacement of having a manifest URL, so the exact RC number is unknown but expect it not to be a large number
*/
let rcCheck = MAX_RC_CHECK;
do {
const secondaryLatestUrl = `${DAILY_SNAPSHOTS_BASE_URL}/${desiredVersion}-rc${rcCheck}`;
Expand Down

0 comments on commit 9cfbd56

Please sign in to comment.