Skip to content

Set org-roam-directory to a non-existent path to ensure robust test#2499

Merged
dustinfarris merged 1 commit intoorg-roam:mainfrom
manphiz:ensure-robust-org-roam-file-p-test
Feb 18, 2025
Merged

Set org-roam-directory to a non-existent path to ensure robust test#2499
dustinfarris merged 1 commit intoorg-roam:mainfrom
manphiz:ensure-robust-org-roam-file-p-test

Conversation

@manphiz
Copy link
Copy Markdown
Contributor

@manphiz manphiz commented Jan 11, 2025

  • In some rare case, the first expect of org-roam-file-p may return t when running in some environment (e.g. during autopkgtest in Debian).
  • Setting org-roam-directory to a non-existent path ensure that the first check is always nil as expected.

@dustinfarris
Copy link
Copy Markdown
Contributor

Thanks for this. We need to figure out why CI is failing (for all branches not just this one).

@manphiz
Copy link
Copy Markdown
Contributor Author

manphiz commented Feb 17, 2025

Thanks for this. We need to figure out why CI is failing (for all branches not just this one).

Thanks for taking a look. To be clear, this test failure was in the autopkgtest in a Debian buildd, which is separate from the Github CI.

@dustinfarris
Copy link
Copy Markdown
Contributor

dustinfarris commented Feb 17, 2025

Would you mind rebasing this and see if CI passes now

(edit: i fixed the other CI issues — so want to get this PR a green check before merging)

* In some rare case, the first expect of org-roam-file-p may return t
when running in some environment (e.g. during autopkgtest in Debian).
* Setting org-roam-directory to a non-existent path ensure that the
first check is always nil as expected.
@manphiz manphiz force-pushed the ensure-robust-org-roam-file-p-test branch from 86194d3 to 44c4413 Compare February 18, 2025 09:10
@manphiz
Copy link
Copy Markdown
Contributor Author

manphiz commented Feb 18, 2025

Rebased. Also rechecked that the current HEAD still need this patch. Also thanks for fixing Github CI :)

@dustinfarris
Copy link
Copy Markdown
Contributor

Great thank you! ❤️

@dustinfarris dustinfarris merged commit 888b5d1 into org-roam:main Feb 18, 2025
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jun 7, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants