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

Fix a few nits dealing with updated makefile #4058

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

jtraglia
Copy link
Member

  • Hide output from forced eth2spec rebuild
  • Call detect_errors after all generators are done
  • Allow output to stderr to show up in console when testing
    • Add note about printing to stderr
  • Make check_toc private, as one should only use make lint
    • Move _check_toc rule closer to lint rule
  • Force rebuild eth2spec when running generators
    • And do not rebuild pyspec now, no longer needed

* Hide output from forced eth2spec rebuild
* Call detect_errors after all generators are done
* Allow output to stderr to show up in console when testing
    * Add note about printing to stderr
* Make check_toc private, as one should only use make lint
    * Move _check_toc rule closer to lint rule
* Force rebuild eth2spec when running generators
    * And do not rebuild pyspec now, no longer needed
@@ -117,6 +117,7 @@ test: $(ETH2SPEC) pyspec
@mkdir -p $(TEST_REPORT_DIR)
@$(PYTHON_VENV) -m pytest \
-n auto \
--capture=no \
Copy link
Contributor

Choose a reason for hiding this comment

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

FYI I usually use -s. It seems the same.

Copy link
Member Author

@jtraglia jtraglia Dec 18, 2024

Choose a reason for hiding this comment

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

Yeah these are the same. I prefer using the long-form options in scripts.

@@ -85,7 +83,7 @@ $(ETH2SPEC): setup.py | $(VENV)

# Force rebuild/install the eth2spec package.
eth2spec:
$(MAKE) --always-make $(ETH2SPEC)
@$(MAKE) --always-make $(ETH2SPEC)
Copy link
Contributor

Choose a reason for hiding this comment

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

sorry I didn't find it in the previous PR, but here, it seems eth2spec command doesn't trigger the rebuild (compile from markdown file to .py files)?

I think we need to trigger the make pyspec action: @$(PYTHON_VENV) setup.py pyspecdev here, no?

Copy link
Member Author

Choose a reason for hiding this comment

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

These should be separate steps; the generators don't need it. Building eth2spec will compile the markdown files. These will exist in the build & venv dirs. And these are the files which are used by the generators. If I run make clean and make gen_all it will work without make pyspec.

image

But for make test we do need make pyspec. It adds these to the tests directory.

image

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.

2 participants