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

Add containers with older flex versions for older revisions of doxygen #661

Merged
merged 14 commits into from
May 20, 2023

Conversation

Sinerum
Copy link
Contributor

@Sinerum Sinerum commented Jul 7, 2022

depends on PolyJIT/benchbuild#554
resolves se-sic/VaRA#536

@codecov
Copy link

codecov bot commented Jul 7, 2022

Codecov Report

Patch coverage: 80.00% and project coverage change: -0.01 ⚠️

Comparison is base (0b92598) 67.54% compared to head (56c0fc8) 67.54%.

Additional details and impacted files
@@             Coverage Diff              @@
##           vara-dev     #661      +/-   ##
============================================
- Coverage     67.54%   67.54%   -0.01%     
============================================
  Files           322      322              
  Lines         24590    24593       +3     
============================================
+ Hits          16610    16612       +2     
- Misses         7980     7981       +1     
Impacted Files Coverage Δ
varats/varats/projects/cpp_projects/doxygen.py 63.41% <80.00%> (+0.25%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Comment on lines 50 to 68
GoodBadSubgraph([
"a6238a4898e20422fe6ef03fce4891c5749b1553"
], ["cf936efb8ae99dd297b6afb9c6a06beb81f5b0fb"],
"Needs flex <= 2.5.4 and >= 2.5.33"),
get_base_image(ImageBase.DEBIAN_10).run(
'apt', 'install', '-y', 'cmake', 'flex-old', 'bison',
'qt5-default'
)
),
(
GoodBadSubgraph([
"093381b3fc6cc1e97f0e737feca04ebd0cfe538d"
], ["cf936efb8ae99dd297b6afb9c6a06beb81f5b0fb"],
"Needs flex <= 2.5.4 and >= 2.5.33"),
get_base_image(ImageBase.DEBIAN_10).run(
'apt', 'install', '-y', 'cmake', 'flex-old', 'bison',
'qt5-default'
)
)]
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice, that you found this.
Just one question: Do these ranges not overlap? That looks strange that they would have a gap where flex-old was no longer required.

Copy link
Contributor

Choose a reason for hiding this comment

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

@Sinerum ping

Copy link
Contributor

Choose a reason for hiding this comment

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

@Sinerum ping

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The starting commits are on two different branches the ending commit is after they have been merged. I'm not sure why I put it in two SubGraphs. I think it should work with one.

Copy link
Contributor

Choose a reason for hiding this comment

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

kk, if we get this cleaned up, we'll can merge this fix :)

@Sinerum Sinerum marked this pull request as ready for review March 20, 2023 15:47
@@ -260,8 +260,7 @@ def __init__(

def versions(self) -> tp.List[bb.source.base.Variant]:
cache_path = self.fetch()
git_rev_list = git['rev-list', '--abbrev-commit', '--abbrev=10',
'--all']
git_rev_list = git['rev-list', '--all']
Copy link
Contributor

Choose a reason for hiding this comment

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

Why did you change this here? We, similar to benchbuild, us 10 chars long short commit hashes as the default.

Copy link
Contributor Author

@Sinerum Sinerum Mar 20, 2023

Choose a reason for hiding this comment

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

Because they don't use short hashes for their revision range list and this version string is checked against the revision range when looking for the correct container to use. As seen in the mentioned PR. This caused no container to be found. So either the benchbuild revision range needs to use the short version or we need a more verbose system to check for eqaulity similar to ours.

Copy link
Contributor

Choose a reason for hiding this comment

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

A simpler way of checking equality would be nice but we definitively need a benchbuild patch here as changing the length on our side will not work and break a lot of our use cases.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay then I will add that to the PR on benchbuild and revert this

@vulder vulder requested a review from boehmseb April 26, 2023 14:27
@vulder
Copy link
Contributor

vulder commented Apr 26, 2023

Does this PR fix an issues? If yes, please not the issue number in the top comment of the PR

Copy link
Member

@boehmseb boehmseb left a comment

Choose a reason for hiding this comment

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

Can be merged once the formatting is fixed.

Comment on lines 43 to 59
CONTAINER = [(
RevisionRange("cf936efb8ae99dd297b6afb9c6a06beb81f5b0fb", "HEAD"),
get_base_image(
ImageBase.DEBIAN_10
).run('apt', 'install', '-y', 'cmake', 'flex', 'bison', 'qt5-default')
),
(
GoodBadSubgraph([
"a6238a4898e20422fe6ef03fce4891c5749b1553",
"093381b3fc6cc1e97f0e737feca04ebd0cfe538d"
], ["cf936efb8ae99dd297b6afb9c6a06beb81f5b0fb"],
"Needs flex <= 2.5.4 and >= 2.5.33"),
get_base_image(ImageBase.DEBIAN_10).run(
'apt', 'install', '-y', 'cmake', 'flex-old', 'bison',
'qt5-default'
)
)]
Copy link
Member

Choose a reason for hiding this comment

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

For some reason, github did not include that in my review:

The indentation here is very misleading. If yapf cannot be convinced to layout this better, we should do it by hand and disable yapf for this block.

@vulder vulder merged commit 373ae09 into vara-dev May 20, 2023
@vulder vulder deleted the f-doxygen_revison_based_containers branch May 20, 2023 14:24
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