Compare commits

...

4 Commits

Author SHA1 Message Date
Meghan Denny
9efe8d67f7 Update no-validate-leaksan.txt 2025-11-19 16:48:56 -08:00
Meghan Denny
8aefd40f3c fix process.test.js 2025-11-19 16:07:23 -08:00
Meghan Denny
54b711d1be missed something in the bun upgrade change 2025-11-19 14:59:10 -08:00
Meghan Denny
3333254830 ci: add linux-x64-asan artifact to release 2025-11-19 14:42:59 -08:00
5 changed files with 17 additions and 13 deletions

View File

@@ -1103,15 +1103,9 @@ async function getPipeline(options = {}) {
}
}
const includeASAN = !isMainBranch();
if (!buildId) {
const relevantBuildPlatforms = includeASAN
? buildPlatforms
: buildPlatforms.filter(({ profile }) => profile !== "asan");
steps.push(
...relevantBuildPlatforms.map(target => {
...buildPlatforms.map(target => {
const imageKey = getImageKey(target);
const zigImageKey = getImageKey(getZigPlatform());
const dependsOn = imagePlatforms.has(zigImageKey) ? [`${zigImageKey}-build-image`] : [];

View File

@@ -182,7 +182,7 @@ function send_discord_announcement() {
}
EOF
)
curl -H "Content-Type: application/json" \
-d "$json_payload" \
-sf \
@@ -209,6 +209,7 @@ function create_release() {
bun-linux-x64-profile.zip
bun-linux-x64-baseline.zip
bun-linux-x64-baseline-profile.zip
bun-linux-x64-asan.zip
bun-linux-aarch64-musl.zip
bun-linux-aarch64-musl-profile.zip
bun-linux-x64-musl.zip

View File

@@ -46,7 +46,8 @@ pub const Version = struct {
pub const triplet = platform_label ++ "-" ++ arch_label;
const suffix_abi = if (Environment.isMusl) "-musl" else "";
const suffix_cpu = if (Environment.baseline) "-baseline" else "";
const suffix = suffix_abi ++ suffix_cpu;
const suffix_asan = if (Environment.enable_asan) "-asan" else "";
const suffix = suffix_abi ++ suffix_cpu ++ suffix_asan;
pub const folder_name = "bun-" ++ triplet ++ suffix;
pub const baseline_folder_name = "bun-" ++ triplet ++ "-baseline";
pub const zip_filename = folder_name ++ ".zip";
@@ -308,6 +309,7 @@ pub const UpgradeCommand = struct {
const exe_subpath = Version.folder_name ++ std.fs.path.sep_str ++ "bun" ++ exe_suffix;
const profile_exe_subpath = Version.profile_folder_name ++ std.fs.path.sep_str ++ "bun-profile" ++ exe_suffix;
const asan_exe_subpath = Version.folder_name ++ std.fs.path.sep_str ++ "bun-asan" ++ exe_suffix;
const manual_upgrade_command = switch (Environment.os) {
.linux, .mac => "curl -fsSL https://bun.com/install | bash",
@@ -501,8 +503,12 @@ pub const UpgradeCommand = struct {
_ = bun.sys.chdir("", tmpdir_z);
const tmpname = "bun.zip";
const exe =
if (use_profile) profile_exe_subpath else exe_subpath;
const exe = if (Environment.enable_asan)
asan_exe_subpath
else if (use_profile)
profile_exe_subpath
else
exe_subpath;
var zip_file = save_dir.createFileZ(tmpname, .{ .truncate = true }) catch |err| {
Output.prettyErrorln("<r><red>error:<r> Failed to open temp file {s}", .{@errorName(err)});

View File

@@ -142,8 +142,9 @@ it("process.release", () => {
const platform = process.platform == "win32" ? "windows" : process.platform;
const arch = { arm64: "aarch64", x64: "x64" }[process.arch] || process.arch;
const abi = familySync() === "musl" ? "-musl" : "";
const nonbaseline = `https://github.com/oven-sh/bun/releases/download/bun-v${process.versions.bun}/bun-${platform}-${arch}${abi}.zip`;
const baseline = `https://github.com/oven-sh/bun/releases/download/bun-v${process.versions.bun}/bun-${platform}-${arch}${abi}-baseline.zip`;
const asan = basename(process.argv0) === "bun-asan" ? "-asan" : ""; // TODO: use process.config.variables.asan
const nonbaseline = `https://github.com/oven-sh/bun/releases/download/bun-v${process.versions.bun}/bun-${platform}-${arch}${abi}${asan}.zip`;
const baseline = `https://github.com/oven-sh/bun/releases/download/bun-v${process.versions.bun}/bun-${platform}-${arch}${abi}-baseline${asan}.zip`;
expect(process.release.sourceUrl).toBeOneOf([nonbaseline, baseline]);
});

View File

@@ -193,6 +193,8 @@ test/regression/issue/02499/02499.test.ts
test/js/node/test/parallel/test-http-server-stale-close.js
test/js/third_party/comlink/comlink.test.ts
test/regression/issue/22635/22635.test.ts
# flaky
test/js/node/test/parallel/test-http-url.parse-https.request.js
# Bun::JSNodeHTTPServerSocket::clearSocketData