Skip to content

Commit 87698cb

Browse files
Change the atlas theme copy process to get the previous tag version (#1750)
2 parents 73abfa4 + 014369b commit 87698cb

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

automation/run-e2e/lib/update-test-project.mjs

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,19 +64,28 @@ async function updateAtlasThemeSource() {
6464
}
6565

6666
cp("-r", themeSourcePath, config.testProjectDir);
67+
68+
// Fix file permissions to ensure Docker can write to theme files
69+
// The Atlas theme files are copied with read-only permissions
70+
// but mxbuild needs to write to some generated files during build
71+
sh.exec(`chmod -R +w "${config.testProjectDir}/themesource"`, { silent: true });
6772
}
6873

6974
async function updateAtlasTheme() {
7075
console.log("Copying Atlas theme files from latest Atlas UI theme release");
7176

7277
rm("-rf", "tests/testProject/theme");
7378

74-
const release = await getLatestReleaseByName("Atlas UI - Theme Folder Files", config.atlasCoreReleaseUrl);
75-
76-
if (!release) {
77-
throw new Error("Can't fetch latest Atlas UI theme release");
79+
// Fetch the specific release by tag from GitHub API
80+
const tag = "atlasui-theme-files-2024-01-25";
81+
const releaseResponse = await fetchGithubRestAPI(`${config.atlasCoreReleaseUrl}/tags/${tag}`);
82+
if (!releaseResponse.ok) {
83+
throw new Error(`Can't fetch release for tag: ${tag}`);
84+
}
85+
const release = await releaseResponse.json();
86+
if (!release.assets || release.assets.length === 0) {
87+
throw new Error(`No assets found for release tag: ${tag}`);
7888
}
79-
8089
const [{ browser_download_url }] = release.assets;
8190
const downloadedPath = join(await usetmp(), config.nameForDownloadedAtlasTheme);
8291
const outPath = await usetmp();
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"latest": "10.21.1.64969",
2+
"latest": "10.24.0.73019",
33
"9": "9.24.0.2965",
44
"8": "8.18.24.2858"
55
}

0 commit comments

Comments
 (0)