Skip to content

Commit 1de71e5

Browse files
committed
chore: backport atlas pin version
1 parent d639810 commit 1de71e5

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

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

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,16 @@ async function updateAtlasTheme() {
7171

7272
rm("-rf", "tests/testProject/theme");
7373

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");
74+
// Fetch the specific release by tag from GitHub API
75+
const tag = "atlasui-theme-files-2024-01-25";
76+
const releaseResponse = await fetchGithubRestAPI(`${config.atlasCoreReleaseUrl}/tags/${tag}`);
77+
if (!releaseResponse.ok) {
78+
throw new Error(`Can't fetch release for tag: ${tag}`);
79+
}
80+
const release = await releaseResponse.json();
81+
if (!release.assets || release.assets.length === 0) {
82+
throw new Error(`No assets found for release tag: ${tag}`);
7883
}
79-
8084
const [{ browser_download_url }] = release.assets;
8185
const downloadedPath = join(await usetmp(), config.nameForDownloadedAtlasTheme);
8286
const outPath = await usetmp();
@@ -94,6 +98,10 @@ async function updateAtlasTheme() {
9498
cp("-r", nativePath, themePath);
9599

96100
cp("-r", themePath, config.testProjectDir);
101+
// Fix file permissions to ensure Docker can write to theme files
102+
// The Atlas theme files are copied with read-only permissions
103+
// but mxbuild needs to write to some generated files during build
104+
sh.exec(`chmod -R +w "${config.testProjectDir}/themesource"`, { silent: true });
97105
}
98106

99107
async function runReleaseScript() {

0 commit comments

Comments
 (0)