Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
reference-repository
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
grid5000
reference-repository
Commits
0ee80721
Verified
Commit
0ee80721
authored
1 year ago
by
Philippe Virouleau
Browse files
Options
Downloads
Patches
Plain Diff
[accesses] fix generators
- use author date for accesses_mode_history - do not emit retired nodes
parent
0543731e
No related branches found
No related tags found
No related merge requests found
Pipeline
#997339
passed
1 year ago
Stage: lint
Stage: validate
Stage: generate
Stage: deploy
Stage: checks
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/refrepo/accesses.rb
+1
-1
1 addition, 1 deletion
lib/refrepo/accesses.rb
lib/refrepo/gen/reference-api.rb
+1
-1
1 addition, 1 deletion
lib/refrepo/gen/reference-api.rb
with
2 additions
and
2 deletions
lib/refrepo/accesses.rb
+
1
−
1
View file @
0ee80721
...
@@ -101,7 +101,7 @@ def generate_nodeset_mode_history
...
@@ -101,7 +101,7 @@ def generate_nodeset_mode_history
yaml_path
=
File
.
join
(
INPUT_FOLDER
,
"
#{
site
}
.yaml"
)
yaml_path
=
File
.
join
(
INPUT_FOLDER
,
"
#{
site
}
.yaml"
)
next
unless
File
.
exist?
(
yaml_path
)
next
unless
File
.
exist?
(
yaml_path
)
commits
=
git_repo
.
log
.
path
(
yaml_path
).
map
{
|
commit
|
[
commit
.
date
,
commit
.
sha
]
}.
sort_by
(
&
:first
)
commits
=
git_repo
.
log
.
path
(
yaml_path
).
map
{
|
commit
|
[
commit
.
author
.
date
,
commit
.
sha
]
}.
sort_by
(
&
:first
)
process_commits
(
commits
,
git_repo
,
yaml_path
,
nodeset_history
,
known_nodeset
)
process_commits
(
commits
,
git_repo
,
yaml_path
,
nodeset_history
,
known_nodeset
)
end
end
...
...
This diff is collapsed.
Click to expand it.
lib/refrepo/gen/reference-api.rb
+
1
−
1
View file @
0ee80721
...
@@ -181,7 +181,7 @@ def generate_reference_api
...
@@ -181,7 +181,7 @@ def generate_reference_api
[
cluster_uid
,
{
[
cluster_uid
,
{
"uid"
=>
cluster_uid
,
"uid"
=>
cluster_uid
,
"queues"
=>
cluster
[
"queues"
],
"queues"
=>
cluster
[
"queues"
],
"nodes"
=>
cluster
[
"nodes"
].
to_h
do
|
node_uid
,
node
|
"nodes"
=>
cluster
[
"nodes"
].
select
{
|
_
,
n
|
n
[
"status"
]
!=
"retired"
}.
to_h
do
|
node_uid
,
node
|
[
node_uid
,
node
.
select
{
|
key
|
%w[uid nodeset gpu_devices processor architecture]
.
include?
(
key
)
}]
[
node_uid
,
node
.
select
{
|
key
|
%w[uid nodeset gpu_devices processor architecture]
.
include?
(
key
)
}]
end
end
}]
}]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment