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

hermetic builds #1160

Merged
merged 5 commits into from
Oct 29, 2024
Merged

hermetic builds #1160

merged 5 commits into from
Oct 29, 2024

Conversation

cc10512
Copy link
Contributor

@cc10512 cc10512 commented Oct 20, 2024

Adds explicit arguments to the generator scripts to point to the input
such that they can be used in a hermetic build where the scripts do
not run from the source directory. Remaining inputs are assume to be
in the same directory.

Adds missing includes.

Fixes #1155

cc10512 and others added 3 commits October 15, 2024 15:16
Adds explicit arguments to the generator scripts to point to the input
such that they can be used in a hermetic build where the scripts do
not run from the source directory. Remaining inputs are assume to be
in the same directory.

Additional style changes include:

- checking the path for opening files rather than relying on exceptions.
- explicity define the type for and check for assignments to curropts
  array to enable static type checking of the code.
- adding missing includes in generated code.
Hermetic builds look for all necessary includes for the features used
in the header files. This commit adds the missing includes.
@cc10512 cc10512 mentioned this pull request Oct 20, 2024
Copy link

codecov bot commented Oct 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.76%. Comparing base (f31d20e) to head (3fa02ff).
Report is 14 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1160      +/-   ##
==========================================
- Coverage   94.84%   94.76%   -0.09%     
==========================================
  Files         191      193       +2     
  Lines       47944    50002    +2058     
==========================================
+ Hits        45472    47383    +1911     
- Misses       2472     2619     +147     
Files with missing lines Coverage Δ
include/slang/diagnostics/DiagArgFormatter.h 50.00% <ø> (ø)
include/slang/util/BumpAllocator.h 96.55% <ø> (+0.12%) ⬆️
include/slang/util/CopyPtr.h 100.00% <ø> (ø)
include/slang/util/Function.h 100.00% <ø> (ø)
include/slang/util/Random.h 100.00% <ø> (ø)
include/slang/util/SmallVector.h 98.16% <ø> (+0.10%) ⬆️

... and 149 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f31d20e...3fa02ff. Read the comment docs.

Python bindings required updating the arguments to the syntax_gen script.

Prints the OSError message.
Copy link
Owner

@MikePopoloski MikePopoloski left a comment

Choose a reason for hiding this comment

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

Approach seems fine, just some questions about a few details.

tools/netlist/include/DirectedGraph.h Show resolved Hide resolved
scripts/diagnostic_gen.py Outdated Show resolved Hide resolved
scripts/diagnostic_gen.py Outdated Show resolved Hide resolved
scripts/diagnostic_gen.py Outdated Show resolved Hide resolved
scripts/diagnostic_gen.py Show resolved Hide resolved
scripts/diagnostic_gen.py Outdated Show resolved Hide resolved
@MikePopoloski MikePopoloski merged commit bad0d6b into MikePopoloski:master Oct 29, 2024
15 checks passed
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.

hermetic builds
2 participants