39 references to GetValueText
AnalyzeCiFailure (35)
AnalysisPublicationQueries.cs (1)
68
return match is null ? "" : CiFailureJson.
GetValueText
(CiFailureJson.Field(match, "id"));
AnalysisPublisher.cs (13)
96
var storedRunPath = history.RunPath(
GetValueText
(runId));
103
var runPath = history.RunPath(
GetValueText
(runId));
107
await history.CommitAndPushAsync(
GetValueText
(runId), prepared.Select(item => item.Path).Append(runPath));
120
await history.CommitAndPushAsync(
GetValueText
(runId), prepared.Select(p => p.Path));
181
if (!(issue is not null &&
GetValueText
(issue["number"]) == linked.Split('/')[^1] && MatchesIssue(issue, cause)))
197
if (!(issue is not null &&
GetValueText
(issue["number"]) == number && MatchesIssue(issue, cause)))
207
if (!(issue is null ||
GetValueText
(issue["locked"]) != "true"))
229
var runPath = store.RunPath(
GetValueText
(runId));
241
await store.CommitAndPushAsync(
GetValueText
(runId), prepared.Select(p => p.Path).Append(runPath));
276
var number =
GetValueText
(issue["number"]);
367
var pr =
GetValueText
(occurrence["pr_number"]);
369
var row = $"| {date} | [{
GetValueText
(runId)}]({Text(occurrence["run_url"])}) | {tableJobs} | {scope} |";
385
if (!CauseIssueRenderer.HasOccurrence(body,
GetValueText
(runId)))
AnalysisPublisher.Overflow.cs (5)
39
matches.Any(issue =>
GetValueText
(issue["number"]) != number)))
44
if (existing is null ||
GetValueText
(existing["number"]) != number ||
58
await _github.GetRowsAsync($"repos/{_repository}/issues/{
GetValueText
(existing["number"])}/comments?per_page=100");
87
previous is null ? null :
GetValueText
(previous["id"]),
168
$"repos/{_repository}/issues/{
GetValueText
(publication.Existing["number"])}",
BranchHistoryReader.cs (3)
60
&& double.TryParse(
GetValueText
(Field(first, "total_count")), CultureInfo.InvariantCulture, out var total)
66
total = double.Parse(
GetValueText
(first!["total_count"]), CultureInfo.InvariantCulture);
137
var total = double.Parse(
GetValueText
(array[0]!["total_commits"]), CultureInfo.InvariantCulture);
CauseIssueRenderer.cs (2)
163
var row = $"- {MarkdownFormatting.CodeSpan(DiagnosticTextSanitizer.Sanitize(Text(t["name"])!, limit: 500))} — job {
GetValueText
(t["job_id"])} ({MarkdownFormatting.CodeSpan(DiagnosticTextSanitizer.Sanitize(Text(t["job"])!, limit: 500))})";
318
.Select(test => (Test: test, Run:
GetValueText
(Field(o, "run_id")))))
TestResultArtifacts.cs (5)
44
var size = (long)double.Parse(
GetValueText
(candidate.Artifact.SizeInBytes), CultureInfo.InvariantCulture);
126
double.TryParse(
GetValueText
(artifact.SizeInBytes), CultureInfo.InvariantCulture, out var size) &&
129
static long GetSize(SelectedTestArtifact selected) => (long)double.Parse(
GetValueText
(selected.Artifact.SizeInBytes), CultureInfo.InvariantCulture);
142
$"id={Display(DiagnosticTextSanitizer.Sanitize(
GetValueText
(invalid.Artifact.Id), limit: 40))} " +
143
$"size={Display(DiagnosticTextSanitizer.Sanitize(
GetValueText
(invalid.Artifact.SizeInBytes), limit: 40))} limit={maxArtifactBytes}");
WorkflowRunEvidenceCollector.cs (6)
405
GetValueText
(run["workflow_id"]),
425
var jobId =
GetValueText
(job!["id"]);
691
ids = selected.Select(selection =>
GetValueText
(selection.Artifact.Id)).ToArray()
716
var artifactId =
GetValueText
(selection.Artifact.Id);
748
(long)double.Parse(
GetValueText
(selection.Artifact.SizeInBytes), CultureInfo.InvariantCulture),
792
return matches.Length == 1 && _runnerFailures.ContainsKey(
GetValueText
(matches[0]["id"]));
AnalyzeCiFailure.Tests (4)
AnalyzeCiFailureTextTests.cs (4)
142
Assert.Equal(expected, AnalyzeCiFailure.CiFailureJson.
GetValueText
(node));
150
Assert.Equal("\"x\"", AnalyzeCiFailure.CiFailureJson.
GetValueText
(node));
199
Assert.Equal(text, AnalyzeCiFailure.CiFailureJson.
GetValueText
(node));
218
var exception = Assert.Throws<JsonException>(() => AnalyzeCiFailure.CiFailureJson.
GetValueText
(node));