René's URL Explorer Experiment


Title: Flaky test failure in TestFlatSys with current slycot · Issue #820 · python-control/python-control · GitHub

Open Graph Title: Flaky test failure in TestFlatSys with current slycot · Issue #820 · python-control/python-control

X Title: Flaky test failure in TestFlatSys with current slycot · Issue #820 · python-control/python-control

Description: From the Slycot CI on a few runs of the test matrix, but not all: 2022-12-21T09:54:30.8524100Z =================================== FAILURES =================================== 2022-12-21T09:54:30.8524781Z ______ TestFlatSys.test_kinemati...

Open Graph Description: From the Slycot CI on a few runs of the test matrix, but not all: 2022-12-21T09:54:30.8524100Z =================================== FAILURES =================================== 2022-12-21T09:54:30.8...

X Description: From the Slycot CI on a few runs of the test matrix, but not all: 2022-12-21T09:54:30.8524100Z =================================== FAILURES =================================== 2022-12-21T09:54:30.8...

Opengraph URL: https://github.com/python-control/python-control/issues/820

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Flaky test failure in TestFlatSys with current slycot","articleBody":"From the Slycot CI on a few runs of the test matrix, but not all:\r\n\r\n```python\r\n2022-12-21T09:54:30.8524100Z =================================== FAILURES ===================================\r\n2022-12-21T09:54:30.8524781Z ______ TestFlatSys.test_kinematic_car_ocp[basis6-None-constraints6-None] _______\r\n2022-12-21T09:54:30.8525337Z \r\n2022-12-21T09:54:30.8525622Z self = \u003ccontrol.tests.flatsys_test.TestFlatSys object at 0x7ffa1993a430\u003e\r\n2022-12-21T09:54:30.8526148Z vehicle_flat = \u003cFlatSystem:sys[3472]:['v', 'delta']-\u003e['x', 'y', 'theta']\u003e\r\n2022-12-21T09:54:30.8526560Z basis = \u003cBSplineFamily: nvars=None, degree=[8], smoothness=[7]\u003e, guess = None\r\n2022-12-21T09:54:30.8527014Z constraints = ([8, -0.1], [12, 0.1]), method = None\r\n2022-12-21T09:54:30.8527252Z \r\n2022-12-21T09:54:30.8527434Z     @pytest.mark.parametrize(\r\n2022-12-21T09:54:30.8527773Z         \"basis, guess, constraints, method\", [\r\n2022-12-21T09:54:30.8528179Z         (fs.PolyFamily(8, T=10), 'prev', None, None),\r\n2022-12-21T09:54:30.8528603Z         (fs.BezierFamily(8, T=10), 'linear', None, None),\r\n2022-12-21T09:54:30.8528964Z         (fs.BSplineFamily([0, 10], 8), None, None, None),\r\n2022-12-21T09:54:30.8529417Z         (fs.BSplineFamily([0, 10], 8), 'prev', None, 'trust-constr'),\r\n2022-12-21T09:54:30.8529871Z         (fs.BSplineFamily([0, 10], [6, 8], vars=2), 'prev', None, None),\r\n2022-12-21T09:54:30.8530326Z         (fs.BSplineFamily([0, 5, 10], 5), 'linear', None, 'slsqp'),\r\n2022-12-21T09:54:30.8530807Z         (fs.BSplineFamily([0, 10], 8), None, ([8, -0.1], [12, 0.1]), None),\r\n2022-12-21T09:54:30.8531174Z         (fs.BSplineFamily([0, 5, 10], 5, 3), None, None, None),\r\n2022-12-21T09:54:30.8531474Z     ])\r\n2022-12-21T09:54:30.8531750Z     def test_kinematic_car_ocp(\r\n2022-12-21T09:54:30.8532108Z             self, vehicle_flat, basis, guess, constraints, method):\r\n2022-12-21T09:54:30.8532410Z     \r\n2022-12-21T09:54:30.8532709Z         # Define the endpoints of the trajectory\r\n2022-12-21T09:54:30.8533084Z         x0 = [0., -2., 0.]; u0 = [10., 0.]\r\n2022-12-21T09:54:30.8533434Z         xf = [40., 2., 0.]; uf = [10., 0.]\r\n2022-12-21T09:54:30.8534029Z         Tf = 4\r\n2022-12-21T09:54:30.8534671Z         timepts = np.linspace(0, Tf, 10)\r\n2022-12-21T09:54:30.8535730Z     \r\n2022-12-21T09:54:30.8535966Z         # Find trajectory between initial and final conditions\r\n2022-12-21T09:54:30.8536225Z         traj_p2p = fs.point_to_point(\r\n2022-12-21T09:54:30.8536495Z             vehicle_flat, Tf, x0, u0, xf, uf, basis=basis)\r\n2022-12-21T09:54:30.8536704Z     \r\n2022-12-21T09:54:30.8537049Z         # Verify that the trajectory computation is correct\r\n2022-12-21T09:54:30.8537317Z         x, u = traj_p2p.eval(timepts)\r\n2022-12-21T09:54:30.8537589Z         np.testing.assert_array_almost_equal(x0, x[:, 0])\r\n2022-12-21T09:54:30.8537872Z         np.testing.assert_array_almost_equal(u0, u[:, 0])\r\n2022-12-21T09:54:30.8538226Z         np.testing.assert_array_almost_equal(xf, x[:, -1])\r\n2022-12-21T09:54:30.8538573Z         np.testing.assert_array_almost_equal(uf, u[:, -1])\r\n2022-12-21T09:54:30.8538780Z     \r\n2022-12-21T09:54:30.8538940Z         #\r\n2022-12-21T09:54:30.8539210Z         # Re-solve as optimal control problem\r\n2022-12-21T09:54:30.8539414Z         #\r\n2022-12-21T09:54:30.8539569Z     \r\n2022-12-21T09:54:30.8539811Z         # Define the cost function (mainly penalize steering angle)\r\n2022-12-21T09:54:30.8540092Z         traj_cost = opt.quadratic_cost(\r\n2022-12-21T09:54:30.8540358Z             vehicle_flat, None, np.diag([0.1, 10]), x0=xf, u0=uf)\r\n2022-12-21T09:54:30.8540576Z     \r\n2022-12-21T09:54:30.8540794Z         # Set terminal cost to bring us close to xf\r\n2022-12-21T09:54:30.8541051Z         terminal_cost = opt.quadratic_cost(\r\n2022-12-21T09:54:30.8541320Z             vehicle_flat, 1e3 * np.eye(3), None, x0=xf)\r\n2022-12-21T09:54:30.8541535Z     \r\n2022-12-21T09:54:30.8541749Z         # Implement terminal constraints if specified\r\n2022-12-21T09:54:30.8541990Z         if constraints:\r\n2022-12-21T09:54:30.8542241Z             input_constraints = opt.input_range_constraint(\r\n2022-12-21T09:54:30.8542498Z                 vehicle_flat, *constraints)\r\n2022-12-21T09:54:30.8542706Z         else:\r\n2022-12-21T09:54:30.8542905Z             input_constraints = None\r\n2022-12-21T09:54:30.8543093Z     \r\n2022-12-21T09:54:30.8543331Z         # Use a straight line as an initial guess for the trajectory\r\n2022-12-21T09:54:30.8543624Z         if guess == 'prev':\r\n2022-12-21T09:54:30.8543934Z             initial_guess = traj_p2p.eval(timepts)[0][0:2]\r\n2022-12-21T09:54:30.8544221Z         elif guess == 'linear':\r\n2022-12-21T09:54:30.8544450Z             initial_guess = np.array(\r\n2022-12-21T09:54:30.8544774Z                 [x0[i] + (xf[i] - x0[i]) * timepts/Tf for i in (0, 1)])\r\n2022-12-21T09:54:30.8545004Z         else:\r\n2022-12-21T09:54:30.8545194Z             initial_guess = None\r\n2022-12-21T09:54:30.8545381Z     \r\n2022-12-21T09:54:30.8545564Z         # Solve the optimal trajectory\r\n2022-12-21T09:54:30.8545801Z         traj_ocp = fs.solve_flat_ocp(\r\n2022-12-21T09:54:30.8546040Z             vehicle_flat, timepts, x0, u0,\r\n2022-12-21T09:54:30.8546301Z             cost=traj_cost, constraints=input_constraints,\r\n2022-12-21T09:54:30.8546584Z             terminal_cost=terminal_cost, basis=basis,\r\n2022-12-21T09:54:30.8546840Z             initial_guess=initial_guess,\r\n2022-12-21T09:54:30.8547137Z             minimize_kwargs={'method': method},\r\n2022-12-21T09:54:30.8547353Z         )\r\n2022-12-21T09:54:30.8547556Z         xd, ud = traj_ocp.eval(timepts)\r\n2022-12-21T09:54:30.8547779Z         if not traj_ocp.success:\r\n2022-12-21T09:54:30.8548067Z             # If unsuccessful, make sure the error is just about precision\r\n2022-12-21T09:54:30.8548428Z \u003e           assert re.match(\".*precision loss.*\", traj_ocp.message) is not None\r\n2022-12-21T09:54:30.8548730Z E           AssertionError: assert None is not None\r\n2022-12-21T09:54:30.8549178Z E            +  where None = \u003cfunction match at 0x7ffa22446dc0\u003e('.*precision loss.*', 'Iteration limit reached')\r\n2022-12-21T09:54:30.8549525Z E            +    where \u003cfunction match at 0x7ffa22446dc0\u003e = re.match\r\n2022-12-21T09:54:30.8550032Z E            +    and   'Iteration limit reached' = \u003ccontrol.flatsys.systraj.SystemTrajectory object at 0x7ffa1894ee80\u003e.message\r\n2022-12-21T09:54:30.8550299Z \r\n2022-12-21T09:54:30.8550420Z control/tests/flatsys_test.py:206: AssertionError\r\n```","author":{"url":"https://github.com/bnavigator","@type":"Person","name":"bnavigator"},"datePublished":"2022-12-21T10:31:22.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/820/python-control/issues/820"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:dbe6beb2-4cb5-eb88-72bd-d0b1672e7afc
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCCBE:2B276C:2BA8ACB:3B4DEDB:6979B8C4
html-safe-noncea94193938d87ef560423f13fca81a765a9e5e42c7056c6a199cdb52ab4129836
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQ0JFOjJCMjc2QzoyQkE4QUNCOjNCNERFREI6Njk3OUI4QzQiLCJ2aXNpdG9yX2lkIjoiNjQ0NDI1OTYzMzgwNzM0MTc2NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac7c510da3187070a0d699ff5bea0b65ace4a444ed1d7be368bcff9b554f75606a
hovercard-subject-tagissue:1506076946
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-control/python-control/820/issue_layout
twitter:imagehttps://opengraph.githubassets.com/2abd11890eebc493c0a1c78dea8a138b644be82761321a7ea27ee9496fbad6cd/python-control/python-control/issues/820
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/2abd11890eebc493c0a1c78dea8a138b644be82761321a7ea27ee9496fbad6cd/python-control/python-control/issues/820
og:image:altFrom the Slycot CI on a few runs of the test matrix, but not all: 2022-12-21T09:54:30.8524100Z =================================== FAILURES =================================== 2022-12-21T09:54:30.8...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebnavigator
hostnamegithub.com
expected-hostnamegithub.com
Nonec049b65ec7e54cbf2521f5a560b6527714c612b0bd169188e2ea6e16f83bd5f4
turbo-cache-controlno-preview
go-importgithub.com/python-control/python-control git https://github.com/python-control/python-control.git
octolytics-dimension-user_id2285872
octolytics-dimension-user_loginpython-control
octolytics-dimension-repository_id22791752
octolytics-dimension-repository_nwopython-control/python-control
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id22791752
octolytics-dimension-repository_network_root_nwopython-control/python-control
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release87b137883e35e2766c3d0f6a257c4044f6390b83
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python-control/python-control/issues/820#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-control%2Fpython-control%2Fissues%2F820
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-control%2Fpython-control%2Fissues%2F820
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python-control%2Fpython-control
Reloadhttps://github.com/python-control/python-control/issues/820
Reloadhttps://github.com/python-control/python-control/issues/820
Reloadhttps://github.com/python-control/python-control/issues/820
python-control https://github.com/python-control
python-controlhttps://github.com/python-control/python-control
Notifications https://github.com/login?return_to=%2Fpython-control%2Fpython-control
Fork 447 https://github.com/login?return_to=%2Fpython-control%2Fpython-control
Star 2k https://github.com/login?return_to=%2Fpython-control%2Fpython-control
Code https://github.com/python-control/python-control
Issues 87 https://github.com/python-control/python-control/issues
Pull requests 8 https://github.com/python-control/python-control/pulls
Discussions https://github.com/python-control/python-control/discussions
Actions https://github.com/python-control/python-control/actions
Projects 0 https://github.com/python-control/python-control/projects
Wiki https://github.com/python-control/python-control/wiki
Security 0 https://github.com/python-control/python-control/security
Insights https://github.com/python-control/python-control/pulse
Code https://github.com/python-control/python-control
Issues https://github.com/python-control/python-control/issues
Pull requests https://github.com/python-control/python-control/pulls
Discussions https://github.com/python-control/python-control/discussions
Actions https://github.com/python-control/python-control/actions
Projects https://github.com/python-control/python-control/projects
Wiki https://github.com/python-control/python-control/wiki
Security https://github.com/python-control/python-control/security
Insights https://github.com/python-control/python-control/pulse
New issuehttps://github.com/login?return_to=https://github.com/python-control/python-control/issues/820
New issuehttps://github.com/login?return_to=https://github.com/python-control/python-control/issues/820
#821https://github.com/python-control/python-control/pull/821
Flaky test failure in TestFlatSys with current slycothttps://github.com/python-control/python-control/issues/820#top
#821https://github.com/python-control/python-control/pull/821
https://github.com/murrayrm
https://github.com/bnavigator
https://github.com/bnavigator
bnavigatorhttps://github.com/bnavigator
on Dec 21, 2022https://github.com/python-control/python-control/issues/820#issue-1506076946
murrayrmhttps://github.com/murrayrm
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.