Skip to content

Conversation

@klapkov
Copy link
Contributor

@klapkov klapkov commented Mar 21, 2023

Follow up to this PR: #675. I deleted that fork by mistake. Anyhow I have added template tests for the rep, auctioneer and bbs. We only test the new introduced props to the locket client. I imagine that these tests can be filled with all the needed cases in the future.

@ameowlia
Copy link
Member

Hi @klapkov thank you for adding this with tests!! 👏

In slack you asked:

I have not made any changes to the test scripts, since I wanted your feedback on where to put these tests. Let me know if I should add them as part of some of the CI scripts

I looked a routing-release as an example. I suggest:

  1. Make a script called template-tests, probably identical to this one.
  2. Call the script so that template tests are run every time the docker-test-setup.sh script is run. Here is the similar code in routing-release, except there it duplicates the code from the template-tests script.

@klapkov
Copy link
Contributor Author

klapkov commented Apr 3, 2023

I have added another file called run-template-tests-in-docker which we execute in the docker shell script, right before we start the standard docker image. In this file we start a docker container with the ruby:3.0 image. I did this since we cannot execute the test in the other container, since there is not ruby on those images. @ameowlia Please let me know if this way is appropriate.

@mariash
Copy link
Member

mariash commented Apr 3, 2023

@klapkov this change looks good to me. Do you plan to have PRs for components separately to use these properties? It would be preferable to merge everything at the same time, so we don't have unused properties in the release.

Copy link
Member

@mariash mariash left a comment

Choose a reason for hiding this comment

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

This looks consistent with routing release

@klapkov
Copy link
Contributor Author

klapkov commented Apr 4, 2023

#722

exit 1
fi

./scripts/run-template-tests-in-docker.sh
Copy link
Contributor

@geofffranks geofffranks Apr 18, 2023

Choose a reason for hiding this comment

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

Traditionally the docker-shell script has been for just getting into a shell to do various one-off tests, and not actually test anything. Can you remove this call? If we want something to do all the testing, maybe instead add a run-all-tests-in-docker script that calls both run-template-tests-in-docker.sh + docker-test scripts.

Copy link
Contributor Author

@klapkov klapkov Apr 19, 2023

Choose a reason for hiding this comment

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

Sounds reasonable, please check the new commit.

@geofffranks
Copy link
Contributor

Will merge once concourse goes green. Feel free to bump the locket submodule on this PR as well, now that it's merged

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Apr 19, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

@winkingturtle-vmw winkingturtle-vmw merged commit 9099c19 into cloudfoundry:develop Apr 24, 2023
winkingturtle-vmw pushed a commit that referenced this pull request Apr 24, 2023
Context: #722

Submodule src/code.cloudfoundry.org/locket 5e8522d97..6cd541649:
  > go fmt
  > Add keepalive timeout
PlamenDoychev added a commit to PlamenDoychev/community that referenced this pull request Mar 9, 2024
[DIEGO-RELEASE] Add locket client keepalive time and timeout to jobs: cloudfoundry/diego-release#722
[DIEGO-RELEASE] Make max_containers prop configurable: cloudfoundry/diego-release#876
[BBS] Add request metrics for BBS - still open: cloudfoundry/bbs#80
[BBS] Use scheduling info instead of the whole desiredLRP: cloudfoundry/bbs#79
[BBS] Add routing info endpoint: 
cloudfoundry/bbs#66
[BBS] Remove cpu_weight limit: 
cloudfoundry/bbs#81
[EXECUTOR] Improve error handling on process start - still open: cloudfoundry/executor#91
[LOCKET]  Add a keepalive timeout on the locket client: cloudfoundry/locket#12
[GROOTFS] UsedVolumesSize and UsedStoreInBytes metrics: cloudfoundry/grootfs#155
[ROUTE-EMITTER] Use routing info bbs endpoint when syncing: cloudfoundry/route-emitter#23
[ROUTE-EMITTER]  Use routing_info for desired_lrp's when there are missing actual_lrp's: 
cloudfoundry/route-emitter#26
[SILK-RELEASE] Deduplicate Iptables Rules with Dynamic ASG's: cloudfoundry/silk-release#101
[SILK-RELEASE] Make container_metadata_file_check_timeout on silk-shutdown configurable: 
cloudfoundry/silk-release#111
ameowlia pushed a commit to cloudfoundry/community that referenced this pull request Mar 12, 2024
[DIEGO-RELEASE] Add locket client keepalive time and timeout to jobs: cloudfoundry/diego-release#722
[DIEGO-RELEASE] Make max_containers prop configurable: cloudfoundry/diego-release#876
[BBS] Add request metrics for BBS - still open: cloudfoundry/bbs#80
[BBS] Use scheduling info instead of the whole desiredLRP: cloudfoundry/bbs#79
[BBS] Add routing info endpoint:
cloudfoundry/bbs#66
[BBS] Remove cpu_weight limit:
cloudfoundry/bbs#81
[EXECUTOR] Improve error handling on process start - still open: cloudfoundry/executor#91
[LOCKET]  Add a keepalive timeout on the locket client: cloudfoundry/locket#12
[GROOTFS] UsedVolumesSize and UsedStoreInBytes metrics: cloudfoundry/grootfs#155
[ROUTE-EMITTER] Use routing info bbs endpoint when syncing: cloudfoundry/route-emitter#23
[ROUTE-EMITTER]  Use routing_info for desired_lrp's when there are missing actual_lrp's:
cloudfoundry/route-emitter#26
[SILK-RELEASE] Deduplicate Iptables Rules with Dynamic ASG's: cloudfoundry/silk-release#101
[SILK-RELEASE] Make container_metadata_file_check_timeout on silk-shutdown configurable:
cloudfoundry/silk-release#111

wip
ameowlia pushed a commit to cloudfoundry/community that referenced this pull request Mar 12, 2024
[DIEGO-RELEASE] Add locket client keepalive time and timeout to jobs: cloudfoundry/diego-release#722
[DIEGO-RELEASE] Make max_containers prop configurable: cloudfoundry/diego-release#876
[BBS] Add request metrics for BBS - still open: cloudfoundry/bbs#80
[BBS] Use scheduling info instead of the whole desiredLRP: cloudfoundry/bbs#79
[BBS] Add routing info endpoint:
cloudfoundry/bbs#66
[BBS] Remove cpu_weight limit:
cloudfoundry/bbs#81
[EXECUTOR] Improve error handling on process start - still open: cloudfoundry/executor#91
[LOCKET]  Add a keepalive timeout on the locket client: cloudfoundry/locket#12
[GROOTFS] UsedVolumesSize and UsedStoreInBytes metrics: cloudfoundry/grootfs#155
[ROUTE-EMITTER] Use routing info bbs endpoint when syncing: cloudfoundry/route-emitter#23
[ROUTE-EMITTER]  Use routing_info for desired_lrp's when there are missing actual_lrp's:
cloudfoundry/route-emitter#26
[SILK-RELEASE] Deduplicate Iptables Rules with Dynamic ASG's: cloudfoundry/silk-release#101
[SILK-RELEASE] Make container_metadata_file_check_timeout on silk-shutdown configurable:
cloudfoundry/silk-release#111

wip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants