Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Implement C Memory1 package#224

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
knewbury01 merged 5 commits intogithub:mainfromnicolaswill:Memory1
Mar 8, 2023
Merged

Conversation

@nicolaswill
Copy link
Contributor

@nicolaswillnicolaswill commentedMar 2, 2023
edited by knewbury01
Loading

Description

This pull request implements the Memory1 package.RULE-9-5 is blocked at the moment and not in this PR.

Change request type

  • Release or process automation (GitHub workflows, internal scripts)
  • Internal documentation
  • External documentation
  • Query files (.ql,.qll,.qls or unit tests)
  • External scripts (analysis report or other code shipped as part of a release)

Rules with added or modified queries

  • No rules added
  • Queries have been added for the following rules:
    • RULE-9-2 -closes github/coding-standards-team#755
    • RULE-9-3 -closes github/coding-standards-team#756
    • RULE-9-4 -closes github/coding-standards-team#757
  • Queries have been modified for the following rules:
    • rule number here

Release change checklist

A change note (development_handbook.md#change-notes) is required for any pull request which modifies:

  • The structure or layout of the release artifacts.
  • The evaluation performance (memory, execution time) of an existing query.
  • The results of an existing query in any circumstance.

If you are only adding new rule queries, a change note is not required.

Author: Is a change note required?

  • Yes
  • No

🚨🚨🚨
Reviewer: Confirm that format ofshared queries (not the .qll file, the
.ql file that imports it) is valid by running them within VS Code.

  • Confirmed

Reviewer: Confirm that either a change note is not required or the change note is required and has been added.

  • Confirmed

Query development review checklist

For PRs that add new queries or modify existing queries, the following checklist should be completed by both the author and reviewer:

Author

  • Have all the relevant rule package description files been checked in?
  • Have you verified that the metadata properties of each new query is set appropriately?
  • Do all the unit tests contain both "COMPLIANT" and "NON_COMPLIANT" cases?
  • Are the alert messages properly formatted and consistent with thestyle guide?
  • Have you run the queries on OpenPilot and verified that the performance and results are acceptable?
    As a rule of thumb, predicates specific to the query should take no more than 1 minute, and for simple queries be under 10 seconds. If this is not the case, this should be highlighted and agreed in the code review process.
  • Does the query have an appropriate level of in-query comments/documentation?
  • Have you considered/identified possible edge cases?
  • Does the query not reinvent features in the standard library?
  • Can the query be simplified further (not golfed!)

Reviewer

  • Have all the relevant rule package description files been checked in?
  • Have you verified that the metadata properties of each new query is set appropriately?
  • Do all the unit tests contain both "COMPLIANT" and "NON_COMPLIANT" cases?
  • Are the alert messages properly formatted and consistent with thestyle guide?
  • Have you run the queries on OpenPilot and verified that the performance and results are acceptable?
    As a rule of thumb, predicates specific to the query should take no more than 1 minute, and for simple queries be under 10 seconds. If this is not the case, this should be highlighted and agreed in the code review process.
  • Does the query have an appropriate level of in-query comments/documentation?
  • Have you considered/identified possible edge cases?
  • Does the query not reinvent features in the standard library?
  • Can the query be simplified further (not golfed!)

RULE-9-5 is currently blocked due to CodeQL extractor non-support for identifying designated initializers in array aggregate literals.
@githubgithub deleted a comment fromgithub-actionsbotMar 2, 2023
@githubgithub deleted a comment fromjsingletMar 2, 2023
@githubgithub deleted a comment fromjsingletMar 2, 2023
@githubgithub deleted a comment fromjsingletMar 2, 2023
@githubgithub deleted a comment fromjsingletMar 2, 2023
@githubgithub deleted a comment fromjsingletMar 2, 2023
@githubgithub deleted a comment fromjsingletMar 2, 2023
@githubgithub deleted a comment fromjsingletMar 2, 2023
@githubgithub deleted a comment fromjsingletMar 2, 2023
@githubgithub deleted a comment fromjsingletMar 2, 2023
@githubgithub deleted a comment fromjsingletMar 2, 2023
@githubgithub deleted a comment fromgithub-actionsbotMar 2, 2023
Copy link
Collaborator

@knewbury01knewbury01 left a comment
edited
Loading

Choose a reason for hiding this comment

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

hey, have only reviewedRULE-9-4 (edit) 9-2! so far, so just the one tiny metadata comment, but otherwise looks good, completely agree import,

will finish my review of the other 2 rules on Mon!

Copy link
Collaborator

@knewbury01knewbury01 left a comment

Choose a reason for hiding this comment

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

just a few minor comments for RULE-9-4 :)

will submit a separate review for RULE-9-3!

@github-actions
Copy link

🤖 Beep Boop! Matrix Testing for this PR has been initiated. Please check back later for results.

💡 If you do not hear back from me please check my status!I will report even if this PR does not contain files eligible for matrix testing.

@jsinglet
Copy link
Contributor

🤖 Beep Boop!gcc/c/x86_64 Matrix Testing for this PR has been completed but I didn't find anything to test!

@jsinglet
Copy link
Contributor

🤖 Beep Boop!clang/c/x86_64 Matrix Testing for this PR has been completed but I didn't find anything to test!

@jsinglet
Copy link
Contributor

🤖 Beep Boop!clang/cpp/x86_64 Matrix Testing for this PR has been completed but I didn't find anything to test!

@jsinglet
Copy link
Contributor

🤖 Beep Boop!gcc/cpp/x86_64 Matrix Testing for this PR has been completed but I didn't find anything to test!

@jsinglet
Copy link
Contributor

🤖 Beep Boop! Matrix Testing for this PR has beencompleted. If no reports were posted it means this PR does not contain things that need matrix testing!

@github-actions
Copy link

🤖 Beep Boop! Matrix Testing for this PR has been initiated. Please check back later for results.

💡 If you do not hear back from me please check my status!I will report even if this PR does not contain files eligible for matrix testing.

@jsinglet
Copy link
Contributor

🤖 Beep Boop!gcc/c/x86_64 Matrix Testing for this PR has been completed but I didn't find anything to test!

@jsinglet
Copy link
Contributor

🤖 Beep Boop!clang/c/x86_64 Matrix Testing for this PR has been completed but I didn't find anything to test!

@jsinglet
Copy link
Contributor

🤖 Beep Boop!gcc/cpp/x86_64 Matrix Testing for this PR has been completed but I didn't find anything to test!

@jsinglet
Copy link
Contributor

🤖 Beep Boop!clang/cpp/x86_64 Matrix Testing for this PR has been completed but I didn't find anything to test!

@jsinglet
Copy link
Contributor

🤖 Beep Boop! Matrix Testing for this PR has beencompleted. If no reports were posted it means this PR does not contain things that need matrix testing!

Copy link
Collaborator

@knewbury01knewbury01 left a comment

Choose a reason for hiding this comment

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

heyo, just one small decision on RULE-9-3, I personally am fine with it going either way, but I think I had some like this before and I forget what I was told to do 😅

other than that, will be ready to approve after that small thing! :) looks good, really great testcase coverage

Copy link
Collaborator

@knewbury01knewbury01 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! nice handling of some less than straightforward cases especially with the multidimensional arrays!

@github-actions
Copy link

🤖 Beep Boop! Matrix Testing for this PR has been initiated. Please check back later for results.

💡 If you do not hear back from me please check my status!I will report even if this PR does not contain files eligible for matrix testing.

@jsinglet
Copy link
Contributor

🤖 Beep Boop!clang/cpp/x86_64 Matrix Testing for this PR has been completed. See below for the results!

COMPILE_PASS         : TrueRULE                 : M8-5-2COMPILE_ERROR_OUTPUT : TEST_PASS            : TrueQUERY                : UseInitBracesToMatchTypeStructurePACKAGE              : InitializationSUITE                : AUTOSARTEST_DIFFERENCE      : COMPILE_PASS         : TrueRULE                 : M8-5-2COMPILE_ERROR_OUTPUT : TEST_PASS            : TrueQUERY                : NestedZeroValueInitializationPACKAGE              : InitializationSUITE                : AUTOSARTEST_DIFFERENCE      : COMPILE_PASS         : TrueRULE                 : M8-5-2COMPILE_ERROR_OUTPUT : TEST_PASS            : TrueQUERY                : MissingExplicitInitializersPACKAGE              : InitializationSUITE                : AUTOSARTEST_DIFFERENCE      :

@jsinglet
Copy link
Contributor

🤖 Beep Boop!gcc/c/x86_64 Matrix Testing for this PR has been completed. See below for the results!

SUITE                : MISRA-C-2012QUERY                : InitializerForAggregateOrUnionNotEnclosedInBracesCOMPILE_ERROR_OUTPUT : TEST_PASS            : TrueCOMPILE_PASS         : TruePACKAGE              : Memory1TEST_DIFFERENCE      : RULE                 : RULE-9-2SUITE                : MISRA-C-2012QUERY                : PartiallyInitializedArrayWithExplicitInitializersCOMPILE_ERROR_OUTPUT : TEST_PASS            : TrueCOMPILE_PASS         : TruePACKAGE              : Memory1TEST_DIFFERENCE      : RULE                 : RULE-9-3SUITE                : MISRA-C-2012QUERY                : RepeatedInitializationOfAggregateObjectElementCOMPILE_ERROR_OUTPUT : TEST_PASS            : TrueCOMPILE_PASS         : TruePACKAGE              : Memory1TEST_DIFFERENCE      : RULE                 : RULE-9-4

@jsinglet
Copy link
Contributor

🤖 Beep Boop!clang/c/x86_64 Matrix Testing for this PR has been completed. See below for the results!

RULE                 : RULE-9-2TEST_PASS            : TrueTEST_DIFFERENCE      : QUERY                : InitializerForAggregateOrUnionNotEnclosedInBracesPACKAGE              : Memory1COMPILE_ERROR_OUTPUT : COMPILE_PASS         : TrueSUITE                : MISRA-C-2012RULE                 : RULE-9-3TEST_PASS            : TrueTEST_DIFFERENCE      : QUERY                : PartiallyInitializedArrayWithExplicitInitializersPACKAGE              : Memory1COMPILE_ERROR_OUTPUT : COMPILE_PASS         : TrueSUITE                : MISRA-C-2012RULE                 : RULE-9-4TEST_PASS            : TrueTEST_DIFFERENCE      : QUERY                : RepeatedInitializationOfAggregateObjectElementPACKAGE              : Memory1COMPILE_ERROR_OUTPUT : COMPILE_PASS         : TrueSUITE                : MISRA-C-2012

@jsinglet
Copy link
Contributor

🤖 Beep Boop!gcc/cpp/x86_64 Matrix Testing for this PR has been completed. See below for the results!

TEST_PASS            : TrueQUERY                : UseInitBracesToMatchTypeStructureRULE                 : M8-5-2TEST_DIFFERENCE      : COMPILE_PASS         : TrueCOMPILE_ERROR_OUTPUT : SUITE                : AUTOSARPACKAGE              : InitializationTEST_PASS            : TrueQUERY                : MissingExplicitInitializersRULE                 : M8-5-2TEST_DIFFERENCE      : COMPILE_PASS         : TrueCOMPILE_ERROR_OUTPUT : SUITE                : AUTOSARPACKAGE              : InitializationTEST_PASS            : TrueQUERY                : NestedZeroValueInitializationRULE                 : M8-5-2TEST_DIFFERENCE      : COMPILE_PASS         : TrueCOMPILE_ERROR_OUTPUT : SUITE                : AUTOSARPACKAGE              : Initialization

@jsinglet
Copy link
Contributor

🤖 Beep Boop! Matrix Testing for this PR has beencompleted. If no reports were posted it means this PR does not contain things that need matrix testing!

@knewbury01knewbury01 merged commit46f16cc intogithub:mainMar 8, 2023
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@knewbury01knewbury01knewbury01 approved these changes

Assignees

No one assigned

Labels

None yet

Projects

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@nicolaswill@jsinglet@knewbury01

[8]ページ先頭

©2009-2025 Movatter.jp