Commit Graph

26 Commits

Author SHA1 Message Date
Ben Marsh
00cada9987 Horde: Add an error code explaining why a step failed to run, and use it to mark steps that timed out.
#preflight none
#fyi Josh.Engebretson

[CL 19951194 by Ben Marsh in ue5-main branch]
2022-04-27 22:32:00 -04:00
Ben Marsh
4b0764eee2 Horde: Fix coding conventions within Horde.Build.
#preflight none

[CL 19482916 by Ben Marsh in ue5-main branch]
2022-03-23 14:50:23 -04:00
Ben Marsh
dfffa48e52 Horde: Reformat ACL code according to Microsoft style guide.
#preflight none

[CL 19420382 by Ben Marsh in ue5-main branch]
2022-03-17 10:06:38 -04:00
Ben Marsh
793c6e8a5a Horde: Normalize namespace names to match assembly names.
#preflight none

[CL 19406255 by Ben Marsh in ue5-main branch]
2022-03-16 11:18:39 -04:00
Josh Engebretson
fff5ab600b Horde: Adding PromoteIssuesByDefault to job templates with test case
#preflight none
#skipci
#jira none
#rnx
#fyi ben.marsh

[CL 19378188 by Josh Engebretson in ue5-main branch]
2022-03-14 16:48:18 -04:00
carl bystrom
3b1f3aaad2 Horde: Include batches and costs in find timings endpoint
#preflight none

[CL 18902123 by carl bystrom in ue5-main branch]
2022-02-08 10:04:11 -05:00
carl bystrom
86528bc21a Horde: Ensure labels are included in find job timings endpoint
#fyi chad.garyet
#preflight 62027951b168cac6283e2002

[CL 18901497 by carl bystrom in ue5-main branch]
2022-02-08 09:10:23 -05:00
carl bystrom
84dd506067 Horde: Include jobs in find timings endpoint
To further reduce chattiness for the timings panel.

#rb char.garyet
#preflight 61fd44d30a43b689e178e9bf

[CL 18863513 by carl bystrom in ue5-main branch]
2022-02-04 10:28:44 -05:00
carl bystrom
3b701b7608 Horde: Add endpoint in job controller for finding job timings
Batch getting these on the server-side leads to less back-and-forth when resolving timings for many jobs.

#fyi chad.garyet
#preflight 61eacb96c92021e535bfa8b0

[CL 18689450 by carl bystrom in ue5-main branch]
2022-01-21 10:15:02 -05:00
Josh Engebretson
5df9761cc7 Horde: Fix issue where last success would select user jobs (which potentially have modified targets and don't reflect state of template)
#jira UE-118204
#preflight none
#rnx

[CL 18597895 by Josh Engebretson in ue5-main branch]
2022-01-13 11:42:37 -05:00
Ben Marsh
ab73af912c Horde: Add an explicit permission for being able to see job costs on the dashboard. Currently only granted to admins.
#fyi Josh.Engebretson
#preflight none

[CL 18471012 by Ben Marsh in ue5-main branch]
2021-12-15 16:11:01 -05:00
Ben Marsh
7e7bec2660 Horde: Include hourly rate for using an agent in returned agent and job documents.
Global config file now includes a list of conditions which are evaluated against an agent's properties. The first condition that matches specifies the rate for the agent. This should give us plenty of flexibility in pricing out esoteric configurations dependent on factors like instance type, OS, etc...

Rates are cached in Redis and re-evaluated every 5 minutes.

#fyi Josh.Engebretson
#preflight none

[CL 18469963 by Ben Marsh in ue5-main branch]
2021-12-15 14:47:12 -05:00
Josh Engebretson
e64039ad08 Horde: Fix issue with job controller returning 500 on missing GraphHash
#jira none
#rnx

[CL 18431041 by Josh Engebretson in ue5-main branch]
2021-12-10 10:57:24 -05:00
Josh Engebretson
e3692577af Horde: Add preflight exclusive search to jobs controller and dashboard
#jira none
#rnx

[CL 18430523 by Josh Engebretson in ue5-main branch]
2021-12-10 09:33:53 -05:00
Ben Marsh
1815c50c6e Horde: Use {TemplateId} consistently for referencing templates.
[CL 18408133 by Ben Marsh in ue5-main branch]
2021-12-08 13:01:43 -05:00
Ben Marsh
4dc2f1bf62 Horde: Validate the preflight change when starting a job, and return a descriptive error describing the problem with it if it fails.
#fyi Josh.Engebretson

[CL 18369077 by Ben Marsh in ue5-main branch]
2021-12-03 11:43:19 -05:00
Ben Marsh
c1362acc2d Horde: More descriptive error return paths. Errors now return a JSON log event with information about the problem, including a specific error message and properties.
- HordeControllerBase defines methods for generating standard 404, 503 responses with typed data.
- Unhandled exceptions include an exception field detailing the source of the error.
- Added a string typeconverter for AgentId and SubResourceId, so they can be bound directly to controller routes.
- Modified SessionId to be an alias for ObjectId<ISession>.

#fyi Josh.Engebretson

[CL 18369047 by Ben Marsh in ue5-main branch]
2021-12-03 11:35:15 -05:00
carl bystrom
9119442f7d Horde: Add additional MaxCreateTime parameter to specialized find jobs method
[CL 18326928 by carl bystrom in ue5-main branch]
2021-11-30 12:44:39 -05:00
carl bystrom
d459146905 Horde: Default to non-consistent reads in specialized find jobs method
[CL 18312440 by carl bystrom in ue5-main branch]
2021-11-29 12:59:22 -05:00
carl bystrom
d965f8857d Horde: Add support for ModifiedAfter in the specialized find jobs method
[CL 18312403 by carl bystrom in ue5-main branch]
2021-11-29 12:57:28 -05:00
carl bystrom
c68a325f21 Horde: Add optimized endpoint in JobsController for fetching jobs in a specific stream
Also adds an index hint parameter to FindAsync in JobCollection. The new specialized method in that collection uses that parameter to optimize the database query.
When the dashboard can use this endpoint, load times can hopefully be improved for listing jobs in the browser.

[CL 18308787 by carl bystrom in ue5-main branch]
2021-11-29 09:02:22 -05:00
Josh Engebretson
caf1cdd8e8 Horde: Add template setting for updating issues, also make it possible to set a job to update issues in advanced settings
#jira UE-118064
#rnx

[CL 18259901 by Josh Engebretson in ue5-main branch]
2021-11-22 12:41:33 -05:00
carl bystrom
07c161a61d Horde: Add support for sending job find queries to database replica
All job find requests will query using this as a start. Possibly something we can add to more calls if this works well.

[CL 18257228 by carl bystrom in ue5-main branch]
2021-11-22 08:43:51 -05:00
Ben Marsh
a9eed4b1b5 Horde: Add an experimental option to parse BuildGraph scripts on the server.
[CL 18110352 by Ben Marsh in ue5-main branch]
2021-11-09 14:33:02 -05:00
Ben Marsh
a6cbf52d8e Horde: Always return copies of job documents rather than mutating the original.
[CL 18088716 by Ben Marsh in ue5-main branch]
2021-11-08 12:22:04 -05:00