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

checking-new-edits: add bot to the list of projects #10

Merged
merged 1 commit into from
Apr 30, 2024

Conversation

david-caro
Copy link
Contributor

This will build it at build time and make it available to run as checking-new-edits command.

This will build it at build time and make it available to run as
`checking-new-edits` command.

Signed-off-by: David Caro <me@dcaro.es>
@david-caro
Copy link
Contributor Author

Tested on toolsbeta now, it works:

toolsbeta.test@toolsbeta-bastion-6:~$ toolforge build start https://gitlab.com/carlinmack/addletterboxdfilmid
...

dcaro@urcuchillay$ podman run --entrypoint launcher --rm -ti tools-harbor.wmcloud.org/tool-dcaro-test13/tool-dcaro-test13:latest@sha256:a0fbb5a5c90649c4ccff8c3e4c84bcf636cf592fb7b9502805ca11687e55dc0f bash
...
heroku@187a228d74e6:/workspace$ checking-new-edits 
Unhandled exception. System.AggregateException: One or more errors occurred. (Response status code does not indicate success: 401 (Unauthorized).)
 ---> System.Net.Http.HttpRequestException: Response status code does not indicate success: 401 (Unauthorized).
   at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
   at System.Net.Http.HttpClient.GetStringAsyncCore(HttpRequestMessage request, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
   at Program.collect_trusted_users() in /workspace/other-bots/checking-new-edits/checking-new-edits.cs:line 196
   at Program.Main() in /workspace/other-bots/checking-new-edits/checking-new-edits.cs:line 221
Aborted (core dumped)
heroku@187a228d74e6:/works

Failing with unauthorized as I don't have access/credentials

To run as a job, you can just:

toolforge jobs run --image tool-mbh/tool-mbh:latest --command checking-new-edits ...

@Saisengen Saisengen merged commit ee35e16 into Saisengen:main Apr 30, 2024
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.

None yet

2 participants