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

feat(replace-param): Fine-grained replacement parameter for Start Recording Mutator #1587

Merged

Conversation

aali309
Copy link
Contributor

@aali309 aali309 commented Jul 12, 2023

Welcome to Cryostat! 👋

Before contributing, make sure you have:

  • Read the contributing guidelines
  • Linked a relevant issue which this PR resolves
  • Linked any other relevant issues, PR's, or documentation, if any
  • Resolved all conflicts, if any
  • Rebased your branch PR on top of the latest upstream main branch
  • Attached at least one of the following labels to the PR: [chore, ci, docs, feat, fix, test]
  • Signed all commits using a GPG signature

To recreate commits with GPG signature git fetch upstream && git rebase --force --gpg-sign upstream/main


Fixes: #1492

Description of the change:

*This change changes the previous behavior: query parameter ?restart=[true|false] but is now deprecated, and a new replacement ?replace=[always,stopped,never] introduced. ?replace=always would behave the same as ?restart=true, ?replace=never would behave the same as ?restart=false, and ?replace=stopped would implement the quoted behavior. If replace is not specified then it should behave like ?replace=never, so that this also maintains consistency and compatibility with the existing ?restart=false default behavior.

Motivation for the change:

This change is helpful because it enhances the behavior of restart recording while keeping the same request format

How to manually test:

  1. Run CRYOSTAT_IMAGE=quay.io... sh smoketest.sh...
  2. bash repeated-unit-tests.bash 1 RecordingTargetHelperTest (for unit testing)

@aali309 aali309 requested a review from tthvo July 12, 2023 19:12
@aali309 aali309 self-assigned this Jul 12, 2023
@aali309 aali309 added feat New feature or request and removed fix labels Jul 12, 2023
@aali309 aali309 changed the title task(replace-param)Fine-grained replacement parameter for Start Recording Mutator feat(replace-param)Fine-grained replacement parameter for Start Recording Mutator Jul 12, 2023
@aali309 aali309 changed the title feat(replace-param)Fine-grained replacement parameter for Start Recording Mutator feat(replace-param): Fine-grained replacement parameter for Start Recording Mutator Jul 12, 2023
@aali309 aali309 force-pushed the replace_param_startRecording_mutator branch from 5c6fc2e to a89f71e Compare July 13, 2023 19:58
@aali309 aali309 marked this pull request as ready for review July 13, 2023 22:44
@github-actions
Copy link
Contributor

Test image available:

$ CRYOSTAT_IMAGE=ghcr.io/cryostatio/cryostat:pr-1587-f1eadeba8ce88e2a63c417ab90a133da17cf6fa9-linux-arm64 sh smoketest.sh

@github-actions
Copy link
Contributor

Test image available:

$ CRYOSTAT_IMAGE=ghcr.io/cryostatio/cryostat:pr-1587-f1eadeba8ce88e2a63c417ab90a133da17cf6fa9-linux-amd64 sh smoketest.sh

@tthvo tthvo requested a review from maxcao13 July 17, 2023 20:05
@aali309 aali309 force-pushed the replace_param_startRecording_mutator branch from a1c614c to 380d15d Compare July 19, 2023 15:02
@github-actions
Copy link
Contributor

Test image available:

$ CRYOSTAT_IMAGE=ghcr.io/cryostatio/cryostat:pr-1587-1bdfb65d61a0af7e1b788a12ed9b0cb968410c3f-linux-arm64 sh smoketest.sh

@github-actions
Copy link
Contributor

Test image available:

$ CRYOSTAT_IMAGE=ghcr.io/cryostatio/cryostat:pr-1587-1bdfb65d61a0af7e1b788a12ed9b0cb968410c3f-linux-amd64 sh smoketest.sh

@github-actions
Copy link
Contributor

Test image available:

$ CRYOSTAT_IMAGE=ghcr.io/cryostatio/cryostat:pr-1587-96dc6452e2fb36dcba3f9a0617a1b1a4bf3a5e6c-linux-arm64 sh smoketest.sh

@github-actions
Copy link
Contributor

Test image available:

$ CRYOSTAT_IMAGE=ghcr.io/cryostatio/cryostat:pr-1587-96dc6452e2fb36dcba3f9a0617a1b1a4bf3a5e6c-linux-amd64 sh smoketest.sh

@github-actions
Copy link
Contributor

Test image available:

$ CRYOSTAT_IMAGE=ghcr.io/cryostatio/cryostat:pr-1587-7cb9a7e7f82a87e839c096fa3838c788bd9b95ae-linux-amd64 sh smoketest.sh

@github-actions
Copy link
Contributor

Test image available:

$ CRYOSTAT_IMAGE=ghcr.io/cryostatio/cryostat:pr-1587-7cb9a7e7f82a87e839c096fa3838c788bd9b95ae-linux-arm64 sh smoketest.sh

@aali309 aali309 force-pushed the replace_param_startRecording_mutator branch from 3f6ccf5 to e0bc84a Compare August 16, 2023 13:18
@github-actions
Copy link
Contributor

Test image available:

$ CRYOSTAT_IMAGE=ghcr.io/cryostatio/cryostat:pr-1587-e0bc84a69b7b45e3ea8e0a173dcae2fc744eb588-linux-amd64 sh smoketest.sh

@github-actions
Copy link
Contributor

Test image available:

$ CRYOSTAT_IMAGE=ghcr.io/cryostatio/cryostat:pr-1587-e0bc84a69b7b45e3ea8e0a173dcae2fc744eb588-linux-arm64 sh smoketest.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request safe-to-test
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[Task] Fine-grained replacement parameter for Start Recording Mutator
4 participants