Skip to content

Commit

Permalink
Merge pull request #183 from nasa/integration-candidate
Browse files Browse the repository at this point in the history
cFS-GroundSystem Integration candidate: 2021-06-22
  • Loading branch information
astrogeco authored Jun 23, 2021
2 parents 24f625b + 6d62980 commit 12e26ce
Show file tree
Hide file tree
Showing 5 changed files with 85 additions and 6 deletions.
63 changes: 60 additions & 3 deletions .github/workflows/codeql-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: "CodeQL Analysis"

on:
push:
pull_request:
branches:
- main
pull_request:

env:
SIMULATION: native
Expand All @@ -13,8 +13,23 @@ env:
BUILDTYPE: release

jobs:
#Checks for duplicate actions. Skips push actions if there is a matching or duplicate pull-request action.
check-for-duplicates:
runs-on: ubuntu-latest
# Map a step output to a job output
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@master
with:
concurrent_skipping: 'same_content'
skip_after_successful_duplicate: 'true'
do_not_skip: '["pull_request", "workflow_dispatch", "schedule"]'

CodeQL-Build:
CodeQL-Security-Build:
needs: check-for-duplicates
if: ${{ needs.check-for-duplicates.outputs.should_skip != 'true' }}
runs-on: ubuntu-18.04
timeout-minutes: 15

Expand All @@ -38,7 +53,7 @@ jobs:
uses: github/codeql-action/init@v1
with:
languages: c
queries: +security-extended, security-and-quality
config-file: nasa/cFS/.github/codeql/codeql-security.yml@main

# Setup the build system
- name: Set up for build
Expand All @@ -53,3 +68,45 @@ jobs:

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1

CodeQL-Coding-Standard-Build:
needs: check-for-duplicates
if: ${{ needs.check-for-duplicates.outputs.should_skip != 'true' }}
runs-on: ubuntu-18.04
timeout-minutes: 15

steps:
# Checks out a copy of your repository on the ubuntu-latest machine
- name: Checkout bundle
uses: actions/checkout@v2
with:
repository: nasa/cFS
submodules: true

- name: Checkout submodule
uses: actions/checkout@v2
with:
path: tools/cFS-GroundSystem

- name: Check versions
run: git submodule

- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: c
config-file: nasa/cFS/.github/codeql/codeql-coding-standard.yml@main

# Setup the build system
- name: Set up for build
run: |
cp ./cfe/cmake/Makefile.sample Makefile
cp -r ./cfe/cmake/sample_defs sample_defs
make prep
# Build the code
- name: Build
run: make tools/cFS-GroundSystem/Subsystems/cmdUtil/

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ See [Guide-GroundSystem.md](https://github.com/nasa/cFS-GroundSystem/blob/master

## Version History

### Development Build: v2.2.0-rc1+dev52

- Add test start command script for cmdUtil
- Implement Coding Standard in CodeQL
- See <https://github.com/nasa/cFS-GroundSystem/pull/183> and <https://github.com/nasa/cFS/pull/270>

### Development Build: v2.2.0-rc1+dev46

- Changes executable command from 'startg' to 'cFS-GroundSystem'
Expand Down
2 changes: 1 addition & 1 deletion Subsystems/cmdUtil/es-delete-app.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# es-delete-app.sh : This script will call the cmdUtil program with a command packet to the
# ES cFE application. It will tell ES to delete the TO App. It is defaulting to the localhost.
# ES cFE application. It will tell ES to delete the named. It is defaulting to the localhost.
./cmdUtil --pktid=0x1806 --cmdcode=5 --string="20:ES_APP"
16 changes: 16 additions & 0 deletions Subsystems/cmdUtil/start-test-app.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Command to start the test application
# CFE_ES_START_APP_CC = 4
#
# typedef struct CFE_ES_StartAppCmd_Payload
# {
# char Application[CFE_MISSION_MAX_API_LEN]; //CFE_MISSION_MAX_API_LEN = 20
# char AppEntryPoint[CFE_MISSION_MAX_API_LEN];
# char AppFileName[CFE_MISSION_MAX_PATH_LEN]; //CFE_MISSION_MAX_PATH_LEN = 64
# CFE_ES_MemOffset_t StackSize; //uint32
# CFE_ES_ExceptionAction_Enum_t ExceptionAction; //uint8
# undocumented SPARE uint8
# CFE_ES_TaskPriority_Atom_t Priority; //uint16
# } CFE_ES_StartAppCmd_Payload_t;

./cmdUtil --pktid=0x1806 --cmdcode=4 --endian=LE --string="20:CFE_TEST_APP" --string="20:CFE_TestMain" \
--string="64:cfe_testcase" --uint32=16384 --uint8=0 --uint8=0 --uint16=100
4 changes: 2 additions & 2 deletions _version.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@
#

# Development Build Macro Definitions
_cFS_GrndSys_build_number = 46
_cFS_GrndSys_build_number = 52
_cFS_GrndSys_build_baseline = "v2.2.0-rc1"

# Version Number Definitions
# ONLY APPLY for OFFICIAL release builds
_cFS_GrndSys_MAJOR = 2
_cFS_GrndSys_MINOR = 1
_cFS_GrndSys_REVISION = 0
_cFS_GrndSys_REVISION = 99
_cFS_GrndSys_MISSIONREV = 0

# Development Build format for __version__
Expand Down

0 comments on commit 12e26ce

Please sign in to comment.