-
Notifications
You must be signed in to change notification settings - Fork 4
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
make option --arch optional #24
base: main
Are you sure you want to change the base?
make option --arch optional #24
Conversation
Having it optional makes it convenient to be used in other routines Signed-off-by: Ritesh Raj Sarraf <[email protected]>
My intent with this PR is to make the |
@@ -120,7 +120,7 @@ struct DownloadBinariesAction { | |||
package: String, | |||
#[clap(long)] | |||
repository: String, | |||
#[clap(long)] | |||
#[clap(long, required=false)] | |||
arch: String, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it's optional make it an Option
Please document what you're trying to achieve; I can't really judge this PR by itself without it ; "for our certain use case" is less then helpful :) |
@@ -78,7 +78,6 @@ pub fn generate_monitor_pipeline( | |||
("project", project.to_owned()), | |||
("package", package.to_owned()), | |||
("repository", repo.to_owned()), | |||
("arch", arch.to_owned()), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this doesn't actually work, a bunch of commands here do actually need --arch
so the tests fail:
122 tests run: 26 passed, 96 failed, 0 skipped
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you. I tried cargo test
but the tests got hung for me.
... snipped ...
test upload::tests::test_create_list_package ... ok
test handler::tests::test_handler_flow::dput_test_4::build_success_1::log_test_3::download_binaries_1::prune_only_if_job_unsuccessful_2 ... FAILED
test retry::tests::test_retry_on_nested_non_client_errors ... ok
test retry::tests::test_retry_on_non_client_errors ... ok
test handler::tests::test_handler_flow::dput_test_4::build_success_1::log_test_1::download_binaries_1::prune_only_if_job_unsuccessful_1 ... FAILED
test handler::tests::test_handler_flow::dput_test_4::build_success_1::log_test_2::download_binaries_1::prune_only_if_job_unsuccessful_1 ... FAILED
test monitor::tests::test_fails_after_repeated_duplicate_endtimes ... FAILED
test monitor::tests::test_handles_old_build_status has been running for over 60 seconds
test prune::tests::test_prune has been running for over 60 seconds
test retry::tests::test_no_retry_on_client_errors has been running for over 60 seconds
test retry::tests::test_no_retry_on_nested_client_errors has been running for over 60 seconds
^C
So we have the use case where we have a Currently, the artifacts generated in the child pipeline aren't easily propagatable to the parent. Please see issue: https://gitlab.com/gitlab-org/gitlab/-/issues/285100#note_1610649891 So, right now, we do download the binaries via the So the above description is the problem statement. To overcome it:
|
So to have this, I was thinking of 2 things.
@refi64 Would this be the right approach to proceed with ? I need your guidance here 🙏🏽 |
Having it optional makes it convenient to be used in other routines
Signed-off-by: Ritesh Raj Sarraf [email protected]