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

[Merged by Bors] - Retrieve feature-based results for Test262 runs #1980

Closed

Conversation

NorbertGarfield
Copy link
Contributor

This Pull Request fixes/closes #1645.

It changes the following:

  • Add features field to SuiteResult structure
  • Fetch features from TestSuite and propagate them via SuiteResult
  • Add FeaturesInfo structure and serialize it to features.json

@codecov
Copy link

codecov bot commented Mar 27, 2022

Codecov Report

Merging #1980 (f54214c) into main (5d2420e) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #1980   +/-   ##
=======================================
  Coverage   45.93%   45.93%           
=======================================
  Files         206      206           
  Lines       17138    17138           
=======================================
  Hits         7873     7873           
  Misses       9265     9265           
Impacted Files Coverage Δ
boa_tester/src/main.rs 0.00% <ø> (ø)

Continue to review full report at Codecov.

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

@Razican Razican added this to the v0.15.0 milestone Mar 27, 2022
@Razican Razican added enhancement New feature or request documentation update documentation test Issues and PRs related to the tests. labels Mar 27, 2022
Copy link
Member

@Razican Razican left a comment

Choose a reason for hiding this comment

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

Thanks! Looks good to me :) only those two clippy issues.

@@ -67,6 +74,7 @@ impl TestSuite {
passed += suite.passed;
ignored += suite.ignored;
panic += suite.panic;
features.append(&mut suite.features.clone())
Copy link
Member

Choose a reason for hiding this comment

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

This is giving a clippy warning, should be fixed with this:

Suggested change
features.append(&mut suite.features.clone())
features.append(&mut suite.features.clone());

Copy link
Contributor Author

Choose a reason for hiding this comment

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

features: Vec<String>,
}

fn remove_duplicates(features_vec: &Vec<String>) -> Vec<String> {
Copy link
Member

Choose a reason for hiding this comment

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

This should solve the clippy error, but might need some changes in the code to convert the slice to a vector.

Suggested change
fn remove_duplicates(features_vec: &Vec<String>) -> Vec<String> {
fn remove_duplicates(features_vec: &[String]) -> Vec<String> {

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Member

@jedel1043 jedel1043 left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@jedel1043
Copy link
Member

bors r+

bors bot pushed a commit that referenced this pull request Mar 28, 2022
This Pull Request fixes/closes #1645.

It changes the following:

- Add `features` field to `SuiteResult` structure
- Fetch features from `TestSuite` and propagate them via `SuiteResult`
- Add `FeaturesInfo` structure and serialize it to `features.json`
@bors
Copy link

bors bot commented Mar 28, 2022

Pull request successfully merged into main.

Build succeeded:

@bors bors bot changed the title Retrieve feature-based results for Test262 runs [Merged by Bors] - Retrieve feature-based results for Test262 runs Mar 28, 2022
@bors bors bot closed this Mar 28, 2022
Razican pushed a commit that referenced this pull request Jun 8, 2022
This Pull Request fixes/closes #1645.

It changes the following:

- Add `features` field to `SuiteResult` structure
- Fetch features from `TestSuite` and propagate them via `SuiteResult`
- Add `FeaturesInfo` structure and serialize it to `features.json`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation update documentation enhancement New feature or request test Issues and PRs related to the tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Retrieve feature-based results for Test262 runs
3 participants