Skip to content

fix(engine): increase build timeout duration, add batch uri reindex with debounce - #698

Merged
doorgan merged 3 commits into
expert-lsp:mainfrom
guetnga:debounce-compilation
Jun 18, 2026
Merged

doorgan merged 3 commits into
expert-lsp:mainfrom
guetnga:debounce-compilation

Conversation

@guetnga

@guetnga guetnga commented May 28, 2026 •

Copy link
Copy Markdown
Contributor
  • Increased Engine.Build compilation timeout from 50ms to 1000ms (do not know which value will fit)

  • Slightly reworked Engine.Commands.Reindex: now reindex adds URIs into pending_uris MapSet and process them after 1000ms debounce

Closes #672

@doorgan doorgan 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.

Thank you! I left you some comments, there's also some failing tests that need fixing

Comment thread apps/engine/lib/engine/commands/reindex.ex Outdated
end

start_supervised!({Reindex, reindex_fun: reindex_fun})
start_supervised!({Reindex, reindex_fun: reindex_fun, debounce_interval_millis: 0})

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.

Can we add some tests that set a non-zero debounce interval, and check that the debounce is working? 100 or 500ms should work

Comment thread apps/engine/lib/engine/commands/reindex.ex Outdated
@guetnga

guetnga commented Jun 1, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for the feedback! I’ll push the fixes shortly.

Is it possible to run all tests locally, so I could be sure that CI passes?

@doorgan

doorgan commented Jun 1, 2026 •

Copy link
Copy Markdown
Contributor

@lsdrfrx yes you can run just test to run all tests, or just test engine, just test expert to run tests for a specific app
You need https://github.com/casey/just to run those

@doorgan
doorgan force-pushed the debounce-compilation branch from c6cf41c to 85a23b9 Compare June 18, 2026 14:48
@doorgan doorgan changed the title feat(engine): increase build timeout duration, add batch uri reindex with debounce fix(engine): increase build timeout duration, add batch uri reindex with debounce Jun 18, 2026
@doorgan
doorgan merged commit ba07dcd into expert-lsp:main Jun 18, 2026
50 checks passed
@expert-backports

Copy link
Copy Markdown

Backport failed for v0.1, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin v0.1
git worktree add -d .worktree/backport-698-to-v0.1 origin/v0.1
cd .worktree/backport-698-to-v0.1
git switch --create backport-698-to-v0.1
git cherry-pick -x ba07dcd442fc18a6e60d3ba6e45ceed55b3611e5

doorgan added a commit that referenced this pull request Jun 18, 2026
…ith debounce (#698)

- Increased `Engine.Build` compilation timeout from 50ms to 1000ms (do
not know which value will fit)

- Slightly reworked `Engine.Commands.Reindex`: now reindex adds URIs
into `pending_uris` MapSet and process them after 1000ms debounce

Closes #672

---------

Co-authored-by: doorgan <dorgandash@gmail.com>
(cherry picked from commit ba07dcd)
doorgan added a commit that referenced this pull request Jun 18, 2026
…ith debounce (#733)

Backport #698

Co-authored-by: Christian Guetnga <33656776+lsdrfrx@users.noreply.github.com>
doorgan added a commit that referenced this pull request Jun 24, 2026
…ith debounce (#698)

- Increased `Engine.Build` compilation timeout from 50ms to 1000ms (do
not know which value will fit)

- Slightly reworked `Engine.Commands.Reindex`: now reindex adds URIs
into `pending_uris` MapSet and process them after 1000ms debounce

Closes #672

---------

Co-authored-by: doorgan <dorgandash@gmail.com>
doorgan pushed a commit that referenced this pull request Jul 9, 2026
🤖 I have created a release *beep* *boop*
---


## [0.1.6](v0.1.5...v0.1.6)
(2026-07-09)


### Features

* allow setting Elixir source directory
([#776](#776))
([cd91d54](cd91d54))
* bring back remote shell
([#775](#775))
([b4ac3bb](b4ac3bb))


### Bug Fixes

* **engine:** increase build timeout duration, add batch uri reindex
with debounce ([#733](#733))
([72a2f9e](72a2f9e)),
closes [#698](#698)
* **engine:** set target when evaluating config diagnostics
([#735](#735))
([b447094](b447094))
* **expert:** extend list of editors having VSCode completion bug
([#738](#738))
([83d2ffd](83d2ffd)),
closes [#736](#736)
* **forge:** monitor beam rewriting worker process
([#741](#741))
([fefc5c7](fefc5c7))
* port Refactorex into Forge
([#747](#747))
([#754](#754))
([131d642](131d642))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Debounce project compilation

2 participants