Skip to content

Commit

Permalink
DEVPROD-12026: Expose execUser field from GraphQL Distro object
Browse files Browse the repository at this point in the history
  • Loading branch information
minnakt committed Nov 25, 2024
1 parent 62fb931 commit c4b9063
Show file tree
Hide file tree
Showing 6 changed files with 254 additions and 71 deletions.
74 changes: 73 additions & 1 deletion graphql/generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions graphql/schema/types/distro.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ input DistroInput {
disabled: Boolean!
disableShallowClone: Boolean!
dispatcherSettings: DispatcherSettingsInput!
execUser: String
expansions: [ExpansionInput!]!
finderSettings: FinderSettingsInput!
homeVolumeSettings: HomeVolumeSettingsInput!
Expand Down Expand Up @@ -275,6 +276,7 @@ type Distro {
disabled: Boolean!
disableShallowClone: Boolean!
dispatcherSettings: DispatcherSettings!
execUser: String!
expansions: [Expansion!]!
finderSettings: FinderSettings!
homeVolumeSettings: HomeVolumeSettings!
Expand Down
103 changes: 103 additions & 0 deletions graphql/tests/query/distro/data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
{
"distro": [
{
"_id": "rhel71-power8-large",
"aliases": ["rhel71-power8", "rhel71-power8-build"],
"arch": "linux_ppc64le",
"work_dir": "/data/mci",
"provider": "static",
"provider_settings": [
{
"hosts": [
{
"name": "rhel71-ppc-1.pic.build.10gen.cc"
},
{
"name": "rhel71-ppc-4.pic.build.10gen.cc"
}
]
}
],
"user": "mci-exec",
"bootstrap_settings": {
"method": "legacy-ssh",
"communication": "legacy-ssh",
"client_dir": "/home/mci-exec/evergreen_provisioning",
"jasper_binary_dir": "/home/mci-exec/evergreen_provisioning",
"jasper_credentials_path": "/home/mci-exec/evergreen_provisioning/jasper_credentials.json",
"shell_path": "/bin/bash",
"resource_limits": {
"num_files": 64000,
"num_processes": -1,
"locked_memory": -1,
"virtual_memory": -1
}
},
"clone_method": "legacy-ssh",
"ssh_options": [
"StrictHostKeyChecking=no",
"BatchMode=yes",
"ConnectTimeout=10"
],
"spawn_allowed": true,
"expansions": [
{
"key": "decompress",
"value": "tar xzvf"
},
{
"key": "ps",
"value": "ps aux"
},
{
"key": "kill_pid",
"value": "kill -- -$(ps opgid= %v)"
}
],
"finder_settings": {
"version": "legacy"
},
"planner_settings": {
"version": "tunable",
"target_time": {
"$numberLong": "0"
},
"group_versions": false,
"patch_zipper_factor": {
"$numberLong": "0"
},
"patch_time_in_queue_factor": {
"$numberLong": "0"
},
"commit_queue_factor": {
"$numberLong": "0"
},
"mainline_time_in_queue_factor": {
"$numberLong": "0"
},
"expected_runtime_factor": {
"$numberLong": "0"
}
},
"dispatcher_settings": {
"version": "revised-with-dependencies"
},
"host_allocator_settings": {
"version": "utilization",
"minimum_hosts": 0,
"maximum_hosts": 0,
"acceptable_host_idle_time": {
"$numberLong": "0"
}
},
"disable_shallow_clone": false,
"note": "",
"is_virtual_workstation": false,
"is_cluster": false,
"home_volume_settings": {
"format_command": ""
},
"icecream_settings": {}
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ query {
numProcesses
}
}
execUser
name
plannerSettings {
mainlineTimeInQueueFactor
Expand Down
40 changes: 40 additions & 0 deletions graphql/tests/query/distro/results.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"tests": [
{
"query_file": "distro.graphql",
"result": {
"data": {
"distro": {
"adminOnly": false,
"bootstrapSettings": {
"communication": "LEGACY_SSH",
"resourceLimits": {
"numFiles": 64000,
"numProcesses": -1
}
},
"execUser": "",
"name": "rhel71-power8-large",
"plannerSettings": {
"mainlineTimeInQueueFactor": 0
},
"provider": "STATIC",
"providerSettingsList": [
{
"hosts": [
{
"name": "rhel71-ppc-1.pic.build.10gen.cc"
},
{
"name": "rhel71-ppc-4.pic.build.10gen.cc"
}
]
}
],
"user": "mci-exec"
}
}
}
}
]
}
Loading

0 comments on commit c4b9063

Please sign in to comment.