Commit Graph
176 Commits
Author SHA1 Message Date
Michael Li 444def7971 chore(e2e): Fix workflow trigger (#4013) 2023-11-07 10:51:16 -05:00
Michael Li 25961d98b1 chore(e2e): Continue if log renaming fails (#4005) 2023-11-06 13:21:53 -05:00
dependabot[bot] bfea91b0a0 chore(deps): bump hashicorp/setup-terraform from 2.0.3 to 3.0.0 (#3963)
Bumps [hashicorp/setup-terraform](https://github.com/hashicorp/setup-terraform) from 2.0.3 to 3.0.0.
- [Release notes](https://github.com/hashicorp/setup-terraform/releases)
- [Changelog](https://github.com/hashicorp/setup-terraform/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/setup-terraform/compare/633666f66e0061ca3b725c73b2ec20cd13a8fdd1...a1502cd9e758c50496cc9ac5308c4843bcd56d36)

---
updated-dependencies:
- dependency-name: hashicorp/setup-terraform
  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-11-01 17:12:55 -04:00
Sarah Thompson c5407919b0 update linux package license to BUSL-1.1 (#3577) 2023-11-01 17:01:31 -04:00
hashicorp-tsccr[bot]andhashicorp-tsccr[bot] b5ae6f0ceb Result of tsccr-helper -log-level=info -pin-all-workflows . (#3968)
Co-authored-by: hashicorp-tsccr[bot] <hashicorp-tsccr[bot]@users.noreply.github.com>
2023-11-01 10:08:02 -04:00
Michael Li f0a4bce17c test(e2e): Add test for controller-led worker registration (#3882)
* test(e2e): Add test for controller led worker registration

* chore(e2e): Rename log files to ensure uniqueness

This updates the log files to be based on the scenario name instead of just the test package in case some scenarios run the same test package
2023-10-30 09:48:08 -04:00
mickael-hc fe948942c2 security-scan: temporarily pin semgrep to 1.45.0 (#3931) 2023-10-26 10:34:21 -04:00
Timothy Messier d865ff16a4 ci(schema-diff): Fix error with large diffs (#3909)
When generating the JSON for submitting the github comment, if the
message was too large, the workflow would fail with the following error:

    /usr/bin/jq: Argument list too long

This fix switches to using the `--rawfile`, which allows jq to process
the large comment.
2023-10-24 14:00:29 -04:00
Michael Li cad044926f chore(e2e): Add always condition (#3866) 2023-10-19 11:09:09 -04:00
dependabot[bot] 1f598988e6 chore(deps): bump actions/setup-python from 4.7.0 to 4.7.1 (#3837)
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4.7.0 to 4.7.1.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/61a6322f88396a6271a6ee3565807d608ecaddd1...65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236)

---
updated-dependencies:
- dependency-name: actions/setup-python
  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-10-12 06:21:39 -04:00
Mark Collao d42369551a Update security-scan.yml 2023-10-11 12:55:04 -05:00
hashicorp-tsccr[bot]andhashicorp-tsccr[bot] ae85c5d7ff Result of tsccr-helper -log-level=info -pin-all-workflows . (#3786)
Co-authored-by: hashicorp-tsccr[bot] <hashicorp-tsccr[bot]@users.noreply.github.com>
2023-10-11 09:17:52 -04:00
Michael Li 43ae62506f Revert "chore(e2e): Set terraform version to 1.5 until issue is addressed (#3797)" (#3815)
This reverts commit 031e143dfb.
2023-10-10 12:07:06 -04:00
Michael Li 9acff95fd6 chore(e2e): Add logs for aws dependencies error (#3796) 2023-10-09 09:32:34 -04:00
Michael Li 031e143dfb chore(e2e): Set terraform version to 1.5 until issue is addressed (#3797) 2023-10-04 16:20:52 -04:00
Michael Li a4023b846f chore(e2e): Get logs from the postgres container (#3792) 2023-10-03 15:35:38 -04:00
Michael Li ff34cb629e test(e2e): Add a test for a single-hop worker (#3690)
* refact(e2e): Add env for workers

* test(e2e): Add test for single-hop worker

* fixup! refact(e2e): Add env for workers

* fixup! test(e2e): Add test for single-hop worker

* fixup! test(e2e): Add test for single-hop worker

* fixup! test(e2e): Add test for single-hop worker

* fixup! test(e2e): Add test for single-hop worker
2023-09-11 14:25:32 -04:00
Michael Li 9a6b0d26cb test(e2e): Add test for boundary connect postgres (#3671)
* refact(e2e): Rename env

* test(e2e): Add test for `connect postgres`

* fixup! test(e2e): Add test for `connect postgres`
2023-09-06 17:29:35 -04:00
hashicorp-tsccr[bot]andhashicorp-tsccr[bot] c55df52d44 Result of tsccr-helper -log-level=info -pin-all-workflows . (#3658)
Co-authored-by: hashicorp-tsccr[bot] <hashicorp-tsccr[bot]@users.noreply.github.com>
2023-09-01 12:21:34 -04:00
Johan Brandhorst-Satzkorn 9e955c806e ci: attempt to silence action linter (#3659)
The lint warnings are bogus but they keep failing so lets
try to work around the suggested issues.
2023-09-01 09:18:15 -07:00
Johan Brandhorst-Satzkorn 477deeb294 Fix fuzz corpus upload (#3647) 2023-08-31 09:28:15 -07:00
Jim 922fcfb4c0 tests (grants): add basic fuzz test for grants.Parse (#3638) 2023-08-25 21:17:29 -04:00
Michael Li dec3bf3a5c chore: Change workflow to use launch (#3551) 2023-08-09 12:26:36 -04:00
Michael Li 0af4c38230 chore: Modify go test retry settings (#3536) 2023-08-07 09:45:13 -04:00
hashicorp-tsccr[bot]andhashicorp-tsccr[bot] e8207d4bb2 Result of tsccr-helper -log-level=info -pin-all-workflows . (#3527)
Co-authored-by: hashicorp-tsccr[bot] <hashicorp-tsccr[bot]@users.noreply.github.com>
2023-08-01 08:42:39 -04:00
Michael Li ef3954c561 test(e2e): Add a docker test runner (#3499)
* test(e2e): Add a docker test runner

* !fixup: Self-review

* !fixup: Make vault address compatible with local runs

* !fixup: Remove unnecessary modification

* !fixup: Remove arm64 requirement

* !fixup: extend timeout
2023-07-31 09:10:21 -04:00
hashicorp-tsccr[bot]andhashicorp-tsccr[bot] 7a069cb54e Result of tsccr-helper -log-level=info -pin-all-workflows . (#3466)
Co-authored-by: hashicorp-tsccr[bot] <hashicorp-tsccr[bot]@users.noreply.github.com>
2023-07-18 09:25:10 -04:00
Michael Li e460187508 chore: Add missing ** in paths-ignore (#3451) 2023-07-14 09:28:49 -04:00
Mark Collao 81016ef984 fix paths-ignore on security-scan workflow (#3435) 2023-07-13 13:08:29 -05:00
Mark Collao 75b4234668 chore: prefer gosec for semgrep rule and turn on codeql (#3418) 2023-07-13 13:03:53 -05:00
Michael Li 88adfecb59 chore: Ignore website directory for build and test workflows (#3426) 2023-07-13 10:16:53 -04:00
Michael Li 23d500917b chore: Remove check-legacy-links-format workflow (#3376)
This workflow has been deprecated in favor of similar checks in other places.
2023-06-29 11:21:41 -04:00
Michael Li a751d65831 chore: Update actionlint to a trusted version (#3357) 2023-06-23 12:59:01 -04:00
Michael Li bfc3babd20 chore(e2e): Change port used by vault docker container (#3355)
* chore: Update scenario reference name

* chore: Use different port for vault

This avoids any conflicts with other uses of vault
2023-06-22 16:12:00 -04:00
Michael Li d920676112 chore: Update some e2e test scenarios to use docker-based infra (#3345)
* chore: Update docker scenario to check edition

* chore: Use large runner to resolve flakiness issues

* chore: Migrate enos scenarios to use docker
2023-06-21 11:36:47 -04:00
Michael Li b9bef35f51 chore: Ignore tags in workflow (#3337) 2023-06-16 12:51:30 -04:00
Michael Li 401493d225 test(e2e): Rename test packages (#3334) 2023-06-15 11:51:14 -04:00
Michael Li 4f1552abde chore: Add check for go mod tidy (#3321) 2023-06-13 14:33:26 -04:00
Mark Collao 23bc0782ea chore: update security-scanner workflow runner (#3309) 2023-06-12 16:07:55 -05:00
Michael Gaffney 41bdfb4406 fix(db): Fix time zone consistency issues in monthly billing views
The hcp monthly billing views build a range of buckets using the
`generate_series` and the `now()` functions along with relative offsets
like `+ 1 month`. The calculated start and end times for these views can
vary depending on the time zone setting of the PostgreSQL server.

This adds 3 table functions that call their respective views with the
time zone set to UTC. Calling these functions instead of their
underlying views directly prevents the returned values from varying when
the server's time zone is not set to UTC.

This also drops support for PostgreSQL 11. The included tests use the
`date_trunc(field, source [, time_zone ])` function added in PostgreSQL
12.

Fixes: 41b1b5b4b7
2023-06-05 12:48:15 -04:00
Michael Li 253d191440 chore: Bump version of security scanner (#3234)
This mitigates the GitHub deprecation of set-output and node 12.
2023-05-19 12:06:10 -04:00
dependabot[bot] 48fb60adef chore(deps): bump slackapi/slack-github-action from 1.23.0 to 1.24.0 (#3233)
Bumps [slackapi/slack-github-action](https://github.com/slackapi/slack-github-action) from 1.23.0 to 1.24.0.
- [Release notes](https://github.com/slackapi/slack-github-action/releases)
- [Commits](https://github.com/slackapi/slack-github-action/compare/007b2c3c751a190b6f0f040e47ed024deaa72844...e28cf165c92ffef168d23c5c9000cffc8a25e117)

---
updated-dependencies:
- dependency-name: slackapi/slack-github-action
  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-05-18 09:51:02 -04:00
Timothy Messier 7f7a5ac9c3 ci(test): Remove matrix for running tests per package (#3200)
The original motivation for the matrix was to mitigate an issue some
tests failing that used a vault docker container. When the tests ran in
a single step, these tests would almost always fail. By splitting the
tests per package, the failure rate of these tests was around 20%.

GitHub was able to identify the cause. There was an issue with localhost
resolution that causes requests to the vault containers to sometimes
fail, resulting in the kinds of failures that were seen. Note that the
same issue was not seen when accessing the test postgres database that
was running in a container, since the test code connects via 127.0.0.1,
while the vault container used localhost. This commit includes the
recommended fix so that localhost name resolution works as expected on
the GitHub hosted runners.

It also removes the test matrix since it is no longer needed as a work
around. In addition it seems advisable to remove the matrix given the
recent discovery that some tests were not running with the matrix. While
this was fixed, removing the matrix reduces the risk of any future
mistakes from the test splitting.

This also seems to result in a faster pipeline execution time. The
overhead to determine the matrix values, wait for a runner to be
available, and restore from the cache seems to add up to a longer
overall execution time.

Eliminating the matrix can also help with another type of failure seen.
Sometimes restoring from the cache fails. By eliminating the test
matrix, it will greatly reduce the number of cache restoring done by the
workflow, which will reduce the chances of an issue restoring from
cache.

The only remaining benefit from the matrix, was that if there was a
transient test failure, a re-run of only the failed jobs would be
relatively quick (depending on which package had the failure), while
without the matrix the entire test suite will need to be re-run.

See: https://github.com/hashicorp/boundary/pull/3199
Refs:
    86214a85e1
    e04438b7f8
2023-05-03 14:18:13 -04: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