You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Passing commit references to config.show doesn't work as expected #3649
i tested this on the same deployment with newest develop which has some fixes for the internal cache and everything worked as expected. closing this issue
{"error":{"code":1010,"devMessage":"Repository not found. Git error message: stderr: 'cloning into '/tmp/tmp0249ujrt'... warning: redirecting to https://gitlab.dev.renku.ch/flora.thiebaut/a-playground-project.git/ post git-upload-pack (568 bytes) warning: could not find remote branch acd42ec5661190e0012d0d8e7e21eea5aefdb333 to clone. fatal: remote branch acd42ec5661190e0012d0d8e7e21eea5aefdb333 not found in upstream origin '","devReference":"https://renku-python.readthedocs.io/en/latest/service_errors.html#renku.ui.service.errors.UserRepoUrlInvalidError","userMessage":"A valid Git repository is not available at the target URL, or the user does not have the required permissions to access it."}}
fatal: remote branch acd42ec5661190e0012d0d8e7e21eea5aefdb333 not found in upstream origin
seems the branch doesn't exist? there shouldn't be a reason for it failing for anonymous users unless the repo isn't public. you might be passing in a commit in the branch field instead of the commit_sha field?
Activity
Panaetius commentedon Nov 8, 2023
@lorenzo-cavazzi the
branchfield only accepts branches (as per the name), use thecommit_shafield (in the PR you linked https://github.com/SwissDataScienceCenter/renku-python/pull/3608/files#diff-ec6227d8ba49d96645055b9405410a0fe9b7bb4b259bfbb369afde37b98e2a26R42-R43 )Also note that this is not yet released, so wouldn't work on the dev deployment.
lorenzo-cavazzi commentedon Nov 8, 2023
I tried the
commit_shaparameter on thedevelopbranch, but I still got the same problemP.S. The link probably won't work anymore in a few days from now, just update it with a working deployment
https://renku-ci-ui-2854.dev.renku.ch/ui-server/api/renku/10/config.show?commit_sha=b44d8b8bca27d5e0c271083c57b17861ef370624&git_url=https%3A%2F%2Fgitlab.dev.renku.ch%2Fflora.thiebaut%2Fa-playground-project
Panaetius commentedon Nov 29, 2023
i tested this on the same deployment with newest develop which has some fixes for the internal cache and everything worked as expected. closing this issue
leafty commentedon Dec 18, 2023
The endpoint does not work for anonymous users:
{"error":{"code":1010,"devMessage":"Repository not found. Git error message: stderr: 'cloning into '/tmp/tmp0249ujrt'... warning: redirecting to https://gitlab.dev.renku.ch/flora.thiebaut/a-playground-project.git/ post git-upload-pack (568 bytes) warning: could not find remote branch acd42ec5661190e0012d0d8e7e21eea5aefdb333 to clone. fatal: remote branch acd42ec5661190e0012d0d8e7e21eea5aefdb333 not found in upstream origin '","devReference":"https://renku-python.readthedocs.io/en/latest/service_errors.html#renku.ui.service.errors.UserRepoUrlInvalidError","userMessage":"A valid Git repository is not available at the target URL, or the user does not have the required permissions to access it."}}Endpoint:
Panaetius commentedon Dec 18, 2023
seems the branch doesn't exist? there shouldn't be a reason for it failing for anonymous users unless the repo isn't public. you might be passing in a commit in the branch field instead of the commit_sha field?
leafty commentedon Dec 18, 2023
Oh sorry, I don't know why I used
branch=.The problem still remains though, I get different answers if I use a logged in session or an anonymous session:
Logged in:
{"result":{"config":{"interactive.cpu_request":"10","interactive.default_url":"/lab","renku.autocommit_lfs":"false","renku.check_datadir_files":"true","renku.lfs_threshold":"100kb"},"default":{"interactive.default_url":"/lab","renku.autocommit_lfs":"false","renku.check_datadir_files":"true","renku.lfs_threshold":"100kb"}}}Anonymous:
{"result":{"config":{"interactive.cpu_request":"0.4","interactive.default_url":"/lab","interactive.disk_request":"4G","interactive.mem_request":"1G","renku.autocommit_lfs":"false","renku.check_datadir_files":"true","renku.lfs_threshold":"100kb"},"default":{"interactive.default_url":"/lab","renku.autocommit_lfs":"false","renku.check_datadir_files":"true","renku.lfs_threshold":"100kb"}}}Panaetius commentedon Dec 18, 2023
does this eventually converge or persist? could be a caching issue.
leafty commentedon Dec 18, 2023
It doesn't seem so.
leafty commentedon Dec 18, 2023
The anonymous responses seem incorrect
Panaetius commentedon Dec 19, 2023
i checked and this wasn't implemented for the anonymous code path. we'll address that