Skip to content

Conversation

saeedfazal
Copy link
Contributor

@saeedfazal saeedfazal commented Nov 22, 2022

What changed?
Restructure/reorganise test data file for better maintainability.

Why was this change made?

  • Now more test are going to use varied template (GitopsTemplates). It is difficult to maintain all yamls under one location.
  • Reorganising data files make better file naming convention and clear differentiation of purpose.
  • This is the initial step before porting existing tests to start using GitOpsTemplate.
  • Fixed leaf cluster application violation flaky tests

How was this change implemented?

  • The new folder hierarchy for testdata files looks like this

Screenshot 2022-11-22 at 17 08 42

How did you validate the change?
https://github.com/weaveworks/weave-gitops-enterprise/actions/runs/3531499643

@saeedfazal saeedfazal added exclude from release notes Use this label to exclude a PR from the release notes team/pesto labels Nov 22, 2022
@saeedfazal saeedfazal self-assigned this Nov 22, 2022
@saeedfazal saeedfazal force-pushed the organize-testdata-yamls branch from ce319ca to e465306 Compare November 23, 2022 11:05
@saeedfazal saeedfazal requested a review from foot November 23, 2022 16:53
@saeedfazal saeedfazal force-pushed the organize-testdata-yamls branch 4 times, most recently from 1b2bf9f to 8c7189a Compare November 28, 2022 10:14
@saeedfazal saeedfazal force-pushed the organize-testdata-yamls branch from 8c7189a to d97d552 Compare November 29, 2022 10:15
@@ -225,7 +225,7 @@ jobs:
path: cmd/gitops/gitops-${{matrix.os}}
retention-days: 1
- name: Configure AWS Credentials
if: ${{ (github.ref_name == 'main') && (github.event_name == 'push') }}
if: ${{ (github.ref_name == 'main') && (github.event_name == 'schedule') }}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only need AWS creds for nightlies?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, only nightlies are pushing the gitops binary to S3 once a day..

Copy link
Collaborator

@foot foot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All makes sense! ✨ 🧹

@saeedfazal saeedfazal merged commit 71cb44b into main Nov 29, 2022
@saeedfazal saeedfazal deleted the organize-testdata-yamls branch November 29, 2022 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exclude from release notes Use this label to exclude a PR from the release notes team/pesto
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants