Skip to content

Commit 7e7a9d1

Browse files
committed
Removed experimental python 3.15 support pending further testing.
1 parent fa28cf5 commit 7e7a9d1

File tree

2 files changed

+37
-20
lines changed

2 files changed

+37
-20
lines changed

src/BrowserAutomationMaster/Managers/AppManager/OS/Linux/Functions.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ public static partial class Functions
6262
- Python 3.12.X
6363
- Python 3.13.X
6464
- Python 3.14.X
65-
- Python 3.15.X (UNTESTED BUT HYPOTHETICALLY SUPPORTED)
6665
6766
Examples:
6867
- Python 3.9

src/BrowserAutomationMaster/Managers/CPUInfoManager.cs

Lines changed: 37 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
using BrowserAutomationMaster.Managers.AppManager.OS;
22
using BrowserAutomationMaster.Messaging;
3-
using System;
4-
using System.Collections.Generic;
53
using System.Diagnostics;
64
using System.Diagnostics.CodeAnalysis;
7-
using System.IO;
85
using System.Runtime.Intrinsics.X86;
96
using static BrowserAutomationMaster.Managers.ConfigManager;
107
using static BrowserAutomationMaster.Managers.ConstantManager;
@@ -148,17 +145,27 @@ public static string GetCPUName()
148145
}
149146

150147
}
151-
catch (Exception e) {
152-
Warning.Write($"Unable to determine CPU name.{NLC}{NLC}Error Log:{NLC}{e.Message}");
148+
catch (Exception e)
149+
{
150+
Warning.Write(
151+
string.Join(NLC, [
152+
$"Unable to determine CPU name.",
153+
NLC,
154+
"Error Log:",
155+
e.Message
156+
])
157+
);
153158
}
154159

155160
return "Unknown";
156161
}
157162

158163
// Used for syntax purposes
159-
public static bool IsMissingInstructions() {
160-
if (!ContainsNeededInstructions())
164+
public static bool IsMissingInstructions()
165+
{
166+
if (!ContainsNeededInstructions()) {
161167
return true;
168+
}
162169

163170
return false;
164171
}
@@ -349,18 +356,21 @@ private static int GetPhysicalCoreCountMacOS()
349356
private static int GetPhysicalCoreCountLinux()
350357
{
351358
var socketNotFoundMsg = string.Join(NLC, [
352-
$"Unable to determine the amount of physical CPU cores on your system.{NLC}",
353-
$"Error Log:{NLC}socketCount returned -1, indicating a failure to query /proc/cpuinfo",
359+
$"Unable to determine the amount of physical CPU cores on your system.",
360+
"Error Log:",
361+
"socketCount returned -1, indicating a failure to query /proc/cpuinfo",
354362
$"If this issue persists please make a bug report at {ISSUES_LINK}"
355363
]);
356364

357-
var socketErrorMsg =
358-
$"BAMM does not support multi socket systems, " +
359-
"please disable one of these sockets in your bios or use a different machine.{NLC}";
365+
var socketErrorMsg = string.Join(NLC, [
366+
$"BAMM does not support multi socket systems.",
367+
"Please disable one of these sockets in your bios or use a different machine."
368+
]);
360369

361370
var coresNotFoundMsg = string.Join(NLC, [
362-
$"Unable to determine the amount of physical CPU cores on your system.{NLC}",
363-
$"Error Log:{NLC}coreCount returned 0, indicating a failure to query /proc/cpuinfo",
371+
$"Unable to determine the amount of physical CPU cores on your system.",
372+
"Error Log:",
373+
"coreCount returned 0, indicating a failure to query /proc/cpuinfo",
364374
$"Unless you have created a way to run a pc without a CPU, please make a bug report at {ISSUES_LINK}"
365375
]);
366376

@@ -385,10 +395,12 @@ private static int GetPhysicalCoreCountLinux()
385395

386396
public static object HandleSingleLineProcessOutput(string actionString, List<string> STDOut, Type returnType)
387397
{
388-
string failureMessage =
389-
$"BAM Manager (BAMM) was unable to {actionString}, " +
390-
$"if this issue persists, please make a bug report at {ISSUES_LINK}\n\n" +
391-
"Error log:\n";
398+
string failureMessage = string.Join(NLC, [
399+
$"BAM Manager (BAMM) was unable to {actionString}.",
400+
$"If this issue persists, please make a bug report at {ISSUES_LINK}",
401+
NLC,
402+
$"Error Log:{NLC}",
403+
]);
392404

393405
switch (STDOut.Count)
394406
{
@@ -410,7 +422,13 @@ public static object HandleSingleLineProcessOutput(string actionString, List<str
410422
break;
411423

412424
default:
413-
failureMessage += $"Command returned invalid output.\n\nOutput:\n{string.Join("\n", STDOut)}";
425+
failureMessage += string.Join(NLC, [
426+
"Command returned an invalid.",
427+
NLC,
428+
"Output:",
429+
string.Join(NLC, STDOut)
430+
]);
431+
414432
WriteAndExit(failureMessage, 1);
415433
break;
416434
}

0 commit comments

Comments
 (0)