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

Update to new orderly.runner interface. #159

Merged
merged 9 commits into from
Feb 4, 2025
Merged

Update to new orderly.runner interface. #159

merged 9 commits into from
Feb 4, 2025

Conversation

plietar
Copy link
Member

@plietar plietar commented Jan 15, 2025

The new runner does not share an on-disk repository with outpack server anymore. Instead it uses it supports an arbitrary number of repositories, and each request needs to provide the repository URL.

For now, a most one Git repository can configured in the application properties. In the future, we may expand this to multiple repositories, or even allow them to be configured from the frontend and stored in the database.

When submitting a run request, we also need to provide details of the outpack location. We use the same URL to outpack_server that Packit uses itself. For now at least, Packit, outpack_server and the runner workers all run on the same machine. In the future, we may make it so that the runner workers communicate via Packit, and add an authentication mechanism.

Copy link

codecov bot commented Jan 15, 2025

Codecov Report

Attention: Patch coverage is 95.83333% with 1 line in your changes missing coverage. Please review.

Project coverage is 97.20%. Comparing base (458c294) to head (73a6bb9).
Report is 10 commits behind head on main.

Files with missing lines Patch % Lines
...p/components/contents/runner/run/PacketRunForm.tsx 88.88% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #159      +/-   ##
==========================================
+ Coverage   97.18%   97.20%   +0.01%     
==========================================
  Files         149      149              
  Lines        1422     1432      +10     
  Branches      406      415       +9     
==========================================
+ Hits         1382     1392      +10     
  Misses         39       39              
  Partials        1        1              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@plietar plietar force-pushed the mrc-6122 branch 6 times, most recently from 50cfdf5 to d14a8f9 Compare January 28, 2025 11:29
@plietar plietar requested a review from M-Kusumgar January 28, 2025 14:25
@plietar plietar marked this pull request as ready for review January 28, 2025 14:25
Copy link
Contributor

@M-Kusumgar M-Kusumgar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only got a couple of small comments but after those should be good!

scripts/git-daemon.dockerfile Outdated Show resolved Hide resolved
@plietar plietar requested a review from M-Kusumgar February 4, 2025 00:39
@M-Kusumgar
Copy link
Contributor

ps: do you need to add location to the submit thing to get the tests passing?

@plietar
Copy link
Member Author

plietar commented Feb 4, 2025

ps: do you need to add location to the submit thing to get the tests passing?

I'm not sure, it is working locally ...

There's an error happening in the runner, and unfortunately those errors don't actually get logged: https://mrc-ide.myjetbrains.com/youtrack/issue/mrc-6152
I'm making a quick branch of the runner just so I can see them: mrc-ide/orderly.runner#18

plietar and others added 8 commits February 4, 2025 17:56
The new runner does not share an on-disk repository with outpack server
anymore. Instead it uses it supports an arbitrary number of
repositories, and each request needs to provide the repository URL.

For now, a most one Git repository can configured in the application
properties. In the future, we may expand this to multiple repositories,
or even allow them to be configured from the frontend and stored in the
database.

When submitting a run request, we also need to provide details of the
outpack location. We use the same URL to outpack_server that Packit uses
itself. For now at least, Packit, outpack_server and the runner workers
all run on the same machine. In the future, we may make it so that the
runner workers communicate via Packit, and add an authentication
mechanism.
Co-authored-by: M-Kusumgar <98405247+M-Kusumgar@users.noreply.github.com>
@plietar plietar merged commit f807813 into main Feb 4, 2025
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants