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

blocker: Autoload hosts if empty. #3245

Merged
merged 2 commits into from
Nov 8, 2023
Merged

Conversation

aartaka
Copy link
Contributor

@aartaka aartaka commented Nov 3, 2023

This ensures that the hostlist file is created if it doesn't exists and that hosts are fetched if they weren't.

Closes #3218.

Discussion

We have to integrate blocker-mode with Nfiles to avoid this type of problems. But it's quite a legacy by now, and our users are likely depending on some interfaces that blocker-mode provides, so I'm not sure we're safe to make the change.

Checklist:

Everything in this checklist is required for each PR. Please do not approve a PR that does not have all of these items.

  • Git hygiene:
    • I have pulled from master before submitting this PR
    • There are no merge conflicts.
  • I've added the new dependencies as:
    • ASDF dependencies,
    • Git submodules,
      cd /path/to/nyxt/checkout
      git submodule add https://gitlab.common-lisp.net/nyxt/py-configparser _build/py-configparser
    • and Guix dependencies.
  • My code follows the style guidelines for Common Lisp code. See:
  • I have performed a self-review of my own code.
  • My code has been reviewed by at least one peer. (The peer review to approve a PR counts. The reviewer must download and test the code.)
  • Documentation:
    • All my code has docstrings and :documentations written in the aforementioned style. (It's OK to skip the docstring for really trivial parts.)
    • I have updated the existing documentation to match my changes.
    • I have commented my code in hard-to-understand areas.
    • I have updated the changelog.lisp with my changes if it's anything user-facing (new features, important bug fix, compatibility breakage).
      • Changelog update should be a separate commit.
    • I have added a migration.lisp entry for all compatibility-breaking changes.
    • (If this changes something about the features showcased on Nyxt website) I have these changes described in the new/existing article at Nyxt website or will notify one of maintainters to do so.
  • Compilation and tests:
    • My changes generate no new warnings.
    • I have added tests that prove my fix is effective or that my feature works. (If possible.)
    • I ran the tests locally ((asdf:test-system :nyxt) and (asdf:test-system :nyxt/gi-gtk)) and they pass.
      • @aadcg, tests fail on my machine due to some symbols from nyxt/web-extensions and nyxt/renderer/gtk being undocumented. How to proceed?

@aadcg
Copy link
Member

aadcg commented Nov 5, 2023

We have to integrate blocker-mode with Nfiles to avoid this type of problems. But it's quite a legacy by now, and our users are likely depending on some interfaces that blocker-mode provides, so I'm not sure we're safe to make the change.

Can you please open an issue and mark it with the 4-series tag?

I think the fix proposed in this PR is suitable for the 3 series.

source/changelog.lisp Outdated Show resolved Hide resolved
source/mode/blocker.lisp Outdated Show resolved Hide resolved
@aartaka
Copy link
Contributor Author

aartaka commented Nov 6, 2023

Can you please an issue and mark it with the 4-series tag?

See #3248.

I think the fix proposed in this PR is suitable for the 3 series.

Yes, it's backwards-compatible.


On a separate note: marking PR as a "changes requested" blocks any action on it until you approve it. I'm not sure, but it might even block other maintainers from merging. Which kinda is a bus factor thing. So we should probably avoid "changes requested". Especially given that our review is quite comprehensive already and that we don't merge if there's any unaddressed commentary.

@jmercouris
Copy link
Member

@aadcg status?

Ensures that the hostlist file is created and that hosts are fetched. Blocker
mode is not integrated into Nfiles properly, but it's a legacy we have to live
with: likely, lots of users rely on it in their config.

Closes #3218.
@aadcg aadcg force-pushed the blocker-load-hostlists-if-empty branch from 6398fad to a81d574 Compare November 8, 2023 12:24
@aadcg aadcg merged commit 95312a4 into master Nov 8, 2023
2 checks passed
@aadcg aadcg deleted the blocker-load-hostlists-if-empty branch November 8, 2023 12:33
@aadcg
Copy link
Member

aadcg commented Nov 8, 2023

  • @aadcg, tests fail on my machine due to some symbols from nyxt/web-extensions and nyxt/renderer/gtk being undocumented. How to proceed?

I don't think that's related to this PR. Please open an issue on the topic, but notice that the CI passes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

blocker-mode seemingly blocks nothing
3 participants