Commit graph

278 commits

Author SHA1 Message Date
Paul Gottschling 491bb0ab7c
Edit the docs test plan (#27200)
* Edit the docs test plan

Add an item to remove version warnings for versions we no longer
support. Currently, we remove these version warnings as we encounter
them. This change makes this task a regular, predictable step when
releasing a new major Teleport version.

* Respond to stevenGravy feedback
2023-06-05 17:40:44 +00:00
Jakub Nyckowski e2f8b53e87
Disable GHA cache (#27305)
GHA cache seems to be problematic and store/restore operations seems to take more time than the build itself.
2023-06-02 21:09:13 +00:00
Mike Jensen bab1a5d54b
Build change for when go caching should be used (#27209)
* Build change for when go caching should be used

This commit does the following:
* Updates all `setup-go` actions to use v4 (which has caching enabled by default)
* For `shared-workflow` jobs caching is left enabled due to the presumed small size
* For `teleport` jobs caching is now disabled due to the size exceeding the cache limit

This should make all of the mentioned jobs a little faster.

* Update build-api.yaml to re-enable caching
2023-06-02 15:42:56 +00:00
Jakub Nyckowski d3848c2cbd
Update Docker images to use v14 (#27189)
After the new Docker images have been published https://github.com/gravitational/teleport/pull/27055 this PR makes use of them in GHA.
2023-06-01 19:47:51 +00:00
Krzysztof Skrzętnicki d7627b5019
flaky test detector: pass --skip flag in all jobs, skip new tests (#27145)
* Use `--skip` flag in all difftest invocations.

* make `difftest` respect the `--skip` flag for new tests.
2023-06-01 06:54:02 +00:00
Edoardo Spadolini 0975df744d
Add buf breaking to the CI linter (#26828)
* Add `buf breaking` to the CI linter

* Add Makefile target for local development
2023-05-30 20:19:12 +00:00
Grzegorz Zdunek 90803a1f45
Add missing dependabot.yml ignore entries (#27019) 2023-05-29 08:16:07 +00:00
Alan Parra 760ea60c52
Assign module experts in Dependabot reviews (#27023) 2023-05-26 17:50:28 +00:00
Mike Jensen 61448c9f0c
Update Dependabot Scheduled Config (#26867)
* Update Dependabot Scheduled Config

Update Dependabot with the following:
* Add `jentfoo` to reviewers list
* Remove `crypto` ignore on `api` (no longer using forked version)
* Add configurations for missing gomod paths

* Update .github/dependabot.yml

Co-authored-by: Alan Parra <alan.parra@goteleport.com>

* Remove `examples` from Dependabot

---------

Co-authored-by: Alan Parra <alan.parra@goteleport.com>
2023-05-25 20:27:12 +00:00
Zac Bergquist fffa7c275c
ci: build tctl in the build-windows job (#26865)
We don't officially support tctl on Windows yet, but it does now build
and we want to ensure it stays that way.
2023-05-25 17:28:23 +00:00
Tiago Silva 5c37f8b1d7
Upgrade K8S related dependencies to v0.27.2 (#25136) 2023-05-23 15:03:27 +00:00
Paul Gottschling ad4205610e
Edit the docs issue template (#26607)
- Add an item to define a scope for resolving the issue to avoid scope
  creep and make it easier to close issues.
- Make a stronger plea for "Related Issues" items, since these are often
  not included.
2023-05-22 21:06:05 +00:00
Zac Bergquist d6f2a52155
flaky test detector: add exclusion step (#26542)
Depends on gravitational/shared-workflows#115
2023-05-19 22:47:22 +00:00
Grzegorz Zdunek 9d05287cc9
Update kingpin & allow autocompletion (#26238)
* Update kingpin version

* Convert `defaultUsageTemplate` to "text/template"

* Add // replaced

* Sort deps

* Change kingpin v2.3.1 to v2.3.2

* Add missing indirect dep

* Update go.sum

* Delete kingpin_deleteme.go
2023-05-19 07:10:53 +00:00
Gavin Frazar 401ce30a46
skip rdpclient build in integration tests (#26492)
* add RDPCLIENT_SKIP_BUILD opt to makefile

* skip rdpclient build in go integration tests
2023-05-18 18:00:06 +00:00
Tiago Silva da8e894cdb
Add proxy peering to test plan (#26440)
Test plan misses testing access when using proxy peering. Nothing should
differ from normal reverse tunnel access but it makes some assumptions
that differ from the reverse tunnel.
2023-05-18 10:56:42 +00:00
Steven Martin 740262573d
bypass os-compatibility-test-bypass for md and mdx files (#26450)
* bypass os-compatibility-test-bypass for md and mdx files

* include ignore md and mdx files
2023-05-17 21:14:04 +00:00
Steven Martin 6d0e0f7239
skip md and mdx files for go linting (#26434) 2023-05-17 15:07:56 +00:00
Tiago Silva 537ddcce89
Ignore K8S dependencies until K8S API v0.27.2 is released (#26326)
This PR adds K8S dependencies to the dependendabot ignore list.

We can revert this PR after
https://github.com/gravitational/teleport/pull/25136 merges to master.

`sigs.k8s.io/controller-runtime` is holding the K8S deps update because
it does not support K8S API 0.27.1. `controller-runtime` will release a
new version once `k8s.io/api@v0.27.2` is released.
2023-05-16 12:42:47 +00:00
Mike Jensen 99d56c6bc1
Remove our replacement for Logrus (#26241)
* Remove our replacement for Logrus

Recently I attempted to update our Logrus fork.  However this comment pointed out that our changes have been merged upstream: https://github.com/gravitational/logrus/pull/12#issuecomment-1515303744

For that reason this removes the dependency on the fork.

* Remove ignored dependabot dependencies that are no longer replaced
2023-05-15 19:02:53 +00:00
Tiago Silva 32d8d5f489
Restore Kubernetes Integration tests (#25624)
* Restore Kubernetes Integration tests

This PR re-enables the Kubernetes integrations tests using a KinD
(Kubernetes in Docker) cluster.

New steps have been introduced to GitHub's Integrations (Non-Root)
Action that configure the KinD cluster using
[`helm/kind-action`](https://github.com/helm/kind-action) and do some
network configurations allowing the container where tests run to connect
to the KinD control plane.

This PR also fixes some of the tests and fixes a bug that affected
joining operations when the target service was a legacy kubernetes
proxy. Some improvements will be introduced in future patches to improve
the logic and reduce the time required for the tests to run.

Fixes #25539

* fix data race in spdystream dep

* address feedback

* remove docker installation

* fix test
2023-05-12 16:38:16 +00:00
Paul Gottschling 532c74f3e0
Update the docs test plan (#26015)
- Refresh out-of-date URLs for docs pages and `docs/config.json`
- Remove the step to add pages to the `/docs/older-versions` page, since
  we generate this automatically from `gravitational/docs/config.json`,
  and there is already a step to check that file
- Add a step to ensure that git submodule directories match those in
  `.gitmodules`. This prevents unexpected deployment issues.
- Add more clarity to the changelog step
- Add a step to check on the status of documentation for relevant
  features in the release
2023-05-11 18:47:21 +00:00
Andrew Burke bd000daa1f
Add GCP join method (#24493)
This change implements the GCP join method.
2023-05-10 23:56:59 +00:00
Mike Jensen 7e75aeff1d
Add CodeQL Config update requirement to preflight.md docs (#25672)
* Add CodeQL Config update requirement to preflight.md docs

* .github/workflows/codeql.yml: Update branch list to include v13
2023-05-05 15:37:40 +00:00
Paul Gottschling daa8361f60
Use the GHA base container for Lint (Docs) (#25173)
* Use the GHA base container for Lint (Docs)

This way, we can take advantage of the software the comes pre-installed
on the GHA `ubuntu-latest` container image. Otherwise, we need to find a
way to portably install Chromium on the `gravitational/docs` container
in order to run the Mermaid CLI. Currently, the docs engine exits with
an error during the "Lint (Docs)" job when attempting to build mermaid
diagrams due to not being able to locate Chromium.

For this change to work, the "Lint (Docs)" job checks out
`gravitational/docs`, removes the default git submodule configuration,
then adds a git submodule for the current `gravitational/teleport`
branch. From there, it can install dependencies via `yarn` and run our
CI scripts.

* s/GITHUB_HEAD_REF/GITHUB_SHA/

* Base the submodule branch source on the event type
2023-05-05 15:31:49 +00:00
Nic Klaassen c69e7a4f9e
docs: update CloudHSM docs (#25306)
Some edits I made to the CloudHSM docs while going through the v13 test
plan. The biggest change is an update to use the Client SDK 5, instead
of version 3. This has many benefits, you are not required to run a
client daemon, and it works with the kernel in FIPS mode (v3 doesn't).

I also added much more detail to the guide and added code samples where
I could, you should be able to go through this mostly without reading
the AWS docs, I link there for downloads or extra/optional information.
The AWS docs are very hard to follow.
2023-05-02 23:32:57 +00:00
Przemko Robakowski 75df7682e5
Add non-AD tests to test plan (#25266) 2023-04-27 18:49:22 +00:00
Tobiasz Heller 28e7e88f00
Fix dynamo TestEmitAuditEventForLargeEvents (#25256)
* Fix dynamo TestEmitAuditEventForLargeEvents

* extend test plan
2023-04-27 14:11:34 +00:00
Michael Wilson e4960017a8
Add SAML IdP to test plan. (#25150)
The SAML IdP feature has been added to the test plan.
2023-04-25 20:20:25 +00:00
Michael Wilson d115832d0e
Correct add application in test plan. (#24979)
Add Application has been changed to link directly to the documentation,
so the test plan has been updated accordingly.
2023-04-24 13:51:10 +00:00
Anton Miniailo 702efde420
Add IP Pinning section to testplan (#24870) 2023-04-21 13:40:17 +00:00
Alan Parra de8c4af08f
Remove U2F migration testplan instructions (#24923) 2023-04-20 19:52:46 +00:00
Marco André Dinis ec6085e949
Web TestPlan: add Discover wizard (#24808) 2023-04-20 09:07:33 +00:00
Yassine Bounekhla e56ef740ca
move locks section up (#24822) 2023-04-19 17:53:16 +00:00
Gabriel Corado a0e0ec77c0
chore(testplan): add sql server with pkinit and rds proxy (#24661) 2023-04-17 10:04:59 +00:00
STeve (Xin) Huang 0174f95741
TLS Routing behind LB test plan update (#24636) 2023-04-17 09:16:57 +00:00
Marek Smoliński a949c6d4ba
Oracle Testplan update (#24592) 2023-04-14 12:15:57 +00:00
Gavin Frazar 2446a46f1b
update test plan (#24499)
* add cross-account aws access to testplan

* add postgres cancel request to testplan
2023-04-13 21:28:46 +00:00
Nic Klaassen ab8d928794
add Login Rules and HSM to test plan (#24505) 2023-04-13 15:32:28 +00:00
Zac Bergquist 18df826a0d
Rename the web test plan issue template (#24381)
This was copied from the original test plan template, but the
name was never changed. As a result, the GitHub UI shows an
error: "There is a problem with this template"
2023-04-11 17:46:34 +00:00
Steven Martin eb149b7e26
Move docs builds down in GitHub Actions (#24382)
The docs build takes the longest so best to get a failure from the faster steps first (spelling, lint).
2023-04-11 15:20:27 +00:00
Paul Gottschling e667486c31
Support spellchecking in docs content (#23783)
* Support spellchecking in docs content

In gravitational/docs#261, we will add a script that checks the spelling
of each version of the docs. This change edits one version of the docs
content to support this, including:

- A cspell configuration file
- A new step in the GitHub Actions in the "Lint (Docs)" workflow that
  runs the spellcheck script we will add in `gravitational/docs`
- Fix mispellings so this passes the lint job. The mispellings are in a
  file that we generated automatically, but there are few enough of
  them, and we haven't merged the auto-generation script yet, that I
  think it makes sense to fix them in the generated file for now.

* Respond to PR feedback

- Remove misspellings from the ignore list
- Sort the ignore list (and format it via prettier)

* Use the new yarn spellcheck command

* Spelling fixes

* spell fixes and add words to cspell.json

---------

Co-authored-by: Steven Martin <steven@goteleport.com>
2023-04-08 01:25:30 +00:00
rosstimothy bd62bdc9a0
Update Performance section of Test Plan (#24161)
* Update Performance section of Test Plan

* add additional testing scenarios

* Update scaling section

* add random soak test
2023-04-07 19:53:31 +00:00
Mike Jensen e923525197
Disable build-macos and build-windows on PR (#24131)
* Disable `build-macos` and `build-windows` on PR

This commit removes the `build-macos` and `build-windows` from the PR flow, instead delegating to the bypass job.
These jobs still run at the merge queue point.

This of course means that failures in these two jobs may not be known until the merge queue.
There is an unequestionable disadvantage in not discovering those issues until that point, but this change is being recommended because:
* Currently MacOS builds are 31% of our Teleport Actions spend (~$3,500 / week)
* Windows builds are also significant at 13% (~$1,400 / week)
* There has been relatively few failures of these jobs (without other jobs also failing)

Although merge queue verification is not ideal because it's later in the process, it is considered the most critical in ensuring that `master` remains stable.

* Make sure all bypass jobs run on `ubuntu-latest`

In a couple cases this allows the jobs to be run on a cheaper instance.
2023-04-06 17:33:58 +00:00
Isaiah Becker-Mayer b7f0c08f2a
update Makefile to use cargo sparse protocol in all cargo commands (#23856)
* update Makefile to use cargo sparse protocol in all cargo commands

* Adds a cargo version print to build-macos for debugging

* uses the same setup steps for the rust and go toolchains as are being used in the similar enterprise workflow

* Uses the prepare-toolchain-mac composite action in the build-macos.yaml workflow.

* checkout e so that the prepare-toolchain-mac composite action is available

* Fetch the correct e ref for the composite action

* Attempts to checkout with submodules

* fetch-depth: 0

* seems that I can't get to teleport.e from the oss actions

* updates bypass

* testing ci

* testing ci

* testing for ci

* fixing indentation

* trying to get CI to actually run

* fixing indentation

* fixing lib/srv/desktop/rdp/rdpclient/client.go
2023-04-04 19:32:02 +00:00
Roman Tkachenko e71a4ec530
GHA: Update path filters to include workflow files and Makefile (#23940) 2023-04-04 02:20:59 +00:00
Andrew LeFevre 2210f49aca
Add agentless items to test plan (#23918)
* add agentless items to test plan

* add link to agentless docs
2023-04-03 21:30:26 +00:00
Steven Martin 99c5002eee
Add Flaky detector Bypass before merging (#23923)
* Add Flaky Bypass before merging

* edit to descriptions
2023-03-31 20:17:12 +00:00
Tiago Silva 5478cde0e6
Fix Flaky Tests Detector bypass on merge queue (#23896)
* Fix Flaky Tests Detector bypass on merge queue

* Do not run fld in the mq

---------

Co-authored-by: Roman Tkachenko <roman@goteleport.com>
2023-03-31 15:24:12 +00:00
Roman Tkachenko 654ea4c364
GHA: Add bypass workflow for flaky tests detector (#23851) 2023-03-30 20:09:13 +00:00