Skip to content

335 create lockfile #357

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

Open
wants to merge 24 commits into
base: dev
Choose a base branch
from
Open

335 create lockfile #357

wants to merge 24 commits into from

Conversation

songmeo
Copy link
Contributor

@songmeo songmeo commented Jun 10, 2025

address #335

@songmeo songmeo changed the base branch from master to dev June 10, 2025 12:18
@pavel-kirienko pavel-kirienko marked this pull request as draft June 10, 2025 12:31
@songmeo songmeo force-pushed the 335-create-lockfile branch 2 times, most recently from 16a5e15 to 0a58cc9 Compare June 11, 2025 19:54
@coveralls
Copy link

coveralls commented Jun 11, 2025

Coverage Status

coverage: 94.35% (+0.02%) from 94.335%
when pulling 77b9e57 on 335-create-lockfile
into c7b8223 on dev.

@songmeo songmeo force-pushed the 335-create-lockfile branch from 0a58cc9 to adacb45 Compare June 12, 2025 07:43
@songmeo songmeo requested a review from pavel-kirienko June 12, 2025 09:10
@songmeo songmeo marked this pull request as ready for review June 12, 2025 11:36
Copy link
Member

@pavel-kirienko pavel-kirienko left a comment

Choose a reason for hiding this comment

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

Nice.

@songmeo songmeo force-pushed the 335-create-lockfile branch from 3330ca3 to 3fcb454 Compare June 14, 2025 18:55
@songmeo songmeo requested a review from pavel-kirienko June 14, 2025 21:25
@songmeo songmeo force-pushed the 335-create-lockfile branch from 2260924 to f331a60 Compare June 16, 2025 11:14
@songmeo songmeo requested a review from pavel-kirienko June 16, 2025 12:36
Copy link
Member

@pavel-kirienko pavel-kirienko left a comment

Choose a reason for hiding this comment

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

Nice. This should also be manually tested with Yakut with PYCYPHAL_LOGLEVEL=DEBUG: start two Yakut processes simultaneously without the uavcan namespace compiled, and make sure only one of them does the compilation while the other is waiting.

output_directory=output_directory,
) as lockfile:
if lockfile:
# Generate code
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
# Generate code

Comment on lines 32 to 34
if self._lockfile is not None:
return self.remove()
return None
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if self._lockfile is not None:
return self.remove()
return None
if self._lockfile is not None:
self.remove()

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.

3 participants