You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@devlake.apache.org by "beratx (via GitHub)" <gi...@apache.org> on 2023/10/19 15:26:21 UTC

[I] [Bug][lake] lake does not handle 404´d Gitlab pipeline jobs and fails the task [incubator-devlake]

beratx opened a new issue, #6289:
URL: https://github.com/apache/incubator-devlake/issues/6289

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/incubator-devlake/issues?q=is%3Aissue) and found no similar issues.
   
   
   ### What happened
   
   Similarly to #5385 the blueprint's Gitlab task fails due to missing Gitlab pipeline jobs. These jobs are belonging to Gitlab pipelines that are removed from Gitlab. So the task fails  instead of ignoring it and continuing.
   
   
   <img width="1158" alt="Screenshot 2023-10-19 at 17 14 53" src="https://github.com/apache/incubator-devlake/assets/9766069/b1c57a98-d1ed-4ff3-a06e-3aa4e1868f9f">
   
   
   Failed task's logs are showing that it attempts to collect some jobs but receives 404:
   
   ```
   time="2023-10-19 12:42:35" level=warning msg=" [pipeline service] [pipeline #2202] [task #36327] [api async client] retry #0 calling projects/7865/jobs/9567773
   	caused by: Http DoAsync error calling [GET projects/7865/jobs/9567773]. Response: {"message":"404 Not found"} (404)"
   time="2023-10-19 12:42:37" level=info msg=" [pipeline service] [pipeline #2202] [task #36327] [collectApiJobs] finished records: 2278"
   time="2023-10-19 12:42:41" level=warning msg=" [pipeline service] [pipeline #2202] [task #36327] [api async client] retry #1 calling projects/7865/jobs/9567773
   	caused by: Http DoAsync error calling [GET projects/7865/jobs/9567773]. Response: {"message":"404 Not found"} (404)"
   time="2023-10-19 12:42:41" level=info msg=" [pipeline service] [pipeline #2202] [task #36327] [collectApiJobs] finished records: 2287"
   time="2023-10-19 12:42:44" level=info msg=" [pipeline service] [pipeline #2202] [task #36327] [collectApiJobs] finished records: 2296"
   time="2023-10-19 12:42:45" level=warning msg=" [pipeline service] [pipeline #2202] [task #36327] [api async client] retry #2 calling projects/7865/jobs/9567773
   	caused by: Http DoAsync error calling [GET projects/7865/jobs/9567773]. Response: {"message":"404 Not found"} (404)"
   time="2023-10-19 12:42:47" level=info msg=" [pipeline service] [pipeline #2202] [task #36327] [collectApiJobs] finished records: 2304"
   time="2023-10-19 12:42:51" level=error msg=" [pipeline service] [pipeline #2202] [task #36327] [api async client] Retry exceeded 3 times calling projects/7865/jobs/9567773. The last error was: Http DoAsync error calling [GET projects/7865/jobs/9567773]. Response: {"message":"404 Not found"} (404)
   	Wraps: (2) Http DoAsync error calling [GET projects/7865/jobs/9567773]. Response: {"message":"404 Not found"} (404)
   	Error types: (1) *hintdetail.withDetail (2) *errors.errorString"
   time="2023-10-19 12:42:51" level=info msg=" [pipeline service] [pipeline #2202] [task #36327] [collectApiJobs] finished records: 2313"
   time="2023-10-19 12:42:54" level=info msg=" [pipeline service] [pipeline #2202] [task #36327] [collectApiJobs] finished records: 2322"
   time="2023-10-19 12:42:55" level=error msg=" [pipeline service] [pipeline #2202] [task #36327] subtask collectApiJobs ended unexpectedly
   	Wraps: (2) Retry exceeded 3 times calling projects/7865/jobs/9567773. The last error was: Http DoAsync error calling [GET projects/7865/jobs/9567773]. Response: {"message":"404 Not found"} (404)
   	Error types: (1) *hintdetail.withDetail (2) *errors.errorString"
   ```
   
   
   
   
   ### What do you expect to happen
   
   The pipeline should just ignore missing jobs/pipelines which are 404'd by gitlab and continue its information gathering - instead of completely failing.
   
   ### How to reproduce
   
   1. Create blueprint with Gitlab integration and add a repository
   2. Launch a pipeline on the configured repository
   3. Delete executed pipeline from Gitlab
   4. Run Devlake's sync pipeline
   
   
   ### Anything else
   
   It happens each time the sync pipeline is executed for the given blueprint
   
   ### Version
   
   v0.18.0
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug][lake] lake does not handle 404´d Gitlab pipeline jobs and fails the task [incubator-devlake]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #6289:
URL: https://github.com/apache/incubator-devlake/issues/6289#issuecomment-1863646087

   This issue has been automatically marked as stale because it has been inactive for 60 days. It will be closed in next 7 days if no further activity occurs.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug][lake] lake does not handle 404´d Gitlab pipeline jobs and fails the task [incubator-devlake]

Posted by "klesh (via GitHub)" <gi...@apache.org>.
klesh commented on issue #6289:
URL: https://github.com/apache/incubator-devlake/issues/6289#issuecomment-1772008485

   Hi, this problem should have been fixed in `v0.19`, please try upgrade to https://github.com/apache/incubator-devlake/releases/tag/v0.19.0-beta5


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug][lake] lake does not handle 404´d Gitlab pipeline jobs and fails the task [incubator-devlake]

Posted by "beratx (via GitHub)" <gi...@apache.org>.
beratx commented on issue #6289:
URL: https://github.com/apache/incubator-devlake/issues/6289#issuecomment-1772169359

   We will upgrade and verify, thanks


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug][lake] lake does not handle 404´d Gitlab pipeline jobs and fails the task [incubator-devlake]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #6289:
URL: https://github.com/apache/incubator-devlake/issues/6289#issuecomment-1869836411

   This issue has been closed because it has been inactive for a long time. You can reopen it if you encounter the similar problem in the future.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug][lake] lake does not handle 404´d Gitlab pipeline jobs and fails the task [incubator-devlake]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #6289: [Bug][lake] lake does not handle 404´d Gitlab pipeline jobs and fails the task
URL: https://github.com/apache/incubator-devlake/issues/6289


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org