{"id":5804015,"name":"FabrizioSandri/RcppDeepState-action","ecosystem":"actions","description":"This Action runs RcppDeepState in any Rcpp-based projects hosted on GitHub","homepage":"","licenses":null,"normalized_licenses":[],"repository_url":"https://github.com/FabrizioSandri/RcppDeepState-action","keywords_array":["github-action","testing"],"namespace":"FabrizioSandri","versions_count":1,"first_release_published_at":"2022-09-06T20:47:30.000Z","latest_release_published_at":"2022-09-06T20:47:30.000Z","latest_release_number":"v1","last_synced_at":"2026-04-14T23:31:09.921Z","created_at":"2023-01-04T14:48:46.951Z","updated_at":"2026-04-14T23:31:09.921Z","registry_url":"https://github.com/FabrizioSandri/RcppDeepState-action","install_command":null,"documentation_url":null,"metadata":{"name":"RcppDeepState","author":"Fabrizio Sandri","description":"This Action runs RcppDeepState in any Rcpp-based projects hosted on GitHub","branding":{"icon":"search","color":"gray-dark"},"inputs":{"fail_ci_if_error":{"description":"Specify if CI pipeline should fail when RcppDeepState finds errors","require":false,"default":"false"},"location":{"description":"Location of the package if not in the root of the repository","required":false,"default":"/"},"additional_dependencies":{"description":"A string containing a list of extra dependencies that the testing system requires, separated by spaces","require":false,"default":""},"seed":{"description":"Seed used for deterministic fuzz testing and reproduce the analysis results","required":false,"default":"-1"},"max_seconds_per_function":{"description":"Fuzzing phase's duration in seconds","required":false,"default":"2"},"max_inputs":{"description":"Number of inputs generated in the fuzzing phase to analyze","required":false,"default":"3"},"comment":{"description":"Print the analysis results as a comment in pull request","require":false,"default":"false"},"verbose":{"description":"Enables verbose logging of RcppDeepState","require":false,"default":"false"}},"runs":{"using":"composite","steps":[{"name":"Get the pull request SHA","run":"PULL_SHA=\"${{ github.event.pull_request.head.sha }}\"\necho \"PULL_SHA=${PULL_SHA}\" \u003e\u003e $GITHUB_ENV\n","shell":"bash"},{"name":"Analyze the package with RcppDeepState","id":"rcppdeepstate","uses":"docker://fabriziosandri/rcppdeepstate:latest","with":{"fail_ci_if_error":"${{ inputs.fail_ci_if_error }}","location":"${{ inputs.location }}","additional_dependencies":"${{ inputs.additional_dependencies }}","seed":"${{ inputs.seed }}","max_seconds_per_function":"${{ inputs.max_seconds_per_function }}","max_inputs":"${{ inputs.max_inputs }}","verbose":"${{ inputs.verbose }}"}},{"name":"Zip artifact before upload","if":"failure() || inputs.fail_ci_if_error == 'false'","run":"zip -r -q outputs.zip ./${{ inputs.location }}/inst/testfiles\n","shell":"bash"},{"uses":"actions/upload-artifact@v3","if":"failure() || inputs.fail_ci_if_error == 'false'","with":{"name":"Test results","path":"outputs.zip","if-no-files-found":"ignore"}},{"uses":"actions/upload-artifact@v3","if":"always() \u0026\u0026 steps.rcppdeepstate.outputs.truncated == 'true'","with":{"name":"Truncated comment","path":"truncated.md","if-no-files-found":"ignore"}},{"name":"Comment on pull requests","uses":"actions/github-script@v6","if":"always() \u0026\u0026 ( \n  inputs.comment == 'true' || ( \n    inputs.comment == 'failure' \u0026\u0026 steps.rcppdeepstate.outputs.errors == 'true'\n  ) \n)\n","with":{"script":"if (context.issue.number) {\n    const fs = require(\"fs\");\n    const report = fs.readFileSync('./report.md', {encoding:'utf8', flag:'r'});\n    \n    const response = await github.rest.issues.listComments({\n        owner: context.repo.owner,\n        repo: context.repo.repo,\n        issue_number: context.issue.number\n    })\n\n    const comments = response.data;\n\n    // Find the comment generated by RcppDeepState-action\n    const comment_identifier = \"\u003c!-- RcppDeepState-action comment--\u003e\"\n    const action_comment = comments.find(comment =\u003e comment.body.includes(comment_identifier))\n    const new_comment_body = `${comment_identifier}\\n${report}`\n\n    if (action_comment) {\n        await github.rest.issues.updateComment({\n            owner: context.repo.owner,\n            repo: context.repo.repo,\n            comment_id: action_comment.id,\n            body: new_comment_body\n        })\n    } else {\n        await github.rest.issues.createComment({\n            issue_number: context.issue.number,\n            owner: context.repo.owner,\n            repo: context.repo.repo,\n            body: new_comment_body\n        })\n    }\n    \n}"}}]},"default_branch":"main","path":null},"repo_metadata":{"uuid":"508312538","full_name":"FabrizioSandri/RcppDeepState-action","owner":"FabrizioSandri","description":"GitHub Action for RcppDeepState","archived":false,"fork":false,"pushed_at":"2023-03-28T19:53:32.000Z","size":88,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-07-11T11:19:15.319Z","etag":null,"topics":["github-action","testing"],"latest_commit_sha":null,"homepage":"","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FabrizioSandri.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-06-28T13:33:13.000Z","updated_at":"2022-09-07T19:02:41.000Z","dependencies_parsed_at":"2023-01-11T17:22:06.063Z","dependency_job_id":null,"html_url":"https://github.com/FabrizioSandri/RcppDeepState-action","commit_stats":{"total_commits":140,"total_committers":3,"mean_commits":"46.666666666666664","dds":"0.014285714285714235","last_synced_commit":"20d7477c0054262806cae53af41d823377fe2c43"},"previous_names":[],"tags_count":1,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FabrizioSandri%2FRcppDeepState-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FabrizioSandri%2FRcppDeepState-action/tags","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FabrizioSandri%2FRcppDeepState-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FabrizioSandri","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":144951062,"owners_count":6187111,"icon_url":"https://github.com/github.png","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"},"owner_record":{"login":"FabrizioSandri","name":"Fabrizio Sandri","uuid":"15068390","kind":"user","description":"Open source developer \u0026 Computer Science student \r\n~ University of Trento 🇮🇹 ","email":"","website":"fabriziosandri.github.io","location":"Trento - Italy ","twitter":"FabrizioSandri_","company":"University of Trento","icon_url":"https://avatars.githubusercontent.com/u/15068390?u=8cfea852526e668e894121dd16385bd285f72aec\u0026v=4","repositories_count":6,"last_synced_at":"2023-03-04T01:50:20.042Z","metadata":{"has_sponsors_listing":false},"html_url":"https://github.com/FabrizioSandri","created_at":"2022-11-14T07:53:57.802Z","updated_at":"2023-03-04T01:50:20.069Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FabrizioSandri","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FabrizioSandri/repositories"},"tags":[{"name":"v1","sha":"20d7477c0054262806cae53af41d823377fe2c43","kind":"commit","published_at":"2022-09-06T20:47:30.000Z","download_url":"https://codeload.github.com/FabrizioSandri/RcppDeepState-action/tar.gz/v1","html_url":"https://github.com/FabrizioSandri/RcppDeepState-action/releases/tag/v1","dependencies_parsed_at":"2023-05-31T12:14:42.996Z","dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FabrizioSandri%2FRcppDeepState-action/tags/v1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FabrizioSandri%2FRcppDeepState-action/tags/v1/manifests"}]},"repo_metadata_updated_at":"2023-07-11T11:19:15.927Z","dependent_packages_count":0,"downloads":null,"downloads_period":null,"dependent_repos_count":4,"rankings":{"downloads":null,"dependent_repos_count":16.460148946284264,"dependent_packages_count":0.0,"stargazers_count":27.453652353034386,"forks_count":35.20202820472191,"docker_downloads_count":null,"average":19.77895737601014},"purl":"pkg:githubactions/FabrizioSandri/RcppDeepState-action","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/actions/FabrizioSandri/RcppDeepState-action","docker_dependents_count":null,"docker_downloads_count":null,"usage_url":"https://repos.ecosyste.ms/usage/actions/FabrizioSandri/RcppDeepState-action","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/actions/FabrizioSandri/RcppDeepState-action/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":{"last_synced_at":"2023-08-09T09:20:29.968Z","issues_count":6,"pull_requests_count":15,"avg_time_to_close_issue":592126.0,"avg_time_to_close_pull_request":262872.5333333333,"issues_closed_count":5,"pull_requests_closed_count":15,"pull_request_authors_count":1,"issue_authors_count":3,"avg_comments_per_issue":5.833333333333333,"avg_comments_per_pull_request":5.333333333333333,"merged_pull_requests_count":15,"bot_issues_count":0,"bot_pull_requests_count":0,"past_year_issues_count":5,"past_year_pull_requests_count":7,"past_year_avg_time_to_close_issue":287762.5,"past_year_avg_time_to_close_pull_request":168882.2857142857,"past_year_issues_closed_count":4,"past_year_pull_requests_closed_count":7,"past_year_pull_request_authors_count":1,"past_year_issue_authors_count":3,"past_year_avg_comments_per_issue":6.2,"past_year_avg_comments_per_pull_request":4.142857142857143,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":7},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/FabrizioSandri%2FRcppDeepState-action/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/FabrizioSandri%2FRcppDeepState-action/version_numbers","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/FabrizioSandri%2FRcppDeepState-action/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/FabrizioSandri%2FRcppDeepState-action/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/FabrizioSandri%2FRcppDeepState-action/codemeta","maintainers":[]}