forge
Explore
Log in

Don't you dare go Hollow

Windows x86_64 v1 is cmpxchg16b+sse3 (rust's windows baseline) so it gets its real target instead of custom

Browse files at this commit

510fe001b82e7b726835f0d064f07095afd813b4Ahmet Kaan GümüşParent: b2fc28a
  • fix
    • windows x86_64 v1 is cmpxchg16b+sse3 (rust's windows baseline) so it gets its real target instead of custom
    • PowerShell progress silenced. Published releases drop the online count, the Clients card is the one place for who runs what
Show full message
🐛 fix: windows x86_64 v1 is cmpxchg16b+sse3 (rust's windows baseline) so it gets its real target instead of custom; PowerShell progress silenced. Published releases drop the online count, the Clients card is the one place for who runs what
crates/client/build.rsmodified+3 -1
@@ -21,6 +21,7 @@ const COLORS: [&str; 10] = [
2121 ];
2222 const SCALES: [&str; 6] = ["space", "radius", "stroke", "text", "size", "leading"];
2323 const V1: &[&str] = &["fxsr", "sse", "sse2"];
24+const V1_WINDOWS: &[&str] = &["cmpxchg16b", "fxsr", "sse", "sse2", "sse3"];
2425 const V3: &[&str] = &[
2526 "avx",
2627 "avx2",
@@ -379,7 +380,8 @@ fn target() {
379380 .collect();
380381 features.sort_unstable();
381382 let target = match (arch.as_str(), features.as_slice()) {
382- ("x86_64", V1) => format!("x86_64_v1-{os}"),
383+ ("x86_64", V1) if os != "windows" => format!("x86_64_v1-{os}"),
384+ ("x86_64", V1_WINDOWS) if os == "windows" => format!("x86_64_v1-{os}"),
383385 ("x86_64", V3) => format!("x86_64_v3-{os}"),
384386 ("x86_64", _) => "custom".to_string(),
385387 _ => format!("{arch}-{os}"),
crates/client/src/gui/builder/releases.rsmodified+2 -15
@@ -4,7 +4,7 @@ use common::{
44 };
55 use gpui_kit::{
66 AnyElement, Context, Div, Entity, Hsla, IntoElement, ParentElement, PathPromptOptions, Styled,
7- Task, Window, assets::IconName, component::Icon, div, px,
7+ Task, Window, div, px,
88 };
99 use std::{path::PathBuf, time::Duration};
1010
@@ -16,7 +16,7 @@ use crate::gui::{
1616 entity_action, millis_time, notify_error,
1717 parts::{self, Fill, Press},
1818 storage,
19- style::{size, space, text},
19+ style::{space, text},
2020 text,
2121 };
2222 use crate::lang::w;
@@ -306,7 +306,6 @@ fn release_row(
306306 .map(|file| file.target.as_str())
307307 .collect::<Vec<_>>()
308308 .join(", ");
309- let online: u64 = release.files.iter().map(|file| file.online).sum();
310309 let control = if pending && !required {
311310 parts::button(
312311 format!("confirm_release_{seq}"),
@@ -355,18 +354,6 @@ fn release_row(
355354 millis_time(release.created_ms, w().common.date),
356355 palette.muted,
357356 ))
358- .child(
359- div()
360- .flex()
361- .items_center()
362- .gap(px(space::XS))
363- .child(
364- Icon::new(IconName::Users)
365- .size(px(size::ICON))
366- .text_color(palette.muted),
367- )
368- .child(caption_text(online.to_string(), palette.muted)),
369- )
370357 .child(control)
371358 }
372359
crates/client/src/release.rsmodified+1 -0
@@ -328,6 +328,7 @@ fn scp(key: &Path) -> Command {
328328 }
329329
330330 fn ps(key: &Path, script: &str) -> Command {
331+ let script = format!("$ProgressPreference = 'SilentlyContinue'\n{script}");
331332 let bytes: Vec<u8> = script.encode_utf16().flat_map(u16::to_le_bytes).collect();
332333 let mut cmd = ssh(key);
333334 cmd.args([
crates/common/src/model.rsmodified+0 -1
@@ -444,7 +444,6 @@ pub struct ReleaseFile {
444444 pub target: String,
445445 pub size: u64,
446446 pub packed: u64,
447- pub online: u64,
448447 }
449448
450449 #[derive(Debug, Clone, PartialEq, Eq, Encode, Decode)]
crates/server/src/call/release.rsmodified+3 -8
@@ -12,7 +12,7 @@ use crate::{
1212 publish::To,
1313 };
1414
15-fn info(entry: db::release::Entry, builds: &[Sha]) -> ReleaseInfo {
15+fn info(entry: db::release::Entry) -> ReleaseInfo {
1616 ReleaseInfo {
1717 seq: entry.seq,
1818 required: entry.required,
@@ -21,7 +21,6 @@ fn info(entry: db::release::Entry, builds: &[Sha]) -> ReleaseInfo {
2121 .files
2222 .into_iter()
2323 .map(|file| ReleaseFile {
24- online: builds.iter().filter(|build| **build == file.file).count() as u64,
2524 target: file.target,
2625 size: file.size,
2726 packed: file.packed,
@@ -32,13 +31,9 @@ fn info(entry: db::release::Entry, builds: &[Sha]) -> ReleaseInfo {
3231
3332 impl Handle for ListReleases {
3433 async fn handle(self, _: Me, cx: &mut Cx<'_>) -> Result<Vec<ReleaseInfo>, ServerError> {
35- let builds = cx.sh.services.hub.builds();
3634 let entries = db::release::entries(cx.db).await?;
3735
38- Ok(entries
39- .into_iter()
40- .map(|entry| info(entry, &builds))
41- .collect())
36+ Ok(entries.into_iter().map(info).collect())
4237 }
4338 }
4439
@@ -88,7 +83,7 @@ impl Handle for PublishRelease {
8883 cx.sh.releases.discard(&stopped);
8984 cx.emit(To::Everyone, Event::Release);
9085
91- Ok(info(entry, &cx.sh.services.hub.builds()))
86+ Ok(info(entry))
9287 }
9388 }
9489
crates/server/src/hub.rsmodified+0 -9
@@ -170,15 +170,6 @@ impl Hub {
170170 total
171171 }
172172
173- pub fn builds(&self) -> Vec<Sha> {
174- self.0
175- .lock()
176- .unwrap()
177- .values()
178- .filter_map(|client| client.build)
179- .collect()
180- }
181-
182173 pub fn installs(&self) -> Vec<Install> {
183174 self.0
184175 .lock()