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

Prow integration test: smoke testing tide #23025

Closed
chaodaiG opened this issue Jul 26, 2021 · 17 comments
Closed

Prow integration test: smoke testing tide #23025

chaodaiG opened this issue Jul 26, 2021 · 17 comments
Assignees
Labels
area/prow Issues or PRs related to prow kind/feature Categorizes issue or PR as related to a new feature. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. sig/testing Categorizes an issue or PR as relevant to SIG Testing.

Comments

@chaodaiG
Copy link
Contributor

What would you like to be added:

Prow integration test deploys prow components in kind cluster, which should be able to be used for smoke testing tide, by deploying tide in kind cluster and checking that tide merges a PR on fake github server.

Why is this needed:

https://kubernetes.slack.com/archives/C09QZ4DQB/p1627313972056200

More Details

Changes Required

@chaodaiG chaodaiG added the kind/feature Categorizes issue or PR as related to a new feature. label Jul 26, 2021
@chaodaiG
Copy link
Contributor Author

/area prow
/help
cc @YuviGold

@k8s-ci-robot k8s-ci-robot added area/prow Issues or PRs related to prow help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. labels Jul 26, 2021
@YuviGold
Copy link
Contributor

Seems like this was already resolved as part of #22582

@chaodaiG
Copy link
Contributor Author

Seems like this was already resolved as part of #22582

That's correct!

@fgimenez
Copy link
Contributor

Seems like this was already resolved as part of #22582

In #22582 tide is deployed to prevent deck from complaining but nothing else, I think that the check for tide merging a PR on fake github server is missing, is that correct?

@YuviGold
Copy link
Contributor

Seems like this was already resolved as part of #22582

In #22582 tide is deployed to prevent deck from complaining but nothing else, I think that the check for tide merging a PR on fake github server is missing, is that correct?

Yes, that's correct. We should have tide integration tests as well.

@fgimenez
Copy link
Contributor

Yes, that's correct. We should have tide integration tests as well.

Cool thx! @YuviGold I'd love to give it a try, is it ok if I pick it up, or do you want to work on it yourself?

@YuviGold
Copy link
Contributor

@fgimenez Let me give it a shot. It will help me understand some internals :)

@fgimenez
Copy link
Contributor

/assign @YuviGold
/remove-help

@fgimenez Let me give it a shot. It will help me understand some internals :)

Absolutely! feel free to ping if you have any questions, will try to help if I can :)

@k8s-ci-robot k8s-ci-robot removed the help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. label Jul 28, 2021
@spiffxp
Copy link
Member

spiffxp commented Aug 9, 2021

/sig testing

@k8s-ci-robot k8s-ci-robot added the sig/testing Categorizes an issue or PR as relevant to SIG Testing. label Aug 9, 2021
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle stale
  • Mark this issue or PR as rotten with /lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Nov 7, 2021
@YuviGold
Copy link
Contributor

YuviGold commented Nov 11, 2021

Hey guys,
I started to work on having an integration test to verify tide, but unfortunately got stuck when search queries from tide returned empty from fakeghserver. (although debug prints showed data from fakeghserver is sent back as expected)
The big issues here is the first time the GitHub v4 API (GraphQL) is being tested as part of the integration tests. if someone wanna give a hand or take it from here is more than welcome
WIP can be seen here master...YuviGold:tide-smoke-test

@chaodaiG WDYT maybe we can merge part of it so not all the work will go to waste even if it's not being used?
for example, having the functionality to create pull requests as part of the fakeghserver and also configuring tide with correct deployment variables in order to create tide queries

@chaodaiG
Copy link
Contributor Author

I think it's a good idea to merge the portion that can be used, please make sure leave good comments on this part and link here

YuviGold added a commit to YuviGold/test-infra that referenced this issue Nov 12, 2021
Part of kubernetes#23025 solution

- Add a new `tide_test.go` integration test module. Currently it just creates
a dummy PR and a prowjob that matches it (presubmit type) in a org/repo that tide queries.
Tide asks the `fakeghserver` for its status via GitHubv4 API using the `SearchQuery`.
- make `tide.searchQuery` public to be used by the integration
`fakeghserver` module.
YuviGold added a commit to YuviGold/test-infra that referenced this issue Nov 12, 2021
Part of kubernetes#23025 solution

- Add a new `tide_test.go` integration test module. Currently it just creates
a dummy PR and a prowjob that matches it (presubmit type) in a org/repo that tide queries.
Tide asks the `fakeghserver` for its status via GitHubv4 API using the `SearchQuery`.
- make `tide.searchQuery` public to be used by the integration
`fakeghserver` module.
@chaodaiG
Copy link
Contributor Author

/remove-lifecycle stale

@k8s-ci-robot k8s-ci-robot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Nov 12, 2021
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle stale
  • Mark this issue or PR as rotten with /lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Feb 10, 2022
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten

@k8s-ci-robot k8s-ci-robot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Mar 12, 2022
@k8s-ci-robot k8s-ci-robot added the lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. label Mar 12, 2022
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Reopen this issue or PR with /reopen
  • Mark this issue or PR as fresh with /remove-lifecycle rotten
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/close

@k8s-ci-robot
Copy link
Contributor

@k8s-triage-robot: Closing this issue.

In response to this:

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Reopen this issue or PR with /reopen
  • Mark this issue or PR as fresh with /remove-lifecycle rotten
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/prow Issues or PRs related to prow kind/feature Categorizes issue or PR as related to a new feature. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. sig/testing Categorizes an issue or PR as relevant to SIG Testing.
Projects
None yet
Development

No branches or pull requests

6 participants