-
Notifications
You must be signed in to change notification settings - Fork 290
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
Avoid need to download remote config when pulling #2167
Avoid need to download remote config when pulling #2167
Conversation
@@ -5823,6 +5823,24 @@ ostree_repo_regenerate_summary (OstreeRepo *self, | |||
g_variant_new_uint64 (GUINT64_TO_BE (g_get_real_time () / G_USEC_PER_SEC))); | |||
} | |||
|
|||
{ | |||
g_autofree char *remote_mode_str = NULL; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can land this hunk to simply add the data to the summary now as a prep patch.
/approve |
b3b2d01
to
88a253f
Compare
Sorry for the delay. I’ve updated as per the review comments |
88a253f
to
60f78b8
Compare
Looks like
LGTM otherwise! |
60f78b8
to
464d2a3
Compare
Currently, they are set in the `config` file and cause that to be downloaded on every pull. Given that the client is already pulling the `summary` file, it makes sense to avoid an additional network round trip and cache those options in the `summary` file. Signed-off-by: Philip Withnall <withnall@endlessm.com> Helps: ostreedev#2165
Otherwise, fall back to downloading and reading them from the `config` file. See the previous commit for details. Signed-off-by: Philip Withnall <withnall@endlessm.com> Fixes: ostreedev#2165
Re-using the `refs` variable for the main list of refs, plus the iterated lists, meant that the main list was never freed (although all the iterated ones were freed correctly). Fix this by using two variables rather than reusing the one. Signed-off-by: Philip Withnall <withnall@endlessm.com>
464d2a3
to
23bdc4e
Compare
Adjusted that test. Not sure what the continuous-integration/jenkins/pr-merge failure is about. The Jenkins page shows only green ticks. |
Yeah there's a bug in the UI, you need to go to the old view to see it:
Hmm but we didn't capture the logs from that it seems. |
Not sure, I tried retriggering. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cgwalters, jlebon, pwithnall The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Fixes #2165. See that and the commit messages for details.
This doesn’t need additional changes in flatpak for it to be used there too. It does require repositories to regenerate their
summary
files before the non-fallback code path is taken in clients, though. That’ll happen soon enough naturally.