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

Removing SAMLPluginTest #652

Merged
merged 1 commit into from
Apr 26, 2021
Merged

Removing SAMLPluginTest #652

merged 1 commit into from
Apr 26, 2021

Conversation

jglick
Copy link
Member

@jglick jglick commented Mar 10, 2021

As of jenkinsci/saml-plugin#93 in 2.0.1, the SAML plugin test here are redundant—basically the same coverage, just slower and harder to run, and apparently ignored since jenkinsci/saml-plugin#90 introduced a regression which did not block the plugin release and was not communicated to the plugin developer after the fact either.

@jglick jglick marked this pull request as ready for review March 12, 2021 15:32
@jglick
Copy link
Member Author

jglick commented Apr 16, 2021

@kuisathaverat any opinion?

Copy link
Contributor

@kuisathaverat kuisathaverat left a comment

Choose a reason for hiding this comment

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

Go a head, the same test is running on the Plugin

@jglick jglick requested review from timja and jtnord April 19, 2021 16:06
@jtnord
Copy link
Member

jtnord commented Apr 19, 2021

The test in the plugin is for a different audience. The ATH is used to ensure no regressions when releasing a security or LTS version. Plugins tests at not re-run at this point.

Unclear why the test failure was not communicated, possibly due to the current sea of red, possibly also because no one is looking at the master job output anymore rather just running the ATH locally?

@jglick
Copy link
Member Author

jglick commented Apr 19, 2021

no regressions when releasing a security or LTS version. Plugins tests at not re-run at this point.

Currently true, at least in OSS; CloudBees would run plugin tests against new LTS versions via PCT, at least in the case of this plugin. Maybe the LTS checklist can be extended to include PCT? Someone would need to set up a job for it, and decide which plugins get covered.

possibly due to the current sea of red, possibly also because no one is looking at the master job output anymore

Yeah I suspect no one is paying much attention to the numerous known failures, much less flakes. (Other than SmokeTests, run by the jenkinsci/jenkins build.)

@timja
Copy link
Member

timja commented Apr 19, 2021

Currently true, at least in OSS; CloudBees would run plugin tests against new LTS versions via PCT, at least in the case of this plugin. Maybe the LTS checklist can be extended to include PCT? Someone would need to set up a job for it, and decide which plugins get covered.

Bom is done for new lines at least currently

@timja
Copy link
Member

timja commented Apr 19, 2021

Yeah I suspect no one is paying much attention to the numerous known failures, much less flakes. (Other than SmokeTests, run by the jenkinsci/jenkins build.)

No there's too many failures

@kuisathaverat
Copy link
Contributor

I personally forget to run the PCT many times. I really don’t like it, every time I have to run it my scripts did not run and it is a pain to review the changes and run it. For that reason I preferred to have all the integration tests on the plugins and run them on each iteration rather than run the PCT.
Other option is make the PCT run on merges to the main branch and send the proper notifications, but I dunno if it is factible on Jenkins.io

@jglick
Copy link
Member Author

jglick commented Apr 19, 2021

Bom is done for new lines at least currently

Right, but this only matters for plugins in the bom, which saml is not.

I preferred to have all the integration tests on the plugins and run them on each iteration rather than run the PCT.

Are you talking about PCT or ATH?

To be clear, the regression I found was caused by a saml plugin change and had nothing to do with the version of Jenkins core or other plugins. Thus, it would have been caught by the PR build had the test I created been present before that change.

IMO the ATH is useful on occasion for verifying true GUI behaviors. The test being deleted here does not really match that description.

@amuniz
Copy link
Member

amuniz commented Apr 22, 2021

We have an internal test for CloudBees SSO using SAML which relies on the page objects and docker fixture being removed here. Could we keep them?

No objection on removing the test itself.

@jglick
Copy link
Member Author

jglick commented Apr 22, 2021

Could we keep them?

Why not just copy those classes to your internal tests if you are using them?

@amuniz
Copy link
Member

amuniz commented Apr 22, 2021

Ok. Fine.

@jglick
Copy link
Member Author

jglick commented Apr 26, 2021

an internal test for CloudBees SSO using SAML which relies on the page objects and docker fixture being removed here

Resolved, FTR

@jtnord jtnord merged commit fe9bdb4 into jenkinsci:master Apr 26, 2021
@jglick jglick deleted the saml branch April 26, 2021 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants