Skip to content

Commit 8f3f360

Browse files
authored
Merge pull request #252 from nasa/integration-candidate
cFS Bundle Integration candidate: 2021-05-04
2 parents c845253 + be3ae5b commit 8f3f360

3 files changed

Lines changed: 64 additions & 4 deletions

File tree

CONTRIBUTING.md

Lines changed: 62 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ git push --force
223223
## Writing High-Quality Code
224224

225225
1. Follow cFS code conventions (formatting, symbol naming, file naming, etc). Do *not* change/reformat existing code, except to address your changes.
226-
- The cFS submodules uses the Format Check workflow to ensure users follow the [clang-format-10](https://releases.llvm.org/10.0.0/tools/clang/docs/ClangFormat.html) style.
226+
- The cFS submodules uses the Format Check workflow to ensure users follow the [clang-format-10](https://github.com/nasa/cFS/blob/main/.clang-format) style. For more information on how to use the Format Check workflow, view [Using GitHub Actions Workflows](#using-github-actions-workflows).
227227
- The [cFS_IdentifierNamingConvention document](https://github.com/nasa/cFE/blob/main/docs/cFS_IdentifierNamingConvention.md) provides a simple naming convention guide for cFE/cFS for commands and telemetry that simplifies the EDS to ground telemetry and commands database conversion.
228228
- The [cFE Application Developers Guide](https://github.com/nasa/cFE/blob/main/docs/cFE%20Application%20Developers%20Guide.md) contains code conventions such as naming conventions for header files.
229229

@@ -233,12 +233,72 @@ git push --force
233233

234234
4. For any changes to existing API's, alter the unit tests to cover the changes (and remove tests made irrelevant due to your changes).
235235

236-
5. Review the static code analyses results.
236+
5. Review the static code analyses results from the Static Analysis and CodeQL Analysis workflows. For more information on how to use these workflows, view [Using GitHub Actions Workflows](#using-github-actions-workflows).
237237
- Push code changes to the appropriate forked repository.
238238
- Go to the Actions tab and enable GitHub Actions Workflow. The CodeQL Analyis and Static Analysis will be triggered for all pushed code.
239239
- Review these workflows for any warnings or errors.
240240
- Once successful, create a pull request.
241241

242+
### Using GitHub Actions Workflows
243+
244+
Several of our GitHub Actions Workflows are used to ensure pushed code and pull requests do not break cFS, create vulnerabilities, and follow our code conventions. Other workflows are used for documentation purposes.
245+
246+
Most of the workflows in the NASA/cFS repository will run for all branches when code is pushed and a pull request is created, except for the changelog workflow that runs manually.
247+
248+
All of our workflows will be available for forked repositories once enabled. To enable workflows, navigate to the Actions tab and click "I understand my workflows, go ahead and enable them".
249+
250+
#### View Failed Workflows
251+
252+
1. Navigate to Actions in the selected repository. For newly forked repositories, enable workflows after clicking on Actions.
253+
2. In the left sidebar, click the workflow you want to view.
254+
3. From the list of workflow runs, click the name of the run you want to see.
255+
4. Under Jobs or in the visualization graph, click the failed job.
256+
5. Any failed steps are automatically expanded to display the results.
257+
258+
#### View Workflow Results
259+
1. Navigate to Actions in the selected repository. For newly forked repositories, enable workflows after clicking on Actions.
260+
2. In the left sidebar, click the workflow you want to view.
261+
3. From the list of workflow runs, click the name of the run you want to see.
262+
4. Scroll to the bottom of the page and download the artifacts. For CodeQL results, navigate to the Security Tab and click Code scanning alerts. CodeQL results will only be avaiable on your forked repository.
263+
264+
or
265+
266+
1. In pull requests, click the Checks tab.
267+
2. From the list of workflow runs, click the name of the run you want to see.
268+
4. Scroll to the bottom of the page and download the artifacts. For CodeQL results, expand Code scanning alerts at the bottom of the list of checks and select CodeQL.
269+
270+
#### Configure Workflows
271+
272+
1. Workflows are under [.github/workflows](https://github.com/nasa/cFS/tree/main/).
273+
2. Configure the files as needed. For more information on how to configure GitHub Actions, visit [Workflow syntax for GitHub Actions](https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions).
274+
275+
#### Our Workflows
276+
##### Format Check
277+
[![Format Check](https://github.com/nasa/osal/actions/workflows/format-check.yml/badge.svg)](https://github.com/nasa/osal/actions/workflows/format-check.yml)
278+
279+
##### CodeQL Analysis
280+
[![CodeQL Analaysis](https://github.com/nasa/cfs/actions/workflows/codeql-build.yml/badge.svg)](https://github.com/nasa/cfs/actions/workflows/codeql-build.yml)
281+
282+
CodeQL uses a .yml file and a configuration file found at [.github/codeql](https://github.com/nasa/cFS/tree/main/.github/codeql).
283+
284+
##### Static Analaysis
285+
[![Static Analaysis](https://github.com/nasa/cfs/actions/workflows/static-analysis.yml/badge.svg)](https://github.com/nasa/cfs/actions/workflows/static-analysis.yml)
286+
287+
##### Deprecated Build, Test, and Run
288+
[![Deprecated Build, Test, and Run](https://github.com/nasa/cfs/actions/workflows/build-cfs-deprecated.yml/badge.svg)](https://github.com/nasa/cfs/actions/workflows/build-cfs-deprecated.yml)
289+
290+
##### Build, Test, and Run [OMIT_DEPRECATED=true]
291+
[![Build, Test, and Run %5B OMIT_DEPRECATED=true %5B](https://github.com/nasa/cfs/actions/workflows/build-cfs.yml/badge.svg)](https://github.com/nasa/cfs/actions/workflows/build-cfs.yml)
292+
293+
##### Documentation and Guides
294+
[![Documentation and Guides](https://github.com/nasa/cfs/actions/workflows/build-documentation.yml/badge.svg)](https://github.com/nasa/cfs/actions/workflows/build-documentation.yml)
295+
296+
##### Changelog
297+
[![Changelog](https://github.com/nasa/cfs/actions/workflows/changelog.yml/badge.svg)](https://github.com/nasa/cfs/actions/workflows/changelog.yml)
298+
299+
##### Local Unit Test
300+
[![Local Unit Test](https://github.com/nasa/osal/actions/workflows/local_unit_test.yml/badge.svg)](https://github.com/nasa/osal/actions/workflows/local_unit_test.yml)
301+
242302
For more information on our GitHub Action Workflows, view our [Security Policy](https://github.com/nasa/cFS/security/policy).
243303

244304
## Quick Links to Submodules

cfe

Submodule cfe updated 82 files

0 commit comments

Comments
 (0)