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

Merge release 1.4.0 #394

Merged
merged 44 commits into from
Aug 1, 2024
Merged
Show file tree
Hide file tree
Changes from 43 commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
65fdc58
Add a markdown file for dashboard descriptions, link new file in READ…
mitchelbaker-cisa Dec 29, 2023
6cbef43
Release 1.3.1 merge into main (#154)
mitchelbaker-cisa Jan 12, 2024
1608db7
Fixes dashboard update not importing on fresh install (#167) (#169)
mitchelbaker-cisa Jan 24, 2024
676adf3
Add proof of concept selenium tests
adhilto Jan 5, 2024
b266543
Correct the script name in the doc string
adhilto Jan 10, 2024
0778c48
User Security Selenium Tests for No Results Panels
Jan 31, 2024
665d8ef
First full selenium test. Currently just User Security
Feb 1, 2024
245514b
WIP User HR
Feb 1, 2024
b748475
Completed all dashboards. Requires testing now
Feb 7, 2024
0cbe654
Cut dev comments
rgbrow1949 Feb 7, 2024
fe27467
Debugging a couple unit tests that error out. Two left
Feb 8, 2024
b058e56
Install LME in the testbed from a single script (#150)
cbaxley Feb 8, 2024
a367188
Fix deploy.sh data retention failure error (#190)
mitchelbaker-cisa Feb 12, 2024
27aae85
Automatically Add Tags to Azure Resources (#186)
adhilto Feb 12, 2024
95385ef
Conflict fix
Feb 13, 2024
967b41c
Switched script to headless mode
Feb 13, 2024
72d1999
added switch for headless, detached, and debug mode. Bug where driver…
Feb 13, 2024
e4e491e
Merge branch 'main' into selenium-tests
rgbrow1949 Feb 15, 2024
45cad07
Refactored long line and added switch for debug mode
Feb 16, 2024
a460cb5
Removed unnecessary comments
rgbrow1949 Feb 20, 2024
480b816
Merge pull request #182 from cisagov/selenium-tests
rgbrow1949 Feb 21, 2024
1fe5d6d
Update pull_request_template.md (#198)
llwaterhouse Feb 22, 2024
f5c617d
Python testbed setup (#183)
cbaxley Mar 4, 2024
34b2ff9
Update PULL_REQUEST_TEMPLATE.md (#206)
llwaterhouse Mar 4, 2024
7e02e61
Made changes to facilitate HTML Reports on test execution (#211)
rishagg01 Mar 6, 2024
49190a0
removed tags flag from nsg because it was preventing some rules from …
llwaterhouse Mar 6, 2024
94161e1
Update PULL_REQUEST_TEMPLATE.md (#217)
llwaterhouse Mar 7, 2024
fcb7199
Create new workflow for automating the release process (#199)
mitchelbaker-cisa Mar 8, 2024
328caa5
Github workflows for building environments (#195)
cbaxley Apr 16, 2024
cb66dbb
changing .github/README.md name to prevent it apperaing on main web p…
causand22 Apr 16, 2024
83cb7db
Append the flags to the end of the password file (#263)
cbaxley May 10, 2024
eb8fb9f
Create a workflow for a burndown chart (#302)
cbaxley May 28, 2024
1dd58f7
Clean up debugging information from the workflow (#310)
cbaxley May 29, 2024
45c783e
Break up selenium tests (#281)
cbaxley May 30, 2024
f1d4cc1
API calls code for Data Insertion (#343)
rishagg01 Jul 2, 2024
8408852
Updated selenium tests for USER HR dashboard panels post data inserti…
rishagg01 Jul 24, 2024
c7a13fb
Updated User HR Dashboard Selenium Test for User HR Logon Title panel…
rishagg01 Jul 25, 2024
1d072aa
Merge branch 'main' into release-1.4.0
cbaxley Jul 30, 2024
b08fa10
Adds some extra files to gitignore
cbaxley Jul 30, 2024
5b74fdc
1.4gitignore
cbaxley Jul 31, 2024
c0ae308
Skip the non passing test
cbaxley Jul 31, 2024
a6b65c5
Skip failing tests
cbaxley Jul 31, 2024
da3ed7a
Comment out failing tests
cbaxley Jul 31, 2024
6450c0e
Update the merging version
cbaxley Aug 1, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .devcontainer/python_development/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@
"ms-python.black-formatter"
]
}
}
},
"remoteUser": "admin.ackbar"
}
10 changes: 6 additions & 4 deletions .github/ISSUE_TEMPLATE/bug-or-error-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ If the above did not answer your question, proceed with creating an issue below:
A clear and concise description of what you expected to happen.

## To Reproduce
<!-- Steps to reproduce the behavior. These should be clear enough that our team can understand your running environment, software/operating system versions and anything else we might need to debug the issue. -->
<!-- Steps to reproduce the behavior. These should be clear enough that our team can understand your running environment, software/operating system versions, and anything else we might need to debug the issue. -->
<!-- Good examples can be found here: [Issue 1](https://github.com/cisagov/LME/issues/15) [Issue 2](https://github.com/cisagov/LME/issues/19). -->

### Please complete the following information
Expand Down Expand Up @@ -59,12 +59,14 @@ lsb_release -a
```
for name in $(sudo docker ps -a --format '{{.Names}}'); do echo -e "\n\n\n-----------$name----------"; sudo docker logs $name | tail -n 20; done
```
Increase the number of lines if your issue is not present or include a relevant log of the erroring container
Increase the number of lines if your issue is not present, or include a relevant log of the erroring container
- Output of the relevant /var/log/cron_logs/ file

## Expected behavior
A clear and concise description of what you expected to happen.

## Screenshots **OPTIONAL**
## Screenshots
If applicable, add screenshots to help explain your problem.

## Additional context
Add any other context about the problem or any unique environment information here.
Add any other context about the problem here.
6 changes: 4 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
<!-- Mention any related issue(s) here using appropriate keywords such -->
<!-- as "closes" or "resolves" to auto-close them on merge. -->
<!-- If this PR is *not* being merged into main, the related issues will not -->
<!-- be auto-closed, so you need to close the issue manually -->
<!-- be auto-closed, so you need to add the issue into the Development box -->
<!-- in the right sidebar -->

### πŸ“· Screenshots (DELETE IF UNAPPLICABLE)

Expand All @@ -25,7 +26,8 @@
- [ ] Git Issue that this PR solves has been selected in the Development section
- [ ] The PR's base branch has been modified to be the proper branch.
- [ ] Changes are limited to a single goal **AND**
the title reflects this in a clear human readable format for the release notes
the title reflects this in a clear human readable format
- [ ] Issue that this PR solves has been selected in the Development section
- [ ] I have read and agree to LME's [CONTRIBUTING.md](https://github.com/cisagov/LME/CONTRIBUTING.md) document.
- [ ] The PR adheres to LME's requirements in [RELEASES.md](https://github.com/cisagov/LME/RELEASES.md#steps-to-submit-a-PR)
- [ ] These code changes follow [cisagov code standards](https://github.com/cisagov/development-guide).
Expand Down
1 change: 1 addition & 0 deletions .github/README-github.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
See the readme in `testing/development` for more information about these workflows and how to develop for them.
100 changes: 100 additions & 0 deletions .github/workflows/burndown_chart.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
name: Burndown Chart

on:
workflow_dispatch:
inputs:
start_date:
description: 'Sprint start date (YYYY-MM-DD)'
required: true
default: '2024-05-09'
type: string
end_date:
description: 'Sprint end date (YYYY-MM-DD)'
required: true
default: '2024-05-25'
type: string
view:
description: 'View number'
required: true
default: '1'
type: string
pull_request:
branches:
- '*'

jobs:
create_chart:
runs-on: ubuntu-latest
env:
UNIQUE_ID:
start_date:
end_date:
view:

steps:
- name: Checkout repository
uses: actions/[email protected]

- name: Setup environment variables
run: |
echo "UNIQUE_ID=$(openssl rand -hex 3 | head -c 6)" >> $GITHUB_ENV

- name: Set default dates
if: github.event_name == 'pull_request'
run: |
echo "start_date=2024-05-09" >> $GITHUB_ENV
echo "end_date=2024-05-25" >> $GITHUB_ENV
echo "view=1" >> $GITHUB_ENV

- name: Use dispatch inputs
if: github.event_name == 'workflow_dispatch'
run: |
echo "start_date=${{ github.event.inputs.start_date }}" >> $GITHUB_ENV
echo "end_date=${{ github.event.inputs.end_date }}" >> $GITHUB_ENV
echo "view=${{ github.event.inputs.view }}" >> $GITHUB_ENV

- name: Run Docker Build
run: docker compose -p ${{ env.UNIQUE_ID }} -f testing/project_management/docker-compose.yml build burndown --no-cache

- name: Run Docker Compose
env:
BURNDOWN_TOKEN: ${{ secrets.BURNDOWN_TOKEN }}
run: docker compose -p ${{ env.UNIQUE_ID }} -f testing/project_management/docker-compose.yml up -d

- name: List docker containers to wait for them to start
run: |
docker ps

- name: Set up the burndown chart config
env:
BURNDOWN_TOKEN: ${{ secrets.BURNDOWN_TOKEN }}
UNIQUE_ID: ${{ env.UNIQUE_ID }}
START_DATE: ${{ env.start_date }}
END_DATE: ${{ env.end_date }}
VIEW: ${{ env.view }}
run: |
cd testing/project_management
docker compose -p ${{ env.UNIQUE_ID }} exec -T burndown bash -c '
/lme/testing/project_management/setup_config.sh -s ${{ env.START_DATE }} -e ${{ env.END_DATE }} -v ${{ env.VIEW }} -f /github-projects-burndown-chart/src/github_projects_burndown_chart/config/config.json
sed -i "s/\"github_token\": \"\"/\"github_token\": \"$BURNDOWN_TOKEN\"/g" /github-projects-burndown-chart/src/github_projects_burndown_chart/config/secrets.json
cat /github-projects-burndown-chart/src/github_projects_burndown_chart/config/config.json
'

- name: Run the burndown chart script
run: |
cd testing/project_management
docker compose -p ${{ env.UNIQUE_ID }} exec -T burndown bash -c '
python3 /github-projects-burndown-chart/src/github_projects_burndown_chart/main.py organization LME --filepath /lme/burndown.png
'
- name: Upload chart artifact
uses: actions/upload-artifact@v4
with:
name: burndown
path: burndown.png

- name: Cleanup Docker Compose
if: always()
run: |
cd testing/project_management
docker compose -p ${{ env.UNIQUE_ID }} down
# docker system prune -a --force
Loading
Loading