Skip to content

tooling: Reduce frequency of Dependabot PRs - #5099

Merged
gerhard merged 4 commits into
dagger:mainfrom
gerhard:reduce-frequency-of-dependabot-prs
May 5, 2023
Merged

gerhard merged 4 commits into
dagger:mainfrom
gerhard:reduce-frequency-of-dependabot-prs

Conversation

@gerhard

@gerhard gerhard commented May 5, 2023 •

Copy link
Copy Markdown
Contributor

Configure Dependabot to bump dependencies monthly because daily results in too much noise. It makes it more difficult to spot "real" contributions vs. "noisy ones".

With a reduced frequency (monthly instead of daily), this gives us the chance to update the things that we care about ourselves. It is known for some updates to result in breakages further down the pipeline, e.g. #4850

FTR: https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuring-dependabot-version-updates

Append extra labels to Dependabot PRs. We were missing a few dependency update areas, e.g. engine, cli, tooling.

Configure Dependabot to ignore patch updates. FTR: https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#ignore

Configure Dependabot to bump Go deps in /internal/mage. Before this change, I could not find a single Dependabot update of /internal/mage/go.mod: https://github.com/dagger/dagger/commits/main/internal/mage/go.mod


🗣 Started as (private) Discord thread.

"daily" results in too much noise. It makes it more difficult to spot
"real" contributions vs. "noisy ones".

With a reduced frequency (monthly instead of daily), this gives us the
chance to update the things that we care about ourselves. It is known
for some updates to result in breakages further down the pipeline, e.g.
#4850

FTR:
https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuring-dependabot-version-updates

Signed-off-by: Gerhard Lazu <[email protected]>
@gerhard

gerhard commented May 5, 2023 •

Copy link
Copy Markdown
Contributor Author

Part of this, I would also like to close all currently open Dependabot PRs: https://github.com/dagger/dagger/pulls?q=is%3Apr+is%3Aopen+label%3Akind%2Fdependencies

It will look so much better afterwards!
image

👉 Let me know if you think differently.

@crjm crjm left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM for the docs part!

Comment thread .github/dependabot.yml Resolved
Comment thread .github/dependabot.yml Resolved
Gerhard Lazu added 3 commits May 5, 2023 15:11
We were missing a few dependency update areas, e.g. engine, cli,
tooling, etc.

Signed-off-by: Gerhard Lazu <[email protected]>
Before this, I could not find a single Dependabot update of
/internal/mage/go.mod

Signed-off-by: Gerhard Lazu <[email protected]>
@gerhard

gerhard commented May 5, 2023

Copy link
Copy Markdown
Contributor Author

Thank all! When all checks pass, this goes in.

While I wait, I'm going to close all currently open Dependabot PRs.

@gerhard
gerhard merged commit 7d1043e into dagger:main May 5, 2023
@gerhard
gerhard deleted the reduce-frequency-of-dependabot-prs branch May 5, 2023 14:26
@gerhard

gerhard commented May 5, 2023

Copy link
Copy Markdown
Contributor Author

All these 13 newly created PRs are legit: https://github.com/dagger/dagger/pulls?q=is%3Apr+is%3Aopen+label%3Akind%2Fdependencies

We should each take a few and get them merged cc @marcosnils @helderco @slumbering @crjm @grouville. I just merged 3 & closed 1. FWIW: #5100 (comment)

image

I don't expect to see any new PRs from Dependabot before June 5th.

Ardaferad35 added a commit to Ardaferad35/CineVerse that referenced this pull request Aug 5, 2026
The project previously avoided the Hilt Gradle plugin entirely due to
a known AGP 9 incompatibility (dagger/dagger#4944), manually extending
generated Hilt_* base classes as a workaround. Root-caused it:

- Hilt 2.57.1 (in use) predates AGP 9 support. 2.58/2.59 added it but
  2.59 shipped with a runtime regression (dagger/dagger#5099,
  ComponentTreeDeps missing from the artifact). 2.60.1 fixes both.
- hilt-navigation-compose was pinned to 1.2.0 because 1.4.0 requires
  compileSdk 37 (project is on 36); 1.3.0 is the latest stable that
  doesn't require it.

With the real plugin applied and hiltJavaCompileDebug actually running
for the first time, it surfaced a real bug the pluginless setup had
been silently masking: Dagger does not support Kotlin constructor
default parameter values, and MovieRepository/TvRepository/
RecommendationRepository/UserListRepository relied on them as their
only injection path (e.g. `movieDao: MovieDao = AppGraph.movieDao`).

Fixed by dropping the defaults from the @Inject constructors (Hilt now
resolves every dependency from the existing DatabaseModule/
FirebaseModule/NetworkModule/ConnectivityModule bindings) and adding a
`default()` companion factory carrying the old default expressions,
for the ~15 call sites across screens/workers/other ViewModels that
still construct these repositories manually outside Hilt. Behavior is
unchanged; only how the instances get wired changed.

The wider inconsistency (AppGraph service locator + manual repository
construction alongside Hilt) is unchanged by this commit and remains
tracked as follow-up work.
Ardaferad35 added a commit to Ardaferad35/CineVerse that referenced this pull request Aug 13, 2026
The project previously avoided the Hilt Gradle plugin entirely due to
a known AGP 9 incompatibility (dagger/dagger#4944), manually extending
generated Hilt_* base classes as a workaround. Root-caused it:

- Hilt 2.57.1 (in use) predates AGP 9 support. 2.58/2.59 added it but
  2.59 shipped with a runtime regression (dagger/dagger#5099,
  ComponentTreeDeps missing from the artifact). 2.60.1 fixes both.
- hilt-navigation-compose was pinned to 1.2.0 because 1.4.0 requires
  compileSdk 37 (project is on 36); 1.3.0 is the latest stable that
  doesn't require it.

With the real plugin applied and hiltJavaCompileDebug actually running
for the first time, it surfaced a real bug the pluginless setup had
been silently masking: Dagger does not support Kotlin constructor
default parameter values, and MovieRepository/TvRepository/
RecommendationRepository/UserListRepository relied on them as their
only injection path (e.g. `movieDao: MovieDao = AppGraph.movieDao`).

Fixed by dropping the defaults from the @Inject constructors (Hilt now
resolves every dependency from the existing DatabaseModule/
FirebaseModule/NetworkModule/ConnectivityModule bindings) and adding a
`default()` companion factory carrying the old default expressions,
for the ~15 call sites across screens/workers/other ViewModels that
still construct these repositories manually outside Hilt. Behavior is
unchanged; only how the instances get wired changed.

The wider inconsistency (AppGraph service locator + manual repository
construction alongside Hilt) is unchanged by this commit and remains
tracked as follow-up work.
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.

4 participants