dependabot / dependabot/dependabot-core

Error processing ubuntu (RuntimeError) (IMO, internal error)

Open
#9,834 3 comments 0 reactions 0 assignees View on GitHub
L: docker T: bug 🐞
Dominant language
Ruby
Stars
5.8k
Forks
1.5k
Avg merge
2d 18h
Merged PRs (30d)
149

Description

### Is there an existing issue for this?

- [X] I have searched the existing issues

### Package ecosystem

Docker

### Package manager version

_No response_

### Language version

_No response_

### Manifest location and content before the Dependabot update

_No response_

### dependabot.yml content

---
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: daily

- package-ecosystem: docker
directory: /
schedule:
interval: daily

- package-ecosystem: docker
directory: /IDE/.devcontainer
schedule:
interval: daily

- package-ecosystem: docker
directory: /cloud-tool
schedule:
interval: daily

- package-ecosystem: docker
directory: /deploy/docker
schedule:
interval: daily

- package-ecosystem: docker
directory: /CI/Dockerfiles
schedule:
interval: daily

- package-ecosystem: docker
directory: /.clusterfuzzlite
schedule:
interval: "weekly"
day: "sunday"

### Updated dependency

FROM ubuntu:24.04@sha256:3f85b7caad41a95462cf5b787d8a04604c8262cdcdf9a472b8c52ef83375fe15

To: whatever dependabot selects
- now it it sha256:3f85b7caad41a95462cf5b787d8a04604c8262cdcdf9a472b8c52ef83375fe15

Maybe there shouldn't be an error if there is no update. No wait, it doesn't fail for Fedora.

### What you expected to see, versus what you actually saw

I saw an internal error (Fedora works fine):
```
updater | 2024/05/23 07:03:42 INFO Updating ubuntu from 24.04 to 24.04
updater | 2024/05/23 07:03:43 ERROR Error processing ubuntu (RuntimeError)
updater | 2024/05/23 07:03:43 ERROR No files changed!
updater | 2024/05/23 07:03:43 ERROR /home/dependabot/docker/lib/dependabot/docker/file_updater.rb:43:in `updated_dependency_files'
updater | 2024/05/23 07:03:43 ERROR /home/dependabot/dependabot-updater/lib/dependabot/dependency_change_builder.rb:135:in `generate_dependency_files'
updater | 2024/05/23 07:03:43 ERROR /home/dependabot/dependabot-updater/vendor/ruby/3.3.0/gems/sorbet-runtime-0.5.11353/lib/types/private/methods/call_validation_2_7.rb:919:in `bind_call'
updater | 2024/05/23 07:03:43 ERROR /home/dependabot/dependabot-updater/vendor/ruby/3.3.0/gems/sorbet-runtime-0.5.11353/lib/types/private/methods/call_validation_2_7.rb:919:in `block in create_validator_method_medium0'
updater | 2024/05/23 07:03:43 ERROR /home/dependabot/dependabot-updater/lib/dependabot/dependency_change_builder.rb:68:in `run'
updater | 2024/05/23 07:03:43 ERROR /home/dependabot/dependabot-updater/vendor/ruby/3.3.0/gems/sorbet-runtime-0.5.11353/lib/types/private/methods/call_validation_2_7.rb:59:in `bind_call'
updater | 2024/05/23 07:03:43 ERROR /home/dependabot/dependabot-updater/vendor/ruby/3.3.0/gems/sorbet-runtime-0.5.11353/lib/types/private/methods/call_validation_2_7.rb:59:in `block in create_validator_method_fast0'
updater | 2024/05/23 07:03:43 ERROR /home/dependabot/dependabot-updater/lib/dependabot/dependency_change_builder.rb:42:in `create_from'
updater | 2024/05/23 07:03:43 ERROR /home/dependabot/dependabot-updater/vendor/ruby/3.3.0/gems/sorbet-runtime-0.5.11353/lib/types/private/methods/call_validation.rb:167:in `bind_call'
updater | 2024/05/23 07:03:43 ERROR /home/dependabot/dependabot-updater/vendor/ruby/3.3.0/gems/sorbet-runtime-0.5.11353/lib/types/private/methods/call_validation.rb:167:in `validate_call_skip_block_type'
updater | 2024/05/23 07:03:43 ERROR /home/dependabot/dependabot-updater/vendor/ruby/3.3.0/gems/sorbet-runtime-0.5.11353/lib/types/private/methods/call_validation.rb:109:in `block in create_validator_slow_skip_block_type'
updater | 2024/05/23 07:03:43 ERROR /home/dependabot/dependabot-updater/lib/dependabot/updater/operations/update_all_versions.rb:132:in `check_and_create_pull_request'
updater | 2024/05/23 07:03:43 ERROR /home/dependabot/dependabot-updater/lib/dependabot/updater/operations/update_all_versions.rb:64:in `check_and_create_pr_with_error_handling'
updater | 2024/05/23 07:03:43 ERROR /home/dependabot/dependabot-updater/lib/dependabot/updater/operations/update_all_versions.rb:39:in `block in perform'
updater | 2024/05/23 07:03:43 ERROR /home/dependabot/dependabot-updater/lib/dependabot/updater/operations/update_all_versions.rb:39:in `each'
updater | 2024/05/23 07:03:43 ERROR /home/dependabot/dependabot-updater/lib/dependabot/updater/operations/update_all_versions.rb:39:in `perform'
updater | 2024/05/23 07:03:43 ERROR /home/dependabot/dependabot-updater/lib/dependabot/updater.rb:45:in `run'
updater | 2024/05/23 07:03:43 ERROR /home/dependabot/dependabot-updater/lib/dependabot/update_files_command.rb:44:in `block in perform_job'
updater | 2024/05/23 07:03:43 ERROR /home/dependabot/dependabot-updater/vendor/ruby/3.3.0/gems/opentelemetry-api-1.2.3/lib/opentelemetry/trace/tracer.rb:37:in `block in in_span'
updater | 2024/05/23 07:03:43 ERROR /home/dependabot/dependabot-updater/vendor/ruby/3.3.0/gems/opentelemetry-api-1.2.3/lib/opentelemetry/trace.rb:70:in `block in with_span'
updater | 2024/05/23 07:03:43 ERROR /home/dependabot/dependabot-updater/vendor/ruby/3.3.0/gems/opentelemetry-api-1.2.3/lib/opentelemetry/context.rb:87:in `with_value'
updater | 2024/05/23 07:03:43 ERROR /home/dependabot/dependabot-updater/vendor/ruby/3.3.0/gems/opentelemetry-api-1.2.3/lib/opentelemetry/trace.rb:70:in `with_span'
updater | 2024/05/23 07:03:43 ERROR /home/dependabot/dependabot-updater/vendor/ruby/3.3.0/gems/opentelemetry-api-1.2.3/lib/opentelemetry/trace/tracer.rb:37:in `in_span'
updater | 2024/05/23 07:03:43 ERROR /home/dependabot/dependabot-updater/lib/dependabot/update_files_command.rb:18:in `perform_job'
updater | 2024/05/23 07:03:43 ERROR /home/dependabot/dependabot-updater/lib/dependabot/base_command.rb:37:in `run'
updater | 2024/05/23 07:03:43 ERROR bin/update_files.rb:46:in `'

```

Started two weeks ago:

```
Version update 826780281
Errored with the message "Dependabot encountered an unknown error"
No PRs affected 2 weeks ago
[view logs](https://github.com/openwall/john-packages/network/updates/826780281)
```
```
Rebase update 826779933
Affected [#369 ](https://github.com/openwall/john-packages/pull/369)2 weeks ago
[view logs](https://github.com/openwall/john-packages/network/updates/826779933)
```

### Native package manager behavior

_No response_

### Images of the diff or a link to the PR, issue, or logs

_No response_

### Smallest manifest that reproduces the issue

_No response_

Contributor guide

Open the contributing guide

Research direction

Reproduce the Docker update with the reported ubuntu:24.04 digest and dependabot.yml configuration. Start at docker/lib/dependabot/docker/file_updater.rb:43 and follow dependency_change_builder.rb:135, comparing the Ubuntu and Fedora paths. Done means the Ubuntu case no longer raises the reported RuntimeError or "No files changed!" failure, with regression coverage for the behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, ruby
Domain
devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.