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

feat: add config option to enable iroh #5607

Merged
merged 1 commit into from
Jun 3, 2024
Merged

feat: add config option to enable iroh #5607

merged 1 commit into from
Jun 3, 2024

Conversation

Septias
Copy link
Contributor

@Septias Septias commented May 20, 2024

close #5590

@Septias Septias requested a review from link2xt May 20, 2024 13:27
@link2xt
Copy link
Collaborator

link2xt commented May 20, 2024

Besides unrelated changes (iroh_secret_key, deleted in one place but not the other), test_get_info_completeness fails for obvious reasons and iroh tests don't enable this option so they should all fail as well. And at least deltachat.h needs documentation for the new config option.

@@ -523,6 +523,7 @@ char* dc_get_blobdir (const dc_context_t* context);
* e.g. `ui.desktop.foo`, `ui.desktop.linux.bar`, `ui.android.foo`, `ui.dc40.bar`, `ui.bot.simplebot.baz`.
* These keys go to backups and allow easy per-account settings when using @ref dc_accounts_t,
* however, are not handled by the core otherwise.
*- `enable_realtime` = Whether the realtime APIs should be enabled. If not enabled, they will behave as noops.
Copy link
Member

Choose a reason for hiding this comment

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

isn't that problematic for the webxdcs, if they can't know if the apis are even usable?

Copy link
Contributor Author

@Septias Septias May 20, 2024

Choose a reason for hiding this comment

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

It can be read from the config (by the frontend implementation) which should then transport this information to the webxdc.
I wanted to return an error before but we decided against it. Maybe we should reconsider because this error can also be given to the xdc directly

@link2xt
Copy link
Collaborator

link2xt commented May 21, 2024

Rebased because I rebased debug-iroh-2 as well.

@hpk42
Copy link
Contributor

hpk42 commented May 22, 2024 via email

@link2xt link2xt force-pushed the debug-iroh-2 branch 3 times, most recently from 9e14e69 to 37c771d Compare May 25, 2024 05:52
@link2xt link2xt mentioned this pull request May 26, 2024
@Septias Septias changed the base branch from debug-iroh-2 to main May 27, 2024 12:13
@Septias Septias changed the title fix: add iroh config option to enable it fix: add config option to enable iroh May 27, 2024
Septias added a commit to deltachat/deltachat-desktop that referenced this pull request May 27, 2024
Septias added a commit to deltachat/deltachat-desktop that referenced this pull request May 28, 2024
src/peer_channels.rs Show resolved Hide resolved
src/peer_channels.rs Outdated Show resolved Hide resolved
src/config.rs Show resolved Hide resolved
@link2xt
Copy link
Collaborator

link2xt commented May 30, 2024

CI is still failing (python tests)

src/config.rs Outdated Show resolved Hide resolved
Simon-Laux pushed a commit to deltachat/deltachat-desktop that referenced this pull request May 31, 2024
# share a webxdc app between ac1 and ac2
ac1_webxdc_msg = acfactory.send_message(from_account=ac1, to_account=ac2, text="play", file=path_to_webxdc)
ac2_webxdc_msg = ac2.get_message_by_id(ac2.wait_for_incoming_msg_event().msg_id)
ac1_webxdc_msg, ac2_webxdc_msg = setup_realtime_webxdc(ac1, ac2, path_to_webxdc)
Copy link
Collaborator

Choose a reason for hiding this comment

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

The whole point of the test is that it sends realtime advertisements sequentially, now they are sent twice and in parallel at first.

Copy link
Collaborator

Choose a reason for hiding this comment

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

This also does not even pass the lint anymore because ac1 and ac2 are never created.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can't run the python test currently, so changing the tests is rather a hit or miss. Can you fix this quickly? I gues it's only a few line changes

Co-authored-by: link2xt <link2xt@testrun.org>
@link2xt link2xt changed the title fix: add config option to enable iroh feat: add config option to enable iroh Jun 3, 2024
@link2xt link2xt merged commit 48b4cfc into main Jun 3, 2024
32 of 37 checks passed
@link2xt link2xt deleted the sk/iroh_config branch June 3, 2024 22:59
@Septias
Copy link
Contributor Author

Septias commented Jun 4, 2024

Thanks :)

Septias added a commit to deltachat/deltachat-desktop that referenced this pull request Jun 4, 2024
Simon-Laux pushed a commit to deltachat/deltachat-desktop that referenced this pull request Jun 4, 2024
Simon-Laux pushed a commit to deltachat/deltachat-desktop that referenced this pull request Jun 4, 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.

Add config option to disable peer channels
5 participants