Johan Brandhorst-Satzkorn
c503fca894
.github: fix test matrix script
...
The test matrix script was excluding directories that
only contained external package tests (i.e. tests packages
with _test suffix). The following tests were not being run:
./internal/daemon/controller/common/scopeids
./internal/daemon/controller/handlers/authtokens
./internal/daemon/controller/handlers/groups
./internal/daemon/controller/handlers/host_catalogs
./internal/daemon/controller/handlers/host_sets
./internal/daemon/controller/handlers/hosts
./internal/daemon/controller/handlers/roles
./internal/daemon/controller/handlers/scopes
./internal/daemon/controller/handlers/sessions
./internal/daemon/controller/handlers/targets/tcp
./internal/daemon/controller/handlers/users
./internal/db/schema/internal/edition
./internal/db/schema/internal/provider
./internal/db/schema/migrations/oss
./internal/scheduler/cleaner
./internal/tests/api/accounts
./internal/tests/api/authmethods
./internal/tests/api/authtokens
./internal/tests/api/credentiallibraries
./internal/tests/api/credentials
./internal/tests/api/credentialstores
./internal/tests/api/groups
./internal/tests/api/hostcatalogs
./internal/tests/api/hosts
./internal/tests/api/hostsets
./internal/tests/api/managedgroups
./internal/tests/api/roles
./internal/tests/api/scopes
./internal/tests/api/sessions
./internal/tests/api/targets
./internal/tests/api/users
./internal/tests/api/workers
./internal/util
./testing/dbtest
./testing/internal/e2e/tests/aws
./testing/internal/e2e/tests/database
./testing/internal/e2e/tests/static
./testing/internal/e2e/tests/static_with_vault
2023-05-02 17:34:39 -07:00
cc94accc4f
SEC-090: Automated trusted workflow pinning (2023-04-27) ( #3187 )
...
* Result of tsccr-helper -pin-all-workflows .
* chore: Disable cache from setup-go
---------
Co-authored-by: hashicorp-tsccr[bot] <hashicorp-tsccr[bot]@users.noreply.github.com>
Co-authored-by: Michael Li <michael.li@hashicorp.com >
2023-05-02 16:37:11 -04:00
Josh Brand
9a050ec15a
chore(e2e): Update test attributes for new builds ( #3189 )
2023-04-27 14:59:46 -04:00
Michael Li
6cdf9154a5
chore: Rename workflow file ( #3184 )
2023-04-26 12:34:27 -04:00
dependabot[bot]
8c265bf7c1
chore(deps): bump actions/cache from 3.2.6 to 3.3.1 ( #3131 )
...
Bumps [actions/cache](https://github.com/actions/cache ) from 3.2.6 to 3.3.1.
- [Release notes](https://github.com/actions/cache/releases )
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md )
- [Commits](https://github.com/actions/cache/compare/69d9d449aced6a2ede0bc19182fadc3a0a42d2b0...88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 )
---
updated-dependencies:
- dependency-name: actions/cache
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-14 14:43:21 -04:00
Michael Li
8c5464802d
chore: Add write permission to milestone checker ( #3155 )
2023-04-10 08:46:49 -04:00
Michael Li
f816611dd0
chore: Update milestone-checker to use newer version of node ( #3154 )
2023-04-07 14:36:35 -04:00
Michael Li
29c268d5ac
chore: Fix issues detected by GitHub actions linter ( #3139 )
2023-04-07 12:05:05 -04:00
Jim
d59ca6b7d1
fix (workflows): use github ctx for repo name in legacy link checker ( #3146 )
2023-04-04 15:44:23 -04:00
Mike Baum
55af9f3072
[QT-516] Add a step to the enos run workflow to automatically upload application logs when a scenario fails ( #3137 )
2023-04-03 14:42:30 -04:00
Timothy Messier
743bbf88ac
fix(cliui): Download correct artifact ( #3134 )
...
This was missed on the previous fix. It now references the correct
artifact name now that this is back to running as part of the build
workflow.
Blame: 181f0f1806
2023-03-30 10:28:27 -04:00
Timothy Messier
181f0f1806
fix(cliui): Call test-cli-ui workflow from build ( #3126 )
...
It seems the workflow_run trigger only calls the workflow as it is on
the default branch (ie `main`). This would make it difficult to make
changes to this workflow and set of tests.
Blame: e76b3b9511
2023-03-29 20:27:09 -04:00
Timothy Messier
1806151392
ci(build): Set permissions for workflow
2023-03-29 18:39:03 +00:00
Timothy Messier
e4fbc0281a
chore(ci): Update and pin actions steps
2023-03-29 18:39:01 +00:00
Timothy Messier
a7c11846d6
lint(ci): Address linter issue for workflow files
2023-03-29 18:38:50 +00:00
Timothy Messier
e76b3b9511
ci(cliui): Move to separate workflow
...
This will run the cli ui (bats) tests in a separate workflow from the
build workflow. This takes advantage of the newer workflow_run event to
trigger the tests after the build has completed, so that the artifacts
from the build step can still be used.
2023-03-29 18:38:50 +00:00
Timothy Messier
a241ca452c
ci: Add actionlint workflow
2023-03-29 18:38:50 +00:00
Jamie Finnigan
b3ff887bb0
remove repo-specific codeql action, in favor of centralized job ( #3108 )
2023-03-29 14:22:18 -04:00
Timothy Messier
9d2758368c
doc(schema-diff): Add documentation on schema-diff script
...
This also will include a link to this documentation when leaving a
comment on a pull request.
2023-03-27 14:27:54 +00:00
Timothy Messier
04a6c310ee
fix(schema-diff): Include foreign key constraints in diff
...
With the change to report changes to constraints instead of all of the
post-data section, foreign key constraints where no longer captured in
the diff. This now extracts the foreign key constraints and generates a
diff of them between versions.
Blame: b6d58d0c42
2023-03-27 14:27:54 +00:00
Michael Li
8c796d0fc9
chore(enos): Use docker image generated from code ( #3100 )
2023-03-22 10:47:17 -04:00
Michael Li
87c80f99dc
chore: Remove extraneous fail-on-cache-miss attribute ( #3104 )
...
Since this step is a setup step, there shouldn't be an expectation that the cache is present. Removing this attribute gets rid of that requirement.
2023-03-20 13:02:40 -04:00
claire labry and Sarah Thompson
bf955b60d4
Try retries on test failures ( #3099 )
...
* try-retries-on-test-failures
* remove extra step
* fix spacing
* Pin retry action and fix merge conflict
* Update test.yml
* Uses before name
* hopefully this works
---------
Co-authored-by: Sarah Thompson <sthompson@hashicorp.com >
2023-03-17 11:53:12 -05:00
claire labry
edb5498cc0
Remove Test cron ( #3089 )
...
* bump to 20 runs of test workflows per hour
* remove test cron
2023-03-17 11:04:34 -05:00
Michael Li
05eb6fba63
Revert "chore(enos): Pin terraform to 1.3.9 to mitigate bug ( #3087 )" ( #3094 )
2023-03-16 16:54:47 -04:00
Michael Li
4e697d4dd5
chore(enos): Pin terraform to 1.3.9 to mitigate bug ( #3087 )
2023-03-15 14:09:35 -04:00
Michael Li and Johan Brandhorst-Satzkorn
acda0c3892
chore(enos): Add scenario that uses docker containers for infrastructure ( #3073 )
...
Co-authored-by: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com >
2023-03-15 10:07:36 -04:00
Timothy Messier
b6d58d0c42
ci(schema-diff): Generate one file per constraint ( #3082 )
...
This yeilds a better diff when constraints are changed.
2023-03-14 12:57:07 -04:00
Jeanne Angeles Franco
4366f69b66
lower test run frequency per hour ( #3080 )
2023-03-13 17:22:14 -07:00
Jeanne Angeles Franco
fd56f7ee1a
Increase the number of workflow run ( #3078 )
2023-03-13 15:13:21 -07:00
Jeanne Angeles Franco
8a7b507d41
Add workflow to run test on schedule ( #3076 )
2023-03-13 12:44:23 -07:00
Michael Li
2169bf7443
chore: Add "fail-on-cache-miss" setting to more jobs ( #3072 )
2023-03-10 12:17:29 -05:00
dependabot[bot]
2b7accac84
chore(deps): bump actions/setup-python from 3.1.2 to 4.5.0 ( #3038 )
...
Bumps [actions/setup-python](https://github.com/actions/setup-python ) from 3.1.2 to 4.5.0.
- [Release notes](https://github.com/actions/setup-python/releases )
- [Commits](https://github.com/actions/setup-python/compare/98f2ad02fd48d057ee3b4d4f66525b231c3e52b6...d27e3f3d7c64b4bbf8e4abfb9b63b83e846e0435 )
---
updated-dependencies:
- dependency-name: actions/setup-python
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-08 15:36:33 -05:00
dependabot[bot]
bac14d2081
chore(deps): bump hashicorp/actions-go-build from 0.1.7 to 0.1.9 ( #3040 )
...
Bumps [hashicorp/actions-go-build](https://github.com/hashicorp/actions-go-build ) from 0.1.7 to 0.1.9.
- [Release notes](https://github.com/hashicorp/actions-go-build/releases )
- [Changelog](https://github.com/hashicorp/actions-go-build/blob/main/CHANGELOG.md )
- [Commits](https://github.com/hashicorp/actions-go-build/compare/v0.1.7...v0.1.9 )
---
updated-dependencies:
- dependency-name: hashicorp/actions-go-build
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-08 12:58:31 -05:00
dependabot[bot]
196bbf1ac7
chore(deps): bump atlassian/gajira-transition from 3.0.0 to 3.0.1 ( #3041 )
...
Bumps [atlassian/gajira-transition](https://github.com/atlassian/gajira-transition ) from 3.0.0 to 3.0.1.
- [Release notes](https://github.com/atlassian/gajira-transition/releases )
- [Commits](https://github.com/atlassian/gajira-transition/compare/4749176faf14633954d72af7a44d7f2af01cc92b...38fc9cd61b03d6a53dd35fcccda172fe04b36de3 )
---
updated-dependencies:
- dependency-name: atlassian/gajira-transition
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-08 12:57:50 -05:00
dependabot[bot]
fefe54a398
chore(deps): bump atlassian/gajira-login from 3.0.0 to 3.0.1 ( #3039 )
...
Bumps [atlassian/gajira-login](https://github.com/atlassian/gajira-login ) from 3.0.0 to 3.0.1.
- [Release notes](https://github.com/atlassian/gajira-login/releases )
- [Commits](https://github.com/atlassian/gajira-login/compare/ca13f8850ea309cf44a6e4e0c49d9aa48ac3ca4c...45fd029b9f1d6d8926c6f04175aa80c0e42c9026 )
---
updated-dependencies:
- dependency-name: atlassian/gajira-login
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-08 12:57:18 -05:00
dependabot[bot]
4618b7e755
chore(deps): bump actions/labeler from 4.0.2 to 4.0.3 ( #3063 )
...
Bumps [actions/labeler](https://github.com/actions/labeler ) from 4.0.2 to 4.0.3.
- [Release notes](https://github.com/actions/labeler/releases )
- [Commits](https://github.com/actions/labeler/compare/5c7539237e04b714afd8ad9b4aed733815b9fab4...ba790c862c380240c6d5e7427be5ace9a05c754b )
---
updated-dependencies:
- dependency-name: actions/labeler
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-08 12:56:40 -05:00
Michael Li
e0b50af7c3
chore(enos): Use cache for tparse ( #3057 )
2023-03-08 10:03:11 -05:00
dependabot[bot]
4819d17ee8
chore(deps): bump aws-actions/configure-aws-credentials ( #3060 )
...
Bumps [aws-actions/configure-aws-credentials](https://github.com/aws-actions/configure-aws-credentials ) from 023daa7fe5f7f817faa31fc0fc4a8d0fb6224ed0 to e1e17a757e536f70e52b5a12b2e8d1d1c60e04ef.
- [Release notes](https://github.com/aws-actions/configure-aws-credentials/releases )
- [Changelog](https://github.com/aws-actions/configure-aws-credentials/blob/main/CHANGELOG.md )
- [Commits](https://github.com/aws-actions/configure-aws-credentials/compare/023daa7fe5f7f817faa31fc0fc4a8d0fb6224ed0...e1e17a757e536f70e52b5a12b2e8d1d1c60e04ef )
---
updated-dependencies:
- dependency-name: aws-actions/configure-aws-credentials
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-07 15:16:06 -05:00
Ashlee M Boyer
1c6ce3d3a6
Delete test-link-rewrites.yml ( #3058 )
2023-03-06 17:12:41 -05:00
Timothy Messier and Hugo Vieira
b00d888387
ci(schema-diff): Add script to generate diff of database schema ( #2924 )
...
The script should be given a base branch to compare against, if not set
it defaults to main. The script will apply the schema migrations for
both the base branch and the current commit and generate dumps that are
then compared to create a diff. The dumps are left in a temporary
directory so that they can be compared using a users preferred diff tool.
For example, generate the dumps and diff against main
./scripts/schema-diff.sh main
Examine the diff to database functions using delta:
delta .schema-diff/funcs_$(git rev-parse main) .schema-diff/funcs_$(git rev-parse HEAD)
This also adds a github action that runs the script on pull-requests
that contain schema changes and reports the diffs as a comment on the
pull-request.
Co-authored-by: Hugo Vieira <hugoamvieira@users.noreply.github.com >
2023-03-03 16:21:33 -05:00
Michael Li
1f55136d87
chore(enos): Use node16 version of action ( #3051 )
2023-03-02 16:45:22 -05:00
Michael Li
420952f6b8
chore(enos): Add scenario for e2e UI tests ( #2813 )
2023-03-02 14:32:53 -05:00
Timothy Messier
236d7ca872
ci: Additional githubaction configuration ( #3034 )
...
- Pin action versions
- Dependabot to notify about action updates
- Update codeowners
2023-03-01 08:00:46 -05:00
Michael Li
f412abc205
ci: Fix permissions in labeler workflow ( #3032 )
...
* ci: Fix permissions in labeler workflow
* ci: Add write permissions
2023-02-27 10:59:00 -05:00
Timothy Messier
5e0957eb24
ci(test): Use docker mirror ( #3018 )
2023-02-24 14:49:16 -05:00
Timothy Messier
d7b567e843
ci(trigger-merge-to-downstream): Fix typo in workflow
2023-02-24 13:54:48 +00:00
Timothy Messier
39e1cd7dcf
chore(ci): Add downstream merge trigger to github action ( #3014 )
2023-02-24 08:36:47 -05:00
Timothy Messier
18b0bcb395
chore(ci): Revert some permission settings
...
These workflows seemed to break with these permission changes.
2023-02-23 21:14:53 +00:00
Timothy Messier
2a47e9ddf8
ci: Set permissions in workflows ( #3011 )
2023-02-23 15:50:26 -05:00