Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(nipa-update.jinja2): Update nipa branch and add debug #1067

Merged
merged 1 commit into from
Mar 4, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions config/runtime/nipa-update.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class Job(BaseJob):
if not os.path.exists(nipa_path):
subprocess.run(["git", "clone", "https://github.com/nuclearcat/kernelci-nipa.git", nipa_path])
# branch various-improvements
subprocess.run(["git", "checkout", "various-improvements"], cwd=nipa_path)
subprocess.run(["git", "checkout", "add-device"], cwd=nipa_path)
else:
subprocess.run(["git", "pull"], cwd=nipa_path)
# chdir to the nipa_path
Expand All @@ -77,9 +77,15 @@ class Job(BaseJob):
os.makedirs(local_nipa_results)

# copy current(remote) nipa-results to a local directory
cmd = f"scp -P {ssh_port} -r -i {ssh_key_path} -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null {ssh_username}@{ssh_host}:* {local_nipa_results}/netdev-results"
cmd = f"scp -P {ssh_port} -r -i {ssh_key_path} -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null {ssh_username}@{ssh_host}:* {local_nipa_results}"
subprocess.run(cmd, shell=True)

# temporary
# show the file list in the local_nipa_results
print(f"File list in {local_nipa_results}:")
for file in os.listdir(local_nipa_results):
print(file)

# run the nipa-update
args = ["/tmp/kernelci-nipa/nipa-results", "--id", parent_job]
# if api_name is not production, add --staging
Expand Down
Loading