Skip to content

Commit

Permalink
[TOPSAIL] Appraise the linter
Browse files Browse the repository at this point in the history
  • Loading branch information
kpouget committed Feb 16, 2025
1 parent ddbc0a1 commit cd5022d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@
- name: Make the Ray ServiceAccount privileged
command:
oc adm policy add-scc-to-user privileged \
-z {{ ray_cluster_service_account_name_cmd.stdout}}
-z {{ ray_cluster_service_account_name_cmd.stdout }}
-n {{ fine_tuning_ray_fine_tuning_job_namespace }}
when: fine_tuning_ray_fine_tuning_job_use_secondary_nic | default('', true) | length > 0

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
- name: Store the flag for rdma use
set_fact:
rdma_nics: "{{ fine_tuning_run_fine_tuning_job_use_secondary_nic and fine_tuning_run_fine_tuning_job_use_secondary_nic | select('search', 'rdma') | list}}"
rdma_nics: "{{ fine_tuning_run_fine_tuning_job_use_secondary_nic and fine_tuning_run_fine_tuning_job_use_secondary_nic | select('search', 'rdma') | list }}"

- name: Create the src directory
file:
Expand Down Expand Up @@ -34,7 +34,7 @@
{{ fine_tuning_job_fms_config_template }}{%-
elif fine_tuning_run_fine_tuning_job_workload == 'ilab' -%}
{{ fine_tuning_job_ilab_config_template }}
{%- endif %}"
{%- endif %}" # noqa: jinja[spacing]
dest: "{{ artifact_extra_logs_dir }}/src/config_base.yaml"
mode: '0400'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@

- name: Fail if the owner is different
when: lock_owner_content_cmd.stdout | trim != jump_ci_ensure_lock_owner
fail: msg="Unexpected lock owner. Found '{{ lock_owner_content_cmd.stdout}}', expected '{{ jump_ci_ensure_lock_owner }}'"
fail: msg="Unexpected lock owner. Found '{{ lock_owner_content_cmd.stdout }}', expected '{{ jump_ci_ensure_lock_owner }}'"
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
refs/pull/{{ jump_ci_prepare_topsail_pr_number }}/merge
{%- else -%}
main
{%- endif -%}"
{%- endif -%}" # noqa: jinja[spacing]

- name: Fetch TOPSAIL repository
block:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

- name: Compute the path of the directory to retrieve
set_fact:
remote_dir_path: "{% if cluster_lock_dir is defined %}{{ cluster_lock_dir }}{% else %}{{ '/tmp/topsail_'+jump_ci_retrieve_artifacts_cluster}}{% endif %}/{{ jump_ci_retrieve_artifacts_remote_dir }}"
remote_dir_path: "{% if cluster_lock_dir is defined %}{{ cluster_lock_dir }}{% else %}{{ '/tmp/topsail_' + jump_ci_retrieve_artifacts_cluster }}{% endif %}/{{ jump_ci_retrieve_artifacts_remote_dir }}"

- name: Get the size of the directory to retrieve
command:
Expand Down

0 comments on commit cd5022d

Please sign in to comment.