Skip to content

Scaffolding - #69

Merged
andreab1997 merged 90 commits into
mainfrom
feature/scaffolding
Feb 13, 2023
Merged

andreab1997 merged 90 commits into
mainfrom
feature/scaffolding

Conversation

@andreab1997

@andreab1997 andreab1997 commented Dec 15, 2022 •

Copy link
Copy Markdown
Contributor

@codecov-commenter

codecov-commenter commented Dec 15, 2022 •

Copy link
Copy Markdown

Codecov Report

Merging #69 (f4e3619) into main (60bb344) will decrease coverage by 42.24%.
The diff coverage is 42.85%.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##             main      #69       +/-   ##
===========================================
- Coverage   88.30%   46.06%   -42.25%     
===========================================
  Files          17       19        +2     
  Lines         633      660       +27     
===========================================
- Hits          559      304      -255     
- Misses         74      356      +282     
Flag Coverage Δ
bench ?
unittests 46.06% <42.85%> (-0.23%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/pineko/scaffold.py 16.66% <16.66%> (ø)
src/pineko/cli/scaffold.py 60.00% <60.00%> (ø)
src/pineko/cli/__init__.py 100.00% <100.00%> (ø)
src/pineko/ekompatibility.py 21.42% <0.00%> (-78.58%) ⬇️
src/pineko/comparator.py 18.18% <0.00%> (-72.73%) ⬇️
src/pineko/evolve.py 25.37% <0.00%> (-65.68%) ⬇️
src/pineko/theory.py 19.76% <0.00%> (-65.12%) ⬇️
src/pineko/parser.py 27.27% <0.00%> (-63.64%) ⬇️
src/pineko/theory_card.py 25.00% <0.00%> (-60.72%) ⬇️
src/pineko/configs.py 53.06% <0.00%> (-38.78%) ⬇️
... and 4 more

@andreab1997

Copy link
Copy Markdown
Contributor Author

I would like to rebase this on main once #67 will be merged. Do you agree?

@andreab1997

Copy link
Copy Markdown
Contributor Author

I would like to rebase this on main once #67 will be merged. Do you agree?

Even because otherwise benchmarks will keep failing

@alecandido

Copy link
Copy Markdown
Collaborator

Even because otherwise benchmarks will keep failing

But wait, they are not failing in main, so why the new command should make them failing?

@andreab1997

Copy link
Copy Markdown
Contributor Author

Even because otherwise benchmarks will keep failing

But wait, they are not failing in main, so why the new command should make them failing?

If you try to run now in main they will fail because I changed the benchmark files in the server in such a way the tests in #67 don't fail.

Comment thread src/pineko/scaffold.py Resolved
Comment thread src/pineko/scaffold.py Resolved
Comment thread src/pineko/scaffold.py Resolved
Comment thread src/pineko/scaffold.py Resolved
@felixhekhorn felixhekhorn added the refactor Refactor code label Dec 15, 2022
@felixhekhorn
felixhekhorn changed the base branch from main to feature/scope-op-template-card December 15, 2022 15:57
Comment thread src/pineko/configs.py Resolved
Comment thread src/pineko/scaffold.py Resolved
@felixhekhorn
felixhekhorn changed the base branch from feature/scope-op-template-card to main December 15, 2022 16:04
@andreab1997

Copy link
Copy Markdown
Contributor Author

@felixhekhorn @alecandido I am asking again your review but everything should already be ok. I have rebased on top of main and tests are now passing. Let me know if we can merge this. :)

@alecandido

Copy link
Copy Markdown
Collaborator

I will have a look today

@andreab1997

Copy link
Copy Markdown
Contributor Author

Can we merge this? (Or do you want to review it again?)

@alecandido alecandido left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This PR has become large for some obscure reason, and it is not only doing scaffolding, since it touches many other files.

Moreover, there are some quite lenghty and not very clean implementations (e.g. evolve.evolve_grid, evolve.write_operator_card, and theory.fk) partially resulting from previously accumulated technical debt.

We should soon stop and refactor the code in Pineko, since it has grown and it really changed size. However, if this PR is required for something and it is working, we can also merge it and postpone the refactor to a later (but not too late) stage

Comment thread src/pineko/evolve.py Resolved
Comment thread src/pineko/evolve.py Resolved
Comment thread src/pineko/evolve.py Resolved
@andreab1997

Copy link
Copy Markdown
Contributor Author

This PR has become large for some obscure reason, and it is not only doing scaffolding, since it touches many other files.

I don't think the reason to be obscure, it has just been rebased on top of main after that the eko compatibility PR was merged.

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

Let's close this asap

@andreab1997
andreab1997 merged commit 1ece566 into main Feb 13, 2023
@andreab1997
andreab1997 deleted the feature/scaffolding branch February 13, 2023 17:35
@alecandido

Copy link
Copy Markdown
Collaborator

I don't think the reason to be obscure, it has just been rebased on top of main after that the eko compatibility PR was merged.

Since this is pointing on main, if it were rebased on main the changes should have not appeared in the diff. They should have been in both branches.
That's why I'm calling it obscure, since it is not clear to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor Refactor code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Scaffolding

5 participants