audit work, fixed StellaOps.sln warnings/errors, fixed tests, sprints work, new advisories
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System.Collections.Immutable;
|
||||
using System.Globalization;
|
||||
using System.Text.RegularExpressions;
|
||||
using StellaOps.Scanner.EntryTrace.Semantic;
|
||||
using YamlDotNet.RepresentationModel;
|
||||
@@ -98,7 +99,7 @@ public sealed partial class DockerComposeParser : IManifestParser
|
||||
Services = services.ToImmutableArray(),
|
||||
Edges = edges.ToImmutableArray(),
|
||||
IngressPaths = ingressPaths,
|
||||
AnalyzedAt = DateTime.UtcNow.ToString("O")
|
||||
AnalyzedAt = DateTime.UtcNow.ToString("O", CultureInfo.InvariantCulture)
|
||||
};
|
||||
|
||||
return Task.FromResult(graph);
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System.Collections.Immutable;
|
||||
using System.Globalization;
|
||||
using System.Text.RegularExpressions;
|
||||
using StellaOps.Scanner.EntryTrace.Semantic;
|
||||
using YamlDotNet.RepresentationModel;
|
||||
@@ -87,7 +88,7 @@ public sealed partial class KubernetesManifestParser : IManifestParser
|
||||
Services = services.ToImmutableArray(),
|
||||
Edges = edges.ToImmutableArray(),
|
||||
IngressPaths = ingressPaths.ToImmutableArray(),
|
||||
AnalyzedAt = DateTime.UtcNow.ToString("O")
|
||||
AnalyzedAt = DateTime.UtcNow.ToString("O", CultureInfo.InvariantCulture)
|
||||
};
|
||||
|
||||
return Task.FromResult(graph);
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System.Collections.Immutable;
|
||||
using System.Globalization;
|
||||
using StellaOps.Scanner.EntryTrace.Semantic;
|
||||
|
||||
namespace StellaOps.Scanner.EntryTrace.Mesh;
|
||||
@@ -260,7 +261,7 @@ public sealed class MeshEntrypointAnalyzer
|
||||
Services = ImmutableArray<ServiceNode>.Empty,
|
||||
Edges = ImmutableArray<CrossContainerEdge>.Empty,
|
||||
IngressPaths = ImmutableArray<IngressPath>.Empty,
|
||||
AnalyzedAt = DateTime.UtcNow.ToString("O")
|
||||
AnalyzedAt = DateTime.UtcNow.ToString("O", CultureInfo.InvariantCulture)
|
||||
};
|
||||
}
|
||||
|
||||
@@ -303,7 +304,7 @@ public sealed class MeshEntrypointAnalyzer
|
||||
Services = uniqueServices,
|
||||
Edges = uniqueEdges,
|
||||
IngressPaths = uniqueIngress,
|
||||
AnalyzedAt = DateTime.UtcNow.ToString("O")
|
||||
AnalyzedAt = DateTime.UtcNow.ToString("O", CultureInfo.InvariantCulture)
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System.Collections.Immutable;
|
||||
using System.Globalization;
|
||||
using StellaOps.Scanner.EntryTrace.Semantic;
|
||||
|
||||
namespace StellaOps.Scanner.EntryTrace.Mesh;
|
||||
@@ -423,7 +424,7 @@ public sealed class MeshEntrypointGraphBuilder
|
||||
Services = _services.ToImmutableArray(),
|
||||
Edges = _edges.ToImmutableArray(),
|
||||
IngressPaths = _ingressPaths.ToImmutableArray(),
|
||||
AnalyzedAt = DateTime.UtcNow.ToString("O"),
|
||||
AnalyzedAt = DateTime.UtcNow.ToString("O", CultureInfo.InvariantCulture),
|
||||
Metadata = _metadata.Count > 0
|
||||
? _metadata.ToImmutableDictionary()
|
||||
: null
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System.Collections.Immutable;
|
||||
using System.Globalization;
|
||||
|
||||
namespace StellaOps.Scanner.EntryTrace.Semantic;
|
||||
|
||||
@@ -202,7 +203,7 @@ public sealed class SemanticEntrypointBuilder
|
||||
FrameworkVersion = _frameworkVersion,
|
||||
RuntimeVersion = _runtimeVersion,
|
||||
Metadata = _metadata.Count > 0 ? _metadata.ToImmutableDictionary() : null,
|
||||
AnalyzedAt = DateTime.UtcNow.ToString("O")
|
||||
AnalyzedAt = DateTime.UtcNow.ToString("O", CultureInfo.InvariantCulture)
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System.Collections.Immutable;
|
||||
using System.Globalization;
|
||||
using StellaOps.Scanner.EntryTrace.FileSystem;
|
||||
using StellaOps.Scanner.EntryTrace.Semantic.Adapters;
|
||||
using StellaOps.Scanner.EntryTrace.Semantic.Analysis;
|
||||
@@ -226,7 +227,7 @@ public sealed class SemanticEntrypointOrchestrator
|
||||
FrameworkVersion = adapterResult.FrameworkVersion,
|
||||
RuntimeVersion = adapterResult.RuntimeVersion,
|
||||
Metadata = metadata.ToImmutableDictionary(),
|
||||
AnalyzedAt = DateTime.UtcNow.ToString("O")
|
||||
AnalyzedAt = DateTime.UtcNow.ToString("O", CultureInfo.InvariantCulture)
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@ using System;
|
||||
using System.Buffers;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Globalization;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
@@ -83,7 +84,7 @@ public static class EntryTraceNdjsonWriter
|
||||
writer.WriteNumber("edges", graph.Edges.Length);
|
||||
writer.WriteNumber("targets", graph.Plans.Length);
|
||||
writer.WriteNumber("warnings", graph.Diagnostics.Length);
|
||||
writer.WriteString("generated_at", metadata.GeneratedAtUtc.UtcDateTime.ToString("O"));
|
||||
writer.WriteString("generated_at", metadata.GeneratedAtUtc.UtcDateTime.ToString("O", CultureInfo.InvariantCulture));
|
||||
if (!string.IsNullOrWhiteSpace(metadata.Source))
|
||||
{
|
||||
writer.WriteString("source", metadata.Source);
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using System.Collections.Concurrent;
|
||||
using System.Collections.Immutable;
|
||||
using System.Globalization;
|
||||
using System.Security.Cryptography;
|
||||
using System.Text;
|
||||
using System.Text.Json;
|
||||
@@ -101,7 +102,7 @@ public sealed class InMemoryTemporalEntrypointStore : ITemporalEntrypointStore
|
||||
var prunedGraph = graph with
|
||||
{
|
||||
Snapshots = prunedSnapshots,
|
||||
UpdatedAt = DateTime.UtcNow.ToString("O")
|
||||
UpdatedAt = DateTime.UtcNow.ToString("O", CultureInfo.InvariantCulture)
|
||||
};
|
||||
|
||||
_graphs[serviceId] = prunedGraph;
|
||||
@@ -117,7 +118,7 @@ public sealed class InMemoryTemporalEntrypointStore : ITemporalEntrypointStore
|
||||
CurrentVersion = snapshot.Version,
|
||||
PreviousVersion = null,
|
||||
Delta = null,
|
||||
UpdatedAt = DateTime.UtcNow.ToString("O")
|
||||
UpdatedAt = DateTime.UtcNow.ToString("O", CultureInfo.InvariantCulture)
|
||||
};
|
||||
}
|
||||
|
||||
@@ -164,7 +165,7 @@ public sealed class InMemoryTemporalEntrypointStore : ITemporalEntrypointStore
|
||||
CurrentVersion = newSnapshot.Version,
|
||||
PreviousVersion = previousSnapshot?.Version,
|
||||
Delta = delta,
|
||||
UpdatedAt = DateTime.UtcNow.ToString("O")
|
||||
UpdatedAt = DateTime.UtcNow.ToString("O", CultureInfo.InvariantCulture)
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System.Collections.Immutable;
|
||||
using System.Globalization;
|
||||
using StellaOps.Scanner.EntryTrace.Semantic;
|
||||
|
||||
namespace StellaOps.Scanner.EntryTrace.Temporal;
|
||||
@@ -231,7 +232,7 @@ public sealed class TemporalEntrypointGraphBuilder
|
||||
CurrentVersion = _currentVersion,
|
||||
PreviousVersion = _previousVersion,
|
||||
Delta = _delta,
|
||||
UpdatedAt = DateTime.UtcNow.ToString("O"),
|
||||
UpdatedAt = DateTime.UtcNow.ToString("O", CultureInfo.InvariantCulture),
|
||||
Metadata = _metadata.Count > 0
|
||||
? _metadata.ToImmutableDictionary()
|
||||
: null
|
||||
|
||||
Reference in New Issue
Block a user