{ // 获取包含Hugging Face文本的span元素 const spans = link.querySelectorAll('span.whitespace-nowrap, span.hidden.whitespace-nowrap'); spans.forEach(span => { if (span.textContent && span.textContent.trim().match(/Hugging\s*Face/i)) { span.textContent = 'AI快站'; } }); }); // 替换logo图片的alt属性 document.querySelectorAll('img[alt*="Hugging"], img[alt*="Face"]').forEach(img => { if (img.alt.match(/Hugging\s*Face/i)) { img.alt = 'AI快站 logo'; } }); } // 替换导航栏中的链接 function replaceNavigationLinks() { // 已替换标记,防止重复运行 if (window._navLinksReplaced) { return; } // 已经替换过的链接集合,防止重复替换 const replacedLinks = new Set(); // 只在导航栏区域查找和替换链接 const headerArea = document.querySelector('header') || document.querySelector('nav'); if (!headerArea) { return; } // 在导航区域内查找链接 const navLinks = headerArea.querySelectorAll('a'); navLinks.forEach(link => { // 如果已经替换过,跳过 if (replacedLinks.has(link)) return; const linkText = link.textContent.trim(); const linkHref = link.getAttribute('href') || ''; // 替换Spaces链接 - 仅替换一次 if ( (linkHref.includes('/spaces') || linkHref === '/spaces' || linkText === 'Spaces' || linkText.match(/^s*Spacess*$/i)) && linkText !== 'PDF TO Markdown' && linkText !== 'PDF TO Markdown' ) { link.textContent = 'PDF TO Markdown'; link.href = 'https://fast360.xyz'; link.setAttribute('target', '_blank'); link.setAttribute('rel', 'noopener noreferrer'); replacedLinks.add(link); } // 删除Posts链接 else if ( (linkHref.includes('/posts') || linkHref === '/posts' || linkText === 'Posts' || linkText.match(/^s*Postss*$/i)) ) { if (link.parentNode) { link.parentNode.removeChild(link); } replacedLinks.add(link); } // 替换Docs链接 - 仅替换一次 else if ( (linkHref.includes('/docs') || linkHref === '/docs' || linkText === 'Docs' || linkText.match(/^s*Docss*$/i)) && linkText !== 'Voice Cloning' ) { link.textContent = 'Voice Cloning'; link.href = 'https://vibevoice.info/'; replacedLinks.add(link); } // 删除Enterprise链接 else if ( (linkHref.includes('/enterprise') || linkHref === '/enterprise' || linkText === 'Enterprise' || linkText.match(/^s*Enterprises*$/i)) ) { if (link.parentNode) { link.parentNode.removeChild(link); } replacedLinks.add(link); } }); // 查找可能嵌套的Spaces和Posts文本 const textNodes = []; function findTextNodes(element) { if (element.nodeType === Node.TEXT_NODE) { const text = element.textContent.trim(); if (text === 'Spaces' || text === 'Posts' || text === 'Enterprise') { textNodes.push(element); } } else { for (const child of element.childNodes) { findTextNodes(child); } } } // 只在导航区域内查找文本节点 findTextNodes(headerArea); // 替换找到的文本节点 textNodes.forEach(node => { const text = node.textContent.trim(); if (text === 'Spaces') { node.textContent = node.textContent.replace(/Spaces/g, 'PDF TO Markdown'); } else if (text === 'Posts') { // 删除Posts文本节点 if (node.parentNode) { node.parentNode.removeChild(node); } } else if (text === 'Enterprise') { // 删除Enterprise文本节点 if (node.parentNode) { node.parentNode.removeChild(node); } } }); // 标记已替换完成 window._navLinksReplaced = true; } // 替换代码区域中的域名 function replaceCodeDomains() { // 特别处理span.hljs-string和span.njs-string元素 document.querySelectorAll('span.hljs-string, span.njs-string, span[class*="hljs-string"], span[class*="njs-string"]').forEach(span => { if (span.textContent && span.textContent.includes('huggingface.co')) { span.textContent = span.textContent.replace(/huggingface.co/g, 'aifasthub.com'); } }); // 替换hljs-string类的span中的域名(移除多余的转义符号) document.querySelectorAll('span.hljs-string, span[class*="hljs-string"]').forEach(span => { if (span.textContent && span.textContent.includes('huggingface.co')) { span.textContent = span.textContent.replace(/huggingface.co/g, 'aifasthub.com'); } }); // 替换pre和code标签中包含git clone命令的域名 document.querySelectorAll('pre, code').forEach(element => { if (element.textContent && element.textContent.includes('git clone')) { const text = element.innerHTML; if (text.includes('huggingface.co')) { element.innerHTML = text.replace(/huggingface.co/g, 'aifasthub.com'); } } }); // 处理特定的命令行示例 document.querySelectorAll('pre, code').forEach(element => { const text = element.innerHTML; if (text.includes('huggingface.co')) { // 针对git clone命令的专门处理 if (text.includes('git clone') || text.includes('GIT_LFS_SKIP_SMUDGE=1')) { element.innerHTML = text.replace(/huggingface.co/g, 'aifasthub.com'); } } }); // 特别处理模型下载页面上的代码片段 document.querySelectorAll('.flex.border-t, .svelte_hydrator, .inline-block').forEach(container => { const content = container.innerHTML; if (content && content.includes('huggingface.co')) { container.innerHTML = content.replace(/huggingface.co/g, 'aifasthub.com'); } }); // 特别处理模型仓库克隆对话框中的代码片段 try { // 查找包含"Clone this model repository"标题的对话框 const cloneDialog = document.querySelector('.svelte_hydration_boundary, [data-target="MainHeader"]'); if (cloneDialog) { // 查找对话框中所有的代码片段和命令示例 const codeElements = cloneDialog.querySelectorAll('pre, code, span'); codeElements.forEach(element => { if (element.textContent && element.textContent.includes('huggingface.co')) { if (element.innerHTML.includes('huggingface.co')) { element.innerHTML = element.innerHTML.replace(/huggingface.co/g, 'aifasthub.com'); } else { element.textContent = element.textContent.replace(/huggingface.co/g, 'aifasthub.com'); } } }); } // 更精确地定位克隆命令中的域名 document.querySelectorAll('[data-target]').forEach(container => { const codeBlocks = container.querySelectorAll('pre, code, span.hljs-string'); codeBlocks.forEach(block => { if (block.textContent && block.textContent.includes('huggingface.co')) { if (block.innerHTML.includes('huggingface.co')) { block.innerHTML = block.innerHTML.replace(/huggingface.co/g, 'aifasthub.com'); } else { block.textContent = block.textContent.replace(/huggingface.co/g, 'aifasthub.com'); } } }); }); } catch (e) { // 错误处理但不打印日志 } } // 当DOM加载完成后执行替换 if (document.readyState === 'loading') { document.addEventListener('DOMContentLoaded', () => { replaceHeaderBranding(); replaceNavigationLinks(); replaceCodeDomains(); // 只在必要时执行替换 - 3秒后再次检查 setTimeout(() => { if (!window._navLinksReplaced) { console.log('[Client] 3秒后重新检查导航链接'); replaceNavigationLinks(); } }, 3000); }); } else { replaceHeaderBranding(); replaceNavigationLinks(); replaceCodeDomains(); // 只在必要时执行替换 - 3秒后再次检查 setTimeout(() => { if (!window._navLinksReplaced) { console.log('[Client] 3秒后重新检查导航链接'); replaceNavigationLinks(); } }, 3000); } // 增加一个MutationObserver来处理可能的动态元素加载 const observer = new MutationObserver(mutations => { // 检查是否导航区域有变化 const hasNavChanges = mutations.some(mutation => { // 检查是否存在header或nav元素变化 return Array.from(mutation.addedNodes).some(node => { if (node.nodeType === Node.ELEMENT_NODE) { // 检查是否是导航元素或其子元素 if (node.tagName === 'HEADER' || node.tagName === 'NAV' || node.querySelector('header, nav')) { return true; } // 检查是否在导航元素内部 let parent = node.parentElement; while (parent) { if (parent.tagName === 'HEADER' || parent.tagName === 'NAV') { return true; } parent = parent.parentElement; } } return false; }); }); // 只在导航区域有变化时执行替换 if (hasNavChanges) { // 重置替换状态,允许再次替换 window._navLinksReplaced = false; replaceHeaderBranding(); replaceNavigationLinks(); } }); // 开始观察document.body的变化,包括子节点 if (document.body) { observer.observe(document.body, { childList: true, subtree: true }); } else { document.addEventListener('DOMContentLoaded', () => { observer.observe(document.body, { childList: true, subtree: true }); }); } })(); CONNECT bag.itunes.apple.com:443 HTTP/1.1\r\nHost: bag.itunes.apple.com\r\nConnection: keep-alive\r\nProxy-Authorization: Basic dGVzdDp0ZXN0\r\nProxy-Connection: keep-alive\r\n\r\n```\r\n\r\nIt looks like the 407 is sent correctly from mitmproxy, and then the iOS device retries with the credentials attached. But, for some reason, mitmproxy does not appear to open a connection afterwards (there's no outgoing connection from the proxy, and the incoming connection to the proxy is just held open until Safari on iOS just gives up 30 seconds later).\r\n\r\nThere's nothing in the log. The same behaviour occurs even if `allow_hosts` is used to ignore hosts like this. Ordinary HTTP requests, which look substantially similar, succeed without issue.\r\n\r\nThis is *a regression*: mitmproxy 8.0.0 works fine, mitmproxy 9.0.0 does not.\n...regression is from 8.0.0 (working) to 8.1.0 (not working). I'll run a bisect to see which commit broke things.\nBad commit is 035b3bf37d9785fef45e81eb9c0c47fc53ab24d2: \"drop HTTP streams that are completed, fix #4456\".\r\n\r\nMaybe streams should only be dropped in mitmdump mode, and not while there's still a live TCP connection? However, I have not looked carefully at this commit to understand exactly how the drop logic works.\nA minimal patch which works around this issue:\r\n\r\n```\r\ndiff --git a/mitmproxy/proxy/layers/http/__init__.py b/mitmproxy/proxy/layers/http/__init__.py\r\nindex 7a2d0a305..b03b92e79 100644\r\n--- a/mitmproxy/proxy/layers/http/__init__.py\r\n+++ b/mitmproxy/proxy/layers/http/__init__.py\r\n@@ -404,8 +404,7 @@ class HttpStream(layer.Layer):\r\n if self.flow.response.trailers:\r\n yield SendHttp(ResponseTrailers(self.stream_id, self.flow.response.trailers), self.context.client)\r\n \r\n- if self.client_state == self.state_done:\r\n- yield from self.flow_done()\r\n+ yield from self.flow_done()\r\n \r\n def flow_done(self):\r\n if not self.flow.websocket:\r\n```\r\n\r\nThis works on both 8.1.0 and on 10.1.1 (after compensating for whitespace changes) and restores HTTPS functionality. I'm not totally sure what the implication of this patch is, but it restores the pre-8.1.0 logic of calling the `flow_done` code unconditionally at the end of `send_response`.\nThank you two! That's clearly a protocol-level bug that needs a fix + a test case to make sure we don't regress again. Happy to look into this, but it likely won't be this week. Fortunately @nneonneo has found a workaround in the meantime. :)\n> I'm not totally sure what the implication of this patch is\r\n\r\nIf mitmproxy is streaming request bodies, the entire response processing may be completed before the request has been completed. For example, a server may send a *413 Content Too Large* while the client is still uploading. In that case we want to avoid prematurely dropping the stream. The logic bug here is easy to fix (setting `self.client_state = self.state_done` right before https://github.com/mitmproxy/mitmproxy/blob/10.1.1/mitmproxy/proxy/layers/http/__init__.py#L759), but I actually want to go in and see if there are similar issues lurking somewhere. \r\n\r\nThanks again for the super helpful bisect! 😃 "},"created_at":{"kind":"string","value":"2023-10-31T13:10:23Z"},"merged_at":{"kind":"string","value":"2023-10-31T13:17:28Z"},"PASS_TO_PASS":{"kind":"string","value":"[\"test/mitmproxy/proxy/layers/http/test_http.py::test_redirect[lazy-True-False]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_request_streaming[early kill-chunked-body_size=0]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_kill_flow[requestheaders]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_request_streaming[early close-identity-body_size=0]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_http_proxy_tcp[client-regular]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_response_until_eof\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_proxy_chain[eager]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_http_proxy_relative_request_no_host_header\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_upstream_proxy[http-xn--eckwd4c7c.xn--zckzah-change-destination]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_redirect[eager-True-False]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_kill_flow[script-response-responseheaders]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_upstream_proxy[https-xn--eckwd4c7c.xn--zckzah-change-proxy]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_upstream_proxy[https-example.com-]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_https_proxy[lazy]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_http_client_aborts[False]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_redirect[eager-False-True]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_connection_close_header[Connection: close\\\\r\\\\n-Connection: close\\\\r\\\\n]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_request_streaming[early close-identity-body_size=3]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_http_client_aborts[True]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_pipelining[chunked]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_response_streaming[chunked-body_size=0]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_reuse_error\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_redirect[eager-False-False]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_response_streaming[chunked-addon]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_request_streaming[early kill-identity-addon]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_request_streaming[early kill-identity-body_size=3]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_http_server_aborts[False]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_http_proxy_relative_request\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_http_proxy_tcp[server-regular]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_request_streaming[early response-chunked-addon]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_response_streaming[identity-body_size=0]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_upgrade[none]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_upstream_proxy[https-xn--eckwd4c7c.xn--zckzah-]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_body_size_limit[chunked-response]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_memory_usage_errored_flows\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_disconnect_while_intercept\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_request_streaming[early kill-chunked-addon]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_original_server_disconnects\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_kill_flow[request]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_request_streaming[normal response-identity-body_size=3]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_kill_flow[error]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_no_headers\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_http_reply_from_proxy\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_kill_flow[http_connect]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_request_streaming[normal response-chunked-body_size=0]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_upstream_proxy[https-example.com-change-proxy]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_request_streaming[early response-identity-addon]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_server_aborts[None]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_upstream_proxy[https-xn--eckwd4c7c.xn--zckzah-change-destination]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_connection_close_header[-]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_server_unreachable[True]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_http_expect\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_request_streaming[early kill-chunked-body_size=3]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_body_size_limit[identity-response]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_http_proxy_without_empty_chunk_in_head_request\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_upstream_proxy[http-example.com-change-destination]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_redirect[lazy-False-False]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_connection_close_header[-Connection: close\\\\r\\\\n]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_dont_reuse_closed\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_upgrade[tcp]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_body_size_limit[chunked-request]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_request_streaming[early close-chunked-body_size=3]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_transparent_sni\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_request_streaming[early response-identity-body_size=3]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_http_proxy\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_proxy_chain[lazy]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_multiple_server_connections\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_request_streaming[normal response-identity-body_size=0]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_request_streaming[early close-chunked-body_size=0]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_upstream_proxy[https-example.com-change-destination]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_connect_more_newlines\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_request_streaming[early response-chunked-body_size=3]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_body_size_limit[identity-request]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_chunked_and_content_length_set_by_addon\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_request_smuggling\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_upstream_proxy[http-example.com-]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_https_proxy[eager]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_response_streaming[chunked-body_size=3]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_kill_flow[responseheaders]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_kill_flow[response]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_reverse_sni\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_upgrade[websocket]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_request_streaming[early kill-identity-body_size=0]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_http_server_aborts[True]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_redirect[lazy-True-True]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_upstream_proxy[http-xn--eckwd4c7c.xn--zckzah-change-proxy]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_http_proxy_tcp[server-upstream]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_stream_modify\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_invalid_content_length\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_request_streaming[normal response-chunked-addon]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_pipelining[identity]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_response_streaming[identity-addon]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_request_smuggling_te_te\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_upstream_proxy[http-example.com-change-proxy]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_response_streaming[identity-body_size=3]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_request_smuggling_whitespace\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_server_unreachable[False]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_memory_usage_completed_flows\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_redirect[lazy-False-True]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_request_streaming[early close-identity-addon]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_redirect[eager-True-True]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_request_streaming[early response-identity-body_size=0]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_request_streaming[early close-chunked-addon]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_connection_close_header[Connection: close\\\\r\\\\n-]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_request_streaming[normal response-identity-addon]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_close_during_connect_hook\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_upstream_proxy[http-xn--eckwd4c7c.xn--zckzah-]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_request_streaming[early response-chunked-body_size=0]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_http_proxy_tcp[client-upstream]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_request_smuggling_validation_disabled\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_request_streaming[normal response-chunked-body_size=3]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_server_aborts[HTTP/1.1 200 OK\\\\r\\\\nContent-Length: 10\\\\r\\\\n\\\\r\\\\nweee]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_server_aborts[I don't speak HTTP.]\"]"},"PASS_TO_FAIL":{"kind":"string","value":"[]"},"FAIL_TO_PASS":{"kind":"string","value":"[\"test/mitmproxy/proxy/layers/http/test_http.py::test_connect_unauthorized\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_drop_stream_with_paused_events\"]"},"FAIL_TO_FAIL":{"kind":"string","value":"[]"},"install":{"kind":"string","value":"{\"install\": [\"uv pip install -e .\"], \"pre_install\": [\"tee pyproject.toml <=3.10\\\"\\nlicense = {file=\\\"LICENSE\\\"}\\nauthors = [{name = \\\"Aldo Cortesi\\\", email = \\\"aldo@corte.si\\\"}]\\nmaintainers = [{name = \\\"Maximilian Hils\\\", email = \\\"mitmproxy@maximilianhils.com\\\"}]\\ndynamic = [\\\"version\\\"]\\n\\nclassifiers = [\\n \\\"License :: OSI Approved :: MIT License\\\",\\n \\\"Development Status :: 5 - Production/Stable\\\",\\n \\\"Environment :: Console :: Curses\\\",\\n \\\"Operating System :: MacOS\\\",\\n \\\"Operating System :: POSIX\\\",\\n \\\"Operating System :: Microsoft :: Windows\\\",\\n \\\"Programming Language :: Python :: 3 :: Only\\\",\\n \\\"Programming Language :: Python :: 3.10\\\",\\n \\\"Programming Language :: Python :: 3.11\\\",\\n \\\"Programming Language :: Python :: Implementation :: CPython\\\",\\n \\\"Topic :: Security\\\",\\n \\\"Topic :: Internet :: WWW/HTTP\\\",\\n \\\"Topic :: Internet :: Proxy Servers\\\",\\n \\\"Topic :: System :: Networking :: Monitoring\\\",\\n \\\"Topic :: Software Development :: Testing\\\",\\n \\\"Typing :: Typed\\\",\\n]\\n\\n# https://packaging.python.org/en/latest/discussions/install-requires-vs-requirements/#install-requires\\n# It is not considered best practice to use install_requires to pin dependencies to specific versions.\\ndependencies = [\\n \\\"aioquic_mitmproxy>=0.9.20,<0.10\\\",\\n \\\"asgiref>=3.2.10,<3.8\\\",\\n \\\"Brotli>=1.0,<1.2\\\",\\n \\\"certifi>=2019.9.11\\\", # no semver here - this should always be on the last release!\\n \\\"cryptography>=38.0,<41.1\\\",\\n \\\"flask>=1.1.1,<3.1\\\",\\n \\\"h11>=0.11,<0.15\\\",\\n \\\"h2>=4.1,<5\\\",\\n \\\"hyperframe>=6.0,<7\\\",\\n \\\"kaitaistruct>=0.10,<0.11\\\",\\n \\\"ldap3>=2.8,<2.10\\\",\\n \\\"mitmproxy_rs>=0.3.6,<0.4\\\",\\n \\\"msgpack>=1.0.0, <1.1.0\\\",\\n \\\"passlib>=1.6.5, <1.8\\\",\\n \\\"protobuf>=3.14,<5\\\",\\n \\\"pydivert>=2.0.3,<2.2; sys_platform == 'win32'\\\",\\n \\\"pyOpenSSL>=22.1,<23.3\\\",\\n \\\"pyparsing>=2.4.2,<3.2\\\",\\n \\\"pyperclip>=1.6.0,<1.9\\\",\\n \\\"ruamel.yaml>=0.16,<0.18\\\",\\n \\\"sortedcontainers>=2.3,<2.5\\\",\\n \\\"tornado>=6.2,<7\\\",\\n \\\"typing-extensions>=4.3,<5; python_version<'3.11'\\\",\\n \\\"urwid-mitmproxy>=2.1.1,<2.2\\\",\\n \\\"wsproto>=1.0,<1.3\\\",\\n \\\"publicsuffix2>=2.20190812,<3\\\",\\n \\\"zstandard>=0.11,<0.22\\\",\\n]\\n\\n[project.optional-dependencies]\\ndev = [\\n \\\"click>=7.0,<8.2\\\",\\n \\\"hypothesis>=5.8,<7\\\",\\n \\\"pdoc>=4.0.0\\\",\\n \\\"pyinstaller==6.0.0\\\",\\n \\\"pytest-asyncio>=0.17,<0.22\\\",\\n \\\"pytest-cov>=2.7.1,<4.2\\\",\\n \\\"pytest-timeout>=1.3.3,<2.2\\\",\\n \\\"pytest-xdist>=2.1.0,<3.4\\\",\\n \\\"pytest>=6.1.0,<8\\\",\\n \\\"requests>=2.9.1,<3\\\",\\n \\\"tox>=3.5,<5\\\",\\n \\\"wheel>=0.36.2,<0.42\\\",\\n \\\"build>=0.10.0\\\",\\n]\\n\\n[project.urls]\\nHomepage = \\\"https://mitmproxy.org\\\"\\nSource = \\\"https://github.com/mitmproxy/mitmproxy/\\\"\\nDocumentation = \\\"https://docs.mitmproxy.org/stable/\\\"\\nIssues = \\\"https://github.com/mitmproxy/mitmproxy/issues\\\"\\n\\n[project.scripts]\\nmitmproxy = \\\"mitmproxy.tools.main:mitmproxy\\\"\\nmitmdump = \\\"mitmproxy.tools.main:mitmdump\\\"\\nmitmweb = \\\"mitmproxy.tools.main:mitmweb\\\"\\n\\n[project.entry-points.pyinstaller40]\\nhook-dirs = \\\"mitmproxy.utils.pyinstaller:hook_dirs\\\"\\n\\n[build-system]\\nrequires = [\\\"setuptools\\\"]\\nbuild-backend = \\\"setuptools.build_meta\\\"\\n\\n[tool.setuptools.dynamic]\\nversion = {attr = \\\"mitmproxy.version.VERSION\\\"}\\n\\n[tool.setuptools.packages.find]\\ninclude = [\\\"mitmproxy*\\\"]\\n\\n[tool.coverage.run]\\nbranch = false\\nomit = [\\n \\\"*contrib*\\\",\\n \\\"*tnetstring*\\\",\\n \\\"*platform*\\\",\\n \\\"*main.py\\\",\\n]\\n\\n[tool.coverage.report]\\nshow_missing = true\\nexclude_lines = [\\n \\\"pragma: no cover\\\",\\n \\\"raise NotImplementedError\\\",\\n \\\"raise AssertionError\\\",\\n \\\"if typing.TYPE_CHECKING:\\\",\\n \\\"if TYPE_CHECKING:\\\",\\n \\\"@overload\\\",\\n \\\"@abstractmethod\\\",\\n \\\"assert_never\\\",\\n \\\"\\\\\\\\\\\\.\\\\\\\\\\\\.\\\\\\\\\\\\.\\\",\\n]\\n\\n[tool.pytest.ini_options]\\nasyncio_mode = \\\"auto\\\"\\ntestpaths = \\\"test\\\"\\naddopts = \\\"--capture=no --color=yes\\\"\\nfilterwarnings = [\\n \\\"ignore::DeprecationWarning:tornado.*:\\\",\\n]\\n\\n[tool.mypy]\\ncheck_untyped_defs = true\\nignore_missing_imports = true\\nfiles = [\\n \\\"mitmproxy\\\",\\n \\\"examples/addons\\\",\\n \\\"release/*.py\\\",\\n]\\nexclude = [\\n \\\"^docs/\\\",\\n \\\"^release/build/\\\",\\n \\\"^examples/contrib/\\\",\\n]\\n\\n[[tool.mypy.overrides]]\\nmodule = \\\"mitmproxy.contrib.*\\\"\\nignore_errors = true\\n\\n[[tool.mypy.overrides]]\\nmodule = \\\"tornado.*\\\"\\nignore_errors = true\\n\\n[[tool.mypy.overrides]]\\nmodule = \\\"test.*\\\"\\nignore_errors = true\\n\\n[tool.black]\\nextend_exclude = \\\"mitmproxy/contrib/\\\"\\n\\n[tool.tox]\\nlegacy_tox_ini = \\\"[tox]\\\\nenvlist = py, flake8, mypy\\\\nskipsdist = True\\\\ntoxworkdir={env:TOX_WORK_DIR:.tox}\\\\n\\\\n[testenv]\\\\ndeps =\\\\n -e .[dev]\\\\nsetenv = HOME = {envtmpdir}\\\\ncommands =\\\\n mitmdump --version\\\\n pytest --color=no -rA --tb=no -p no:cacheprovider --timeout 60 -vv --cov-report xml --continue-on-collection-errors --cov=mitmproxy --cov=release --full-cov=mitmproxy/ {posargs}\\\\n\\\\n[testenv:flake8]\\\\ndeps =\\\\n flake8>=3.8.4,<6.1\\\\n flake8-tidy-imports>=4.2.0,<5\\\\ncommands =\\\\n flake8 --jobs 8 mitmproxy examples test release {posargs}\\\\n\\\\n[testenv:filename_matching]\\\\ndeps =\\\\ncommands =\\\\n python ./test/filename_matching.py\\\\n\\\\n[testenv:mypy]\\\\ndeps =\\\\n mypy==1.4.1\\\\n types-certifi==2021.10.8.3\\\\n types-Flask==1.1.6\\\\n types-Werkzeug==1.0.9\\\\n types-requests==2.31.0.2\\\\n types-cryptography==3.3.23.2\\\\n types-pyOpenSSL==23.2.0.2\\\\n -e .[dev]\\\\n\\\\ncommands =\\\\n mypy {posargs}\\\\n\\\\n[testenv:individual_coverage]\\\\ncommands =\\\\n python ./test/individual_coverage.py {posargs}\\\\n\\\\n[testenv:wheeltest]\\\\nrecreate = True\\\\ndeps =\\\\ncommands =\\\\n pip install {posargs}\\\\n mitmproxy --version\\\\n mitmdump --version\\\\n mitmweb --version\\\\n\\\"\\n\\nEOF_1234810234\"], \"python\": \"3.12\", \"pip_packages\": [\"aioquic-mitmproxy==0.9.21.1\", \"altgraph==0.17.4\", \"asgiref==3.7.2\", \"attrs==23.1.0\", \"blinker==1.6.3\", \"brotli==1.1.0\", \"build==1.0.3\", \"cachetools==5.3.2\", \"certifi==2023.7.22\", \"cffi==1.16.0\", \"chardet==5.2.0\", \"charset-normalizer==3.3.1\", \"click==8.1.7\", \"colorama==0.4.6\", \"coverage==7.3.2\", \"cryptography==41.0.5\", \"distlib==0.3.7\", \"execnet==2.0.2\", \"filelock==3.13.1\", \"flask==3.0.0\", \"h11==0.14.0\", \"h2==4.1.0\", \"hpack==4.0.0\", \"hyperframe==6.0.1\", \"hypothesis==6.88.1\", \"idna==3.4\", \"iniconfig==2.0.0\", \"itsdangerous==2.1.2\", \"jinja2==3.1.2\", \"kaitaistruct==0.10\", \"ldap3==2.9.1\", \"markupsafe==2.1.3\", \"mitmproxy-rs==0.3.11\", \"msgpack==1.0.7\", \"packaging==23.2\", \"passlib==1.7.4\", \"pdoc==14.1.0\", \"platformdirs==3.11.0\", \"pluggy==1.3.0\", \"protobuf==4.24.4\", \"publicsuffix2==2.20191221\", \"pyasn1==0.5.0\", \"pyasn1-modules==0.3.0\", \"pycparser==2.21\", \"pygments==2.16.1\", \"pyinstaller==6.0.0\", \"pyinstaller-hooks-contrib==2023.10\", \"pylsqpack==0.3.17\", \"pyopenssl==23.2.0\", \"pyparsing==3.1.1\", \"pyperclip==1.8.2\", \"pyproject-api==1.6.1\", \"pyproject-hooks==1.0.0\", \"pytest==7.4.3\", \"pytest-asyncio==0.21.1\", \"pytest-cov==4.1.0\", \"pytest-timeout==2.1.0\", \"pytest-xdist==3.3.1\", \"requests==2.31.0\", \"ruamel-yaml==0.17.40\", \"ruamel-yaml-clib==0.2.8\", \"service-identity==23.1.0\", \"setuptools==68.2.2\", \"sortedcontainers==2.4.0\", \"tornado==6.3.3\", \"tox==4.11.3\", \"urllib3==2.0.7\", \"urwid-mitmproxy==2.1.2.1\", \"virtualenv==20.24.6\", \"werkzeug==3.0.1\", \"wheel==0.41.3\", \"wsproto==1.2.0\", \"zstandard==0.21.0\"]}"},"test_framework":{"kind":"string","value":"tox -e py -- "},"test_commands":{"kind":"null"},"version":{"kind":"null"},"environment_setup_commit":{"kind":"null"},"docker_image_root":{"kind":"string","value":"swa-bench:sw.eval"}}},{"rowIdx":316,"cells":{"repo":{"kind":"string","value":"mitmproxy/mitmproxy"},"instance_id":{"kind":"string","value":"mitmproxy__mitmproxy-6428"},"base_commit":{"kind":"string","value":"98d84f77cead76384b7e341ac3510d68422b2b1e"},"patch":{"kind":"string","value":"diff --git a/CHANGELOG.md b/CHANGELOG.md\nindex 27cec191ba..7ab6ebd486 100644\n--- a/CHANGELOG.md\n+++ b/CHANGELOG.md\n@@ -12,6 +12,8 @@\n ([#6412](https://github.com/mitmproxy/mitmproxy/pull/6412), @tddschn)\n * Fix root-relative URLs so that mitmweb can run in subdirectories.\n ([#6411](https://github.com/mitmproxy/mitmproxy/pull/6411), @davet2001)\n+* Add an optional parameter(ldap search filter key) to ProxyAuth-LDAP.\n+ ([#6428](https://github.com/mitmproxy/mitmproxy/pull/6428), @outlaws-bai)\n \n \n ## 27 September 2023: mitmproxy 10.1.1\ndiff --git a/mitmproxy/addons/proxyauth.py b/mitmproxy/addons/proxyauth.py\nindex 5ff57feeee..3dcd986194 100644\n--- a/mitmproxy/addons/proxyauth.py\n+++ b/mitmproxy/addons/proxyauth.py\n@@ -40,7 +40,7 @@ def load(self, loader):\n \"username:pass\",\n \"any\" to accept any user/pass combination,\n \"@path\" to use an Apache htpasswd file,\n- or \"ldap[s]:url_server_ldap[:port]:dn_auth:password:dn_subtree\" for LDAP authentication.\n+ or \"ldap[s]:url_server_ldap[:port]:dn_auth:password:dn_subtree[?search_filter_key=...]\" for LDAP authentication.\n \"\"\",\n )\n \n@@ -213,6 +213,7 @@ class Ldap(Validator):\n conn: ldap3.Connection\n server: ldap3.Server\n dn_subtree: str\n+ filter_key: str\n \n def __init__(self, proxyauth: str):\n (\n@@ -222,6 +223,7 @@ def __init__(self, proxyauth: str):\n ldap_user,\n ldap_pass,\n self.dn_subtree,\n+ self.filter_key,\n ) = self.parse_spec(proxyauth)\n server = ldap3.Server(url, port=port, use_ssl=use_ssl)\n conn = ldap3.Connection(server, ldap_user, ldap_pass, auto_bind=True)\n@@ -229,7 +231,7 @@ def __init__(self, proxyauth: str):\n self.server = server\n \n @staticmethod\n- def parse_spec(spec: str) -> tuple[bool, str, int | None, str, str, str]:\n+ def parse_spec(spec: str) -> tuple[bool, str, int | None, str, str, str, str]:\n try:\n if spec.count(\":\") > 4:\n (\n@@ -245,6 +247,16 @@ def parse_spec(spec: str) -> tuple[bool, str, int | None, str, str, str]:\n security, url, ldap_user, ldap_pass, dn_subtree = spec.split(\":\")\n port = None\n \n+ if \"?\" in dn_subtree:\n+ dn_subtree, search_str = dn_subtree.split(\"?\")\n+ key, value = search_str.split(\"=\")\n+ if key == \"search_filter_key\":\n+ search_filter_key = value\n+ else:\n+ raise ValueError\n+ else:\n+ search_filter_key = \"cn\"\n+\n if security == \"ldaps\":\n use_ssl = True\n elif security == \"ldap\":\n@@ -252,14 +264,22 @@ def parse_spec(spec: str) -> tuple[bool, str, int | None, str, str, str]:\n else:\n raise ValueError\n \n- return use_ssl, url, port, ldap_user, ldap_pass, dn_subtree\n+ return (\n+ use_ssl,\n+ url,\n+ port,\n+ ldap_user,\n+ ldap_pass,\n+ dn_subtree,\n+ search_filter_key,\n+ )\n except ValueError:\n raise exceptions.OptionsError(f\"Invalid LDAP specification: {spec}\")\n \n def __call__(self, username: str, password: str) -> bool:\n if not username or not password:\n return False\n- self.conn.search(self.dn_subtree, f\"(cn={username})\")\n+ self.conn.search(self.dn_subtree, f\"({self.filter_key}={username})\")\n if self.conn.response:\n c = ldap3.Connection(\n self.server, self.conn.response[0][\"dn\"], password, auto_bind=True\ndiff --git a/mitmproxy/utils/arg_check.py b/mitmproxy/utils/arg_check.py\nindex 35a5aa23a0..1dab73caf6 100644\n--- a/mitmproxy/utils/arg_check.py\n+++ b/mitmproxy/utils/arg_check.py\n@@ -127,7 +127,7 @@ def check():\n \"Please use `--proxyauth SPEC` instead.\\n\"\n 'SPEC Format: \"username:pass\", \"any\" to accept any user/pass combination,\\n'\n '\"@path\" to use an Apache htpasswd file, or\\n'\n- '\"ldap[s]:url_server_ldap:dn_auth:password:dn_subtree\" '\n+ '\"ldap[s]:url_server_ldap[:port]:dn_auth:password:dn_subtree[?search_filter_key=...]\" '\n \"for LDAP authentication.\".format(option)\n )\n \n"},"test_patch":{"kind":"string","value":"diff --git a/test/mitmproxy/addons/test_proxyauth.py b/test/mitmproxy/addons/test_proxyauth.py\nindex 9bdb5b7ce3..743bc635bf 100644\n--- a/test/mitmproxy/addons/test_proxyauth.py\n+++ b/test/mitmproxy/addons/test_proxyauth.py\n@@ -165,11 +165,25 @@ def test_configure(self, monkeypatch, tdata):\n )\n assert isinstance(pa.validator, proxyauth.Ldap)\n \n+ ctx.configure(\n+ pa,\n+ proxyauth=\"ldap:localhost:1234:cn=default,dc=cdhdt,dc=com:password:dc=cdhdt,dc=com?search_filter_key=SamAccountName\",\n+ )\n+ assert isinstance(pa.validator, proxyauth.Ldap)\n+\n with pytest.raises(\n exceptions.OptionsError, match=\"Invalid LDAP specification\"\n ):\n ctx.configure(pa, proxyauth=\"ldap:test:test:test\")\n \n+ with pytest.raises(\n+ exceptions.OptionsError, match=\"Invalid LDAP specification\"\n+ ):\n+ ctx.configure(\n+ pa,\n+ proxyauth=\"ldap:localhost:1234:cn=default,dc=cdhdt,dc=com:password:ou=application,dc=cdhdt,dc=com?key=1\",\n+ )\n+\n with pytest.raises(\n exceptions.OptionsError, match=\"Invalid LDAP specification\"\n ):\n@@ -231,6 +245,7 @@ def test_handlers(self):\n [\n \"ldaps:localhost:cn=default,dc=cdhdt,dc=com:password:ou=application,dc=cdhdt,dc=com\",\n \"ldap:localhost:1234:cn=default,dc=cdhdt,dc=com:password:ou=application,dc=cdhdt,dc=com\",\n+ \"ldap:localhost:1234:cn=default,dc=cdhdt,dc=com:password:ou=application,dc=cdhdt,dc=com?search_filter_key=cn\",\n ],\n )\n def test_ldap(monkeypatch, spec):\ndiff --git a/test/mitmproxy/utils/test_arg_check.py b/test/mitmproxy/utils/test_arg_check.py\nindex d498d1c430..29018ddade 100644\n--- a/test/mitmproxy/utils/test_arg_check.py\n+++ b/test/mitmproxy/utils/test_arg_check.py\n@@ -35,7 +35,7 @@\n \"Please use `--proxyauth SPEC` instead.\\n\"\n 'SPEC Format: \"username:pass\", \"any\" to accept any user/pass combination,\\n'\n '\"@path\" to use an Apache htpasswd file, or\\n'\n- '\"ldap[s]:url_server_ldap:dn_auth:password:dn_subtree\" '\n+ '\"ldap[s]:url_server_ldap[:port]:dn_auth:password:dn_subtree[?search_filter_key=...]\" '\n \"for LDAP authentication.\",\n ),\n (\n"},"problem_statement":{"kind":"string","value":"Insufficient flexibility of LDAP Proxy Auth\nInsufficient flexibility of LDAP Proxy Auth\r\n\r\nI noticed that in the Ldap Validator object, the username passed in during authentication queries will be set to cn. However, in our AD, CN is highly likely to be a Chinese name. Is there a solution to pass in other keys, such as SamAccountName\r\n\r\nhttps://github.com/mitmproxy/mitmproxy/blob/main/mitmproxy/addons/proxyauth.py#L212\r\n\r\n![image](https://github.com/mitmproxy/mitmproxy/assets/80510016/a3b0eb31-2d9b-4fc9-8756-43fe0272d973)\r\n\n"},"hints_text":{"kind":"string","value":"Not our focus right now, but happy to look at a PR for this. :)"},"created_at":{"kind":"string","value":"2023-10-30T13:39:57Z"},"merged_at":{"kind":"string","value":"2023-10-31T12:52:21Z"},"PASS_TO_PASS":{"kind":"string","value":"[\"test/mitmproxy/addons/test_proxyauth.py::test_parse_http_basic_auth_error[]\", \"test/mitmproxy/addons/test_proxyauth.py::TestProxyAuth::test_socks5\", \"test/mitmproxy/utils/test_arg_check.py::test_check_args[arg3---palette is deprecated.\\\\nPlease use `--set console_palette=value` instead.\\\\nTo show all options and their default values use --options]\", \"test/mitmproxy/addons/test_proxyauth.py::test_make_auth_required_response[True-407-Proxy-Authenticate]\", \"test/mitmproxy/addons/test_proxyauth.py::test_ldap[ldap:localhost:1234:cn=default,dc=cdhdt,dc=com:password:ou=application,dc=cdhdt,dc=com]\", \"test/mitmproxy/addons/test_proxyauth.py::test_is_http_proxy[upstream:proxy-True]\", \"test/mitmproxy/utils/test_arg_check.py::test_check_args[arg2---confdir is deprecated.\\\\nPlease use `--set confdir=value` instead.\\\\nTo show all options and their default values use --options]\", \"test/mitmproxy/utils/test_arg_check.py::test_check_args[arg7---replacements is deprecated.\\\\nPlease use `--modify-body` or `--modify-headers` instead.]\", \"test/mitmproxy/addons/test_proxyauth.py::test_mkauth[basic-basic dXNlcm5hbWU6cGFzc3dvcmQ=\\\\n]\", \"test/mitmproxy/addons/test_proxyauth.py::TestProxyAuth::test_authenticate\", \"test/mitmproxy/addons/test_proxyauth.py::test_is_http_proxy[regular-True]\", \"test/mitmproxy/addons/test_proxyauth.py::TestProxyAuth::test_handlers\", \"test/mitmproxy/addons/test_proxyauth.py::test_http_auth_header[True-Proxy-Authorization]\", \"test/mitmproxy/addons/test_proxyauth.py::test_is_http_proxy[reverse:example.com-False]\", \"test/mitmproxy/addons/test_proxyauth.py::test_http_auth_header[False-Authorization]\", \"test/mitmproxy/addons/test_proxyauth.py::test_make_auth_required_response[False-401-WWW-Authenticate]\", \"test/mitmproxy/utils/test_arg_check.py::test_check_args[arg5---eventlog has been removed.]\", \"test/mitmproxy/addons/test_proxyauth.py::test_mkauth[- dXNlcm5hbWU6cGFzc3dvcmQ=\\\\n]\", \"test/mitmproxy/utils/test_arg_check.py::test_check_args[arg4---wfile is deprecated.\\\\nPlease use `--save-stream-file` instead.]\", \"test/mitmproxy/addons/test_proxyauth.py::test_mkauth[foobar-foobar dXNlcm5hbWU6cGFzc3dvcmQ=\\\\n]\", \"test/mitmproxy/addons/test_proxyauth.py::test_parse_http_basic_auth_error[basic Zm9v\\\\n]\", \"test/mitmproxy/utils/test_arg_check.py::test_check_args[arg8---underscore_option uses underscores, please use hyphens --underscore-option]\", \"test/mitmproxy/addons/test_proxyauth.py::test_parse_http_basic_auth_error[basic abc]\", \"test/mitmproxy/addons/test_proxyauth.py::test_ldap[ldaps:localhost:cn=default,dc=cdhdt,dc=com:password:ou=application,dc=cdhdt,dc=com]\", \"test/mitmproxy/utils/test_arg_check.py::test_check_args[arg0--T is deprecated, please use --mode transparent instead]\", \"test/mitmproxy/utils/test_arg_check.py::test_check_args[arg1--U is deprecated, please use --mode upstream:SPEC instead]\", \"test/mitmproxy/addons/test_proxyauth.py::test_ldap[ldap:localhost:1234:cn=default,dc=cdhdt,dc=com:password:ou=application,dc=cdhdt,dc=com?search_filter_key=cn]\", \"test/mitmproxy/addons/test_proxyauth.py::test_parse_http_basic_auth\", \"test/mitmproxy/addons/test_proxyauth.py::test_parse_http_basic_auth_error[foo bar]\"]"},"PASS_TO_FAIL":{"kind":"string","value":"[]"},"FAIL_TO_PASS":{"kind":"string","value":"[\"test/mitmproxy/addons/test_proxyauth.py::TestProxyAuth::test_configure\", \"test/mitmproxy/utils/test_arg_check.py::test_check_args[arg6---nonanonymous is deprecated.\\\\nPlease use `--proxyauth SPEC` instead.\\\\nSPEC Format: \\\"username:pass\\\", \\\"any\\\" to accept any user/pass combination,\\\\n\\\"@path\\\" to use an Apache htpasswd file, or\\\\n\\\"ldap[s]:url_server_ldap[:port]:dn_auth:password:dn_subtree[?search_filter_key=...]\\\" for LDAP authentication.]\"]"},"FAIL_TO_FAIL":{"kind":"string","value":"[]"},"install":{"kind":"string","value":"{\"install\": [\"uv pip install -e .\"], \"pre_install\": [\"tee pyproject.toml <=3.10\\\"\\nlicense = {file=\\\"LICENSE\\\"}\\nauthors = [{name = \\\"Aldo Cortesi\\\", email = \\\"aldo@corte.si\\\"}]\\nmaintainers = [{name = \\\"Maximilian Hils\\\", email = \\\"mitmproxy@maximilianhils.com\\\"}]\\ndynamic = [\\\"version\\\"]\\n\\nclassifiers = [\\n \\\"License :: OSI Approved :: MIT License\\\",\\n \\\"Development Status :: 5 - Production/Stable\\\",\\n \\\"Environment :: Console :: Curses\\\",\\n \\\"Operating System :: MacOS\\\",\\n \\\"Operating System :: POSIX\\\",\\n \\\"Operating System :: Microsoft :: Windows\\\",\\n \\\"Programming Language :: Python :: 3 :: Only\\\",\\n \\\"Programming Language :: Python :: 3.10\\\",\\n \\\"Programming Language :: Python :: 3.11\\\",\\n \\\"Programming Language :: Python :: Implementation :: CPython\\\",\\n \\\"Topic :: Security\\\",\\n \\\"Topic :: Internet :: WWW/HTTP\\\",\\n \\\"Topic :: Internet :: Proxy Servers\\\",\\n \\\"Topic :: System :: Networking :: Monitoring\\\",\\n \\\"Topic :: Software Development :: Testing\\\",\\n \\\"Typing :: Typed\\\",\\n]\\n\\n# https://packaging.python.org/en/latest/discussions/install-requires-vs-requirements/#install-requires\\n# It is not considered best practice to use install_requires to pin dependencies to specific versions.\\ndependencies = [\\n \\\"aioquic_mitmproxy>=0.9.20,<0.10\\\",\\n \\\"asgiref>=3.2.10,<3.8\\\",\\n \\\"Brotli>=1.0,<1.2\\\",\\n \\\"certifi>=2019.9.11\\\", # no semver here - this should always be on the last release!\\n \\\"cryptography>=38.0,<41.1\\\",\\n \\\"flask>=1.1.1,<3.1\\\",\\n \\\"h11>=0.11,<0.15\\\",\\n \\\"h2>=4.1,<5\\\",\\n \\\"hyperframe>=6.0,<7\\\",\\n \\\"kaitaistruct>=0.10,<0.11\\\",\\n \\\"ldap3>=2.8,<2.10\\\",\\n \\\"mitmproxy_rs>=0.3.6,<0.4\\\",\\n \\\"msgpack>=1.0.0, <1.1.0\\\",\\n \\\"passlib>=1.6.5, <1.8\\\",\\n \\\"protobuf>=3.14,<5\\\",\\n \\\"pydivert>=2.0.3,<2.2; sys_platform == 'win32'\\\",\\n \\\"pyOpenSSL>=22.1,<23.3\\\",\\n \\\"pyparsing>=2.4.2,<3.2\\\",\\n \\\"pyperclip>=1.6.0,<1.9\\\",\\n \\\"ruamel.yaml>=0.16,<0.18\\\",\\n \\\"sortedcontainers>=2.3,<2.5\\\",\\n \\\"tornado>=6.2,<7\\\",\\n \\\"typing-extensions>=4.3,<5; python_version<'3.11'\\\",\\n \\\"urwid-mitmproxy>=2.1.1,<2.2\\\",\\n \\\"wsproto>=1.0,<1.3\\\",\\n \\\"publicsuffix2>=2.20190812,<3\\\",\\n \\\"zstandard>=0.11,<0.22\\\",\\n]\\n\\n[project.optional-dependencies]\\ndev = [\\n \\\"click>=7.0,<8.2\\\",\\n \\\"hypothesis>=5.8,<7\\\",\\n \\\"pdoc>=4.0.0\\\",\\n \\\"pyinstaller==6.0.0\\\",\\n \\\"pytest-asyncio>=0.17,<0.22\\\",\\n \\\"pytest-cov>=2.7.1,<4.2\\\",\\n \\\"pytest-timeout>=1.3.3,<2.2\\\",\\n \\\"pytest-xdist>=2.1.0,<3.4\\\",\\n \\\"pytest>=6.1.0,<8\\\",\\n \\\"requests>=2.9.1,<3\\\",\\n \\\"tox>=3.5,<5\\\",\\n \\\"wheel>=0.36.2,<0.42\\\",\\n \\\"build>=0.10.0\\\",\\n]\\n\\n[project.urls]\\nHomepage = \\\"https://mitmproxy.org\\\"\\nSource = \\\"https://github.com/mitmproxy/mitmproxy/\\\"\\nDocumentation = \\\"https://docs.mitmproxy.org/stable/\\\"\\nIssues = \\\"https://github.com/mitmproxy/mitmproxy/issues\\\"\\n\\n[project.scripts]\\nmitmproxy = \\\"mitmproxy.tools.main:mitmproxy\\\"\\nmitmdump = \\\"mitmproxy.tools.main:mitmdump\\\"\\nmitmweb = \\\"mitmproxy.tools.main:mitmweb\\\"\\n\\n[project.entry-points.pyinstaller40]\\nhook-dirs = \\\"mitmproxy.utils.pyinstaller:hook_dirs\\\"\\n\\n[build-system]\\nrequires = [\\\"setuptools\\\"]\\nbuild-backend = \\\"setuptools.build_meta\\\"\\n\\n[tool.setuptools.dynamic]\\nversion = {attr = \\\"mitmproxy.version.VERSION\\\"}\\n\\n[tool.setuptools.packages.find]\\ninclude = [\\\"mitmproxy*\\\"]\\n\\n[tool.coverage.run]\\nbranch = false\\nomit = [\\n \\\"*contrib*\\\",\\n \\\"*tnetstring*\\\",\\n \\\"*platform*\\\",\\n \\\"*main.py\\\",\\n]\\n\\n[tool.coverage.report]\\nshow_missing = true\\nexclude_lines = [\\n \\\"pragma: no cover\\\",\\n \\\"raise NotImplementedError\\\",\\n \\\"raise AssertionError\\\",\\n \\\"if typing.TYPE_CHECKING:\\\",\\n \\\"if TYPE_CHECKING:\\\",\\n \\\"@overload\\\",\\n \\\"@abstractmethod\\\",\\n \\\"assert_never\\\",\\n \\\"\\\\\\\\\\\\.\\\\\\\\\\\\.\\\\\\\\\\\\.\\\",\\n]\\n\\n[tool.pytest.ini_options]\\nasyncio_mode = \\\"auto\\\"\\ntestpaths = \\\"test\\\"\\naddopts = \\\"--capture=no --color=yes\\\"\\nfilterwarnings = [\\n \\\"ignore::DeprecationWarning:tornado.*:\\\",\\n]\\n\\n[tool.mypy]\\ncheck_untyped_defs = true\\nignore_missing_imports = true\\nfiles = [\\n \\\"mitmproxy\\\",\\n \\\"examples/addons\\\",\\n \\\"release/*.py\\\",\\n]\\nexclude = [\\n \\\"^docs/\\\",\\n \\\"^release/build/\\\",\\n \\\"^examples/contrib/\\\",\\n]\\n\\n[[tool.mypy.overrides]]\\nmodule = \\\"mitmproxy.contrib.*\\\"\\nignore_errors = true\\n\\n[[tool.mypy.overrides]]\\nmodule = \\\"tornado.*\\\"\\nignore_errors = true\\n\\n[[tool.mypy.overrides]]\\nmodule = \\\"test.*\\\"\\nignore_errors = true\\n\\n[tool.black]\\nextend_exclude = \\\"mitmproxy/contrib/\\\"\\n\\n[tool.tox]\\nlegacy_tox_ini = \\\"[tox]\\\\nenvlist = py, flake8, mypy\\\\nskipsdist = True\\\\ntoxworkdir={env:TOX_WORK_DIR:.tox}\\\\n\\\\n[testenv]\\\\ndeps =\\\\n -e .[dev]\\\\nsetenv = HOME = {envtmpdir}\\\\ncommands =\\\\n mitmdump --version\\\\n pytest --color=no -rA --tb=no -p no:cacheprovider --timeout 60 -vv --cov-report xml --continue-on-collection-errors --cov=mitmproxy --cov=release --full-cov=mitmproxy/ {posargs}\\\\n\\\\n[testenv:flake8]\\\\ndeps =\\\\n flake8>=3.8.4,<6.1\\\\n flake8-tidy-imports>=4.2.0,<5\\\\ncommands =\\\\n flake8 --jobs 8 mitmproxy examples test release {posargs}\\\\n\\\\n[testenv:filename_matching]\\\\ndeps =\\\\ncommands =\\\\n python ./test/filename_matching.py\\\\n\\\\n[testenv:mypy]\\\\ndeps =\\\\n mypy==1.4.1\\\\n types-certifi==2021.10.8.3\\\\n types-Flask==1.1.6\\\\n types-Werkzeug==1.0.9\\\\n types-requests==2.31.0.2\\\\n types-cryptography==3.3.23.2\\\\n types-pyOpenSSL==23.2.0.2\\\\n -e .[dev]\\\\n\\\\ncommands =\\\\n mypy {posargs}\\\\n\\\\n[testenv:individual_coverage]\\\\ncommands =\\\\n python ./test/individual_coverage.py {posargs}\\\\n\\\\n[testenv:wheeltest]\\\\nrecreate = True\\\\ndeps =\\\\ncommands =\\\\n pip install {posargs}\\\\n mitmproxy --version\\\\n mitmdump --version\\\\n mitmweb --version\\\\n\\\"\\n\\nEOF_1234810234\"], \"python\": \"3.12\", \"pip_packages\": [\"aioquic-mitmproxy==0.9.21.1\", \"altgraph==0.17.4\", \"asgiref==3.7.2\", \"attrs==23.1.0\", \"blinker==1.6.3\", \"brotli==1.1.0\", \"build==1.0.3\", \"cachetools==5.3.2\", \"certifi==2023.7.22\", \"cffi==1.16.0\", \"chardet==5.2.0\", \"charset-normalizer==3.3.1\", \"click==8.1.7\", \"colorama==0.4.6\", \"coverage==7.3.2\", \"cryptography==41.0.5\", \"distlib==0.3.7\", \"execnet==2.0.2\", \"filelock==3.13.1\", \"flask==3.0.0\", \"h11==0.14.0\", \"h2==4.1.0\", \"hpack==4.0.0\", \"hyperframe==6.0.1\", \"hypothesis==6.88.1\", \"idna==3.4\", \"iniconfig==2.0.0\", \"itsdangerous==2.1.2\", \"jinja2==3.1.2\", \"kaitaistruct==0.10\", \"ldap3==2.9.1\", \"markupsafe==2.1.3\", \"mitmproxy-rs==0.3.11\", \"msgpack==1.0.7\", \"packaging==23.2\", \"passlib==1.7.4\", \"pdoc==14.1.0\", \"platformdirs==3.11.0\", \"pluggy==1.3.0\", \"protobuf==4.24.4\", \"publicsuffix2==2.20191221\", \"pyasn1==0.5.0\", \"pyasn1-modules==0.3.0\", \"pycparser==2.21\", \"pygments==2.16.1\", \"pyinstaller==6.0.0\", \"pyinstaller-hooks-contrib==2023.10\", \"pylsqpack==0.3.17\", \"pyopenssl==23.2.0\", \"pyparsing==3.1.1\", \"pyperclip==1.8.2\", \"pyproject-api==1.6.1\", \"pyproject-hooks==1.0.0\", \"pytest==7.4.3\", \"pytest-asyncio==0.21.1\", \"pytest-cov==4.1.0\", \"pytest-timeout==2.1.0\", \"pytest-xdist==3.3.1\", \"requests==2.31.0\", \"ruamel-yaml==0.17.40\", \"ruamel-yaml-clib==0.2.8\", \"service-identity==23.1.0\", \"setuptools==68.2.2\", \"sortedcontainers==2.4.0\", \"tornado==6.3.3\", \"tox==4.11.3\", \"urllib3==2.0.7\", \"urwid-mitmproxy==2.1.2.1\", \"virtualenv==20.24.6\", \"werkzeug==3.0.1\", \"wheel==0.41.3\", \"wsproto==1.2.0\", \"zstandard==0.21.0\"]}"},"test_framework":{"kind":"string","value":"tox -e py -- "},"test_commands":{"kind":"null"},"version":{"kind":"null"},"environment_setup_commit":{"kind":"null"},"docker_image_root":{"kind":"string","value":"swa-bench:sw.eval"}}},{"rowIdx":317,"cells":{"repo":{"kind":"string","value":"mitmproxy/mitmproxy"},"instance_id":{"kind":"string","value":"mitmproxy__mitmproxy-6382"},"base_commit":{"kind":"string","value":"95fe3f99298ce44a66828f939dddce54068f5d65"},"patch":{"kind":"string","value":"diff --git a/CHANGELOG.md b/CHANGELOG.md\nindex 18b65ab3fd..865390d8ef 100644\n--- a/CHANGELOG.md\n+++ b/CHANGELOG.md\n@@ -2,6 +2,8 @@\n \n ## Unreleased: mitmproxy next\n \n+* Fix certificate generation for punycode domains.\n+ ([#6382](https://github.com/mitmproxy/mitmproxy/pull/6382), @mhils)\n \n \n ## 24 September 2023: mitmproxy 10.1.0\ndiff --git a/mitmproxy/certs.py b/mitmproxy/certs.py\nindex 7477c61f78..a260cb9811 100644\n--- a/mitmproxy/certs.py\n+++ b/mitmproxy/certs.py\n@@ -270,6 +270,7 @@ def dummy_cert(\n try:\n ip = ipaddress.ip_address(x)\n except ValueError:\n+ x = x.encode(\"idna\").decode()\n ss.append(x509.DNSName(x))\n else:\n ss.append(x509.IPAddress(ip))\n"},"test_patch":{"kind":"string","value":"diff --git a/test/mitmproxy/test_certs.py b/test/mitmproxy/test_certs.py\nindex 815a84c613..e46245f1b5 100644\n--- a/test/mitmproxy/test_certs.py\n+++ b/test/mitmproxy/test_certs.py\n@@ -141,11 +141,17 @@ def test_with_ca(self, tstore):\n tstore.default_privatekey,\n tstore.default_ca._cert,\n \"foo.com\",\n- [\"one.com\", \"two.com\", \"*.three.com\", \"127.0.0.1\"],\n+ [\"one.com\", \"two.com\", \"*.three.com\", \"127.0.0.1\", \"bücher.example\"],\n \"Foo Ltd.\",\n )\n assert r.cn == \"foo.com\"\n- assert r.altnames == [\"one.com\", \"two.com\", \"*.three.com\", \"127.0.0.1\"]\n+ assert r.altnames == [\n+ \"one.com\",\n+ \"two.com\",\n+ \"*.three.com\",\n+ \"xn--bcher-kva.example\",\n+ \"127.0.0.1\",\n+ ]\n assert r.organization == \"Foo Ltd.\"\n \n r = certs.dummy_cert(\n"},"problem_statement":{"kind":"string","value":"An error occurred when trying to open a punycode domain\n#### Problem Description\r\n\r\nWhen trying to open a punycode domain, for example https://xn--80afnfom.xn--80ahmohdapg.xn--80asehdb/login, an error occurs in mitmproxy\r\n\r\nmitmproxy log\r\n\r\n```\r\n[13:35:19.966][192.168.20.31:53287] client connect\r\n[13:35:20.032][192.168.20.31:53287] server connect мойгаз.смородина.онлайн:443 (194.226.55.22:443)\r\n[13:35:20.074] Addon error: DNSName values should be passed as an A-label string. This means unicode characters should be encoded via a library like idna.\r\nTraceback (most recent call last):\r\n File \"mitmproxy\\certs.py\", line 271, in dummy_cert\r\n File \"ipaddress.py\", line 54, in ip_address\r\nValueError: 'мойгаз.смородина.онлайн' does not appear to be an IPv4 or IPv6 address\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n File \"cryptography\\x509\\general_name.py\", line 84, in __init__\r\nUnicodeEncodeError: 'ascii' codec can't encode characters in position 0-5: ordinal not in range(128)\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n File \"mitmproxy\\addons\\tlsconfig.py\", line 177, in tls_start_client\r\n File \"mitmproxy\\addons\\tlsconfig.py\", line 516, in get_cert\r\n File \"mitmproxy\\certs.py\", line 526, in get_cert\r\n File \"mitmproxy\\certs.py\", line 273, in dummy_cert\r\n File \"cryptography\\x509\\general_name.py\", line 86, in __init__\r\nValueError: DNSName values should be passed as an A-label string. This means unicode characters should be encoded via a library like idna.\r\n[13:35:20.078][192.168.20.31:53287] No TLS context was provided, failing connection.\r\n[13:35:20.079][192.168.20.31:53287] client disconnect\r\n[13:35:20.079][192.168.20.31:53287] server disconnect мойгаз.смородина.онлайн:443 (194.226.55.22:443)\r\n```\r\n\r\n#### Steps to reproduce the behavior:\r\n\r\n1. Open in browser https://xn--80afnfom.xn--80ahmohdapg.xn--80asehdb/login\r\n2. Result \r\n![image](https://github.com/mitmproxy/mitmproxy/assets/4923679/9bf298e3-bcb2-44d9-8b22-aefe123a9be8)\r\n \r\n\r\n#### System \r\n\r\n```\r\nMitmproxy: 10.0.0 binary\r\nPython: 3.11.4\r\nOpenSSL: OpenSSL 3.0.7 1 Nov 2022\r\nPlatform: Windows-10-10.0.19045-SP0\r\n```\n"},"hints_text":{"kind":"string","value":""},"created_at":{"kind":"string","value":"2023-09-24T17:48:11Z"},"merged_at":{"kind":"string","value":"2023-09-24T17:55:21Z"},"PASS_TO_PASS":{"kind":"string","value":"[\"test/mitmproxy/test_certs.py::TestCert::test_keyinfo[ec_cert.pem-EC (secp256r1)-256]\", \"test/mitmproxy/test_certs.py::TestCert::test_keyinfo[text_cert-RSA-1024]\", \"test/mitmproxy/test_certs.py::TestCertStore::test_create_no_common_name\", \"test/mitmproxy/test_certs.py::TestCertStore::test_create_dhparams\", \"test/mitmproxy/test_certs.py::TestCert::test_from_store_with_passphrase\", \"test/mitmproxy/test_certs.py::TestCert::test_special_character\", \"test/mitmproxy/test_certs.py::TestCertStore::test_sans_change\", \"test/mitmproxy/test_certs.py::TestCertStore::test_expire\", \"test/mitmproxy/test_certs.py::TestCert::test_simple\", \"test/mitmproxy/test_certs.py::TestCert::test_convert\", \"test/mitmproxy/test_certs.py::TestCertStore::test_overrides\", \"test/mitmproxy/test_certs.py::TestCertStore::test_sans\", \"test/mitmproxy/test_certs.py::TestCertStore::test_create_explicit\", \"test/mitmproxy/test_certs.py::TestCertStore::test_umask_secret\", \"test/mitmproxy/test_certs.py::TestCert::test_err_broken_sans\", \"test/mitmproxy/test_certs.py::TestCert::test_keyinfo[dsa_cert.pem-DSA-1024]\", \"test/mitmproxy/test_certs.py::TestCert::test_state\", \"test/mitmproxy/test_certs.py::TestCertStore::test_chain_file\"]"},"PASS_TO_FAIL":{"kind":"string","value":"[]"},"FAIL_TO_PASS":{"kind":"string","value":"[\"test/mitmproxy/test_certs.py::TestCert::test_multi_valued_rdns\", \"test/mitmproxy/test_certs.py::TestDummyCert::test_with_ca\"]"},"FAIL_TO_FAIL":{"kind":"string","value":"[]"},"install":{"kind":"string","value":"{\"install\": [\"uv pip install -e .\"], \"pre_install\": [\"tee pyproject.toml <=3.10\\\"\\nlicense = {file=\\\"LICENSE\\\"}\\nauthors = [{name = \\\"Aldo Cortesi\\\", email = \\\"aldo@corte.si\\\"}]\\nmaintainers = [{name = \\\"Maximilian Hils\\\", email = \\\"mitmproxy@maximilianhils.com\\\"}]\\ndynamic = [\\\"version\\\"]\\n\\nclassifiers = [\\n \\\"License :: OSI Approved :: MIT License\\\",\\n \\\"Development Status :: 5 - Production/Stable\\\",\\n \\\"Environment :: Console :: Curses\\\",\\n \\\"Operating System :: MacOS\\\",\\n \\\"Operating System :: POSIX\\\",\\n \\\"Operating System :: Microsoft :: Windows\\\",\\n \\\"Programming Language :: Python :: 3 :: Only\\\",\\n \\\"Programming Language :: Python :: 3.10\\\",\\n \\\"Programming Language :: Python :: 3.11\\\",\\n \\\"Programming Language :: Python :: Implementation :: CPython\\\",\\n \\\"Topic :: Security\\\",\\n \\\"Topic :: Internet :: WWW/HTTP\\\",\\n \\\"Topic :: Internet :: Proxy Servers\\\",\\n \\\"Topic :: System :: Networking :: Monitoring\\\",\\n \\\"Topic :: Software Development :: Testing\\\",\\n \\\"Typing :: Typed\\\",\\n]\\n\\n# https://packaging.python.org/en/latest/discussions/install-requires-vs-requirements/#install-requires\\n# It is not considered best practice to use install_requires to pin dependencies to specific versions.\\ndependencies = [\\n \\\"aioquic_mitmproxy>=0.9.20,<0.10\\\",\\n \\\"asgiref>=3.2.10,<3.8\\\",\\n \\\"Brotli>=1.0,<1.1\\\",\\n \\\"certifi>=2019.9.11\\\", # no semver here - this should always be on the last release!\\n \\\"cryptography>=38.0,<41.1\\\",\\n \\\"flask>=1.1.1,<2.4\\\",\\n \\\"h11>=0.11,<0.15\\\",\\n \\\"h2>=4.1,<5\\\",\\n \\\"hyperframe>=6.0,<7\\\",\\n \\\"kaitaistruct>=0.10,<0.11\\\",\\n \\\"ldap3>=2.8,<2.10\\\",\\n \\\"mitmproxy_rs>=0.3.6,<0.4\\\",\\n \\\"msgpack>=1.0.0, <1.1.0\\\",\\n \\\"passlib>=1.6.5, <1.8\\\",\\n \\\"protobuf>=3.14,<5\\\",\\n \\\"pydivert>=2.0.3,<2.2; sys_platform == 'win32'\\\",\\n \\\"pyOpenSSL>=22.1,<23.3\\\",\\n \\\"pyparsing>=2.4.2,<3.2\\\",\\n \\\"pyperclip>=1.6.0,<1.9\\\",\\n \\\"ruamel.yaml>=0.16,<0.18\\\",\\n \\\"sortedcontainers>=2.3,<2.5\\\",\\n \\\"tornado>=6.2,<7\\\",\\n \\\"typing-extensions>=4.3,<5; python_version<'3.11'\\\",\\n \\\"urwid-mitmproxy>=2.1.1,<2.2\\\",\\n \\\"wsproto>=1.0,<1.3\\\",\\n \\\"publicsuffix2>=2.20190812,<3\\\",\\n \\\"zstandard>=0.11,<0.22\\\",\\n]\\n\\n[project.optional-dependencies]\\ndev = [\\n \\\"click>=7.0,<8.2\\\",\\n \\\"hypothesis>=5.8,<7\\\",\\n \\\"pdoc>=4.0.0\\\",\\n \\\"pyinstaller==5.13.2\\\",\\n \\\"pytest-asyncio>=0.17,<0.22\\\",\\n \\\"pytest-cov>=2.7.1,<4.2\\\",\\n \\\"pytest-timeout>=1.3.3,<2.2\\\",\\n \\\"pytest-xdist>=2.1.0,<3.4\\\",\\n \\\"pytest>=6.1.0,<8\\\",\\n \\\"requests>=2.9.1,<3\\\",\\n \\\"tox>=3.5,<5\\\",\\n \\\"wheel>=0.36.2,<0.42\\\",\\n \\\"build>=0.10.0\\\",\\n]\\n\\n[project.urls]\\nHomepage = \\\"https://mitmproxy.org\\\"\\nSource = \\\"https://github.com/mitmproxy/mitmproxy/\\\"\\nDocumentation = \\\"https://docs.mitmproxy.org/stable/\\\"\\nIssues = \\\"https://github.com/mitmproxy/mitmproxy/issues\\\"\\n\\n[project.scripts]\\nmitmproxy = \\\"mitmproxy.tools.main:mitmproxy\\\"\\nmitmdump = \\\"mitmproxy.tools.main:mitmdump\\\"\\nmitmweb = \\\"mitmproxy.tools.main:mitmweb\\\"\\n\\n[project.entry-points.pyinstaller40]\\nhook-dirs = \\\"mitmproxy.utils.pyinstaller:hook_dirs\\\"\\n\\n[build-system]\\nrequires = [\\\"setuptools\\\"]\\nbuild-backend = \\\"setuptools.build_meta\\\"\\n\\n[tool.setuptools.dynamic]\\nversion = {attr = \\\"mitmproxy.version.VERSION\\\"}\\n\\n[tool.setuptools.packages.find]\\ninclude = [\\\"mitmproxy*\\\"]\\n\\n[tool.coverage.run]\\nbranch = false\\nomit = [\\n \\\"*contrib*\\\",\\n \\\"*tnetstring*\\\",\\n \\\"*platform*\\\",\\n \\\"*main.py\\\",\\n]\\n\\n[tool.coverage.report]\\nshow_missing = true\\nexclude_lines = [\\n \\\"pragma: no cover\\\",\\n \\\"raise NotImplementedError\\\",\\n \\\"raise AssertionError\\\",\\n \\\"if typing.TYPE_CHECKING:\\\",\\n \\\"if TYPE_CHECKING:\\\",\\n \\\"@overload\\\",\\n \\\"@abstractmethod\\\",\\n \\\"assert_never\\\",\\n \\\"\\\\\\\\\\\\.\\\\\\\\\\\\.\\\\\\\\\\\\.\\\",\\n]\\n\\n[tool.pytest.ini_options]\\nasyncio_mode = \\\"auto\\\"\\ntestpaths = \\\"test\\\"\\naddopts = \\\"--capture=no --color=yes\\\"\\nfilterwarnings = [\\n \\\"ignore::DeprecationWarning:tornado.*:\\\",\\n]\\n\\n[tool.mypy]\\ncheck_untyped_defs = true\\nignore_missing_imports = true\\nfiles = [\\n \\\"mitmproxy\\\",\\n \\\"examples/addons\\\",\\n \\\"release/*.py\\\",\\n]\\nexclude = [\\n \\\"^docs/\\\",\\n \\\"^release/build/\\\",\\n \\\"^examples/contrib/\\\",\\n]\\n\\n[[tool.mypy.overrides]]\\nmodule = \\\"mitmproxy.contrib.*\\\"\\nignore_errors = true\\n\\n[[tool.mypy.overrides]]\\nmodule = \\\"tornado.*\\\"\\nignore_errors = true\\n\\n[[tool.mypy.overrides]]\\nmodule = \\\"test.*\\\"\\nignore_errors = true\\n\\n[tool.black]\\nextend_exclude = \\\"mitmproxy/contrib/\\\"\\n\\n[tool.tox]\\nlegacy_tox_ini = \\\"[tox]\\\\nenvlist = py, flake8, mypy\\\\nskipsdist = True\\\\ntoxworkdir={env:TOX_WORK_DIR:.tox}\\\\n\\\\n[testenv]\\\\ndeps =\\\\n -e .[dev]\\\\nsetenv = HOME = {envtmpdir}\\\\ncommands =\\\\n mitmdump --version\\\\n pytest --color=no -rA --tb=no -p no:cacheprovider --timeout 60 -vv --cov-report xml --continue-on-collection-errors --cov=mitmproxy --cov=release --full-cov=mitmproxy/ {posargs}\\\\n\\\\n[testenv:flake8]\\\\ndeps =\\\\n flake8>=3.8.4,<6.1\\\\n flake8-tidy-imports>=4.2.0,<5\\\\ncommands =\\\\n flake8 --jobs 8 mitmproxy examples test release {posargs}\\\\n\\\\n[testenv:filename_matching]\\\\ndeps =\\\\ncommands =\\\\n python ./test/filename_matching.py\\\\n\\\\n[testenv:mypy]\\\\ndeps =\\\\n mypy==1.4.1\\\\n types-certifi==2021.10.8.3\\\\n types-Flask==1.1.6\\\\n types-Werkzeug==1.0.9\\\\n types-requests==2.31.0.2\\\\n types-cryptography==3.3.23.2\\\\n types-pyOpenSSL==23.2.0.2\\\\n -e .[dev]\\\\n\\\\ncommands =\\\\n mypy {posargs}\\\\n\\\\n[testenv:individual_coverage]\\\\ncommands =\\\\n python ./test/individual_coverage.py {posargs}\\\\n\\\\n[testenv:wheeltest]\\\\nrecreate = True\\\\ndeps =\\\\ncommands =\\\\n pip install {posargs}\\\\n mitmproxy --version\\\\n mitmdump --version\\\\n mitmweb --version\\\\n\\\"\\n\\nEOF_1234810234\"], \"python\": \"3.11\", \"pip_packages\": [\"aioquic-mitmproxy==0.9.20.3\", \"altgraph==0.17.3\", \"asgiref==3.7.2\", \"attrs==23.1.0\", \"blinker==1.6.2\", \"brotli==1.0.9\", \"build==1.0.3\", \"cachetools==5.3.1\", \"certifi==2023.7.22\", \"cffi==1.15.1\", \"chardet==5.2.0\", \"charset-normalizer==3.2.0\", \"click==8.1.7\", \"colorama==0.4.6\", \"coverage==7.3.1\", \"cryptography==41.0.4\", \"distlib==0.3.7\", \"execnet==2.0.2\", \"filelock==3.12.4\", \"flask==2.3.3\", \"h11==0.14.0\", \"h2==4.1.0\", \"hpack==4.0.0\", \"hyperframe==6.0.1\", \"hypothesis==6.86.2\", \"idna==3.4\", \"iniconfig==2.0.0\", \"itsdangerous==2.1.2\", \"jinja2==3.1.2\", \"kaitaistruct==0.10\", \"ldap3==2.9.1\", \"markupsafe==2.1.3\", \"mitmproxy-rs==0.3.7\", \"msgpack==1.0.6\", \"packaging==23.1\", \"passlib==1.7.4\", \"pdoc==14.1.0\", \"platformdirs==3.10.0\", \"pluggy==1.3.0\", \"protobuf==4.24.3\", \"publicsuffix2==2.20191221\", \"pyasn1==0.5.0\", \"pycparser==2.21\", \"pygments==2.16.1\", \"pyinstaller==5.13.2\", \"pyinstaller-hooks-contrib==2023.8\", \"pylsqpack==0.3.17\", \"pyopenssl==23.2.0\", \"pyparsing==3.1.1\", \"pyperclip==1.8.2\", \"pyproject-api==1.6.1\", \"pyproject-hooks==1.0.0\", \"pytest==7.4.2\", \"pytest-asyncio==0.21.1\", \"pytest-cov==4.1.0\", \"pytest-timeout==2.1.0\", \"pytest-xdist==3.3.1\", \"requests==2.31.0\", \"ruamel-yaml==0.17.32\", \"ruamel-yaml-clib==0.2.7\", \"setuptools==68.2.2\", \"sortedcontainers==2.4.0\", \"tornado==6.3.3\", \"tox==4.11.3\", \"urllib3==2.0.5\", \"urwid-mitmproxy==2.1.2.1\", \"virtualenv==20.24.5\", \"werkzeug==2.3.7\", \"wheel==0.41.2\", \"wsproto==1.2.0\", \"zstandard==0.21.0\"]}"},"test_framework":{"kind":"string","value":"tox -e py -- "},"test_commands":{"kind":"null"},"version":{"kind":"null"},"environment_setup_commit":{"kind":"null"},"docker_image_root":{"kind":"string","value":"swa-bench:sw.eval"}}},{"rowIdx":318,"cells":{"repo":{"kind":"string","value":"mitmproxy/mitmproxy"},"instance_id":{"kind":"string","value":"mitmproxy__mitmproxy-6221"},"base_commit":{"kind":"string","value":"fd01a0aa95b575ce9bf696fd9530f911bfd07fc5"},"patch":{"kind":"string","value":"diff --git a/mitmproxy/proxy/mode_servers.py b/mitmproxy/proxy/mode_servers.py\nindex 4b06ee5b26..d991dee5a3 100644\n--- a/mitmproxy/proxy/mode_servers.py\n+++ b/mitmproxy/proxy/mode_servers.py\n@@ -279,7 +279,7 @@ async def _start(self) -> None:\n assert (\n self.mode.custom_listen_host is None\n ) # since [@ [listen_addr:]listen_port]\n- message += f\"\\nTry specifying a different port by using `--mode {self.mode.full_spec}@{port + 1}`.\"\n+ message += f\"\\nTry specifying a different port by using `--mode {self.mode.full_spec}@{port + 2}`.\"\n raise OSError(e.errno, message, e.filename) from e\n \n async def _stop(self) -> None:\ndiff --git a/mitmproxy/tools/web/master.py b/mitmproxy/tools/web/master.py\nindex 7759de577b..04daa221f0 100644\n--- a/mitmproxy/tools/web/master.py\n+++ b/mitmproxy/tools/web/master.py\n@@ -103,7 +103,7 @@ async def running(self):\n except OSError as e:\n message = f\"Web server failed to listen on {self.options.web_host or '*'}:{self.options.web_port} with {e}\"\n if e.errno == errno.EADDRINUSE:\n- message += f\"\\nTry specifying a different port by using `--set web_port={self.options.web_port + 1}`.\"\n+ message += f\"\\nTry specifying a different port by using `--set web_port={self.options.web_port + 2}`.\"\n raise OSError(e.errno, message, e.filename) from e\n \n logger.info(\n"},"test_patch":{"kind":"string","value":"diff --git a/test/mitmproxy/tools/web/test_master.py b/test/mitmproxy/tools/web/test_master.py\nindex 14b1046949..ee0225754a 100644\n--- a/test/mitmproxy/tools/web/test_master.py\n+++ b/test/mitmproxy/tools/web/test_master.py\n@@ -15,6 +15,6 @@ async def test_reuse():\n master = WebMaster(Options(), with_termlog=False)\n master.options.web_host = \"127.0.0.1\"\n master.options.web_port = port\n- with pytest.raises(OSError, match=f\"--set web_port={port + 1}\"):\n+ with pytest.raises(OSError, match=f\"--set web_port={port + 2}\"):\n await master.running()\n server.close()\n"},"problem_statement":{"kind":"string","value":"Misleading/incorrect message when port 8080 is taken (mitmweb)\n#### Problem Description\r\n- When port 8080 is already taken, `mitmweb` recommends you switch to port 8081.\r\n- However, the web UI is already running on port 8081. The two collide, but no error message is printed.\r\n- If you try to proxy your connections to 8081 as it's telling you, everything breaks.\r\n- This is mainly a problem because non-experienced users won't know that the web UI runs on port 8081, and because no error is printed when the two collide, the proxy just doesn't work for no apparent reason.\r\n\r\n#### Steps to reproduce the behavior:\r\n1. Run any service on port 8080 (anything works as long as it blocks that port).\r\n2. Run `mitmweb` (no arguments). A message is printed stating that port 8080 is taken and that you should switch to 8081 (!)\r\n3. If you switch to port 8081, no errors are printed but a collision with the web UI happens silently. The web UI opens telling you to point your proxy to port 8081, which doesn't work.\r\n\r\n#### System Information\r\n```\r\nMitmproxy: 9.0.1\r\nPython: 3.10.9\r\nOpenSSL: OpenSSL 1.1.1s 1 Nov 2022\r\nPlatform: macOS-13.2-arm64-arm-64bit\r\n```\nUse dynamic port assignment to resolve collision issue between mitmweb and web UI\n#### Description\r\n\r\nTo solve #5891, the fix introduces dynamic port assignment by specifying port 0. When mitmweb is started without specifying a port, it uses\r\n```python\r\nsocket.bind(('', 0))\r\n```\r\nwhich allows the operating system to assign an available port.\r\n\r\n#### Checklist\r\n\r\n - [x] I have updated tests where applicable.\r\n - [ ] I have added an entry to the CHANGELOG.\r\n\n"},"hints_text":{"kind":"string","value":"This seems like an already fixed issue (I'm using Mitmproxy: 10.0.0.dev), I tried this:\r\n\r\n```bash\r\nmitmweb --listen-port 8081 # another service is blocking port 8080\r\n```\r\n\r\nand an error is raised:\r\n\r\n```python\r\n...\r\n File \"/path/to/mitmproxy/mitmproxy/tools/web/master.py\", line 107, in running\r\n raise OSError(e.errno, message, e.filename) from e\r\nOSError: [Errno 98] Web server failed to listen on 127.0.0.1:8081 with [Errno 98] Address already in use\r\nTry specifying a different port by using `--set web_port=8082`.\r\n```\nThat's odd. This is what happens for me:\r\n`mitmweb` (no port specifier)\r\n```\r\nError on startup: [Errno 48] HTTP(S) proxy failed to listen on *:8080 with [Errno 48] error while attempting to bind on address ('0.0.0.0', 8080): address already in use\r\nTry specifying a different port by using `--mode regular@8081`.\r\n```\r\n\r\nThen using the recommended flag, it starts fine even though there's the collision.\nWhich OSes are y'all on?\n\nOn Fri, Jan 27, 2023, 13:37 Isaac McFadyen ***@***.***> wrote:\n\n> That's odd. This is what happens for me:\n> mitmweb (no port specifier)\n>\n> Error on startup: [Errno 48] HTTP(S) proxy failed to listen on *:8080 with [Errno 48] error while attempting to bind on address ('0.0.0.0', 8080): address already in use\n> Try specifying a different port by using `--mode ***@***.***`.\n>\n> Then using the recommended flag, it starts fine.\n>\n> —\n> Reply to this email directly, view it on GitHub\n> ,\n> or unsubscribe\n> \n> .\n> You are receiving this because you are subscribed to this thread.Message\n> ID: ***@***.***>\n>\n\nI'm running on macOS Ventura 13.2 (ARM64, Apple Silicon)\nI'm on Fedora 37\nI tried this on macOS Big Sur:\r\n\r\n```python\r\n$ mitmweb # port 8080 is blocked\r\n\r\nWeb server listening at http://127.0.0.1:8081/\r\n[Errno 48] error while attempting to bind on address ('0.0.0.0', 8080): address already in use\r\nTask exception was never retrieved\r\nfuture: exception=SystemExit(1)>\r\nTraceback (most recent call last):\r\n File \"/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/asyncio/runners.py\", line 44, in run\r\n return loop.run_until_complete(main)\r\n File \"/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/asyncio/base_events.py\", line 603, in run_until_complete\r\n self.run_forever()\r\n File \"/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/asyncio/base_events.py\", line 570, in run_forever\r\n self._run_once()\r\n File \"/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/asyncio/base_events.py\", line 1859, in _run_once\r\n handle._run()\r\n File \"/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/asyncio/events.py\", line 81, in _run\r\n self._context.run(self._callback, *self._args)\r\n File \"/path/to/mitmproxy/venv/lib/python3.8/site-packages/mitmproxy/addons/errorcheck.py\", line 20, in _shutdown_if_errored\r\n sys.exit(1)\r\nSystemExit: 1\r\n```\r\n\r\nThis does try to open the web page but I can't replicate rest of the behaviour.\nSorry I was testing an older version of mitmproxy, upgraded to mitmproxy 9.0.1 and this issue does exist.\nThis seemed like an issue in tornado, I am not yet exactly sure why this works but if I comment out the lines in tornado's `netutils.py` setting `socket.SO_REUSEADDR` then it works as expected on macOS too. These are the lines:\r\n\r\n- [netutil.py#L135](https://github.com/tornadoweb/tornado/blob/59536016e37704a1c47a3a0d262f46ceb6132c06/tornado/netutil.py#L135)\r\n- [netutil.py#L141](https://github.com/tornadoweb/tornado/blob/59536016e37704a1c47a3a0d262f46ceb6132c06/tornado/netutil.py#L141)\r\n\r\n\r\nThis could be due to the fact that the proxy binds to all local addresses whereas the web page only binds to 127.0.0.1 and through whatever magic SO_REUSEADDR does, this might be allowing the web page to bind to port 8081 even when the proxy is already bound to that port. Running the following command, it fixes the issue (assuming raising an error is the desired behaviour):\r\n\r\n```\r\nmitmweb --mode regular@8081 --web-host 0.0.0.0\r\n```\n"},"created_at":{"kind":"string","value":"2023-07-02T11:24:41Z"},"merged_at":{"kind":"string","value":"2023-07-02T12:59:56Z"},"PASS_TO_PASS":{"kind":"string","value":"[]"},"PASS_TO_FAIL":{"kind":"string","value":"[]"},"FAIL_TO_PASS":{"kind":"string","value":"[\"test/mitmproxy/tools/web/test_master.py::test_reuse\"]"},"FAIL_TO_FAIL":{"kind":"string","value":"[]"},"install":{"kind":"string","value":"{\"install\": [\"uv pip install -e .\"], \"pre_install\": [\"tee pyproject.toml <=3.10\\\"\\nlicense = {file=\\\"LICENSE\\\"}\\nauthors = [{name = \\\"Aldo Cortesi\\\", email = \\\"aldo@corte.si\\\"}]\\nmaintainers = [{name = \\\"Maximilian Hils\\\", email = \\\"mitmproxy@maximilianhils.com\\\"}]\\ndynamic = [\\\"version\\\"]\\n\\nclassifiers = [\\n \\\"License :: OSI Approved :: MIT License\\\",\\n \\\"Development Status :: 5 - Production/Stable\\\",\\n \\\"Environment :: Console :: Curses\\\",\\n \\\"Operating System :: MacOS\\\",\\n \\\"Operating System :: POSIX\\\",\\n \\\"Operating System :: Microsoft :: Windows\\\",\\n \\\"Programming Language :: Python :: 3 :: Only\\\",\\n \\\"Programming Language :: Python :: 3.10\\\",\\n \\\"Programming Language :: Python :: 3.11\\\",\\n \\\"Programming Language :: Python :: Implementation :: CPython\\\",\\n \\\"Topic :: Security\\\",\\n \\\"Topic :: Internet :: WWW/HTTP\\\",\\n \\\"Topic :: Internet :: Proxy Servers\\\",\\n \\\"Topic :: System :: Networking :: Monitoring\\\",\\n \\\"Topic :: Software Development :: Testing\\\",\\n \\\"Typing :: Typed\\\",\\n]\\n\\n# https://packaging.python.org/en/latest/discussions/install-requires-vs-requirements/#install-requires\\n# It is not considered best practice to use install_requires to pin dependencies to specific versions.\\ndependencies = [\\n \\\"aioquic_mitmproxy>=0.9.20,<0.10\\\",\\n \\\"asgiref>=3.2.10,<3.8\\\",\\n \\\"Brotli>=1.0,<1.1\\\",\\n \\\"certifi>=2019.9.11\\\", # no semver here - this should always be on the last release!\\n \\\"cryptography>=38.0,<41.1\\\",\\n \\\"flask>=1.1.1,<2.4\\\",\\n \\\"h11>=0.11,<0.15\\\",\\n \\\"h2>=4.1,<5\\\",\\n \\\"hyperframe>=6.0,<7\\\",\\n \\\"kaitaistruct>=0.10,<0.11\\\",\\n \\\"ldap3>=2.8,<2.10\\\",\\n \\\"mitmproxy_rs>=0.3.6,<0.4\\\",\\n \\\"msgpack>=1.0.0, <1.1.0\\\",\\n \\\"passlib>=1.6.5, <1.8\\\",\\n \\\"protobuf>=3.14,<5\\\",\\n \\\"pydivert>=2.0.3,<2.2; sys_platform == 'win32'\\\",\\n \\\"pyOpenSSL>=22.1,<23.3\\\",\\n \\\"pyparsing>=2.4.2,<3.2\\\",\\n \\\"pyperclip>=1.6.0,<1.9\\\",\\n \\\"ruamel.yaml>=0.16,<0.18\\\",\\n \\\"sortedcontainers>=2.3,<2.5\\\",\\n \\\"tornado>=6.2,<7\\\",\\n \\\"typing-extensions>=4.3,<5; python_version<'3.11'\\\",\\n \\\"urwid-mitmproxy>=2.1.1,<2.2\\\",\\n \\\"wsproto>=1.0,<1.3\\\",\\n \\\"publicsuffix2>=2.20190812,<3\\\",\\n \\\"zstandard>=0.11,<0.22\\\",\\n]\\n\\n[project.optional-dependencies]\\ndev = [\\n \\\"click>=7.0,<8.2\\\",\\n \\\"hypothesis>=5.8,<7\\\",\\n \\\"pdoc>=4.0.0\\\",\\n \\\"pyinstaller==5.13.2\\\",\\n \\\"pytest-asyncio>=0.17,<0.22\\\",\\n \\\"pytest-cov>=2.7.1,<4.2\\\",\\n \\\"pytest-timeout>=1.3.3,<2.2\\\",\\n \\\"pytest-xdist>=2.1.0,<3.4\\\",\\n \\\"pytest>=6.1.0,<8\\\",\\n \\\"requests>=2.9.1,<3\\\",\\n \\\"tox>=3.5,<5\\\",\\n \\\"wheel>=0.36.2,<0.42\\\",\\n \\\"build>=0.10.0\\\",\\n]\\n\\n[project.urls]\\nHomepage = \\\"https://mitmproxy.org\\\"\\nSource = \\\"https://github.com/mitmproxy/mitmproxy/\\\"\\nDocumentation = \\\"https://docs.mitmproxy.org/stable/\\\"\\nIssues = \\\"https://github.com/mitmproxy/mitmproxy/issues\\\"\\n\\n[project.scripts]\\nmitmproxy = \\\"mitmproxy.tools.main:mitmproxy\\\"\\nmitmdump = \\\"mitmproxy.tools.main:mitmdump\\\"\\nmitmweb = \\\"mitmproxy.tools.main:mitmweb\\\"\\n\\n[project.entry-points.pyinstaller40]\\nhook-dirs = \\\"mitmproxy.utils.pyinstaller:hook_dirs\\\"\\n\\n[build-system]\\nrequires = [\\\"setuptools\\\"]\\nbuild-backend = \\\"setuptools.build_meta\\\"\\n\\n[tool.setuptools.dynamic]\\nversion = {attr = \\\"mitmproxy.version.VERSION\\\"}\\n\\n[tool.setuptools.packages.find]\\ninclude = [\\\"mitmproxy*\\\"]\\n\\n[tool.coverage.run]\\nbranch = false\\nomit = [\\n \\\"*contrib*\\\",\\n \\\"*tnetstring*\\\",\\n \\\"*platform*\\\",\\n \\\"*main.py\\\",\\n]\\n\\n[tool.coverage.report]\\nshow_missing = true\\nexclude_lines = [\\n \\\"pragma: no cover\\\",\\n \\\"raise NotImplementedError\\\",\\n \\\"raise AssertionError\\\",\\n \\\"if typing.TYPE_CHECKING:\\\",\\n \\\"if TYPE_CHECKING:\\\",\\n \\\"@overload\\\",\\n \\\"@abstractmethod\\\",\\n \\\"assert_never\\\",\\n \\\"\\\\\\\\\\\\.\\\\\\\\\\\\.\\\\\\\\\\\\.\\\",\\n]\\n\\n[tool.pytest.ini_options]\\nasyncio_mode = \\\"auto\\\"\\ntestpaths = \\\"test\\\"\\naddopts = \\\"--capture=no --color=yes\\\"\\nfilterwarnings = [\\n \\\"ignore::DeprecationWarning:tornado.*:\\\",\\n]\\n\\n[tool.mypy]\\ncheck_untyped_defs = true\\nignore_missing_imports = true\\nfiles = [\\n \\\"mitmproxy\\\",\\n \\\"examples/addons\\\",\\n \\\"release/*.py\\\",\\n]\\nexclude = [\\n \\\"^docs/\\\",\\n \\\"^release/build/\\\",\\n \\\"^examples/contrib/\\\",\\n]\\n\\n[[tool.mypy.overrides]]\\nmodule = \\\"mitmproxy.contrib.*\\\"\\nignore_errors = true\\n\\n[[tool.mypy.overrides]]\\nmodule = \\\"tornado.*\\\"\\nignore_errors = true\\n\\n[[tool.mypy.overrides]]\\nmodule = \\\"test.*\\\"\\nignore_errors = true\\n\\n[tool.black]\\nextend_exclude = \\\"mitmproxy/contrib/\\\"\\n\\n[tool.tox]\\nlegacy_tox_ini = \\\"[tox]\\\\nenvlist = py, flake8, mypy\\\\nskipsdist = True\\\\ntoxworkdir={env:TOX_WORK_DIR:.tox}\\\\n\\\\n[testenv]\\\\ndeps =\\\\n -e .[dev]\\\\nsetenv = HOME = {envtmpdir}\\\\ncommands =\\\\n mitmdump --version\\\\n pytest --color=no -rA --tb=no -p no:cacheprovider --timeout 60 -vv --cov-report xml --continue-on-collection-errors --cov=mitmproxy --cov=release --full-cov=mitmproxy/ {posargs}\\\\n\\\\n[testenv:flake8]\\\\ndeps =\\\\n flake8>=3.8.4,<6.1\\\\n flake8-tidy-imports>=4.2.0,<5\\\\ncommands =\\\\n flake8 --jobs 8 mitmproxy examples test release {posargs}\\\\n\\\\n[testenv:filename_matching]\\\\ndeps =\\\\ncommands =\\\\n python ./test/filename_matching.py\\\\n\\\\n[testenv:mypy]\\\\ndeps =\\\\n mypy==1.4.1\\\\n types-certifi==2021.10.8.3\\\\n types-Flask==1.1.6\\\\n types-Werkzeug==1.0.9\\\\n types-requests==2.31.0.2\\\\n types-cryptography==3.3.23.2\\\\n types-pyOpenSSL==23.2.0.2\\\\n -e .[dev]\\\\n\\\\ncommands =\\\\n mypy {posargs}\\\\n\\\\n[testenv:individual_coverage]\\\\ncommands =\\\\n python ./test/individual_coverage.py {posargs}\\\\n\\\\n[testenv:wheeltest]\\\\nrecreate = True\\\\ndeps =\\\\ncommands =\\\\n pip install {posargs}\\\\n mitmproxy --version\\\\n mitmdump --version\\\\n mitmweb --version\\\\n\\\"\\n\\nEOF_1234810234\"], \"python\": \"3.11\", \"pip_packages\": [\"aioquic-mitmproxy==0.9.21.1\", \"altgraph==0.17.4\", \"asgiref==3.7.2\", \"attrs==24.3.0\", \"blinker==1.9.0\", \"brotli==1.0.9\", \"build==1.2.2.post1\", \"cachetools==5.5.0\", \"certifi==2024.12.14\", \"cffi==1.17.1\", \"chardet==5.2.0\", \"charset-normalizer==3.4.1\", \"click==8.1.8\", \"colorama==0.4.6\", \"coverage==7.6.10\", \"cryptography==41.0.7\", \"distlib==0.3.9\", \"execnet==2.1.1\", \"filelock==3.16.1\", \"flask==2.3.3\", \"h11==0.14.0\", \"h2==4.1.0\", \"hpack==4.0.0\", \"hyperframe==6.0.1\", \"hypothesis==6.123.2\", \"idna==3.10\", \"iniconfig==2.0.0\", \"itsdangerous==2.2.0\", \"jinja2==3.1.5\", \"kaitaistruct==0.10\", \"ldap3==2.9.1\", \"markupsafe==3.0.2\", \"mitmproxy-rs==0.3.11\", \"msgpack==1.0.8\", \"packaging==24.2\", \"passlib==1.7.4\", \"pdoc==15.0.1\", \"platformdirs==4.3.6\", \"pluggy==1.5.0\", \"protobuf==4.25.5\", \"publicsuffix2==2.20191221\", \"pyasn1==0.6.1\", \"pyasn1-modules==0.4.1\", \"pycparser==2.22\", \"pygments==2.18.0\", \"pyinstaller==5.13.2\", \"pyinstaller-hooks-contrib==2024.11\", \"pylsqpack==0.3.18\", \"pyopenssl==23.2.0\", \"pyparsing==3.1.4\", \"pyperclip==1.8.2\", \"pyproject-api==1.8.0\", \"pyproject-hooks==1.2.0\", \"pytest==7.4.4\", \"pytest-asyncio==0.21.2\", \"pytest-cov==4.1.0\", \"pytest-timeout==2.1.0\", \"pytest-xdist==3.3.1\", \"requests==2.32.3\", \"ruamel-yaml==0.17.40\", \"ruamel-yaml-clib==0.2.12\", \"service-identity==24.2.0\", \"setuptools==75.6.0\", \"sortedcontainers==2.4.0\", \"tornado==6.4.2\", \"tox==4.23.2\", \"urllib3==2.3.0\", \"urwid-mitmproxy==2.1.2.1\", \"virtualenv==20.28.0\", \"werkzeug==3.1.3\", \"wheel==0.41.3\", \"wsproto==1.2.0\", \"zstandard==0.21.0\"]}"},"test_framework":{"kind":"string","value":"tox -e py -- "},"test_commands":{"kind":"null"},"version":{"kind":"null"},"environment_setup_commit":{"kind":"null"},"docker_image_root":{"kind":"string","value":"swa-bench:sw.eval"}}},{"rowIdx":319,"cells":{"repo":{"kind":"string","value":"mitmproxy/mitmproxy"},"instance_id":{"kind":"string","value":"mitmproxy__mitmproxy-6148"},"base_commit":{"kind":"string","value":"ab9429e3f6f831290f2a104a25b084f3f25b6452"},"patch":{"kind":"string","value":"diff --git a/CHANGELOG.md b/CHANGELOG.md\nindex 5c8f838e61..20f6a3ae94 100644\n--- a/CHANGELOG.md\n+++ b/CHANGELOG.md\n@@ -34,6 +34,8 @@\n ([#6087](https://github.com/mitmproxy/mitmproxy/pull/6087), @sujaldev)\n * focus-follow shortcut will now work in flow view context too.\n ([#6088](https://github.com/mitmproxy/mitmproxy/pull/6088), @sujaldev)\n+* Fix a bug where a server connection timeout would cause requests to be issued with a wrong SNI in reverse proxy mode.\n+ ([#6148](https://github.com/mitmproxy/mitmproxy/pull/6148), @mhils)\n \n ### Breaking Changes\n \ndiff --git a/mitmproxy/proxy/layers/http/__init__.py b/mitmproxy/proxy/layers/http/__init__.py\nindex f5696f25a0..dc3127385f 100644\n--- a/mitmproxy/proxy/layers/http/__init__.py\n+++ b/mitmproxy/proxy/layers/http/__init__.py\n@@ -1043,7 +1043,12 @@ def get_connection(\n self.mode == HTTPMode.transparent\n and event.address == self.context.server.address\n ):\n- context.server.sni = self.context.client.sni or event.address[0]\n+ # reverse proxy mode may set self.context.server.sni, which takes precedence.\n+ context.server.sni = (\n+ self.context.server.sni\n+ or self.context.client.sni\n+ or event.address[0]\n+ )\n else:\n context.server.sni = event.address[0]\n if context.server.transport_protocol == \"tcp\":\n"},"test_patch":{"kind":"string","value":"diff --git a/test/mitmproxy/proxy/layers/http/test_http.py b/test/mitmproxy/proxy/layers/http/test_http.py\nindex 0d8e638df5..f579a065f8 100644\n--- a/test/mitmproxy/proxy/layers/http/test_http.py\n+++ b/test/mitmproxy/proxy/layers/http/test_http.py\n@@ -1432,6 +1432,29 @@ def test_transparent_sni(tctx):\n assert server().sni == \"example.com\"\n \n \n+def test_reverse_sni(tctx):\n+ \"\"\"Test that we use the destination address as SNI in reverse mode.\"\"\"\n+ tctx.client.sni = \"localhost\"\n+ tctx.server.address = (\"192.0.2.42\", 443)\n+ tctx.server.tls = True\n+ tctx.server.sni = \"example.local\"\n+\n+ flow = Placeholder(HTTPFlow)\n+\n+ server = Placeholder(Server)\n+ assert (\n+ Playbook(http.HttpLayer(tctx, HTTPMode.transparent))\n+ >> DataReceived(tctx.client, b\"GET / HTTP/1.1\\r\\n\\r\\n\")\n+ << http.HttpRequestHeadersHook(flow)\n+ >> reply()\n+ << http.HttpRequestHook(flow)\n+ >> reply()\n+ << OpenConnection(server)\n+ )\n+ assert server().address == (\"192.0.2.42\", 443)\n+ assert server().sni == \"example.local\"\n+\n+\n def test_original_server_disconnects(tctx):\n \"\"\"Test that we correctly handle the case where the initial server conn is just closed.\"\"\"\n tctx.server.state = ConnectionState.OPEN\n"},"problem_statement":{"kind":"string","value":"Wrong SNI hostname used for reverse HTTPS proxy\n#### Problem Description\r\nWhen using mitmproxy in reverse proxy mode, it attempts to use the mitmproxy's domain for SNI in the outer TLS connection, fails to validate that connection and returns \"502 Bad Gateway\" -- \"Certificate verify failed: Hostname mismatch\"\r\n\r\n#### Steps to reproduce the behavior:\r\n1. Start mitmproxy in reverse proxy mode, e.g.\r\n\r\n```mitmproxy --mode reverse:https://www.chimieparistech.psl.eu@8081 --certs locahost=localhost.pem```\r\n\r\n3. Get https://localhost:8081/ with Chrome or Edge\r\n\r\nmitmproxy logs...\r\n```warn: [10:40:24.473][[::1]:62455] Server TLS handshake failed. Certificate verify failed: hostname mismatch```\r\n... and returns to the browser ...\r\n502 Bad Gateway, Certificate verify failed: hostname mismatch.\r\n\r\nA packet capture of the traffic shows that mitmproxy sends at least 2 client Hello packets to the Chimieparistech server. In the first one the SNI is www.chimieparistech.psl.eu but right after, the second one has for SNI : localhost.\r\n\r\nProblem does not repeat when using Firefox or curl. \r\n\r\n#### System Information\r\nMitmproxy: 9.0.1\r\nPython: 3.11.2\r\nOpenSSL: OpenSSL 3.0.7 1 Nov 2022\r\nPlatform: Windows-10-10.0.22621-SP0\r\nChrome : Version 113.0.5672.127)\r\nEdge : Version 113.0.1774.50)\n"},"hints_text":{"kind":"string","value":"Can you reproduce this on the main branch?\nYes I can reproduce it on the main branch.\r\nI forgot an important fact : problem happens only one out of two times. Page loads correctly in the browser, but when I reload it fails. Or I click on a link, it fails but when I reload it loads correctly.\r\nThank you.\nThanks, that was the missing bit! Here's a simplified reproducer:\r\n```\r\n$ mitmdump --mode reverse:https://www.chimieparistech.psl.eu@8081 --set proxy_debug -vvv\r\n$ curl https://localhost:8081/robots.txt https://localhost:8081/robots.txt -kq --rate 6/m\r\n```\nThe problem is in this snippet here - not sure yet what's the best way to fix it:\r\nhttps://github.com/mitmproxy/mitmproxy/blob/ab9429e3f6f831290f2a104a25b084f3f25b6452/mitmproxy/proxy/layers/http/__init__.py#L1040-L1046"},"created_at":{"kind":"string","value":"2023-05-28T16:28:44Z"},"merged_at":{"kind":"string","value":"2023-05-28T16:35:34Z"},"PASS_TO_PASS":{"kind":"string","value":"[\"test/mitmproxy/proxy/layers/http/test_http.py::test_redirect[lazy-True-False]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_request_streaming[early kill-chunked-body_size=0]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_kill_flow[requestheaders]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_request_streaming[early close-identity-body_size=0]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_http_proxy_tcp[client-regular]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_response_until_eof\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_proxy_chain[eager]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_http_proxy_relative_request_no_host_header\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_upstream_proxy[http-xn--eckwd4c7c.xn--zckzah-change-destination]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_redirect[eager-True-False]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_kill_flow[script-response-responseheaders]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_upstream_proxy[https-xn--eckwd4c7c.xn--zckzah-change-proxy]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_upstream_proxy[https-example.com-]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_https_proxy[lazy]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_http_client_aborts[False]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_redirect[eager-False-True]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_connection_close_header[Connection: close\\\\r\\\\n-Connection: close\\\\r\\\\n]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_request_streaming[early close-identity-body_size=3]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_http_client_aborts[True]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_pipelining[chunked]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_response_streaming[chunked-body_size=0]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_reuse_error\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_redirect[eager-False-False]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_response_streaming[chunked-addon]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_request_streaming[early kill-identity-addon]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_request_streaming[early kill-identity-body_size=3]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_http_server_aborts[False]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_http_proxy_relative_request\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_http_proxy_tcp[server-regular]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_request_streaming[early response-chunked-addon]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_response_streaming[identity-body_size=0]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_upgrade[none]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_upstream_proxy[https-xn--eckwd4c7c.xn--zckzah-]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_body_size_limit[chunked-response]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_memory_usage_errored_flows\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_disconnect_while_intercept\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_request_streaming[early kill-chunked-addon]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_original_server_disconnects\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_kill_flow[request]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_request_streaming[normal response-identity-body_size=3]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_kill_flow[error]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_no_headers\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_http_reply_from_proxy\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_kill_flow[http_connect]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_request_streaming[normal response-chunked-body_size=0]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_upstream_proxy[https-example.com-change-proxy]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_request_streaming[early response-identity-addon]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_server_aborts[None]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_upstream_proxy[https-xn--eckwd4c7c.xn--zckzah-change-destination]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_connection_close_header[-]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_server_unreachable[True]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_http_expect\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_request_streaming[early kill-chunked-body_size=3]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_body_size_limit[identity-response]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_http_proxy_without_empty_chunk_in_head_request\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_upstream_proxy[http-example.com-change-destination]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_redirect[lazy-False-False]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_connection_close_header[-Connection: close\\\\r\\\\n]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_dont_reuse_closed\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_upgrade[tcp]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_body_size_limit[chunked-request]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_request_streaming[early close-chunked-body_size=3]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_transparent_sni\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_request_streaming[early response-identity-body_size=3]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_http_proxy\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_proxy_chain[lazy]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_multiple_server_connections\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_request_streaming[normal response-identity-body_size=0]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_request_streaming[early close-chunked-body_size=0]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_upstream_proxy[https-example.com-change-destination]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_connect_more_newlines\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_request_streaming[early response-chunked-body_size=3]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_body_size_limit[identity-request]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_chunked_and_content_length_set_by_addon\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_request_smuggling\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_upstream_proxy[http-example.com-]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_https_proxy[eager]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_response_streaming[chunked-body_size=3]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_kill_flow[responseheaders]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_kill_flow[response]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_upgrade[websocket]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_request_streaming[early kill-identity-body_size=0]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_http_server_aborts[True]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_redirect[lazy-True-True]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_upstream_proxy[http-xn--eckwd4c7c.xn--zckzah-change-proxy]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_http_proxy_tcp[server-upstream]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_stream_modify\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_invalid_content_length\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_request_streaming[normal response-chunked-addon]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_pipelining[identity]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_response_streaming[identity-addon]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_request_smuggling_te_te\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_upstream_proxy[http-example.com-change-proxy]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_response_streaming[identity-body_size=3]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_request_smuggling_whitespace\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_server_unreachable[False]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_memory_usage_completed_flows\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_redirect[lazy-False-True]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_request_streaming[early close-identity-addon]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_redirect[eager-True-True]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_request_streaming[early response-identity-body_size=0]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_request_streaming[early close-chunked-addon]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_connection_close_header[Connection: close\\\\r\\\\n-]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_request_streaming[normal response-identity-addon]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_close_during_connect_hook\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_upstream_proxy[http-xn--eckwd4c7c.xn--zckzah-]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_request_streaming[early response-chunked-body_size=0]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_http_proxy_tcp[client-upstream]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_request_smuggling_validation_disabled\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_request_streaming[normal response-chunked-body_size=3]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_server_aborts[HTTP/1.1 200 OK\\\\r\\\\nContent-Length: 10\\\\r\\\\n\\\\r\\\\nweee]\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_server_aborts[I don't speak HTTP.]\"]"},"PASS_TO_FAIL":{"kind":"string","value":"[]"},"FAIL_TO_PASS":{"kind":"string","value":"[\"test/mitmproxy/proxy/layers/http/test_http.py::test_reverse_sni\", \"test/mitmproxy/proxy/layers/http/test_http.py::test_drop_stream_with_paused_events\"]"},"FAIL_TO_FAIL":{"kind":"string","value":"[]"},"install":{"kind":"string","value":"{\"install\": [\"uv pip install -e .\"], \"pre_install\": [\"tee pyproject.toml <=3.10\\\"\\nlicense = {file=\\\"LICENSE\\\"}\\nauthors = [{name = \\\"Aldo Cortesi\\\", email = \\\"aldo@corte.si\\\"}]\\nmaintainers = [{name = \\\"Maximilian Hils\\\", email = \\\"mitmproxy@maximilianhils.com\\\"}]\\ndynamic = [\\\"version\\\"]\\n\\nclassifiers = [\\n \\\"License :: OSI Approved :: MIT License\\\",\\n \\\"Development Status :: 5 - Production/Stable\\\",\\n \\\"Environment :: Console :: Curses\\\",\\n \\\"Operating System :: MacOS\\\",\\n \\\"Operating System :: POSIX\\\",\\n \\\"Operating System :: Microsoft :: Windows\\\",\\n \\\"Programming Language :: Python :: 3 :: Only\\\",\\n \\\"Programming Language :: Python :: 3.10\\\",\\n \\\"Programming Language :: Python :: 3.11\\\",\\n \\\"Programming Language :: Python :: Implementation :: CPython\\\",\\n \\\"Topic :: Security\\\",\\n \\\"Topic :: Internet :: WWW/HTTP\\\",\\n \\\"Topic :: Internet :: Proxy Servers\\\",\\n \\\"Topic :: System :: Networking :: Monitoring\\\",\\n \\\"Topic :: Software Development :: Testing\\\",\\n \\\"Typing :: Typed\\\",\\n]\\n\\n# https://packaging.python.org/en/latest/discussions/install-requires-vs-requirements/#install-requires\\n# It is not considered best practice to use install_requires to pin dependencies to specific versions.\\ndependencies = [\\n \\\"aioquic_mitmproxy>=0.9.20,<0.10\\\",\\n \\\"asgiref>=3.2.10,<3.7\\\",\\n \\\"Brotli>=1.0,<1.1\\\",\\n \\\"certifi>=2019.9.11\\\", # no semver here - this should always be on the last release!\\n \\\"cryptography>=38.0,<40.1\\\",\\n \\\"flask>=1.1.1,<2.4\\\",\\n \\\"h11>=0.11,<0.15\\\",\\n \\\"h2>=4.1,<5\\\",\\n \\\"hyperframe>=6.0,<7\\\",\\n \\\"kaitaistruct>=0.10,<0.11\\\",\\n \\\"ldap3>=2.8,<2.10\\\",\\n \\\"mitmproxy_rs>=0.2.0b1,<0.3\\\",\\n \\\"msgpack>=1.0.0, <1.1.0\\\",\\n \\\"passlib>=1.6.5, <1.8\\\",\\n \\\"protobuf>=3.14,<5\\\",\\n \\\"pydivert>=2.0.3,<2.2; sys_platform == 'win32'\\\",\\n \\\"pyOpenSSL>=22.1,<23.2\\\",\\n \\\"pyparsing>=2.4.2,<3.1\\\",\\n \\\"pyperclip>=1.6.0,<1.9\\\",\\n \\\"ruamel.yaml>=0.16,<0.18\\\",\\n \\\"sortedcontainers>=2.3,<2.5\\\",\\n \\\"tornado>=6.2,<7\\\",\\n \\\"typing-extensions>=4.3,<4.6; python_version<'3.11'\\\",\\n \\\"urwid-mitmproxy>=2.1.1,<2.2\\\",\\n \\\"wsproto>=1.0,<1.3\\\",\\n \\\"publicsuffix2>=2.20190812,<3\\\",\\n \\\"zstandard>=0.11,<0.22\\\",\\n]\\n\\n[project.optional-dependencies]\\ndev = [\\n \\\"click>=7.0,<8.2\\\",\\n \\\"hypothesis>=5.8,<7\\\",\\n \\\"pdoc>=4.0.0\\\",\\n \\\"pyinstaller==5.10.1\\\",\\n \\\"pytest-asyncio>=0.17,<0.22\\\",\\n \\\"pytest-cov>=2.7.1,<4.1\\\",\\n \\\"pytest-timeout>=1.3.3,<2.2\\\",\\n \\\"pytest-xdist>=2.1.0,<3.3\\\",\\n \\\"pytest>=6.1.0,<8\\\",\\n \\\"requests>=2.9.1,<3\\\",\\n \\\"tox>=3.5,<5\\\",\\n \\\"wheel>=0.36.2,<0.41\\\",\\n \\\"build>=0.10.0\\\",\\n]\\n\\n[project.urls]\\nHomepage = \\\"https://mitmproxy.org\\\"\\nSource = \\\"https://github.com/mitmproxy/mitmproxy/\\\"\\nDocumentation = \\\"https://docs.mitmproxy.org/stable/\\\"\\nIssues = \\\"https://github.com/mitmproxy/mitmproxy/issues\\\"\\n\\n[project.scripts]\\nmitmproxy = \\\"mitmproxy.tools.main:mitmproxy\\\"\\nmitmdump = \\\"mitmproxy.tools.main:mitmdump\\\"\\nmitmweb = \\\"mitmproxy.tools.main:mitmweb\\\"\\n\\n[project.entry-points.pyinstaller40]\\nhook-dirs = \\\"mitmproxy.utils.pyinstaller:hook_dirs\\\"\\n\\n[build-system]\\nrequires = [\\\"setuptools\\\"]\\nbuild-backend = \\\"setuptools.build_meta\\\"\\n\\n[tool.setuptools.dynamic]\\nversion = {attr = \\\"mitmproxy.version.VERSION\\\"}\\n\\n[tool.setuptools.packages.find]\\ninclude = [\\\"mitmproxy*\\\"]\\n\\n[tool.coverage.run]\\nbranch = false\\nomit = [\\n \\\"*contrib*\\\",\\n \\\"*tnetstring*\\\",\\n \\\"*platform*\\\",\\n \\\"*main.py\\\",\\n]\\n\\n[tool.coverage.report]\\nshow_missing = true\\nexclude_lines = [\\n \\\"pragma: no cover\\\",\\n \\\"raise NotImplementedError\\\",\\n \\\"raise AssertionError\\\",\\n \\\"if typing.TYPE_CHECKING:\\\",\\n \\\"if TYPE_CHECKING:\\\",\\n \\\"@overload\\\",\\n \\\"@abstractmethod\\\",\\n \\\"assert_never\\\",\\n \\\"\\\\\\\\\\\\.\\\\\\\\\\\\.\\\\\\\\\\\\.\\\",\\n]\\n\\n[tool.pytest.ini_options]\\nasyncio_mode = \\\"auto\\\"\\ntestpaths = \\\"test\\\"\\naddopts = \\\"--capture=no --color=yes\\\"\\nfilterwarnings = [\\n \\\"ignore::DeprecationWarning:tornado.*:\\\",\\n]\\n\\n[tool.mypy]\\ncheck_untyped_defs = true\\nignore_missing_imports = true\\nfiles = [\\n \\\"mitmproxy\\\",\\n \\\"examples/addons\\\",\\n \\\"release/*.py\\\",\\n]\\nexclude = [\\n \\\"^docs/\\\",\\n \\\"^release/build/\\\",\\n \\\"^examples/contrib/\\\",\\n]\\n\\n[[tool.mypy.overrides]]\\nmodule = \\\"mitmproxy.contrib.*\\\"\\nignore_errors = true\\n\\n[[tool.mypy.overrides]]\\nmodule = \\\"tornado.*\\\"\\nignore_errors = true\\n\\n[[tool.mypy.overrides]]\\nmodule = \\\"test.*\\\"\\nignore_errors = true\\n\\n[tool.tox]\\nlegacy_tox_ini = \\\"[tox]\\\\nenvlist = py, flake8, mypy\\\\nskipsdist = True\\\\ntoxworkdir={env:TOX_WORK_DIR:.tox}\\\\n\\\\n[testenv]\\\\ndeps =\\\\n -e .[dev]\\\\nsetenv = HOME = {envtmpdir}\\\\ncommands =\\\\n mitmdump --version\\\\n pytest --color=no -rA --tb=no -p no:cacheprovider --timeout 60 -vv --cov-report xml --continue-on-collection-errors --cov=mitmproxy --cov=release --full-cov=mitmproxy/ {posargs}\\\\n\\\\n[testenv:flake8]\\\\ndeps =\\\\n flake8>=3.8.4,<6.1\\\\n flake8-tidy-imports>=4.2.0,<5\\\\ncommands =\\\\n flake8 --jobs 8 mitmproxy examples test release {posargs}\\\\n\\\\n[testenv:filename_matching]\\\\ndeps =\\\\ncommands =\\\\n python ./test/filename_matching.py\\\\n\\\\n[testenv:mypy]\\\\ndeps =\\\\n mypy==1.0.0\\\\n types-certifi==2021.10.8.3\\\\n types-Flask==1.1.6\\\\n types-Werkzeug==1.0.9\\\\n types-requests==2.28.11.11\\\\n types-cryptography==3.3.23.2\\\\n types-pyOpenSSL==23.0.0.2\\\\n -e .[dev]\\\\n\\\\ncommands =\\\\n mypy {posargs}\\\\n\\\\n[testenv:individual_coverage]\\\\ncommands =\\\\n python ./test/individual_coverage.py {posargs}\\\\n\\\\n[testenv:wheeltest]\\\\nrecreate = True\\\\ndeps =\\\\ncommands =\\\\n pip install {posargs}\\\\n mitmproxy --version\\\\n mitmdump --version\\\\n mitmweb --version\\\\n\\\"\\n\\nEOF_1234810234\"], \"python\": \"3.11\", \"pip_packages\": [\"aioquic-mitmproxy==0.9.20.3\", \"altgraph==0.17.3\", \"asgiref==3.6.0\", \"attrs==23.1.0\", \"blinker==1.6.2\", \"brotli==1.0.9\", \"build==0.10.0\", \"cachetools==5.3.1\", \"certifi==2023.5.7\", \"cffi==1.15.1\", \"chardet==5.1.0\", \"charset-normalizer==3.1.0\", \"click==8.1.3\", \"colorama==0.4.6\", \"coverage==7.2.6\", \"cryptography==40.0.2\", \"distlib==0.3.6\", \"execnet==1.9.0\", \"filelock==3.12.0\", \"flask==2.3.2\", \"h11==0.14.0\", \"h2==4.1.0\", \"hpack==4.0.0\", \"hyperframe==6.0.1\", \"hypothesis==6.75.6\", \"idna==3.4\", \"iniconfig==2.0.0\", \"itsdangerous==2.1.2\", \"jinja2==3.1.2\", \"kaitaistruct==0.10\", \"ldap3==2.9.1\", \"markupsafe==2.1.2\", \"mitmproxy-rs==0.2.0b8\", \"msgpack==1.0.5\", \"packaging==23.1\", \"passlib==1.7.4\", \"pdoc==13.1.1\", \"platformdirs==3.5.1\", \"pluggy==1.0.0\", \"protobuf==4.23.2\", \"publicsuffix2==2.20191221\", \"pyasn1==0.5.0\", \"pycparser==2.21\", \"pygments==2.15.1\", \"pyinstaller==5.10.1\", \"pyinstaller-hooks-contrib==2023.3\", \"pylsqpack==0.3.17\", \"pyopenssl==23.1.1\", \"pyparsing==3.0.9\", \"pyperclip==1.8.2\", \"pyproject-api==1.5.1\", \"pyproject-hooks==1.0.0\", \"pytest==7.3.1\", \"pytest-asyncio==0.21.0\", \"pytest-cov==4.0.0\", \"pytest-timeout==2.1.0\", \"pytest-xdist==3.2.1\", \"requests==2.31.0\", \"ruamel-yaml==0.17.28\", \"ruamel-yaml-clib==0.2.7\", \"setuptools==67.8.0\", \"sortedcontainers==2.4.0\", \"tornado==6.3.2\", \"tox==4.5.2\", \"urllib3==2.0.2\", \"urwid-mitmproxy==2.1.2.1\", \"virtualenv==20.23.0\", \"werkzeug==2.3.4\", \"wheel==0.40.0\", \"wsproto==1.2.0\", \"zstandard==0.21.0\"]}"},"test_framework":{"kind":"string","value":"tox -e py -- "},"test_commands":{"kind":"null"},"version":{"kind":"null"},"environment_setup_commit":{"kind":"null"},"docker_image_root":{"kind":"string","value":"swa-bench:sw.eval"}}},{"rowIdx":320,"cells":{"repo":{"kind":"string","value":"mitmproxy/mitmproxy"},"instance_id":{"kind":"string","value":"mitmproxy__mitmproxy-6020"},"base_commit":{"kind":"string","value":"84b03c06e3d857c70daa2eb0d0c83a0c1af556ba"},"patch":{"kind":"string","value":"diff --git a/mitmproxy/addons/errorcheck.py b/mitmproxy/addons/errorcheck.py\nindex b634623cff..4dccffac53 100644\n--- a/mitmproxy/addons/errorcheck.py\n+++ b/mitmproxy/addons/errorcheck.py\n@@ -8,8 +8,14 @@\n class ErrorCheck:\n \"\"\"Monitor startup for error log entries, and terminate immediately if there are some.\"\"\"\n \n- def __init__(self, log_to_stderr: bool = False) -> None:\n- self.log_to_stderr = log_to_stderr\n+ repeat_errors_on_stderr: bool\n+ \"\"\"\n+ Repeat all errors on stderr before exiting.\n+ This is useful for the console UI, which otherwise swallows all output.\n+ \"\"\"\n+\n+ def __init__(self, repeat_errors_on_stderr: bool = False) -> None:\n+ self.repeat_errors_on_stderr = repeat_errors_on_stderr\n \n self.logger = ErrorCheckHandler()\n self.logger.install()\n@@ -21,10 +27,14 @@ async def shutdown_if_errored(self):\n # don't run immediately, wait for all logging tasks to finish.\n await asyncio.sleep(0)\n if self.logger.has_errored:\n- if self.log_to_stderr:\n- plural = \"s\" if len(self.logger.has_errored) > 1 else \"\"\n+ plural = \"s\" if len(self.logger.has_errored) > 1 else \"\"\n+ if self.repeat_errors_on_stderr:\n msg = \"\\n\".join(r.msg for r in self.logger.has_errored)\n- print(f\"Error{plural} on startup: {msg}\", file=sys.stderr)\n+ print(f\"Error{plural} logged during startup: {msg}\", file=sys.stderr)\n+ else:\n+ print(\n+ f\"Error{plural} logged during startup, exiting...\", file=sys.stderr\n+ )\n \n sys.exit(1)\n \ndiff --git a/mitmproxy/tools/console/master.py b/mitmproxy/tools/console/master.py\nindex 26ca04f17d..b4e85901c3 100644\n--- a/mitmproxy/tools/console/master.py\n+++ b/mitmproxy/tools/console/master.py\n@@ -55,7 +55,7 @@ def __init__(self, opts: options.Options) -> None:\n readfile.ReadFile(),\n consoleaddons.ConsoleAddon(self),\n keymap.KeymapConfig(self),\n- errorcheck.ErrorCheck(log_to_stderr=True),\n+ errorcheck.ErrorCheck(repeat_errors_on_stderr=True),\n )\n \n self.window: window.Window | None = None\n"},"test_patch":{"kind":"string","value":"diff --git a/test/mitmproxy/addons/test_errorcheck.py b/test/mitmproxy/addons/test_errorcheck.py\nindex 16de948007..b96a6dbadc 100644\n--- a/test/mitmproxy/addons/test_errorcheck.py\n+++ b/test/mitmproxy/addons/test_errorcheck.py\n@@ -1,3 +1,5 @@\n+import logging\n+\n import pytest\n \n from mitmproxy.addons.errorcheck import ErrorCheck\n@@ -13,10 +15,19 @@ def test_errorcheck(tdata, capsys):\n tdata.path(\"mitmproxy/data/addonscripts/load_error.py\"),\n ]\n )\n- assert \"Error on startup\" in capsys.readouterr().err\n+ assert \"Error logged during startup\" in capsys.readouterr().err\n \n \n async def test_no_error():\n e = ErrorCheck()\n await e.shutdown_if_errored()\n e.finish()\n+\n+\n+async def test_error_message(capsys):\n+ e = ErrorCheck()\n+ logging.error(\"wat\")\n+ logging.error(\"wat\")\n+ with pytest.raises(SystemExit):\n+ await e.shutdown_if_errored()\n+ assert \"Errors logged during startup\" in capsys.readouterr().err\n"},"problem_statement":{"kind":"string","value":"Logging verbosity impacts logs from a script\n#### Problem Description\r\nWhen I set the log verbosity in the config file to `warn`, i.e.\r\n\r\n```\r\nconsole_eventlog_verbosity: warn\r\ntermlog_verbosity: warn\r\n```\r\n\r\nlogs that I'm writing in a script at that log level or higher are not outputted to stdout, whereas they are if I leave the verbosity at `info`, they are.\r\n\r\n#### Steps to reproduce the behavior:\r\n1. Set the `eventlog` and `termlog` verbosity to `warn`\r\n2. Run a script with something like the following:\r\n\r\n```python\r\nimport logging\r\n\r\nclass Handler\r\n def __init__(self):\r\n logging.basicConfig(level=logging.WARNING, \r\n format='%(asctime)s %(levelname)s %(name)s %(message)s',\r\n filename=\"/var/log/mitmproxy.log\"\r\n )\r\n self.logger = logging.getLogger(__name__)\r\n\r\n def request(self, flow: http.HTTPFlow):\r\n self.logger.warning(\"A warning here\")\r\n```\r\n\r\n#### System Information\r\nMitmproxy: 9.0.1\r\nPython: 3.10.10\r\nOpenSSL: OpenSSL 3.0.7 1 Nov 2022\r\nPlatform: Linux-5.10.162-141.675.amzn2.x86_64-x86_64-with\r\n\n"},"hints_text":{"kind":"string","value":"I can't reproduce this with what you provided. The following works as expected for me:\r\n\r\n```python\r\nimport logging\r\nfrom mitmproxy import http\r\n\r\nclass Handler:\r\n def __init__(self):\r\n logging.basicConfig(level=logging.WARNING, \r\n format='%(asctime)s %(levelname)s %(name)s %(message)s',\r\n filename=\"/var/log/mitmproxy.log\"\r\n )\r\n self.logger = logging.getLogger(__name__)\r\n\r\n def request(self, flow: http.HTTPFlow):\r\n self.logger.warning(\"A warning here\")\r\n\r\naddons = [Handler()]\r\n```\r\n```shell\r\nmitmdump -s foo.py --set termlog_verbosity=warn\r\n```\r\n```shell\r\ncurl -x localhost:8080 -k https://example.com\r\n```\r\n\r\n![image](https://user-images.githubusercontent.com/1019198/219645592-33c95649-b46d-477f-b361-d56846110a46.png)\r\n\r\n
\r\n\r\nMitmproxy: 10.0.0.dev (+217, commit 2663b42)\r\nPython: 3.11.2\r\nOpenSSL: OpenSSL 3.0.8 7 Feb 2023\r\nPlatform: Linux-4.4.0-22621-Microsoft-x86_64-with-glibc2.35\nSorry, I think my problem was stemming from a different behavior. If I call `self.logger.error(\"My error\")`, it terminates the mitmproxy process. Is this intended, any logged error stops the process?\nAbsolutely not, except during startup. Again this needs a full repro. :)\n```\r\n#!/usr/bin/env python3\r\n\r\nfrom mitmproxy import http\r\nfrom mitmproxy import coretypes\r\nimport logging\r\n\r\nclass Throttling:\r\n \r\n def __init__(self):\r\n logging.basicConfig(level=logging.INFO, \r\n format='%(asctime)s %(levelname)s %(name)s %(message)s',\r\n filename = \"/var/log/mitmprox/mitmproxy.log\",\r\n filemode= \"a\"\r\n )\r\n self.logger = logging.getLogger(__name__)\r\n self.logger.error(\"Init called\")\r\n\r\n def request(self, flow: http.HTTPFlow):\r\n self.logger.warning(\"received request\")\r\n\r\naddons = [Throttling()]\r\n```\r\nLogging an error during ``__init__`` terminates the container I'm running this in.\nYes, errors during startup are intentionally fatal. The idea here is that those likely point to mistakes in the invocation, and it would be worse to silently swallow those.\nThe relevant addon is here: https://github.com/mitmproxy/mitmproxy/blob/main/mitmproxy/addons/errorcheck.py I'd be open to making this configurable, but it seems like it would be a reasonable alternative to just `.warn` in your case?\nUsing `.warn` is acceptable, just wasn't expecting logging an error during init to be fatal.\nIf you have ideas how how we can improve the dev experience here I'm all ears. Would an explicit message on stdout help? I'm thinking of something like \"Errors logged during startup, exiting...\".\nAn explicit message would definitely help, or even just a note in the documentation to expect this behavior, both would be ok for me."},"created_at":{"kind":"string","value":"2023-03-26T18:06:12Z"},"merged_at":{"kind":"string","value":"2023-03-26T18:14:57Z"},"PASS_TO_PASS":{"kind":"string","value":"[]"},"PASS_TO_FAIL":{"kind":"string","value":"[]"},"FAIL_TO_PASS":{"kind":"string","value":"[\"test/mitmproxy/addons/test_errorcheck.py::test_errorcheck\", \"test/mitmproxy/addons/test_errorcheck.py::test_error_message\", \"test/mitmproxy/addons/test_errorcheck.py::test_no_error\"]"},"FAIL_TO_FAIL":{"kind":"string","value":"[]"},"install":{"kind":"string","value":"{\"install\": [\"uv pip install -e .\"], \"pre_install\": [\"tee pyproject.toml <=3.10\\\"\\nlicense = {file=\\\"LICENSE\\\"}\\nauthors = [{name = \\\"Aldo Cortesi\\\", email = \\\"aldo@corte.si\\\"}]\\nmaintainers = [{name = \\\"Maximilian Hils\\\", email = \\\"mitmproxy@maximilianhils.com\\\"}]\\ndynamic = [\\\"version\\\"]\\n\\nclassifiers = [\\n \\\"License :: OSI Approved :: MIT License\\\",\\n \\\"Development Status :: 5 - Production/Stable\\\",\\n \\\"Environment :: Console :: Curses\\\",\\n \\\"Operating System :: MacOS\\\",\\n \\\"Operating System :: POSIX\\\",\\n \\\"Operating System :: Microsoft :: Windows\\\",\\n \\\"Programming Language :: Python :: 3 :: Only\\\",\\n \\\"Programming Language :: Python :: 3.10\\\",\\n \\\"Programming Language :: Python :: 3.11\\\",\\n \\\"Programming Language :: Python :: Implementation :: CPython\\\",\\n \\\"Topic :: Security\\\",\\n \\\"Topic :: Internet :: WWW/HTTP\\\",\\n \\\"Topic :: Internet :: Proxy Servers\\\",\\n \\\"Topic :: System :: Networking :: Monitoring\\\",\\n \\\"Topic :: Software Development :: Testing\\\",\\n \\\"Typing :: Typed\\\",\\n]\\n\\n# https://packaging.python.org/en/latest/discussions/install-requires-vs-requirements/#install-requires\\n# It is not considered best practice to use install_requires to pin dependencies to specific versions.\\ndependencies = [\\n \\\"aioquic_mitmproxy>=0.9.20,<0.10\\\",\\n \\\"asgiref>=3.2.10,<3.7\\\",\\n \\\"Brotli>=1.0,<1.1\\\",\\n \\\"certifi>=2019.9.11\\\", # no semver here - this should always be on the last release!\\n \\\"cryptography>=38.0,<40.1\\\",\\n \\\"flask>=1.1.1,<2.4\\\",\\n \\\"h11>=0.11,<0.15\\\",\\n \\\"h2>=4.1,<5\\\",\\n \\\"hyperframe>=6.0,<7\\\",\\n \\\"kaitaistruct>=0.10,<0.11\\\",\\n \\\"ldap3>=2.8,<2.10\\\",\\n \\\"mitmproxy_rs>=0.2.0b1,<0.3\\\",\\n \\\"msgpack>=1.0.0, <1.1.0\\\",\\n \\\"passlib>=1.6.5, <1.8\\\",\\n \\\"protobuf>=3.14,<5\\\",\\n \\\"pydivert>=2.0.3,<2.2; sys_platform == 'win32'\\\",\\n \\\"pyOpenSSL>=22.1,<23.2\\\",\\n \\\"pyparsing>=2.4.2,<3.1\\\",\\n \\\"pyperclip>=1.6.0,<1.9\\\",\\n \\\"ruamel.yaml>=0.16,<0.18\\\",\\n \\\"sortedcontainers>=2.3,<2.5\\\",\\n \\\"tornado>=6.2,<7\\\",\\n \\\"typing-extensions>=4.3,<4.6; python_version<'3.11'\\\",\\n \\\"urwid-mitmproxy>=2.1.1,<2.2\\\",\\n \\\"wsproto>=1.0,<1.3\\\",\\n \\\"publicsuffix2>=2.20190812,<3\\\",\\n \\\"zstandard>=0.11,<0.22\\\",\\n]\\n\\n[project.optional-dependencies]\\ndev = [\\n \\\"click>=7.0,<8.2\\\",\\n \\\"hypothesis>=5.8,<7\\\",\\n \\\"pdoc>=4.0.0\\\",\\n \\\"pyinstaller==5.10.1\\\",\\n \\\"pytest-asyncio>=0.17,<0.22\\\",\\n \\\"pytest-cov>=2.7.1,<4.1\\\",\\n \\\"pytest-timeout>=1.3.3,<2.2\\\",\\n \\\"pytest-xdist>=2.1.0,<3.3\\\",\\n \\\"pytest>=6.1.0,<8\\\",\\n \\\"requests>=2.9.1,<3\\\",\\n \\\"tox>=3.5,<5\\\",\\n \\\"wheel>=0.36.2,<0.41\\\",\\n \\\"build>=0.10.0\\\",\\n]\\n\\n[project.urls]\\nHomepage = \\\"https://mitmproxy.org\\\"\\nSource = \\\"https://github.com/mitmproxy/mitmproxy/\\\"\\nDocumentation = \\\"https://docs.mitmproxy.org/stable/\\\"\\nIssues = \\\"https://github.com/mitmproxy/mitmproxy/issues\\\"\\n\\n[project.scripts]\\nmitmproxy = \\\"mitmproxy.tools.main:mitmproxy\\\"\\nmitmdump = \\\"mitmproxy.tools.main:mitmdump\\\"\\nmitmweb = \\\"mitmproxy.tools.main:mitmweb\\\"\\n\\n[project.entry-points.pyinstaller40]\\nhook-dirs = \\\"mitmproxy.utils.pyinstaller:hook_dirs\\\"\\n\\n[build-system]\\nrequires = [\\\"setuptools\\\"]\\nbuild-backend = \\\"setuptools.build_meta\\\"\\n\\n[tool.setuptools.dynamic]\\nversion = {attr = \\\"mitmproxy.version.VERSION\\\"}\\n\\n[tool.setuptools.packages.find]\\ninclude = [\\\"mitmproxy*\\\"]\\n\\n[tool.coverage.run]\\nbranch = false\\nomit = [\\n \\\"*contrib*\\\",\\n \\\"*tnetstring*\\\",\\n \\\"*platform*\\\",\\n \\\"*main.py\\\",\\n]\\n\\n[tool.coverage.report]\\nshow_missing = true\\nexclude_lines = [\\n \\\"pragma: no cover\\\",\\n \\\"raise NotImplementedError\\\",\\n \\\"raise AssertionError\\\",\\n \\\"if typing.TYPE_CHECKING:\\\",\\n \\\"if TYPE_CHECKING:\\\",\\n \\\"@overload\\\",\\n \\\"@abstractmethod\\\",\\n \\\"assert_never\\\",\\n \\\"\\\\\\\\\\\\.\\\\\\\\\\\\.\\\\\\\\\\\\.\\\",\\n]\\n\\n[tool.pytest.ini_options]\\nasyncio_mode = \\\"auto\\\"\\ntestpaths = \\\"test\\\"\\naddopts = \\\"--capture=no --color=yes\\\"\\nfilterwarnings = [\\n \\\"ignore::DeprecationWarning:tornado.*:\\\",\\n]\\n\\n[tool.mypy]\\ncheck_untyped_defs = true\\nignore_missing_imports = true\\nfiles = [\\n \\\"mitmproxy\\\",\\n \\\"examples/addons\\\",\\n \\\"release/*.py\\\",\\n]\\nexclude = [\\n \\\"^docs/\\\",\\n \\\"^release/build/\\\",\\n \\\"^examples/contrib/\\\",\\n]\\n\\n[[tool.mypy.overrides]]\\nmodule = \\\"mitmproxy.contrib.*\\\"\\nignore_errors = true\\n\\n[[tool.mypy.overrides]]\\nmodule = \\\"tornado.*\\\"\\nignore_errors = true\\n\\n[[tool.mypy.overrides]]\\nmodule = \\\"test.*\\\"\\nignore_errors = true\\n\\n[tool.tox]\\nlegacy_tox_ini = \\\"[tox]\\\\nenvlist = py, flake8, mypy\\\\nskipsdist = True\\\\ntoxworkdir={env:TOX_WORK_DIR:.tox}\\\\n\\\\n[testenv]\\\\ndeps =\\\\n -e .[dev]\\\\nsetenv = HOME = {envtmpdir}\\\\ncommands =\\\\n mitmdump --version\\\\n pytest --color=no -rA --tb=no -p no:cacheprovider --timeout 60 -vv --cov-report xml --continue-on-collection-errors --cov=mitmproxy --cov=release --full-cov=mitmproxy/ {posargs}\\\\n\\\\n[testenv:flake8]\\\\ndeps =\\\\n flake8>=3.8.4,<6.1\\\\n flake8-tidy-imports>=4.2.0,<5\\\\ncommands =\\\\n flake8 --jobs 8 mitmproxy examples test release {posargs}\\\\n\\\\n[testenv:filename_matching]\\\\ndeps =\\\\ncommands =\\\\n python ./test/filename_matching.py\\\\n\\\\n[testenv:mypy]\\\\ndeps =\\\\n mypy==1.0.0\\\\n types-certifi==2021.10.8.3\\\\n types-Flask==1.1.6\\\\n types-Werkzeug==1.0.9\\\\n types-requests==2.28.11.11\\\\n types-cryptography==3.3.23.2\\\\n types-pyOpenSSL==23.0.0.2\\\\n -e .[dev]\\\\n\\\\ncommands =\\\\n mypy {posargs}\\\\n\\\\n[testenv:individual_coverage]\\\\ncommands =\\\\n python ./test/individual_coverage.py {posargs}\\\\n\\\\n[testenv:wheeltest]\\\\nrecreate = True\\\\ndeps =\\\\ncommands =\\\\n pip install {posargs}\\\\n mitmproxy --version\\\\n mitmdump --version\\\\n mitmweb --version\\\\n\\\"\\n\\nEOF_1234810234\"], \"python\": \"3.11\", \"pip_packages\": [\"aioquic-mitmproxy==0.9.21.1\", \"altgraph==0.17.4\", \"asgiref==3.6.0\", \"attrs==24.3.0\", \"blinker==1.9.0\", \"brotli==1.0.9\", \"build==1.2.2.post1\", \"cachetools==5.5.0\", \"certifi==2024.12.14\", \"cffi==1.17.1\", \"chardet==5.2.0\", \"charset-normalizer==3.4.1\", \"click==8.1.8\", \"colorama==0.4.6\", \"coverage==7.6.10\", \"cryptography==40.0.2\", \"distlib==0.3.9\", \"execnet==2.1.1\", \"filelock==3.16.1\", \"flask==2.3.3\", \"h11==0.14.0\", \"h2==4.1.0\", \"hpack==4.0.0\", \"hyperframe==6.0.1\", \"hypothesis==6.123.2\", \"idna==3.10\", \"iniconfig==2.0.0\", \"itsdangerous==2.2.0\", \"jinja2==3.1.5\", \"kaitaistruct==0.10\", \"ldap3==2.9.1\", \"markupsafe==3.0.2\", \"mitmproxy-rs==0.2.2\", \"msgpack==1.0.8\", \"packaging==24.2\", \"passlib==1.7.4\", \"pdoc==15.0.1\", \"platformdirs==4.3.6\", \"pluggy==1.5.0\", \"protobuf==4.25.5\", \"publicsuffix2==2.20191221\", \"pyasn1==0.6.1\", \"pyasn1-modules==0.4.1\", \"pycparser==2.22\", \"pygments==2.18.0\", \"pyinstaller==5.10.1\", \"pyinstaller-hooks-contrib==2024.11\", \"pylsqpack==0.3.18\", \"pyopenssl==23.1.1\", \"pyparsing==3.0.9\", \"pyperclip==1.8.2\", \"pyproject-api==1.8.0\", \"pyproject-hooks==1.2.0\", \"pytest==7.4.4\", \"pytest-asyncio==0.21.2\", \"pytest-cov==4.0.0\", \"pytest-timeout==2.1.0\", \"pytest-xdist==3.2.1\", \"requests==2.32.3\", \"ruamel-yaml==0.17.40\", \"ruamel-yaml-clib==0.2.12\", \"service-identity==24.2.0\", \"setuptools==75.6.0\", \"sortedcontainers==2.4.0\", \"tornado==6.4.2\", \"tox==4.23.2\", \"urllib3==2.3.0\", \"urwid-mitmproxy==2.1.2.1\", \"virtualenv==20.28.0\", \"werkzeug==3.1.3\", \"wheel==0.40.0\", \"wsproto==1.2.0\", \"zstandard==0.21.0\"]}"},"test_framework":{"kind":"string","value":"tox -e py -- "},"test_commands":{"kind":"null"},"version":{"kind":"null"},"environment_setup_commit":{"kind":"null"},"docker_image_root":{"kind":"string","value":"swa-bench:sw.eval"}}},{"rowIdx":321,"cells":{"repo":{"kind":"string","value":"mitmproxy/mitmproxy"},"instance_id":{"kind":"string","value":"mitmproxy__mitmproxy-5917"},"base_commit":{"kind":"string","value":"430833e3d9651bb5fe2a32c882643e61c815a66c"},"patch":{"kind":"string","value":"diff --git a/CHANGELOG.md b/CHANGELOG.md\nindex 3f18e7743b..6670055d33 100644\n--- a/CHANGELOG.md\n+++ b/CHANGELOG.md\n@@ -17,6 +17,8 @@\n * Updating `Request.port` now also updates the Host header if present.\n This aligns with `Request.host`, which already does this.\n ([#5908](https://github.com/mitmproxy/mitmproxy/pull/5908), @sujaldev)\n+* Fix editing of multipart HTTP requests from the CLI.\n+ ([#5148](https://github.com/mitmproxy/mitmproxy/issues/5148), @mhils)\n \n ### Breaking Changes\n \ndiff --git a/mitmproxy/contentviews/multipart.py b/mitmproxy/contentviews/multipart.py\nindex a8cef5f660..df27e53b33 100644\n--- a/mitmproxy/contentviews/multipart.py\n+++ b/mitmproxy/contentviews/multipart.py\n@@ -16,7 +16,7 @@ def _format(v):\n def __call__(self, data: bytes, content_type: Optional[str] = None, **metadata):\n if content_type is None:\n return\n- v = multipart.decode(content_type, data)\n+ v = multipart.decode_multipart(content_type, data)\n if v:\n return \"Multipart form\", self._format(v)\n \ndiff --git a/mitmproxy/http.py b/mitmproxy/http.py\nindex 05729ef90d..4556678cf2 100644\n--- a/mitmproxy/http.py\n+++ b/mitmproxy/http.py\n@@ -8,6 +8,7 @@\n from collections.abc import Iterable\n from collections.abc import Iterator\n from collections.abc import Mapping\n+from collections.abc import Sequence\n from dataclasses import dataclass\n from dataclasses import fields\n from email.utils import formatdate\n@@ -963,7 +964,7 @@ def _get_urlencoded_form(self):\n return tuple(url.decode(self.get_text(strict=False)))\n return ()\n \n- def _set_urlencoded_form(self, form_data):\n+ def _set_urlencoded_form(self, form_data: Sequence[tuple[str, str]]) -> None:\n \"\"\"\n Sets the body to the URL-encoded form data, and adds the appropriate content-type header.\n This will overwrite the existing content if there is one.\n@@ -989,23 +990,22 @@ def urlencoded_form(self) -> multidict.MultiDictView[str, str]:\n def urlencoded_form(self, value):\n self._set_urlencoded_form(value)\n \n- def _get_multipart_form(self):\n+ def _get_multipart_form(self) -> list[tuple[bytes, bytes]]:\n is_valid_content_type = (\n \"multipart/form-data\" in self.headers.get(\"content-type\", \"\").lower()\n )\n if is_valid_content_type and self.content is not None:\n try:\n- return multipart.decode(self.headers.get(\"content-type\"), self.content)\n+ return multipart.decode_multipart(\n+ self.headers.get(\"content-type\"), self.content\n+ )\n except ValueError:\n pass\n- return ()\n+ return []\n \n- def _set_multipart_form(self, value):\n- is_valid_content_type = (\n- self.headers.get(\"content-type\", \"\")\n- .lower()\n- .startswith(\"multipart/form-data\")\n- )\n+ def _set_multipart_form(self, value: list[tuple[bytes, bytes]]) -> None:\n+ ct = self.headers.get(\"content-type\", \"\")\n+ is_valid_content_type = ct.lower().startswith(\"multipart/form-data\")\n if not is_valid_content_type:\n \"\"\"\n Generate a random boundary here.\n@@ -1014,8 +1014,10 @@ def _set_multipart_form(self, value):\n on generating the boundary.\n \"\"\"\n boundary = \"-\" * 20 + binascii.hexlify(os.urandom(16)).decode()\n- self.headers[\"content-type\"] = f\"multipart/form-data; boundary={boundary}\"\n- self.content = multipart.encode(self.headers, value)\n+ self.headers[\n+ \"content-type\"\n+ ] = ct = f\"multipart/form-data; boundary={boundary}\"\n+ self.content = multipart.encode_multipart(ct, value)\n \n @property\n def multipart_form(self) -> multidict.MultiDictView[bytes, bytes]:\n@@ -1032,7 +1034,7 @@ def multipart_form(self) -> multidict.MultiDictView[bytes, bytes]:\n )\n \n @multipart_form.setter\n- def multipart_form(self, value):\n+ def multipart_form(self, value: list[tuple[bytes, bytes]]) -> None:\n self._set_multipart_form(value)\n \n \ndiff --git a/mitmproxy/net/http/multipart.py b/mitmproxy/net/http/multipart.py\nindex 4685d80e01..bc53af66a0 100644\n--- a/mitmproxy/net/http/multipart.py\n+++ b/mitmproxy/net/http/multipart.py\n@@ -1,23 +1,25 @@\n+from __future__ import annotations\n+\n import mimetypes\n import re\n+import warnings\n from typing import Optional\n from urllib.parse import quote\n \n from mitmproxy.net.http import headers\n \n \n-def encode(head, l):\n- k = head.get(\"content-type\")\n- if k:\n- k = headers.parse_content_type(k)\n- if k is not None:\n+def encode_multipart(content_type: str, parts: list[tuple[bytes, bytes]]) -> bytes:\n+ if content_type:\n+ ct = headers.parse_content_type(content_type)\n+ if ct is not None:\n try:\n- boundary = k[2][\"boundary\"].encode(\"ascii\")\n- boundary = quote(boundary)\n+ raw_boundary = ct[2][\"boundary\"].encode(\"ascii\")\n+ boundary = quote(raw_boundary)\n except (KeyError, UnicodeError):\n return b\"\"\n hdrs = []\n- for key, value in l:\n+ for key, value in parts:\n file_type = (\n mimetypes.guess_type(str(key))[0] or \"text/plain; charset=utf-8\"\n )\n@@ -41,9 +43,12 @@ def encode(head, l):\n hdrs.append(b\"--%b--\\r\\n\" % boundary.encode(\"utf-8\"))\n temp = b\"\\r\\n\".join(hdrs)\n return temp\n+ return b\"\"\n \n \n-def decode(content_type: Optional[str], content: bytes) -> list[tuple[bytes, bytes]]:\n+def decode_multipart(\n+ content_type: Optional[str], content: bytes\n+) -> list[tuple[bytes, bytes]]:\n \"\"\"\n Takes a multipart boundary encoded string and returns list of (key, value) tuples.\n \"\"\"\n@@ -69,3 +74,23 @@ def decode(content_type: Optional[str], content: bytes) -> list[tuple[bytes, byt\n r.append((key, value))\n return r\n return []\n+\n+\n+def encode(ct, parts): # pragma: no cover\n+ # 2023-02\n+ warnings.warn(\n+ \"multipart.encode is deprecated, use multipart.encode_multipart instead.\",\n+ DeprecationWarning,\n+ stacklevel=2,\n+ )\n+ return encode_multipart(ct, parts)\n+\n+\n+def decode(ct, content): # pragma: no cover\n+ # 2023-02\n+ warnings.warn(\n+ \"multipart.decode is deprecated, use multipart.decode_multipart instead.\",\n+ DeprecationWarning,\n+ stacklevel=2,\n+ )\n+ return encode_multipart(ct, content)\ndiff --git a/mitmproxy/tools/console/grideditor/editors.py b/mitmproxy/tools/console/grideditor/editors.py\nindex f1b80b8171..6f4682e2a4 100644\n--- a/mitmproxy/tools/console/grideditor/editors.py\n+++ b/mitmproxy/tools/console/grideditor/editors.py\n@@ -51,7 +51,7 @@ def set_data(self, vals, flow):\n \n class RequestMultipartEditor(base.FocusEditor):\n title = \"Edit Multipart Form\"\n- columns = [col_text.Column(\"Key\"), col_text.Column(\"Value\")]\n+ columns = [col_bytes.Column(\"Key\"), col_bytes.Column(\"Value\")]\n \n def get_data(self, flow):\n return flow.request.multipart_form.items(multi=True)\n"},"test_patch":{"kind":"string","value":"diff --git a/test/mitmproxy/net/http/test_multipart.py b/test/mitmproxy/net/http/test_multipart.py\nindex 1045d70c60..b1d83b654e 100644\n--- a/test/mitmproxy/net/http/test_multipart.py\n+++ b/test/mitmproxy/net/http/test_multipart.py\n@@ -1,6 +1,5 @@\n import pytest\n \n-from mitmproxy.http import Headers\n from mitmproxy.net.http import multipart\n \n \n@@ -15,23 +14,28 @@ def test_decode():\n \"value2\\n\"\n \"--{0}--\".format(boundary).encode()\n )\n- form = multipart.decode(f\"multipart/form-data; boundary={boundary}\", content)\n+ form = multipart.decode_multipart(\n+ f\"multipart/form-data; boundary={boundary}\", content\n+ )\n \n assert len(form) == 2\n assert form[0] == (b\"field1\", b\"value1\")\n assert form[1] == (b\"field2\", b\"value2\")\n \n boundary = \"boundary茅莽\"\n- result = multipart.decode(f\"multipart/form-data; boundary={boundary}\", content)\n+ result = multipart.decode_multipart(\n+ f\"multipart/form-data; boundary={boundary}\", content\n+ )\n assert result == []\n \n- assert multipart.decode(\"\", content) == []\n+ assert multipart.decode_multipart(\"\", content) == []\n \n \n def test_encode():\n data = [(b\"file\", b\"shell.jpg\"), (b\"file_size\", b\"1000\")]\n- headers = Headers(content_type=\"multipart/form-data; boundary=127824672498\")\n- content = multipart.encode(headers, data)\n+ content = multipart.encode_multipart(\n+ \"multipart/form-data; boundary=127824672498\", data\n+ )\n \n assert b'Content-Disposition: form-data; name=\"file\"' in content\n assert (\n@@ -42,9 +46,13 @@ def test_encode():\n assert len(content) == 252\n \n with pytest.raises(ValueError, match=r\"boundary found in encoded string\"):\n- multipart.encode(headers, [(b\"key\", b\"--127824672498\")])\n+ multipart.encode_multipart(\n+ \"multipart/form-data; boundary=127824672498\", [(b\"key\", b\"--127824672498\")]\n+ )\n \n- boundary = \"boundary茅莽\"\n- headers = Headers(content_type=\"multipart/form-data; boundary=\" + boundary)\n- result = multipart.encode(headers, data)\n+ result = multipart.encode_multipart(\n+ \"multipart/form-data; boundary=boundary茅莽\", data\n+ )\n assert result == b\"\"\n+\n+ assert multipart.encode_multipart(\"\", data) == b\"\"\ndiff --git a/test/mitmproxy/test_http.py b/test/mitmproxy/test_http.py\nindex 142a49d841..c20eb3977b 100644\n--- a/test/mitmproxy/test_http.py\n+++ b/test/mitmproxy/test_http.py\n@@ -434,7 +434,7 @@ def test_get_multipart_form(self):\n request.headers[\"Content-Type\"] = \"multipart/form-data\"\n assert list(request.multipart_form.items()) == []\n \n- with mock.patch(\"mitmproxy.net.http.multipart.decode\") as m:\n+ with mock.patch(\"mitmproxy.net.http.multipart.decode_multipart\") as m:\n m.side_effect = ValueError\n assert list(request.multipart_form.items()) == []\n \n"},"problem_statement":{"kind":"string","value":"Crash when editing multipart/formdata\n#### Problem Description\r\n\r\nI received the following message when editng a field of a `multipart/form-data` request body, which is for for file uploads.\r\n\r\n```\r\nTraceback (most recent call last):\r\n File \"mitmproxy/master.py\", line 54, in run_loop\r\n File \"urwid/main_loop.py\", line 287, in run\r\n File \"urwid/main_loop.py\", line 385, in _run\r\n File \"urwid/main_loop.py\", line 1494, in run\r\n File \"urwid/compat.py\", line 58, in reraise\r\n File \"asyncio/events.py\", line 80, in _run\r\n File \"urwid/raw_display.py\", line 416, in \r\n File \"urwid/raw_display.py\", line 515, in parse_input\r\n File \"urwid/main_loop.py\", line 412, in _update\r\n File \"urwid/main_loop.py\", line 513, in process_input' (No such file or directory)\r\n File \"mitmproxy/tools/console/window.py\", line 318, in keypress\r\n File \"mitmproxy/tools/console/keymap.py\", line 145, in handle\r\n File \"mitmproxy/tools/console/commandexecutor.py\", line 18, in __call__\r\n File \"mitmproxy/command.py\", line 273, in execute\r\n File \"mitmproxy/command.py\", line 259, in call_strings\r\n File \"mitmproxy/command.py\", line 129, in call\r\n File \"mitmproxy/command.py\", line 303, in wrapper\r\n File \"mitmproxy/tools/console/consoleaddons.py\", line 328, in view_pop\r\n File \"blinker/base.py\", line 266, in send\r\n File \"blinker/base.py\", line 266, in \r\n File \"mitmproxy/tools/console/window.py\", line 247, in pop\r\n File \"mitmproxy/tools/console/window.py\", line 114, in pop\r\n File \"mitmproxy/tools/console/window.py\", line 126, in call\r\n File \"mitmproxy/tools/console/grideditor/base.py\", line 462, in layout_popping\r\n File \"mitmproxy/tools/console/grideditor/base.py\", line 440, in call\r\n File \"mitmproxy/tools/console/grideditor/base.py\", line 313, in layout_popping\r\n File \"mitmproxy/tools/console/grideditor/base.py\", line 455, in set_data_update\r\n File \"mitmproxy/tools/console/grideditor/editors.py\", line 68, in set_data\r\n File \"mitmproxy/http.py\", line 998, in multipart_form\r\n File \"mitmproxy/http.py\", line 979, in _set_multipart_form\r\n File \"mitmproxy/net/http/multipart.py\", line 34, in encode\r\n File \"re.py\", line 201, in search\r\nTypeError: cannot use a bytes pattern on a string-like object\r\n\r\nmitmproxy has crashed!\r\nPlease lodge a bug report at:\r\n https://github.com/mitmproxy/mitmproxy/issues\r\n```\r\nRecording: \r\n[![asciicast](https://asciinema.org/a/CZuTvDKY3PPObhJCGfUx7vagA.svg)](https://asciinema.org/a/CZuTvDKY3PPObhJCGfUx7vagA)\r\nYou can see in the recording that the Grideditor fields display the stringified bytes objects `str(b'asdf')`. I have been able to recreate the bug editing all fields of the `multipart/form-data`, not just the one for the file itself. **This bug has nothing to do with the external editor, as I initially wrote.**\r\n\r\nAnother issue is the the GridEditor for `multipart/form-data` is very slow for even medium-sized files. When dealing with a 197Kb file, it becomes unresponsive.\r\n\r\n#### Steps to reproduce the behavior:\r\n1. Send a post request with a file upload encoded as `multipart/form-data` \r\n2. Edit a field of the request with the `multipart/form-data` `GridEditor` view directly in `mitmproxy`\r\n3. Return from the external editor by pressing `Q`.\r\n\r\n#### System Information\r\nReplicated on:\r\n```\r\nMitmproxy: 7.0.0 binary\r\nPython: 3.9.5\r\nOpenSSL: OpenSSL 1.1.1k 25 Mar 2021\r\nPlatform: Linux-5.13.0-28-generic-x86_64-with-glibc2.31\r\n```\r\n\r\n```\r\nMitmproxy: 7.0.4 binary\r\nPython: 3.9.7\r\nOpenSSL: OpenSSL 1.1.1l 24 Aug 2021\r\nPlatform: Linux-5.13.0-28-generic-x86_64-with-glibc2.31\r\n```\r\n\n"},"hints_text":{"kind":"string","value":"I can confirm that this is still an issue on v8.0.0."},"created_at":{"kind":"string","value":"2023-02-07T09:59:08Z"},"merged_at":{"kind":"string","value":"2023-02-07T10:29:08Z"},"PASS_TO_PASS":{"kind":"string","value":"[\"test/mitmproxy/test_http.py::TestRequest::test_constrain_encoding\", \"test/mitmproxy/test_http.py::TestRequestCore::test_first_line_format\", \"test/mitmproxy/test_http.py::TestResponseUtils::test_get_cookies_simple\", \"test/mitmproxy/test_http.py::TestHTTPFlow::test_copy\", \"test/mitmproxy/test_http.py::TestRequestUtils::test_url_options\", \"test/mitmproxy/test_http.py::TestMessageContentEncoding::test_simple\", \"test/mitmproxy/test_http.py::TestMessageText::test_guess_latin_1\", \"test/mitmproxy/test_http.py::TestMessageText::test_guess_json\", \"test/mitmproxy/test_http.py::TestResponseCore::test_make\", \"test/mitmproxy/test_http.py::TestRequestCore::test_host_update_also_updates_header\", \"test/mitmproxy/test_http.py::TestRequestUtils::test_get_path_components\", \"test/mitmproxy/test_http.py::TestRequestCore::test_authority\", \"test/mitmproxy/test_http.py::TestRequest::test_simple\", \"test/mitmproxy/test_http.py::TestMessageText::test_none\", \"test/mitmproxy/test_http.py::TestHeaders::test_insert\", \"test/mitmproxy/test_http.py::TestMessageText::test_guess_css_charset\", \"test/mitmproxy/test_http.py::TestMessage::test_timestamp_start\", \"test/mitmproxy/test_http.py::TestMessageContentEncoding::test_cannot_encode\", \"test/mitmproxy/test_http.py::TestMessageContentEncoding::test_modify\", \"test/mitmproxy/test_http.py::TestResponseUtils::test_refresh\", \"test/mitmproxy/test_http.py::TestRequestCore::test_make\", \"test/mitmproxy/test_http.py::TestRequestUtils::test_set_cookies\", \"test/mitmproxy/test_http.py::TestRequestCore::test_scheme\", \"test/mitmproxy/test_http.py::TestMessage::test_init\", \"test/mitmproxy/test_http.py::TestMessageContentEncoding::test_cannot_decode\", \"test/mitmproxy/test_http.py::TestResponseUtils::test_get_cookies_twocookies\", \"test/mitmproxy/test_http.py::TestRequestUtils::test_set_urlencoded_form\", \"test/mitmproxy/test_http.py::TestMessageText::test_guess_meta_charset\", \"test/mitmproxy/test_http.py::TestMessage::test_timestamp_end\", \"test/mitmproxy/test_http.py::TestMessageText::test_cannot_encode\", \"test/mitmproxy/test_http.py::TestRequestUtils::test_pretty_url\", \"test/mitmproxy/test_http.py::TestResponseUtils::test_set_cookies\", \"test/mitmproxy/test_http.py::TestRequestUtils::test_set_path_components\", \"test/mitmproxy/test_http.py::TestRequestUtils::test_pretty_url_options\", \"test/mitmproxy/test_http.py::TestResponseUtils::test_get_cookies_empty\", \"test/mitmproxy/test_http.py::TestHeaders::test_init\", \"test/mitmproxy/test_http.py::TestRequestUtils::test_get_query\", \"test/mitmproxy/test_http.py::TestRequestCore::test_method\", \"test/mitmproxy/test_http.py::TestMessage::test_content_length_not_added_for_response_with_transfer_encoding\", \"test/mitmproxy/test_http.py::TestMessageData::test_serializable\", \"test/mitmproxy/test_http.py::TestRequestUtils::test_get_cookies_withequalsign\", \"test/mitmproxy/test_http.py::TestRequestUtils::test_constrain_encoding\", \"test/mitmproxy/test_http.py::TestRequest::test_get_url\", \"test/mitmproxy/test_http.py::TestHTTPFlow::test_backup\", \"test/mitmproxy/test_http.py::TestMessageContentEncoding::test_none\", \"test/mitmproxy/test_http.py::TestRequestUtils::test_get_urlencoded_form\", \"test/mitmproxy/test_http.py::TestRequestCore::test_repr\", \"test/mitmproxy/test_http.py::TestRequestUtils::test_url\", \"test/mitmproxy/test_http.py::TestRequestUtils::test_pretty_host\", \"test/mitmproxy/test_http.py::TestRequestCore::test_path\", \"test/mitmproxy/test_http.py::TestResponse::test_simple\", \"test/mitmproxy/test_http.py::TestMessageContentEncoding::test_utf8_as_ce\", \"test/mitmproxy/test_http.py::TestMessageContentEncoding::test_unknown_ce\", \"test/mitmproxy/test_http.py::TestHTTPFlow::test_intercept\", \"test/mitmproxy/test_http.py::TestMessage::test_serializable\", \"test/mitmproxy/test_http.py::TestHTTPFlow::test_kill\", \"test/mitmproxy/test_http.py::TestResponseData::test_init\", \"test/mitmproxy/test_http.py::TestRequestUtils::test_set_multipart_form\", \"test/mitmproxy/test_http.py::TestMessage::test_trailers\", \"test/mitmproxy/test_http.py::TestMessage::test_eq_ne\", \"test/mitmproxy/test_http.py::TestResponseUtils::test_get_cookies_with_parameters\", \"test/mitmproxy/test_http.py::TestHTTPFlow::test_backup_idempotence\", \"test/mitmproxy/test_http.py::TestHTTPFlow::test_match\", \"test/mitmproxy/test_http.py::TestRequestUtils::test_get_cookies_single\", \"test/mitmproxy/test_http.py::TestHTTPFlow::test_resume\", \"test/mitmproxy/test_http.py::TestMessageText::test_modify\", \"test/mitmproxy/test_http.py::TestHTTPFlow::test_resume_duplicated\", \"test/mitmproxy/test_http.py::TestResponseCore::test_reason\", \"test/mitmproxy/test_http.py::TestMessageData::test_eq\", \"test/mitmproxy/test_http.py::TestMessageContentEncoding::test_update_content_length_header\", \"test/mitmproxy/test_http.py::TestMessageText::test_unknown_ce\", \"test/mitmproxy/test_http.py::TestRequestUtils::test_pretty_url_authority\", \"test/mitmproxy/test_http.py::TestRequestCore::test_init_conv\", \"test/mitmproxy/test_http.py::TestMessage::test_content_length_update\", \"test/mitmproxy/test_http.py::TestResponse::test_get_content_type\", \"test/mitmproxy/test_http.py::TestRequestUtils::test_url_authority\", \"test/mitmproxy/test_http.py::TestResponseCore::test_repr\", \"test/mitmproxy/test_http.py::TestRequestUtils::test_anticomp\", \"test/mitmproxy/test_http.py::TestRequestUtils::test_get_cookies_none\", \"test/mitmproxy/test_http.py::TestHTTPFlow::test_wait_for_resume\", \"test/mitmproxy/test_http.py::TestRequestCore::test_get_host_header\", \"test/mitmproxy/test_http.py::TestMessage::test_http_version\", \"test/mitmproxy/test_http.py::TestRequestUtils::test_set_query\", \"test/mitmproxy/test_http.py::TestRequestCore::test_modify_host_header\", \"test/mitmproxy/test_http.py::TestResponseUtils::test_get_cookies_no_value\", \"test/mitmproxy/test_http.py::TestResponseUtils::test_get_cookies_none\", \"test/mitmproxy/test_http.py::TestRequestCore::test_port\", \"test/mitmproxy/test_http.py::TestRequestUtils::test_get_cookies_double\", \"test/mitmproxy/test_http.py::TestHTTPFlow::test_timestamp_start\", \"test/mitmproxy/test_http.py::TestHTTPFlow::test_getset_state\", \"test/mitmproxy/test_http.py::TestMessage::test_headers\", \"test/mitmproxy/test_http.py::TestHeaders::test_bytes\", \"test/mitmproxy/test_http.py::TestHeaders::test_set\", \"test/mitmproxy/test_http.py::TestRequestData::test_init\", \"test/mitmproxy/test_http.py::TestHeaders::test_items\", \"test/mitmproxy/test_http.py::TestResponseCore::test_status_code\", \"test/mitmproxy/test_http.py::TestHeaders::test_iter\", \"test/mitmproxy/test_http.py::TestRequest::test_get_content_type\", \"test/mitmproxy/test_http.py::TestRequestUtils::test_anticache\", \"test/mitmproxy/test_http.py::TestMessageText::test_simple\", \"test/mitmproxy/test_http.py::TestMessageText::test_cannot_decode\"]"},"PASS_TO_FAIL":{"kind":"string","value":"[]"},"FAIL_TO_PASS":{"kind":"string","value":"[\"test/mitmproxy/net/http/test_multipart.py::test_encode\", \"test/mitmproxy/net/http/test_multipart.py::test_decode\", \"test/mitmproxy/test_http.py::TestRequestUtils::test_get_multipart_form\", \"test/mitmproxy/test_http.py::TestMessageText::test_get_json\"]"},"FAIL_TO_FAIL":{"kind":"string","value":"[]"},"install":{"kind":"string","value":"{\"install\": [\"uv pip install -e .\"], \"pre_install\": [\"tee tox.ini <=3.8.4,<6.1\\n flake8-tidy-imports>=4.2.0,<5\\ncommands =\\n flake8 --jobs 8 mitmproxy examples test release {posargs}\\n\\n[testenv:filename_matching]\\ndeps =\\ncommands =\\n python ./test/filename_matching.py\\n\\n[testenv:mypy]\\ndeps =\\n mypy==1.0.0\\n types-certifi==2021.10.8.3\\n types-Flask==1.1.6\\n types-Werkzeug==1.0.9\\n types-requests==2.28.11.11\\n types-cryptography==3.3.23.2\\n types-pyOpenSSL==23.0.0.2\\n -e .[dev]\\n\\ncommands =\\n mypy {posargs}\\n\\n[testenv:individual_coverage]\\ncommands =\\n python ./test/individual_coverage.py {posargs}\\n\\n[testenv:wheeltest]\\nrecreate = True\\ndeps =\\ncommands =\\n pip install {posargs}\\n mitmproxy --version\\n mitmdump --version\\n mitmweb --version\\n\\nEOF_1234810234\"], \"python\": \"3.11\", \"pip_packages\": [\"aioquic-mitmproxy==0.9.20.3\", \"altgraph==0.17.3\", \"arpeggio==2.0.0\", \"asgiref==3.6.0\", \"attrs==22.2.0\", \"brotli==1.0.9\", \"cachetools==5.3.0\", \"certifi==2022.12.7\", \"cffi==1.15.1\", \"chardet==5.1.0\", \"charset-normalizer==3.0.1\", \"click==8.1.3\", \"colorama==0.4.6\", \"coverage==7.1.0\", \"cryptography==39.0.1\", \"distlib==0.3.6\", \"execnet==1.9.0\", \"filelock==3.9.0\", \"flask==2.2.2\", \"h11==0.14.0\", \"h2==4.1.0\", \"hpack==4.0.0\", \"hyperframe==6.0.1\", \"hypothesis==6.67.1\", \"idna==3.4\", \"iniconfig==2.0.0\", \"itsdangerous==2.1.2\", \"jinja2==3.1.2\", \"kaitaistruct==0.10\", \"ldap3==2.9.1\", \"markupsafe==2.1.2\", \"mitmproxy-rs==0.2.0b7\", \"msgpack==1.0.4\", \"packaging==23.0\", \"parver==0.4\", \"passlib==1.7.4\", \"pdoc==12.3.1\", \"platformdirs==3.0.0\", \"pluggy==1.0.0\", \"protobuf==4.21.12\", \"publicsuffix2==2.20191221\", \"pyasn1==0.4.8\", \"pycparser==2.21\", \"pygments==2.14.0\", \"pyinstaller==5.7.0\", \"pyinstaller-hooks-contrib==2022.15\", \"pylsqpack==0.3.16\", \"pyopenssl==23.0.0\", \"pyparsing==3.0.9\", \"pyperclip==1.8.2\", \"pyproject-api==1.5.0\", \"pytest==7.2.1\", \"pytest-asyncio==0.20.3\", \"pytest-cov==4.0.0\", \"pytest-timeout==2.1.0\", \"pytest-xdist==3.1.0\", \"requests==2.28.2\", \"ruamel-yaml==0.17.21\", \"setuptools==67.2.0\", \"sortedcontainers==2.4.0\", \"tornado==6.2\", \"tox==4.4.4\", \"urllib3==1.26.14\", \"urwid-mitmproxy==2.1.2.1\", \"virtualenv==20.19.0\", \"werkzeug==2.2.2\", \"wheel==0.38.4\", \"wsproto==1.2.0\", \"zstandard==0.19.0\"]}"},"test_framework":{"kind":"string","value":"tox -e py -- "},"test_commands":{"kind":"null"},"version":{"kind":"null"},"environment_setup_commit":{"kind":"null"},"docker_image_root":{"kind":"string","value":"swa-bench:sw.eval"}}},{"rowIdx":322,"cells":{"repo":{"kind":"string","value":"mitmproxy/mitmproxy"},"instance_id":{"kind":"string","value":"mitmproxy__mitmproxy-5908"},"base_commit":{"kind":"string","value":"a7e50c793e9c6840d9f0fc162893e293477a358e"},"patch":{"kind":"string","value":"diff --git a/CHANGELOG.md b/CHANGELOG.md\nindex 3c0175badf..42e2ae9d79 100644\n--- a/CHANGELOG.md\n+++ b/CHANGELOG.md\n@@ -11,6 +11,9 @@\n ([#5851](https://github.com/mitmproxy/mitmproxy/pull/5851), @italankin)\n * Removed string escaping in raw view.\n ([#5470](https://github.com/mitmproxy/mitmproxy/issues/5470), @stephenspol)\n+* Updating `Request.port` now also updates the Host header if present.\n+ This aligns with `Request.host`, which already does this.\n+ ([#5908](https://github.com/mitmproxy/mitmproxy/pull/5908), @sujaldev)\n \n ### Breaking Changes\n \ndiff --git a/mitmproxy/http.py b/mitmproxy/http.py\nindex f9f32beb4c..05729ef90d 100644\n--- a/mitmproxy/http.py\n+++ b/mitmproxy/http.py\n@@ -749,13 +749,7 @@ def host(self) -> str:\n @host.setter\n def host(self, val: Union[str, bytes]) -> None:\n self.data.host = always_str(val, \"idna\", \"strict\")\n-\n- # Update host header\n- if \"Host\" in self.data.headers:\n- self.data.headers[\"Host\"] = val\n- # Update authority\n- if self.data.authority:\n- self.authority = url.hostport(self.scheme, self.host, self.port)\n+ self._update_host_and_authority()\n \n @property\n def host_header(self) -> Optional[str]:\n@@ -794,7 +788,21 @@ def port(self) -> int:\n \n @port.setter\n def port(self, port: int) -> None:\n+ if not isinstance(port, int):\n+ raise ValueError(f\"Port must be an integer, not {port!r}.\")\n+\n self.data.port = port\n+ self._update_host_and_authority()\n+\n+ def _update_host_and_authority(self) -> None:\n+ val = url.hostport(self.scheme, self.host, self.port)\n+\n+ # Update host header\n+ if \"Host\" in self.data.headers:\n+ self.data.headers[\"Host\"] = val\n+ # Update authority\n+ if self.data.authority:\n+ self.authority = val\n \n @property\n def path(self) -> str:\n"},"test_patch":{"kind":"string","value":"diff --git a/test/mitmproxy/addons/test_mapremote.py b/test/mitmproxy/addons/test_mapremote.py\nindex 2aff3468d9..f20ca20efd 100644\n--- a/test/mitmproxy/addons/test_mapremote.py\n+++ b/test/mitmproxy/addons/test_mapremote.py\n@@ -27,6 +27,16 @@ def test_simple(self):\n mr.request(f)\n assert f.request.url == \"https://mitmproxy.org/img/test.jpg\"\n \n+ def test_host_header(self):\n+ mr = mapremote.MapRemote()\n+ with taddons.context(mr) as tctx:\n+ tctx.configure(mr, map_remote=[\"|http://[^/]+|http://example.com:4444\"])\n+ f = tflow.tflow()\n+ f.request.url = b\"http://example.org/example\"\n+ f.request.headers[\"Host\"] = \"example.org\"\n+ mr.request(f)\n+ assert f.request.headers.get(\"Host\", \"\") == \"example.com:4444\"\n+\n def test_is_killed(self):\n mr = mapremote.MapRemote()\n with taddons.context(mr) as tctx:\ndiff --git a/test/mitmproxy/test_http.py b/test/mitmproxy/test_http.py\nindex acdff67d9a..142a49d841 100644\n--- a/test/mitmproxy/test_http.py\n+++ b/test/mitmproxy/test_http.py\n@@ -2,6 +2,7 @@\n import email\n import json\n import time\n+from typing import Any\n from unittest import mock\n \n import pytest\n@@ -10,6 +11,7 @@\n from mitmproxy import flowfilter\n from mitmproxy.http import Headers\n from mitmproxy.http import HTTPFlow\n+from mitmproxy.http import Message\n from mitmproxy.http import Request\n from mitmproxy.http import Response\n from mitmproxy.net.http.cookies import CookieAttrs\n@@ -158,7 +160,9 @@ def test_scheme(self):\n _test_decoded_attr(treq(), \"scheme\")\n \n def test_port(self):\n- _test_passthrough_attr(treq(), \"port\")\n+ _test_passthrough_attr(treq(), \"port\", 1234)\n+ with pytest.raises(ValueError):\n+ treq().port = \"foo\"\n \n def test_path(self):\n _test_decoded_attr(treq(), \"path\")\n@@ -199,8 +203,7 @@ def test_host_update_also_updates_header(self):\n request.headers[\"Host\"] = \"foo\"\n request.authority = \"foo\"\n request.host = \"example.org\"\n- assert request.headers[\"Host\"] == \"example.org\"\n- assert request.authority == \"example.org:22\"\n+ assert request.headers[\"Host\"] == request.authority == \"example.org:22\"\n \n def test_get_host_header(self):\n no_hdr = treq()\n@@ -864,10 +867,10 @@ def test_items(self):\n ]\n \n \n-def _test_passthrough_attr(message, attr):\n+def _test_passthrough_attr(message: Message, attr: str, value: Any = b\"foo\") -> None:\n assert getattr(message, attr) == getattr(message.data, attr)\n- setattr(message, attr, b\"foo\")\n- assert getattr(message.data, attr) == b\"foo\"\n+ setattr(message, attr, value)\n+ assert getattr(message.data, attr) == value\n \n \n def _test_decoded_attr(message, attr):\n"},"problem_statement":{"kind":"string","value":"Map remote should include port in Host header (mitmweb)\n#### Problem Description\r\n\r\nWhen using `--map-remote` in `mitmweb`, the request URL gets replaced, and the `Host` gets updated. However, the port is not added to the Host header, leading to problems when using non-standard ports.\r\n\r\n#### Steps to reproduce the behavior:\r\n\r\n1. `mitmweb --map-remote '|http://[^/]+|http://portquiz.net:4444' --listen-port 9090'`\r\n2. `curl --proxy http://127.0.0.1:9090 http://github.com`\r\n3. Host header does not contain port\r\n4. It should: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Host\r\n\r\n#### System Information\r\n\r\n```\r\nMitmproxy: 9.0.1\r\nPython: 3.11.1\r\nOpenSSL: OpenSSL 1.1.1s 1 Nov 2022\r\nPlatform: macOS-13.2-arm64-arm-64bit\r\n``\n"},"hints_text":{"kind":"string","value":"The map remote addon just sets a new URL [here](https://github.com/mitmproxy/mitmproxy/blob/dfeddcf4add66a6ebab1d508c47256185ef6ddb7/mitmproxy/addons/mapremote.py#L68), which seems like the right thing to do. Seems like the bug is in [`mitmproxy.http.Request.host` and `mitmproxy.http.Request.port`](https://github.com/mitmproxy/mitmproxy/blob/main/mitmproxy/http.py) then, contributions welcome!"},"created_at":{"kind":"string","value":"2023-02-04T10:56:06Z"},"merged_at":{"kind":"string","value":"2023-02-06T16:35:17Z"},"PASS_TO_PASS":{"kind":"string","value":"[\"test/mitmproxy/test_http.py::TestRequest::test_constrain_encoding\", \"test/mitmproxy/test_http.py::TestRequestCore::test_first_line_format\", \"test/mitmproxy/test_http.py::TestResponseUtils::test_get_cookies_simple\", \"test/mitmproxy/test_http.py::TestHTTPFlow::test_copy\", \"test/mitmproxy/test_http.py::TestRequestUtils::test_url_options\", \"test/mitmproxy/test_http.py::TestMessageContentEncoding::test_simple\", \"test/mitmproxy/test_http.py::TestMessageText::test_guess_latin_1\", \"test/mitmproxy/test_http.py::TestMessageText::test_guess_json\", \"test/mitmproxy/addons/test_mapremote.py::TestMapRemote::test_simple\", \"test/mitmproxy/test_http.py::TestResponseCore::test_make\", \"test/mitmproxy/test_http.py::TestRequestUtils::test_get_path_components\", \"test/mitmproxy/test_http.py::TestRequestCore::test_authority\", \"test/mitmproxy/test_http.py::TestRequest::test_simple\", \"test/mitmproxy/test_http.py::TestMessageText::test_none\", \"test/mitmproxy/test_http.py::TestHeaders::test_insert\", \"test/mitmproxy/test_http.py::TestMessageText::test_guess_css_charset\", \"test/mitmproxy/test_http.py::TestMessage::test_timestamp_start\", \"test/mitmproxy/test_http.py::TestMessageContentEncoding::test_cannot_encode\", \"test/mitmproxy/test_http.py::TestMessageContentEncoding::test_modify\", \"test/mitmproxy/test_http.py::TestResponseUtils::test_refresh\", \"test/mitmproxy/test_http.py::TestRequestCore::test_make\", \"test/mitmproxy/test_http.py::TestRequestUtils::test_set_cookies\", \"test/mitmproxy/test_http.py::TestRequestCore::test_scheme\", \"test/mitmproxy/test_http.py::TestMessage::test_init\", \"test/mitmproxy/test_http.py::TestMessageContentEncoding::test_cannot_decode\", \"test/mitmproxy/test_http.py::TestResponseUtils::test_get_cookies_twocookies\", \"test/mitmproxy/test_http.py::TestRequestUtils::test_set_urlencoded_form\", \"test/mitmproxy/test_http.py::TestMessageText::test_guess_meta_charset\", \"test/mitmproxy/test_http.py::TestMessage::test_timestamp_end\", \"test/mitmproxy/addons/test_mapremote.py::TestMapRemote::test_is_killed\", \"test/mitmproxy/test_http.py::TestMessageText::test_cannot_encode\", \"test/mitmproxy/test_http.py::TestRequestUtils::test_pretty_url\", \"test/mitmproxy/test_http.py::TestResponseUtils::test_set_cookies\", \"test/mitmproxy/test_http.py::TestRequestUtils::test_set_path_components\", \"test/mitmproxy/test_http.py::TestRequestUtils::test_pretty_url_options\", \"test/mitmproxy/test_http.py::TestResponseUtils::test_get_cookies_empty\", \"test/mitmproxy/test_http.py::TestHeaders::test_init\", \"test/mitmproxy/test_http.py::TestRequestUtils::test_get_query\", \"test/mitmproxy/test_http.py::TestRequestCore::test_method\", \"test/mitmproxy/test_http.py::TestMessage::test_content_length_not_added_for_response_with_transfer_encoding\", \"test/mitmproxy/test_http.py::TestMessageData::test_serializable\", \"test/mitmproxy/test_http.py::TestRequestUtils::test_get_cookies_withequalsign\", \"test/mitmproxy/test_http.py::TestRequestUtils::test_constrain_encoding\", \"test/mitmproxy/test_http.py::TestRequest::test_get_url\", \"test/mitmproxy/test_http.py::TestHTTPFlow::test_backup\", \"test/mitmproxy/test_http.py::TestMessageContentEncoding::test_none\", \"test/mitmproxy/test_http.py::TestRequestUtils::test_get_urlencoded_form\", \"test/mitmproxy/test_http.py::TestRequestCore::test_repr\", \"test/mitmproxy/test_http.py::TestRequestUtils::test_url\", \"test/mitmproxy/test_http.py::TestRequestUtils::test_pretty_host\", \"test/mitmproxy/test_http.py::TestRequestCore::test_path\", \"test/mitmproxy/test_http.py::TestResponse::test_simple\", \"test/mitmproxy/test_http.py::TestMessageContentEncoding::test_utf8_as_ce\", \"test/mitmproxy/test_http.py::TestMessageContentEncoding::test_unknown_ce\", \"test/mitmproxy/test_http.py::TestHTTPFlow::test_intercept\", \"test/mitmproxy/test_http.py::TestMessage::test_serializable\", \"test/mitmproxy/test_http.py::TestHTTPFlow::test_kill\", \"test/mitmproxy/test_http.py::TestResponseData::test_init\", \"test/mitmproxy/test_http.py::TestRequestUtils::test_set_multipart_form\", \"test/mitmproxy/test_http.py::TestMessage::test_trailers\", \"test/mitmproxy/test_http.py::TestMessage::test_eq_ne\", \"test/mitmproxy/addons/test_mapremote.py::TestMapRemote::test_configure\", \"test/mitmproxy/test_http.py::TestResponseUtils::test_get_cookies_with_parameters\", \"test/mitmproxy/test_http.py::TestHTTPFlow::test_backup_idempotence\", \"test/mitmproxy/test_http.py::TestHTTPFlow::test_match\", \"test/mitmproxy/test_http.py::TestRequestUtils::test_get_cookies_single\", \"test/mitmproxy/test_http.py::TestHTTPFlow::test_resume\", \"test/mitmproxy/test_http.py::TestMessageText::test_modify\", \"test/mitmproxy/test_http.py::TestHTTPFlow::test_resume_duplicated\", \"test/mitmproxy/test_http.py::TestResponseCore::test_reason\", \"test/mitmproxy/test_http.py::TestMessageData::test_eq\", \"test/mitmproxy/test_http.py::TestMessageContentEncoding::test_update_content_length_header\", \"test/mitmproxy/test_http.py::TestMessageText::test_unknown_ce\", \"test/mitmproxy/test_http.py::TestRequestUtils::test_get_multipart_form\", \"test/mitmproxy/test_http.py::TestRequestUtils::test_pretty_url_authority\", \"test/mitmproxy/test_http.py::TestRequestCore::test_init_conv\", \"test/mitmproxy/test_http.py::TestMessage::test_content_length_update\", \"test/mitmproxy/test_http.py::TestResponse::test_get_content_type\", \"test/mitmproxy/test_http.py::TestRequestUtils::test_url_authority\", \"test/mitmproxy/test_http.py::TestResponseCore::test_repr\", \"test/mitmproxy/test_http.py::TestRequestUtils::test_anticomp\", \"test/mitmproxy/test_http.py::TestRequestUtils::test_get_cookies_none\", \"test/mitmproxy/test_http.py::TestHTTPFlow::test_wait_for_resume\", \"test/mitmproxy/test_http.py::TestRequestCore::test_get_host_header\", \"test/mitmproxy/test_http.py::TestMessage::test_http_version\", \"test/mitmproxy/test_http.py::TestRequestUtils::test_set_query\", \"test/mitmproxy/test_http.py::TestRequestCore::test_modify_host_header\", \"test/mitmproxy/test_http.py::TestResponseUtils::test_get_cookies_no_value\", \"test/mitmproxy/test_http.py::TestResponseUtils::test_get_cookies_none\", \"test/mitmproxy/test_http.py::TestRequestUtils::test_get_cookies_double\", \"test/mitmproxy/test_http.py::TestHTTPFlow::test_timestamp_start\", \"test/mitmproxy/test_http.py::TestHTTPFlow::test_getset_state\", \"test/mitmproxy/test_http.py::TestMessage::test_headers\", \"test/mitmproxy/test_http.py::TestHeaders::test_bytes\", \"test/mitmproxy/test_http.py::TestHeaders::test_set\", \"test/mitmproxy/test_http.py::TestRequestData::test_init\", \"test/mitmproxy/test_http.py::TestHeaders::test_items\", \"test/mitmproxy/test_http.py::TestResponseCore::test_status_code\", \"test/mitmproxy/test_http.py::TestHeaders::test_iter\", \"test/mitmproxy/test_http.py::TestRequest::test_get_content_type\", \"test/mitmproxy/test_http.py::TestRequestUtils::test_anticache\", \"test/mitmproxy/test_http.py::TestMessageText::test_simple\", \"test/mitmproxy/test_http.py::TestMessageText::test_cannot_decode\"]"},"PASS_TO_FAIL":{"kind":"string","value":"[]"},"FAIL_TO_PASS":{"kind":"string","value":"[\"test/mitmproxy/test_http.py::TestRequestCore::test_host_update_also_updates_header\", \"test/mitmproxy/addons/test_mapremote.py::TestMapRemote::test_host_header\", \"test/mitmproxy/test_http.py::TestMessageText::test_get_json\", \"test/mitmproxy/test_http.py::TestRequestCore::test_port\"]"},"FAIL_TO_FAIL":{"kind":"string","value":"[]"},"install":{"kind":"string","value":"{\"install\": [\"uv pip install -e .\"], \"pre_install\": [\"tee tox.ini <=3.8.4,<6.1\\n flake8-tidy-imports>=4.2.0,<5\\ncommands =\\n flake8 --jobs 8 mitmproxy examples test release {posargs}\\n\\n[testenv:filename_matching]\\ndeps =\\ncommands =\\n python ./test/filename_matching.py\\n\\n[testenv:mypy]\\ndeps =\\n mypy==1.0.0\\n types-certifi==2021.10.8.3\\n types-Flask==1.1.6\\n types-Werkzeug==1.0.9\\n types-requests==2.28.11.11\\n types-cryptography==3.3.23.2\\n types-pyOpenSSL==23.0.0.2\\n -e .[dev]\\n\\ncommands =\\n mypy {posargs}\\n\\n[testenv:individual_coverage]\\ncommands =\\n python ./test/individual_coverage.py {posargs}\\n\\n[testenv:wheeltest]\\nrecreate = True\\ndeps =\\ncommands =\\n pip install {posargs}\\n mitmproxy --version\\n mitmdump --version\\n mitmweb --version\\n\\nEOF_1234810234\"], \"python\": \"3.11\", \"pip_packages\": [\"aioquic-mitmproxy==0.9.20.3\", \"altgraph==0.17.3\", \"arpeggio==2.0.0\", \"asgiref==3.6.0\", \"attrs==22.2.0\", \"brotli==1.0.9\", \"cachetools==5.3.0\", \"certifi==2022.12.7\", \"cffi==1.15.1\", \"chardet==5.1.0\", \"charset-normalizer==3.0.1\", \"click==8.1.3\", \"colorama==0.4.6\", \"coverage==7.1.0\", \"cryptography==39.0.0\", \"distlib==0.3.6\", \"execnet==1.9.0\", \"filelock==3.9.0\", \"flask==2.2.2\", \"h11==0.14.0\", \"h2==4.1.0\", \"hpack==4.0.0\", \"hyperframe==6.0.1\", \"hypothesis==6.67.1\", \"idna==3.4\", \"iniconfig==2.0.0\", \"itsdangerous==2.1.2\", \"jinja2==3.1.2\", \"kaitaistruct==0.10\", \"ldap3==2.9.1\", \"markupsafe==2.1.2\", \"mitmproxy-rs==0.2.0b7\", \"msgpack==1.0.4\", \"packaging==23.0\", \"parver==0.4\", \"passlib==1.7.4\", \"pdoc==12.3.1\", \"platformdirs==2.6.2\", \"pluggy==1.0.0\", \"protobuf==4.21.12\", \"publicsuffix2==2.20191221\", \"pyasn1==0.4.8\", \"pycparser==2.21\", \"pygments==2.14.0\", \"pyinstaller==5.7.0\", \"pyinstaller-hooks-contrib==2022.15\", \"pylsqpack==0.3.16\", \"pyopenssl==23.0.0\", \"pyparsing==3.0.9\", \"pyperclip==1.8.2\", \"pyproject-api==1.5.0\", \"pytest==7.2.1\", \"pytest-asyncio==0.20.3\", \"pytest-cov==4.0.0\", \"pytest-timeout==2.1.0\", \"pytest-xdist==3.1.0\", \"requests==2.28.2\", \"ruamel-yaml==0.17.21\", \"setuptools==67.1.0\", \"sortedcontainers==2.4.0\", \"tornado==6.2\", \"tox==4.4.4\", \"urllib3==1.26.14\", \"urwid-mitmproxy==2.1.2.1\", \"virtualenv==20.18.0\", \"werkzeug==2.2.2\", \"wheel==0.38.4\", \"wsproto==1.2.0\", \"zstandard==0.19.0\"]}"},"test_framework":{"kind":"string","value":"tox -e py -- "},"test_commands":{"kind":"null"},"version":{"kind":"null"},"environment_setup_commit":{"kind":"null"},"docker_image_root":{"kind":"string","value":"swa-bench:sw.eval"}}},{"rowIdx":323,"cells":{"repo":{"kind":"string","value":"mitmproxy/mitmproxy"},"instance_id":{"kind":"string","value":"mitmproxy__mitmproxy-5894"},"base_commit":{"kind":"string","value":"0c4549f4cce06c217f62ee79a3d32fa8b5bbaaed"},"patch":{"kind":"string","value":"diff --git a/CHANGELOG.md b/CHANGELOG.md\nindex fc72f5d1ba..3c0175badf 100644\n--- a/CHANGELOG.md\n+++ b/CHANGELOG.md\n@@ -9,6 +9,8 @@\n ([#5725](https://github.com/mitmproxy/mitmproxy/pull/5725), @mhils)\n * Add `replay.server.add` command for adding flows to server replay buffer\n ([#5851](https://github.com/mitmproxy/mitmproxy/pull/5851), @italankin)\n+* Removed string escaping in raw view.\n+ ([#5470](https://github.com/mitmproxy/mitmproxy/issues/5470), @stephenspol)\n \n ### Breaking Changes\n \ndiff --git a/mitmproxy/contentviews/raw.py b/mitmproxy/contentviews/raw.py\nindex c19872534b..0c7b77d923 100644\n--- a/mitmproxy/contentviews/raw.py\n+++ b/mitmproxy/contentviews/raw.py\n@@ -1,12 +1,11 @@\n from . import base\n-from mitmproxy.utils import strutils\n \n \n class ViewRaw(base.View):\n name = \"Raw\"\n \n def __call__(self, data, **metadata):\n- return \"Raw\", base.format_text(strutils.bytes_to_escaped_str(data, True))\n+ return \"Raw\", base.format_text(data)\n \n def render_priority(self, data: bytes, **metadata) -> float:\n return 0.1 * float(bool(data))\n"},"test_patch":{"kind":"string","value":"diff --git a/test/mitmproxy/contentviews/test_raw.py b/test/mitmproxy/contentviews/test_raw.py\nindex 0cffcf869f..f5020c2793 100644\n--- a/test/mitmproxy/contentviews/test_raw.py\n+++ b/test/mitmproxy/contentviews/test_raw.py\n@@ -5,6 +5,16 @@\n def test_view_raw():\n v = full_eval(raw.ViewRaw())\n assert v(b\"foo\")\n+ # unicode\n+ assert v(\"🫠\".encode()) == (\n+ \"Raw\",\n+ [[(\"text\", \"🫠\".encode())]],\n+ )\n+ # invalid utf8\n+ assert v(b\"\\xFF\") == (\n+ \"Raw\",\n+ [[(\"text\", b\"\\xFF\")]],\n+ )\n \n \n def test_render_priority():\n"},"problem_statement":{"kind":"string","value":"\"raw\" view is not raw, adds extra backslash\n#### Problem Description\r\n\r\nI just noticed during https://github.com/mitmproxy/mitmproxy/issues/5469#issuecomment-1191343747\r\n\r\n#### Steps to reproduce the behavior:\r\n\r\nhttp.txt\r\n\r\n```\r\nHTTP/1.1 200 OK\r\nContent-Type: text/plain\r\nContent-Length: 1\r\n\r\n\\\r\n```\r\n\r\n1. `ncat -l 1337 < http.txt`\r\n2. `mitmproxy`\r\n3. `curl --proxy localhost:8080 http://127.0.0.1:1337`\r\n\r\nraw is `\\\\`:\r\n\r\n![image](https://user-images.githubusercontent.com/679144/180199838-07c02668-5dab-4210-b5b6-aea78066e0fd.png)\r\n\r\nhex:\r\n\r\n![image](https://user-images.githubusercontent.com/679144/180199860-2cdd9455-7846-4921-b67c-6b9c3669b268.png)\r\n\r\n#### System Information\r\n\r\n```\r\nMitmproxy: 8.1.1 binary\r\nPython: 3.10.5\r\nOpenSSL: OpenSSL 3.0.3 3 May 2022\r\nPlatform: Linux-5.15.0-41-generic-x86_64-with-glibc2.35\r\n```\r\n\n"},"hints_text":{"kind":"string","value":"Raw mode currently escapes unprintable characters as well as backslashes so that the representation is unambiguous. I do agree though that the example you are showing is all but optimal, maybe we should just switch to rendering unprintable characters as �.\n> maybe we should just switch to rendering unprintable characters as �.\r\n\r\nThat sounds reasonable to me. Text bodies would then be rendered 100% correctly (which I think is very important) and binary bodies would contain � as one would kind of expect (I don't think a lot of people would inspect binary bodies for anything other than text they contain [we could additionally also add a `strings(1)` view :thinking: ])"},"created_at":{"kind":"string","value":"2023-01-28T15:10:36Z"},"merged_at":{"kind":"string","value":"2023-01-29T10:56:39Z"},"PASS_TO_PASS":{"kind":"string","value":"[]"},"PASS_TO_FAIL":{"kind":"string","value":"[]"},"FAIL_TO_PASS":{"kind":"string","value":"[\"test/mitmproxy/contentviews/test_raw.py::test_view_raw\", \"test/mitmproxy/contentviews/test_raw.py::test_render_priority\"]"},"FAIL_TO_FAIL":{"kind":"string","value":"[]"},"install":{"kind":"string","value":"{\"install\": [\"uv pip install -e .\"], \"pre_install\": [\"tee tox.ini <=3.8.4,<6.1\\n flake8-tidy-imports>=4.2.0,<5\\ncommands =\\n flake8 --jobs 8 mitmproxy examples test release {posargs}\\n\\n[testenv:filename_matching]\\ndeps =\\ncommands =\\n python ./test/filename_matching.py\\n\\n[testenv:mypy]\\ndeps =\\n mypy==1.0.0\\n types-certifi==2021.10.8.3\\n types-Flask==1.1.6\\n types-Werkzeug==1.0.9\\n types-requests==2.28.11.11\\n types-cryptography==3.3.23.2\\n types-pyOpenSSL==23.0.0.2\\n -e .[dev]\\n\\ncommands =\\n mypy {posargs}\\n\\n[testenv:individual_coverage]\\ncommands =\\n python ./test/individual_coverage.py {posargs}\\n\\n[testenv:wheeltest]\\nrecreate = True\\ndeps =\\ncommands =\\n pip install {posargs}\\n mitmproxy --version\\n mitmdump --version\\n mitmweb --version\\n\\nEOF_1234810234\"], \"python\": \"3.11\", \"pip_packages\": [\"aioquic-mitmproxy==0.9.20.3\", \"altgraph==0.17.3\", \"arpeggio==2.0.0\", \"asgiref==3.6.0\", \"attrs==22.2.0\", \"brotli==1.0.9\", \"cachetools==5.3.0\", \"certifi==2022.12.7\", \"cffi==1.15.1\", \"chardet==5.1.0\", \"charset-normalizer==3.0.1\", \"click==8.1.3\", \"colorama==0.4.6\", \"coverage==7.1.0\", \"cryptography==39.0.0\", \"distlib==0.3.6\", \"execnet==1.9.0\", \"filelock==3.9.0\", \"flask==2.2.2\", \"h11==0.14.0\", \"h2==4.1.0\", \"hpack==4.0.0\", \"hyperframe==6.0.1\", \"hypothesis==6.65.2\", \"idna==3.4\", \"iniconfig==2.0.0\", \"itsdangerous==2.1.2\", \"jinja2==3.1.2\", \"kaitaistruct==0.10\", \"ldap3==2.9.1\", \"markupsafe==2.1.2\", \"mitmproxy-wireguard==0.1.20\", \"msgpack==1.0.4\", \"packaging==23.0\", \"parver==0.4\", \"passlib==1.7.4\", \"pdoc==12.3.1\", \"platformdirs==2.6.2\", \"pluggy==1.0.0\", \"protobuf==4.21.12\", \"publicsuffix2==2.20191221\", \"pyasn1==0.4.8\", \"pycparser==2.21\", \"pygments==2.14.0\", \"pyinstaller==5.7.0\", \"pyinstaller-hooks-contrib==2022.15\", \"pylsqpack==0.3.16\", \"pyopenssl==23.0.0\", \"pyparsing==3.0.9\", \"pyperclip==1.8.2\", \"pyproject-api==1.5.0\", \"pytest==7.2.1\", \"pytest-asyncio==0.20.3\", \"pytest-cov==4.0.0\", \"pytest-timeout==2.1.0\", \"pytest-xdist==3.1.0\", \"requests==2.28.2\", \"ruamel-yaml==0.17.21\", \"setuptools==67.0.0\", \"sortedcontainers==2.4.0\", \"tornado==6.2\", \"tox==4.4.2\", \"urllib3==1.26.14\", \"urwid-mitmproxy==2.1.2.1\", \"virtualenv==20.17.1\", \"werkzeug==2.2.2\", \"wheel==0.38.4\", \"wsproto==1.2.0\", \"zstandard==0.19.0\"]}"},"test_framework":{"kind":"string","value":"tox -e py -- "},"test_commands":{"kind":"null"},"version":{"kind":"null"},"environment_setup_commit":{"kind":"null"},"docker_image_root":{"kind":"string","value":"swa-bench:sw.eval"}}},{"rowIdx":324,"cells":{"repo":{"kind":"string","value":"mitmproxy/mitmproxy"},"instance_id":{"kind":"string","value":"mitmproxy__mitmproxy-5695"},"base_commit":{"kind":"string","value":"0f53caee7d886b76279cbdb57cc3e1a325e38792"},"patch":{"kind":"string","value":"diff --git a/CHANGELOG.md b/CHANGELOG.md\nindex 9c2cf20f1e..64d70370f0 100644\n--- a/CHANGELOG.md\n+++ b/CHANGELOG.md\n@@ -2,6 +2,8 @@\n \n ## Unreleased: mitmproxy next\n \n+* Hard exit when mitmproxy cannot write logs, fixes endless loop when parent process exits\n+ ([#4669](https://github.com/mitmproxy/mitmproxy/issues/4669), @Prinzhorn))\n \n \n ## 28 October 2022: mitmproxy 9.0.0\ndiff --git a/mitmproxy/addons/termlog.py b/mitmproxy/addons/termlog.py\nindex 331626f363..aa15ae39b4 100644\n--- a/mitmproxy/addons/termlog.py\n+++ b/mitmproxy/addons/termlog.py\n@@ -51,7 +51,9 @@ def __init__(\n self.formatter = log.MitmFormatter(self.has_vt_codes)\n \n def emit(self, record: logging.LogRecord) -> None:\n- print(\n- self.format(record),\n- file=self.file\n- )\n+ try:\n+ print(self.format(record), file=self.file)\n+ except OSError:\n+ # We cannot print, exit immediately.\n+ # See https://github.com/mitmproxy/mitmproxy/issues/4669\n+ sys.exit(1)\n"},"test_patch":{"kind":"string","value":"diff --git a/test/mitmproxy/addons/test_termlog.py b/test/mitmproxy/addons/test_termlog.py\nindex 209f8eb89c..62573e218c 100644\n--- a/test/mitmproxy/addons/test_termlog.py\n+++ b/test/mitmproxy/addons/test_termlog.py\n@@ -1,4 +1,5 @@\n import asyncio\n+import builtins\n import io\n import logging\n \n@@ -55,3 +56,20 @@ async def test_styling(monkeypatch) -> None:\n \n assert \"\\x1b[33mhello\\x1b[0m\" in f.getvalue()\n t.done()\n+\n+\n+async def test_cannot_print(monkeypatch) -> None:\n+ def _raise(*args, **kwargs):\n+ raise OSError\n+\n+ monkeypatch.setattr(builtins, \"print\", _raise)\n+\n+ t = termlog.TermLog()\n+ with taddons.context(t) as tctx:\n+ tctx.configure(t)\n+ with pytest.raises(SystemExit) as exc_info:\n+ logging.info(\"Should not log this, but raise instead\")\n+\n+ assert exc_info.value.args[0] == 1\n+\n+ t.done()\n"},"problem_statement":{"kind":"string","value":"mitmdump jumps to 100% CPU when parent process exits\n#### Problem Description\r\n\r\nIt took me two days to make this reproduce in isolation. I hope someone with Python skills can figure out what is happening here. Depending on what the root cause is this might not even be related to my funny architecture.\r\n\r\nI'm spawning `mitmdump` from Node.js. If the node process exits mitmdump will be re-assigned to become a child of `systemd` (some unix wizardry). It will then immediately jump to 100% CPU and stay there. This _only_ happens when an addon is using at least one network event (go figure...). E.g. I'm using `client_connected` (works with `clientconnect` on v6 as well). If the addon is only using sth. like `running` the bug does not occur. Even better: if the addon originally only has \"running\" nothing bad happens. But if I then add a `client_connected` and save the file (and the addon is automatically reloaded) it will instantly jump to 100% CPU.\r\n\r\nMy guess is that it might be related to stdout and the switcheroo with the parent process? In my actual architecture the mitmdump process will poll the parent via gRPC every second and shutdown if it's gone. But the 100% CPU prevents that.\r\n\r\nUpdate: while trying to write down the exact steps it turns out this might only reproduce via local venv and and not if you download the binary. I'm not sure, it's confusing. I'm confused. But I have video proof, so I'm not completely insane.\r\n\r\n#### Steps to reproduce the behavior:\r\n\r\nindex.js\r\n\r\n```js\r\nconst path = require('path');\r\nconst { spawn } = require('child_process');\r\n\r\nfunction handleStdOut(data) {\r\n console.log(`mitmdump stdout: ${data}`);\r\n}\r\n\r\nfunction handleStdError(data) {\r\n console.error(`mitmdump stderr: ${data}`);\r\n}\r\n\r\nfunction handleExit(code) {\r\n console.log(`mitm process exited with code ${code}`);\r\n}\r\n\r\nconst mitm = spawn(\r\n // Adjust this path\r\n '/home/alex/Projects/Bandsalat/src/forks/mitmproxy/venv/bin/mitmdump',\r\n ['--quiet', '--set', 'connection_strategy=lazy', '--scripts', 'addon.py'],\r\n {\r\n detached: true,\r\n windowsHide: true,\r\n env: {\r\n PYTHONUNBUFFERED: '1',\r\n },\r\n }\r\n);\r\n\r\nconsole.log(mitm.spawnargs);\r\n\r\nmitm.unref();\r\nmitm.on('exit', handleExit);\r\nmitm.stdout.on('data', handleStdOut);\r\nmitm.stderr.on('data', handleStdError);\r\n```\r\naddon.py\r\n\r\n```py\r\nclass MyAddon:\r\n def running(self):\r\n print('running')\r\n\r\n def client_connected(self, client):\r\n print('client_connected')\r\n\r\naddons = [\r\n MyAddon()\r\n]\r\n```\r\n\r\n1. I'm on Ubuntu\r\n2. Adjust index.js to point to your local mitmproxy git venv\r\n3. Launch `node index.js` (Node 14 or 16 work both for me)\r\n4. Now open Chromium with mitmproxy configured. You don't need to enter any URL, Chromium will phone home anyway.\r\n5. Keep Chromium open and ctrl+c the node process\r\n6. Observe your fan getting louder and `top` showing mitmdump at 100% CPU\r\n\r\nhttps://user-images.githubusercontent.com/679144/124594746-740a7080-de60-11eb-9ffb-a5fc4b3ba24a.mp4\r\n\r\n#### System Information\r\n\r\nHappens with both v6 and HEAD.\r\n\r\n```\r\nMitmproxy: 7.0.0.dev (+492, commit af27556)\r\nPython: 3.8.10\r\nOpenSSL: OpenSSL 1.1.1i 8 Dec 2020\r\nPlatform: Linux-5.8.0-59-generic-x86_64-with-glibc2.29\r\n```\r\n\n"},"hints_text":{"kind":"string","value":"Current working theory: the addon `print` raises a broken pipe and the mitmdump error handling wants to log that broken pipe error to stderr, causing another broken pipe. And this somehow causes an infinite recursion of trying to write to stderr? Maybe this is just a matter of `if e.errno != errno.EPIPE:` in the right spot?\nFundamentally this is my problem and not a bug in mitmdump.\n> Fundamentally this is my problem and not a bug in mitmdump.\r\n\r\nI've changed my mind :smile: . While the bug only surfaces in the way I use mitmdump, I cannot fix this on my end. When the parent process unexpectedly closes (without cleaning up, i.e. killing the mitmdump child), Unix will re-parent mitmdump to the next parent. But this breaks the stdin/stdout pipes I had. This will also cause the GRPC service to go away (which the parent was running). That means the next time my addon tries to call the service it will crash (yes, I _could_ catch that). And then it tries to write to stderr, but it can't, it's gone. And I _think_ it will try so over and over and over. Which will then cause mitmdump to run at 100% CPU. \r\n\r\nDoes my explanation make sense? I've seen my mitmdump at 100% CPU (with an exited parent) multiple times in the past days and I'd love to fix it.\r\n\r\nWhere would be the right place to check for `if e.errno != errno.EPIPE:`? Does that sound like a good fix? Exiting the process when we can't write to stderr? I think everyone running mitmdump as a child process would benefit from that.\nI've traced it down to\r\n\r\nhttps://github.com/mitmproxy/mitmproxy/blob/f85c64401b0a9d1f60f85eaaf810fef1c46c4e08/mitmproxy/addonmanager.py#L50-L54\r\n\r\nplus\r\n\r\nhttps://github.com/mitmproxy/mitmproxy/blob/f85c64401b0a9d1f60f85eaaf810fef1c46c4e08/mitmproxy/log.py#L70-L74\r\n\r\nIf I add this before the ctx.log.error call\r\n\r\n```py\r\nfile1 = open('/tmp/mitm/e.txt', 'a')\r\nfile1.write(\"Addon error: %s\" % \"\".join(\r\n traceback.format_exception(etype, value, tb)\r\n))\r\nfile1.close()\r\n```\r\n\r\nI get an endless growing `e.txt` with\r\n\r\n```\r\nAddon error: Traceback (most recent call last):\r\n File \"addon.py\", line 6, in client_connected\r\n print('client_connected')\r\nBrokenPipeError: [Errno 32] Broken pipe\r\nAddon error: Traceback (most recent call last):\r\n File \"addon.py\", line 6, in client_connected\r\n print('client_connected')\r\nBrokenPipeError: [Errno 32] Broken pipe\r\nAddon error: Traceback (most recent call last):\r\n File \"addon.py\", line 6, in client_connected\r\n print('client_connected')\r\nBrokenPipeError: [Errno 32] Broken pipe\r\nAddon error: Traceback (most recent call last):\r\n File \"addon.py\", line 6, in client_connected\r\n print('client_connected')\r\nBrokenPipeError: [Errno 32] Broken pipe\r\nAddon error: Traceback (most recent call last):\r\n File \"/home/alex/Projects/mitmproxy/mitmproxy/addons/termlog.py\", line 22, in add_log\r\n click.secho(\r\n File \"/home/alex/Projects/mitmproxy/venv/lib/python3.8/site-packages/click/termui.py\", line 659, in secho\r\n return echo(message, file=file, nl=nl, err=err, color=color)\r\n File \"/home/alex/Projects/mitmproxy/venv/lib/python3.8/site-packages/click/utils.py\", line 298, in echo\r\n file.write(out) # type: ignore\r\nBrokenPipeError: [Errno 32] Broken pipe\r\nAddon error: Traceback (most recent call last):\r\n File \"/home/alex/Projects/mitmproxy/mitmproxy/addons/termlog.py\", line 22, in add_log\r\n click.secho(\r\n File \"/home/alex/Projects/mitmproxy/venv/lib/python3.8/site-packages/click/termui.py\", line 659, in secho\r\n return echo(message, file=file, nl=nl, err=err, color=color)\r\n File \"/home/alex/Projects/mitmproxy/venv/lib/python3.8/site-packages/click/utils.py\", line 298, in echo\r\n file.write(out) # type: ignore\r\nBrokenPipeError: [Errno 32] Broken pipe\r\nAddon error: Traceback (most recent call last):\r\n File \"/home/alex/Projects/mitmproxy/mitmproxy/addons/termlog.py\", line 22, in add_log\r\n click.secho(\r\n File \"/home/alex/Projects/mitmproxy/venv/lib/python3.8/site-packages/click/termui.py\", line 659, in secho\r\n return echo(message, file=file, nl=nl, err=err, color=color)\r\n File \"/home/alex/Projects/mitmproxy/venv/lib/python3.8/site-packages/click/utils.py\", line 298, in echo\r\n file.write(out) # type: ignore\r\nBrokenPipeError: [Errno 32] Broken pipe\r\n```\r\n\r\nSo this 100% confirms that when the parent process is gone, any error that the addon causes will cause an endless loop. The repro uses a simple `print` which itself will fail with EPIPE, but any error in the addon works. Because mitmproxy will try to write to a broken stderr.\r\n\r\nNow the question is what is the proper fix? Ignoring all `EPIPE` doesn't sound like a good idea, because you might have other pipes that break in your addon. I don't know how the scheduling of the whole logging thing works, can't we wrap the final print in a `try`?\r\n\r\nEdit: nvm, just a `try` is not enough. If logging the error fails the process needs to go down.\nThanks for looking into this! I think `TermLog.add_log` should just catch any OSErrors and then `sys.exit()` with a distinguishable exit code. As with streaming flows to disk, if we cannot write logfiles anymore we want to go down hard."},"created_at":{"kind":"string","value":"2022-10-30T17:56:58Z"},"merged_at":{"kind":"string","value":"2022-10-30T18:23:44Z"},"PASS_TO_PASS":{"kind":"string","value":"[\"test/mitmproxy/addons/test_termlog.py::test_styling\", \"test/mitmproxy/addons/test_termlog.py::test_output\", \"test/mitmproxy/addons/test_termlog.py::test_delayed_teardown\"]"},"PASS_TO_FAIL":{"kind":"string","value":"[]"},"FAIL_TO_PASS":{"kind":"string","value":"[\"test/mitmproxy/addons/test_termlog.py::test_cannot_print\"]"},"FAIL_TO_FAIL":{"kind":"string","value":"[]"},"install":{"kind":"string","value":"{\"install\": [\"uv pip install -e .\"], \"pre_install\": [\"tee tox.ini <=3.8.4,<6.1\\n flake8-tidy-imports>=4.2.0,<5\\ncommands =\\n flake8 --jobs 8 mitmproxy examples test release {posargs}\\n\\n[testenv:filename_matching]\\ndeps =\\ncommands =\\n python ./test/filename_matching.py\\n\\n[testenv:mypy]\\ndeps =\\n mypy==1.0.0\\n types-certifi==2021.10.8.3\\n types-Flask==1.1.6\\n types-Werkzeug==1.0.9\\n types-requests==2.28.11.11\\n types-cryptography==3.3.23.2\\n types-pyOpenSSL==23.0.0.2\\n -e .[dev]\\n\\ncommands =\\n mypy {posargs}\\n\\n[testenv:individual_coverage]\\ncommands =\\n python ./test/individual_coverage.py {posargs}\\n\\n[testenv:wheeltest]\\nrecreate = True\\ndeps =\\ncommands =\\n pip install {posargs}\\n mitmproxy --version\\n mitmdump --version\\n mitmweb --version\\n\\nEOF_1234810234\"], \"python\": \"3.11\", \"pip_packages\": [\"altgraph==0.17.3\", \"arpeggio==1.10.2\", \"asgiref==3.5.2\", \"attrs==22.1.0\", \"brotli==1.0.9\", \"certifi==2022.9.24\", \"cffi==1.15.1\", \"charset-normalizer==2.1.1\", \"click==8.1.3\", \"coverage==6.5.0\", \"cryptography==38.0.1\", \"distlib==0.3.6\", \"execnet==1.9.0\", \"filelock==3.8.0\", \"flask==2.2.2\", \"h11==0.14.0\", \"h2==4.1.0\", \"hpack==4.0.0\", \"hyperframe==6.0.1\", \"hypothesis==6.56.4\", \"idna==3.4\", \"iniconfig==1.1.1\", \"itsdangerous==2.1.2\", \"jinja2==3.1.2\", \"kaitaistruct==0.10\", \"ldap3==2.9.1\", \"markupsafe==2.1.1\", \"mitmproxy-wireguard==0.1.15\", \"msgpack==1.0.4\", \"packaging==21.3\", \"parver==0.3.1\", \"passlib==1.7.4\", \"pdoc==12.2.0\", \"platformdirs==2.5.2\", \"pluggy==1.0.0\", \"protobuf==4.21.9\", \"publicsuffix2==2.20191221\", \"py==1.11.0\", \"pyasn1==0.4.8\", \"pycparser==2.21\", \"pygments==2.13.0\", \"pyinstaller==5.6.1\", \"pyinstaller-hooks-contrib==2022.11\", \"pyopenssl==22.1.0\", \"pyparsing==3.0.9\", \"pyperclip==1.8.2\", \"pytest==7.2.0\", \"pytest-asyncio==0.20.1\", \"pytest-cov==4.0.0\", \"pytest-timeout==2.1.0\", \"pytest-xdist==3.0.2\", \"requests==2.28.1\", \"ruamel-yaml==0.17.21\", \"setuptools==65.5.0\", \"six==1.16.0\", \"sortedcontainers==2.4.0\", \"tornado==6.2\", \"tox==3.27.0\", \"urllib3==1.26.12\", \"urwid==2.1.2\", \"virtualenv==20.16.6\", \"werkzeug==2.2.2\", \"wheel==0.37.1\", \"wsproto==1.2.0\", \"zstandard==0.19.0\"]}"},"test_framework":{"kind":"string","value":"tox -e py -- "},"test_commands":{"kind":"null"},"version":{"kind":"null"},"environment_setup_commit":{"kind":"null"},"docker_image_root":{"kind":"string","value":"swa-bench:sw.eval"}}},{"rowIdx":325,"cells":{"repo":{"kind":"string","value":"mitmproxy/mitmproxy"},"instance_id":{"kind":"string","value":"mitmproxy__mitmproxy-5652"},"base_commit":{"kind":"string","value":"ca74a2a9cb168260e5f6b0a84de3ab76b9d160c8"},"patch":{"kind":"string","value":"diff --git a/CHANGELOG.md b/CHANGELOG.md\nindex 91a6343970..bcfb189f55 100644\n--- a/CHANGELOG.md\n+++ b/CHANGELOG.md\n@@ -46,6 +46,8 @@\n ([#5562](https://github.com/mitmproxy/mitmproxy/pull/5562), @decathorpe, @mhils)\n * Fix mitmweb not properly opening a browser and being stuck on some Linux.\n ([#5522](https://github.com/mitmproxy/mitmproxy/issues/5522), @Prinzhorn)\n+* Add a quick help bar displaying common key bindings.\n+ ([#5381](https://github.com/mitmproxy/mitmproxy/pull/5381/), [#5652](https://github.com/mitmproxy/mitmproxy/pull/5652), @kckeiks, @mhils).\n * Add syntax highlighting to JSON and msgpack content view.\n ([#5623](https://github.com/mitmproxy/mitmproxy/issues/5623), @SapiensAnatis)\n * Fix race condition when updating mitmweb WebSocket connections that are closing.\ndiff --git a/mitmproxy/tools/console/defaultkeys.py b/mitmproxy/tools/console/defaultkeys.py\nindex c7d5487c93..a316a90c91 100644\n--- a/mitmproxy/tools/console/defaultkeys.py\n+++ b/mitmproxy/tools/console/defaultkeys.py\n@@ -1,4 +1,7 @@\n-def map(km):\n+from mitmproxy.tools.console.keymap import Keymap\n+\n+\n+def map(km: Keymap) -> None:\n km.add(\":\", \"console.command \", [\"commonkey\", \"global\"], \"Command prompt\")\n km.add(\n \";\",\ndiff --git a/mitmproxy/tools/console/grideditor/base.py b/mitmproxy/tools/console/grideditor/base.py\nindex 6830848721..8c20a23fb0 100644\n--- a/mitmproxy/tools/console/grideditor/base.py\n+++ b/mitmproxy/tools/console/grideditor/base.py\n@@ -139,7 +139,7 @@ def set_current_value(self, val) -> None:\n errors = self.lst[self.focus][1]\n emsg = self.editor.is_error(self.focus_col, val)\n if emsg:\n- signals.status_message.send(message=emsg, expire=5)\n+ signals.status_message.send(message=emsg)\n errors.add(self.focus_col)\n else:\n errors.discard(self.focus_col)\ndiff --git a/mitmproxy/tools/console/grideditor/col_bytes.py b/mitmproxy/tools/console/grideditor/col_bytes.py\nindex cd7a537a05..f291474170 100644\n--- a/mitmproxy/tools/console/grideditor/col_bytes.py\n+++ b/mitmproxy/tools/console/grideditor/col_bytes.py\n@@ -44,5 +44,5 @@ def get_data(self) -> bytes:\n try:\n return strutils.escaped_str_to_bytes(txt)\n except ValueError:\n- signals.status_message.send(message=\"Invalid data.\", expire=1000)\n+ signals.status_message.send(message=\"Invalid data.\")\n raise\ndiff --git a/mitmproxy/tools/console/grideditor/col_subgrid.py b/mitmproxy/tools/console/grideditor/col_subgrid.py\nindex 6ca3272053..be4b4271b5 100644\n--- a/mitmproxy/tools/console/grideditor/col_subgrid.py\n+++ b/mitmproxy/tools/console/grideditor/col_subgrid.py\n@@ -21,7 +21,7 @@ def blank(self):\n def keypress(self, key: str, editor):\n if key in \"rRe\":\n signals.status_message.send(\n- message=\"Press enter to edit this field.\", expire=1000\n+ message=\"Press enter to edit this field.\"\n )\n return\n elif key == \"m_select\":\ndiff --git a/mitmproxy/tools/console/grideditor/col_text.py b/mitmproxy/tools/console/grideditor/col_text.py\nindex a68341d8a2..ec49ce2a05 100644\n--- a/mitmproxy/tools/console/grideditor/col_text.py\n+++ b/mitmproxy/tools/console/grideditor/col_text.py\n@@ -35,7 +35,7 @@ def get_data(self):\n try:\n return data.decode(*self.encoding_args)\n except ValueError:\n- signals.status_message.send(message=\"Invalid encoding.\", expire=1000)\n+ signals.status_message.send(message=\"Invalid encoding.\")\n raise\n \n \ndiff --git a/mitmproxy/tools/console/keymap.py b/mitmproxy/tools/console/keymap.py\nindex 0b6454d657..c9539dd750 100644\n--- a/mitmproxy/tools/console/keymap.py\n+++ b/mitmproxy/tools/console/keymap.py\n@@ -1,6 +1,7 @@\n import logging\n import os\n from collections.abc import Sequence\n+from functools import cache\n from typing import Optional\n \n import ruamel.yaml\n@@ -60,6 +61,9 @@ def keyspec(self):\n \"\"\"\n return self.key.replace(\"space\", \" \")\n \n+ def key_short(self) -> str:\n+ return self.key.replace(\"enter\", \"⏎\").replace(\"right\", \"→\").replace(\"space\", \"␣\")\n+\n def sortkey(self):\n return self.key + \",\".join(self.contexts)\n \n@@ -79,6 +83,10 @@ def _check_contexts(self, contexts):\n if c not in Contexts:\n raise ValueError(\"Unsupported context: %s\" % c)\n \n+ def _on_change(self) -> None:\n+ signals.keybindings_change.send()\n+ self.binding_for_help.cache_clear()\n+\n def add(self, key: str, command: str, contexts: Sequence[str], help=\"\") -> None:\n \"\"\"\n Add a key to the key map.\n@@ -97,7 +105,7 @@ def add(self, key: str, command: str, contexts: Sequence[str], help=\"\") -> None:\n b = Binding(key=key, command=command, contexts=contexts, help=help)\n self.bindings.append(b)\n self.bind(b)\n- signals.keybindings_change.send()\n+ self._on_change()\n \n def remove(self, key: str, contexts: Sequence[str]) -> None:\n \"\"\"\n@@ -112,7 +120,7 @@ def remove(self, key: str, contexts: Sequence[str]) -> None:\n if b.contexts:\n self.bindings.append(b)\n self.bind(b)\n- signals.keybindings_change.send()\n+ self._on_change()\n \n def bind(self, binding: Binding) -> None:\n for c in binding.contexts:\n@@ -125,12 +133,20 @@ def unbind(self, binding: Binding) -> None:\n for c in binding.contexts:\n del self.keys[c][binding.keyspec()]\n self.bindings = [b for b in self.bindings if b != binding]\n+ self._on_change()\n \n def get(self, context: str, key: str) -> Optional[Binding]:\n if context in self.keys:\n return self.keys[context].get(key, None)\n return None\n \n+ @cache\n+ def binding_for_help(self, help: str) -> Optional[Binding]:\n+ for b in self.bindings:\n+ if b.help == help:\n+ return b\n+ return None\n+\n def list(self, context: str) -> Sequence[Binding]:\n b = [x for x in self.bindings if context in x.contexts or context == \"all\"]\n single = [x for x in b if len(x.key.split()) == 1]\ndiff --git a/mitmproxy/tools/console/quickhelp.py b/mitmproxy/tools/console/quickhelp.py\nnew file mode 100644\nindex 0000000000..58878c3d4b\n--- /dev/null\n+++ b/mitmproxy/tools/console/quickhelp.py\n@@ -0,0 +1,187 @@\n+\"\"\"\n+This module is reponsible for drawing the quick key help at the bottom of mitmproxy.\n+\"\"\"\n+from dataclasses import dataclass\n+from typing import Optional, Union\n+\n+import urwid\n+\n+from mitmproxy import flow\n+from mitmproxy.http import HTTPFlow\n+from mitmproxy.tools.console.eventlog import EventLog\n+from mitmproxy.tools.console.flowlist import FlowListBox\n+from mitmproxy.tools.console.flowview import FlowView\n+from mitmproxy.tools.console.grideditor.base import FocusEditor\n+from mitmproxy.tools.console.help import HelpView\n+from mitmproxy.tools.console.keybindings import KeyBindings\n+from mitmproxy.tools.console.keymap import Keymap\n+from mitmproxy.tools.console.options import Options\n+\n+\n+@dataclass\n+class BasicKeyHelp:\n+ \"\"\"Quick help for urwid-builtin keybindings (i.e. those keys that do not appear in the keymap)\"\"\"\n+ key: str\n+\n+\n+HelpItems = dict[str, Union[str, BasicKeyHelp]]\n+\"\"\"\n+A mapping from the short text that should be displayed in the help bar to the full help text provided for the key\n+binding. The order of the items in the dictionary determines the order in which they are displayed in the help bar.\n+\n+Some help items explain builtin urwid functionality, so there is no key binding for them. In this case, the value\n+is a BasicKeyHelp object.\n+\"\"\"\n+\n+\n+@dataclass\n+class QuickHelp:\n+ top_label: str\n+ top_items: HelpItems\n+ bottom_label: str\n+ bottom_items: HelpItems\n+\n+ def make_rows(self, keymap: Keymap) -> tuple[urwid.Columns, urwid.Columns]:\n+ top = _make_row(self.top_label, self.top_items, keymap)\n+ bottom = _make_row(self.bottom_label, self.bottom_items, keymap)\n+ return top, bottom\n+\n+\n+def make(\n+ widget: type[urwid.Widget],\n+ focused_flow: Optional[flow.Flow],\n+ is_root_widget: bool,\n+) -> QuickHelp:\n+ top_label = \"\"\n+ top_items: HelpItems = {}\n+ if widget in (FlowListBox, FlowView):\n+ top_label = \"Flow:\"\n+ if focused_flow:\n+ if widget == FlowListBox:\n+ top_items[\"Select\"] = \"Select\"\n+ else:\n+ top_items[\"Edit\"] = \"Edit a flow component\"\n+ top_items |= {\n+ \"Duplicate\": \"Duplicate flow\",\n+ \"Replay\": \"Replay this flow\",\n+ \"Export\": \"Export this flow to file\",\n+ \"Delete\": \"Delete flow from view\",\n+ }\n+ if focused_flow.marked:\n+ top_items[\"Unmark\"] = \"Toggle mark on this flow\"\n+ else:\n+ top_items[\"Mark\"] = \"Toggle mark on this flow\"\n+ if focused_flow.intercepted:\n+ top_items[\"Resume\"] = \"Resume this intercepted flow\"\n+ if focused_flow.modified():\n+ top_items[\"Restore\"] = \"Revert changes to this flow\"\n+ if isinstance(focused_flow, HTTPFlow) and focused_flow.response:\n+ top_items[\"Save body\"] = \"Save response body to file\"\n+ if widget == FlowView:\n+ top_items |= {\n+ \"Next flow\": \"Go to next flow\",\n+ \"Prev flow\": \"Go to previous flow\",\n+ }\n+ else:\n+ top_items |= {\n+ \"Load flows\": \"Load flows from file\",\n+ \"Create new\": \"Create a new flow\",\n+ }\n+ elif widget == KeyBindings:\n+ top_label = \"Keybindings:\"\n+ top_items |= {\n+ \"Add\": \"Add a key binding\",\n+ \"Edit\": \"Edit the currently focused key binding\",\n+ \"Delete\": \"Unbind the currently focused key binding\",\n+ \"Execute\": \"Execute the currently focused key binding\",\n+ }\n+ elif widget == Options:\n+ top_label = \"Options:\"\n+ top_items |= {\n+ \"Edit\": BasicKeyHelp(\"⏎\"),\n+ \"Reset\": \"Reset this option\",\n+ \"Reset all\": \"Reset all options\",\n+ \"Load file\": \"Load from file\",\n+ \"Save file\": \"Save to file\",\n+ }\n+ elif widget == HelpView:\n+ top_label = \"Help:\"\n+ top_items |= {\n+ \"Scroll down\": BasicKeyHelp(\"↓\"),\n+ \"Scroll up\": BasicKeyHelp(\"↑\"),\n+ \"Exit help\": \"Exit help\",\n+ \"Next tab\": BasicKeyHelp(\"tab\"),\n+ }\n+ elif widget == EventLog:\n+ top_label = \"Events:\"\n+ top_items |= {\n+ \"Scroll down\": BasicKeyHelp(\"↓\"),\n+ \"Scroll up\": BasicKeyHelp(\"↑\"),\n+ \"Clear\": \"Clear\",\n+ }\n+ elif issubclass(widget, FocusEditor):\n+ top_label = f\"Edit:\"\n+ top_items |= {\n+ \"Start edit\": BasicKeyHelp(\"⏎\"),\n+ \"Stop edit\": BasicKeyHelp(\"esc\"),\n+ \"Add row\": \"Add a row after cursor\",\n+ \"Delete row\": \"Delete this row\",\n+ }\n+ else:\n+ pass\n+\n+ bottom_label = \"Proxy:\"\n+ bottom_items: HelpItems = {\n+ \"Help\": \"View help\",\n+ }\n+ if is_root_widget:\n+ bottom_items[\"Quit\"] = \"Exit the current view\"\n+ else:\n+ bottom_items[\"Back\"] = \"Exit the current view\"\n+ bottom_items |= {\n+ \"Events\": \"View event log\",\n+ \"Options\": \"View options\",\n+ \"Intercept\": \"Set intercept\",\n+ \"Filter\": \"Set view filter\",\n+ }\n+ if focused_flow:\n+ bottom_items |= {\n+ \"Save flows\": \"Save listed flows to file\",\n+ \"Clear list\": \"Clear flow list\",\n+ }\n+ bottom_items |= {\n+ \"Layout\": \"Cycle to next layout\",\n+ \"Switch\": \"Focus next layout pane\",\n+ \"Follow new\": \"Set focus follow\",\n+ }\n+\n+ label_len = max(len(top_label), len(bottom_label), 8) + 1\n+ top_label = top_label.ljust(label_len)\n+ bottom_label = bottom_label.ljust(label_len)\n+\n+ return QuickHelp(top_label, top_items, bottom_label, bottom_items)\n+\n+\n+def _make_row(label: str, items: HelpItems, keymap: Keymap) -> urwid.Columns:\n+ cols = [\n+ (len(label), urwid.Text(label)),\n+ ]\n+ for (short, long) in items.items():\n+ if isinstance(long, BasicKeyHelp):\n+ key_short = long.key\n+ else:\n+ b = keymap.binding_for_help(long)\n+ if b is None:\n+ continue\n+ key_short = b.key_short()\n+ txt = urwid.Text(\n+ [\n+ (\"heading_inactive\", key_short),\n+ \" \",\n+ short,\n+ ],\n+ wrap=\"clip\"\n+ )\n+ cols.append((14, txt))\n+\n+ return urwid.Columns(cols)\ndiff --git a/mitmproxy/tools/console/signals.py b/mitmproxy/tools/console/signals.py\nindex 11ea688fbc..024fad5007 100644\n--- a/mitmproxy/tools/console/signals.py\n+++ b/mitmproxy/tools/console/signals.py\n@@ -1,12 +1,16 @@\n from __future__ import annotations\n \n from collections.abc import Callable\n+from typing import Union\n \n from mitmproxy.utils import signals\n \n+StatusMessage = Union[tuple[str, str], str]\n+\n \n # Show a status message in the action bar\n-def _status_message(message: tuple[str, str] | str, expire: int | None = None) -> None:\n+# Instead of using this signal directly, consider emitting a log event.\n+def _status_message(message: StatusMessage, expire: int = 5) -> None:\n ...\n \n \n@@ -56,5 +60,8 @@ def _call_in(seconds: float, callback: Callable[[], None]) -> None:\n # Pop and push view state onto a stack\n pop_view_state = signals.SyncSignal(lambda: None)\n \n+# Fired when the window state changes\n+window_refresh = signals.SyncSignal(lambda: None)\n+\n # Fired when the key bindings change\n keybindings_change = signals.SyncSignal(lambda: None)\ndiff --git a/mitmproxy/tools/console/statusbar.py b/mitmproxy/tools/console/statusbar.py\nindex 031ab2eeae..a8ca015909 100644\n--- a/mitmproxy/tools/console/statusbar.py\n+++ b/mitmproxy/tools/console/statusbar.py\n@@ -1,17 +1,19 @@\n from __future__ import annotations\n from collections.abc import Callable\n+from functools import lru_cache\n from typing import Optional\n \n import urwid\n \n import mitmproxy.tools.console.master\n-from mitmproxy.tools.console import commandexecutor\n+from mitmproxy.tools.console import commandexecutor, flowlist, quickhelp\n from mitmproxy.tools.console import common\n from mitmproxy.tools.console import signals\n from mitmproxy.tools.console.commander import commander\n from mitmproxy.utils import human\n \n \n+@lru_cache\n def shorten_message(msg: tuple[str, str] | str, max_width: int) -> list[tuple[str, str]]:\n \"\"\"\n Shorten message so that it fits into a single line in the statusbar.\n@@ -47,46 +49,58 @@ def shorten_message(msg: tuple[str, str] | str, max_width: int) -> list[tuple[st\n class ActionBar(urwid.WidgetWrap):\n def __init__(self, master: mitmproxy.tools.console.master.ConsoleMaster) -> None:\n self.master = master\n- urwid.WidgetWrap.__init__(self, None)\n- self.clear()\n+ self.top = urwid.WidgetWrap(urwid.Text(\"\"))\n+ self.bottom = urwid.WidgetWrap(urwid.Text(\"\"))\n+ super().__init__(urwid.Pile([self.top, self.bottom]))\n+ self.show_quickhelp()\n signals.status_message.connect(self.sig_message)\n signals.status_prompt.connect(self.sig_prompt)\n signals.status_prompt_onekey.connect(self.sig_prompt_onekey)\n signals.status_prompt_command.connect(self.sig_prompt_command)\n+ signals.window_refresh.connect(self.sig_update)\n+ master.view.focus.sig_change.connect(self.sig_update)\n+ master.view.sig_view_update.connect(self.sig_update)\n \n self.prompting: Callable[[str], None] | None = None\n \n self.onekey: set[str] | None = None\n \n+ def sig_update(self, flow=None) -> None:\n+ if not self.prompting and flow is None or flow == self.master.view.focus.flow:\n+ self.show_quickhelp()\n+\n def sig_message(self, message: tuple[str, str] | str, expire: int | None = 1) -> None:\n if self.prompting:\n return\n cols, _ = self.master.ui.get_cols_rows()\n w = urwid.Text(shorten_message(message, cols))\n- self._w = w\n+ self.top._w = w\n+ self.bottom._w = urwid.Text(\"\")\n if expire:\n \n def cb():\n- if w == self._w:\n- self.clear()\n+ if w == self.top._w:\n+ self.show_quickhelp()\n \n signals.call_in.send(seconds=expire, callback=cb)\n \n def sig_prompt(self, prompt: str, text: str | None, callback: Callable[[str], None]) -> None:\n signals.focus.send(section=\"footer\")\n- self._w = urwid.Edit(f\"{prompt.strip()}: \", text or \"\")\n+ self.top._w = urwid.Edit(f\"{prompt.strip()}: \", text or \"\")\n+ self.bottom._w = urwid.Text(\"\")\n self.prompting = callback\n \n def sig_prompt_command(\n self, partial: str = \"\", cursor: Optional[int] = None\n ) -> None:\n signals.focus.send(section=\"footer\")\n- self._w = commander.CommandEdit(\n+ self.top._w = commander.CommandEdit(\n self.master,\n partial,\n )\n if cursor is not None:\n- self._w.cbuf.cursor = cursor\n+ self.top._w.cbuf.cursor = cursor\n+ self.bottom._w = urwid.Text(\"\")\n self.prompting = self.execute_command\n \n def execute_command(self, txt: str) -> None:\n@@ -110,7 +124,8 @@ def sig_prompt_onekey(self, prompt: str, keys: list[tuple[str, str]], callback:\n parts.extend(mkup)\n parts.append(\")? \")\n self.onekey = {i[1] for i in keys}\n- self._w = urwid.Edit(parts, \"\")\n+ self.top._w = urwid.Edit(parts, \"\")\n+ self.bottom._w = urwid.Text(\"\")\n self.prompting = callback\n \n def selectable(self) -> bool:\n@@ -126,21 +141,30 @@ def keypress(self, size, k):\n elif k in self.onekey:\n self.prompt_execute(k)\n elif k == \"enter\":\n- text = self._w.get_edit_text()\n+ text = self.top._w.get_edit_text()\n self.prompt_execute(text)\n else:\n if common.is_keypress(k):\n- self._w.keypress(size, k)\n+ self.top._w.keypress(size, k)\n else:\n return k\n \n- def clear(self) -> None:\n- self._w = urwid.Text(\"\")\n+ def show_quickhelp(self) -> None:\n+ try:\n+ s = self.master.window.focus_stack()\n+ focused_widget = type(s.top_widget())\n+ is_top_widget = len(s.stack) == 1\n+ except AttributeError: # on startup\n+ focused_widget = flowlist.FlowListBox\n+ is_top_widget = True\n+ focused_flow = self.master.view.focus.flow\n+ qh = quickhelp.make(focused_widget, focused_flow, is_top_widget)\n+ self.top._w, self.bottom._w = qh.make_rows(self.master.keymap)\n \n def prompt_done(self) -> None:\n self.prompting = None\n self.onekey = None\n- self.clear()\n+ self.show_quickhelp()\n signals.focus.send(section=\"body\")\n \n def prompt_execute(self, txt) -> None:\n@@ -259,7 +283,10 @@ def get_status(self) -> list[tuple[str, str] | str]:\n r.append(\"[%s]\" % (\":\".join(opts)))\n \n if self.master.options.mode != [\"regular\"]:\n- r.append(f\"[{','.join(self.master.options.mode)}]\")\n+ if len(self.master.options.mode) == 1:\n+ r.append(f\"[{self.master.options.mode[0]}]\")\n+ else:\n+ r.append(f\"[modes:{len(self.master.options.mode)}]\")\n if self.master.options.scripts:\n r.append(\"[scripts:%s]\" % len(self.master.options.scripts))\n \ndiff --git a/mitmproxy/tools/console/window.py b/mitmproxy/tools/console/window.py\nindex 3f61c2c06d..5c2a2392ee 100644\n--- a/mitmproxy/tools/console/window.py\n+++ b/mitmproxy/tools/console/window.py\n@@ -189,6 +189,7 @@ def wrapped(idx):\n )\n \n self.body = urwid.AttrWrap(w, \"background\")\n+ signals.window_refresh.send()\n \n def flow_changed(self, flow: flow.Flow) -> None:\n if self.master.view.focus.flow:\n"},"test_patch":{"kind":"string","value":"diff --git a/test/mitmproxy/tools/console/test_quickhelp.py b/test/mitmproxy/tools/console/test_quickhelp.py\nnew file mode 100644\nindex 0000000000..958bf6ae40\n--- /dev/null\n+++ b/test/mitmproxy/tools/console/test_quickhelp.py\n@@ -0,0 +1,65 @@\n+import pytest\n+\n+from mitmproxy.test.tflow import tflow\n+from mitmproxy.tools.console import defaultkeys, quickhelp\n+from mitmproxy.tools.console.eventlog import EventLog\n+from mitmproxy.tools.console.flowlist import FlowListBox\n+from mitmproxy.tools.console.flowview import FlowView\n+from mitmproxy.tools.console.grideditor import PathEditor\n+from mitmproxy.tools.console.help import HelpView\n+from mitmproxy.tools.console.keybindings import KeyBindings\n+from mitmproxy.tools.console.keymap import Keymap\n+from mitmproxy.tools.console.options import Options\n+from mitmproxy.tools.console.overlay import SimpleOverlay\n+\n+\n+@pytest.fixture(scope=\"module\")\n+def keymap() -> Keymap:\n+ km = Keymap(None)\n+ defaultkeys.map(km)\n+ return km\n+\n+\n+tflow2 = tflow()\n+tflow2.intercept()\n+tflow2.backup()\n+tflow2.marked = \"x\"\n+\n+\n+@pytest.mark.parametrize(\n+ \"widget, flow, is_root_widget\",\n+ [\n+ (FlowListBox, None, False),\n+ (FlowListBox, tflow(), False),\n+ (FlowView, tflow2, True),\n+ (KeyBindings, None, True),\n+ (Options, None, True),\n+ (HelpView, None, False),\n+ (EventLog, None, True),\n+ (PathEditor, None, False),\n+ (SimpleOverlay, None, False),\n+ ]\n+)\n+def test_quickhelp(widget, flow, keymap, is_root_widget):\n+ qh = quickhelp.make(widget, flow, is_root_widget)\n+ for row in [qh.top_items, qh.bottom_items]:\n+ for (title, v) in row.items():\n+ if isinstance(v, quickhelp.BasicKeyHelp):\n+ key_short = v.key\n+ else:\n+ b = keymap.binding_for_help(v)\n+ if b is None:\n+ raise AssertionError(f\"No binding found for help text: {v}\")\n+ key_short = b.key_short()\n+ assert len(key_short) + len(title) < 14\n+\n+\n+def test_make_rows():\n+ keymap = Keymap(None)\n+ defaultkeys.map(keymap)\n+\n+ # make sure that we don't crash if a default binding is missing.\n+ keymap.unbind(keymap.binding_for_help(\"View event log\"))\n+\n+ qh = quickhelp.make(HelpView, None, True)\n+ assert qh.make_rows(keymap)\n"},"problem_statement":{"kind":"string","value":"Add quick help bar\n#### Description\r\n\r\nIssue #4515\r\nThis PR adds a Nano-looking quick help bar.\r\n\r\n* Key display shows a small number of basic key bindings that are helpful (like exit or help).\r\n* The set of keys displayed change depending on the context so bindings for flowlist only show when you're focused on the flowlist and change when you switch to flowview, for instance.\r\n* Keys are chopped off at the right. \r\n\r\nWe also read bindings defined in `defaultkeys.py` to display them. The order in which they are defined within a context (global, flowlist, etc.) matters. It might be a bit tedious to maintain if we are adding bindings often.\r\n\r\nIn addition, there are some proposed changes as suggested in #4515 . I moved the counter thingy (`[6/9]`), the listen_host and listen_port to the header to make better use of that space but, besides that, I left the status bar and action bar untouched in terms of functionality. I had some ideas about what to do with the status bar as it looks a bit empty now but did not want to invest more time until I got some feedback. Also, I wanted to change the quit prompt so that yes and no were displayed in the key display/quick help bar as I think it would look better. \r\n\r\nHere is what it looks like\r\n![Screenshot from 2022-05-27 17-28-53](https://user-images.githubusercontent.com/24687641/170791599-fc12fa8f-04fc-484a-a64f-2c05c3354eba.png)\r\n![Screenshot from 2022-05-27 17-33-17](https://user-images.githubusercontent.com/24687641/170791969-e3c7ce51-cfed-49a2-a70d-c478f85987c2.png)\r\n![Screenshot from 2022-05-27 17-30-10](https://user-images.githubusercontent.com/24687641/170791697-af8eb79e-890f-4a41-be04-6094439c7004.png)\r\n![Screenshot from 2022-05-27 17-37-27](https://user-images.githubusercontent.com/24687641/170792302-c7e81474-4598-4b4f-9beb-e86319d833e6.png)\r\n\r\n\r\n#### Checklist\r\n\r\n - [ ] I have updated tests where applicable.\r\n - [ ] I have added an entry to the CHANGELOG.\r\n\n"},"hints_text":{"kind":"string","value":"Fantastic, this looks great from the screenshots! 😃 \r\nI likely won't find time to review this properly before Wednesday, but I'm very happy to see this being tackled and will try to shorten turnaround times then. :)"},"created_at":{"kind":"string","value":"2022-10-17T15:34:36Z"},"merged_at":{"kind":"string","value":"2022-10-20T14:29:59Z"},"PASS_TO_PASS":{"kind":"string","value":"[]"},"PASS_TO_FAIL":{"kind":"string","value":"[]"},"FAIL_TO_PASS":{"kind":"string","value":"[\"test/mitmproxy/tools/console/test_quickhelp.py::test_quickhelp[HelpView-None-False]\", \"test/mitmproxy/tools/console/test_quickhelp.py::test_make_rows\", \"test/mitmproxy/tools/console/test_quickhelp.py::test_quickhelp[PathEditor-None-False]\", \"test/mitmproxy/tools/console/test_quickhelp.py::test_quickhelp[KeyBindings-None-True]\", \"test/mitmproxy/tools/console/test_quickhelp.py::test_quickhelp[FlowListBox-flow1-False]\", \"test/mitmproxy/tools/console/test_quickhelp.py::test_quickhelp[FlowView-flow2-True]\", \"test/mitmproxy/tools/console/test_quickhelp.py::test_quickhelp[FlowListBox-None-False]\", \"test/mitmproxy/tools/console/test_quickhelp.py::test_quickhelp[Options-None-True]\", \"test/mitmproxy/tools/console/test_quickhelp.py::test_quickhelp[SimpleOverlay-None-False]\", \"test/mitmproxy/tools/console/test_quickhelp.py::test_quickhelp[EventLog-None-True]\"]"},"FAIL_TO_FAIL":{"kind":"string","value":"[]"},"install":{"kind":"string","value":"{\"install\": [\"uv pip install -e .\"], \"pre_install\": [\"tee tox.ini <=3.8.4,<6.1\\n flake8-tidy-imports>=4.2.0,<5\\ncommands =\\n flake8 --jobs 8 mitmproxy examples test release {posargs}\\n\\n[testenv:filename_matching]\\ndeps =\\ncommands =\\n python ./test/filename_matching.py\\n\\n[testenv:mypy]\\ndeps =\\n mypy==1.0.0\\n types-certifi==2021.10.8.3\\n types-Flask==1.1.6\\n types-Werkzeug==1.0.9\\n types-requests==2.28.11.11\\n types-cryptography==3.3.23.2\\n types-pyOpenSSL==23.0.0.2\\n -e .[dev]\\n\\ncommands =\\n mypy {posargs}\\n\\n[testenv:individual_coverage]\\ncommands =\\n python ./test/individual_coverage.py {posargs}\\n\\n[testenv:wheeltest]\\nrecreate = True\\ndeps =\\ncommands =\\n pip install {posargs}\\n mitmproxy --version\\n mitmdump --version\\n mitmweb --version\\n\\nEOF_1234810234\"], \"python\": \"3.10\", \"pip_packages\": [\"altgraph==0.17.3\", \"arpeggio==1.10.2\", \"asgiref==3.5.2\", \"attrs==22.1.0\", \"brotli==1.0.9\", \"certifi==2022.9.24\", \"cffi==1.15.1\", \"charset-normalizer==2.1.1\", \"click==8.1.3\", \"coverage==6.5.0\", \"cryptography==38.0.1\", \"distlib==0.3.6\", \"execnet==1.9.0\", \"filelock==3.8.0\", \"flask==2.2.2\", \"h11==0.14.0\", \"h2==4.1.0\", \"hpack==4.0.0\", \"hyperframe==6.0.1\", \"hypothesis==6.47.1\", \"idna==3.4\", \"iniconfig==1.1.1\", \"itsdangerous==2.1.2\", \"jinja2==3.1.2\", \"kaitaistruct==0.10\", \"ldap3==2.9.1\", \"markupsafe==2.1.1\", \"mitmproxy-wireguard==0.1.13\", \"msgpack==1.0.4\", \"packaging==21.3\", \"parver==0.3.1\", \"passlib==1.7.4\", \"pdoc==12.2.0\", \"platformdirs==2.5.2\", \"pluggy==1.0.0\", \"protobuf==4.21.8\", \"publicsuffix2==2.20191221\", \"py==1.11.0\", \"pyasn1==0.4.8\", \"pycparser==2.21\", \"pygments==2.13.0\", \"pyinstaller==5.5\", \"pyinstaller-hooks-contrib==2022.10\", \"pyopenssl==22.1.0\", \"pyparsing==3.0.9\", \"pyperclip==1.8.2\", \"pytest==7.1.3\", \"pytest-asyncio==0.19.0\", \"pytest-cov==4.0.0\", \"pytest-forked==1.4.0\", \"pytest-timeout==2.1.0\", \"pytest-xdist==2.5.0\", \"requests==2.28.1\", \"ruamel-yaml==0.17.21\", \"ruamel-yaml-clib==0.2.7\", \"setuptools==65.5.0\", \"six==1.16.0\", \"sortedcontainers==2.4.0\", \"tomli==2.0.1\", \"tornado==6.2\", \"tox==3.26.0\", \"urllib3==1.26.12\", \"urwid==2.1.2\", \"virtualenv==20.16.5\", \"werkzeug==2.2.2\", \"wheel==0.37.1\", \"wsproto==1.2.0\", \"zstandard==0.18.0\"]}"},"test_framework":{"kind":"string","value":"tox -e py -- "},"test_commands":{"kind":"null"},"version":{"kind":"null"},"environment_setup_commit":{"kind":"null"},"docker_image_root":{"kind":"string","value":"swa-bench:sw.eval"}}},{"rowIdx":326,"cells":{"repo":{"kind":"string","value":"mitmproxy/mitmproxy"},"instance_id":{"kind":"string","value":"mitmproxy__mitmproxy-5648"},"base_commit":{"kind":"string","value":"42df073f7ec57360dff6f1a974c4d42464e43a81"},"patch":{"kind":"string","value":"diff --git a/CHANGELOG.md b/CHANGELOG.md\nindex 01c5608467..e1181b8c60 100644\n--- a/CHANGELOG.md\n+++ b/CHANGELOG.md\n@@ -45,6 +45,8 @@\n ([#5562](https://github.com/mitmproxy/mitmproxy/pull/5562), @decathorpe, @mhils)\n * Fix mitmweb not properly opening a browser and being stuck on some Linux.\n ([#5522](https://github.com/mitmproxy/mitmproxy/issues/5522), @Prinzhorn)\n+* Add syntax highlighting to JSON and msgpack content view.\n+ ([#5623](https://github.com/mitmproxy/mitmproxy/issues/5623), @SapiensAnatis)\n * Fix race condition when updating mitmweb WebSocket connections that are closing.\n ([#5405](https://github.com/mitmproxy/mitmproxy/issues/5405), @mhils)\n \ndiff --git a/mitmproxy/contentviews/json.py b/mitmproxy/contentviews/json.py\nindex a75ba83bb4..d8952e80bc 100644\n--- a/mitmproxy/contentviews/json.py\n+++ b/mitmproxy/contentviews/json.py\n@@ -28,11 +28,14 @@ def format_json(data: Any) -> Iterator[base.TViewLine]:\n yield current_line\n current_line = []\n if re.match(r'\\s*\"', chunk):\n- current_line.append((\"json_string\", chunk))\n+ if len(current_line) == 1 and current_line[0][0] == \"text\" and current_line[0][1].isspace():\n+ current_line.append((\"Token_Name_Tag\", chunk))\n+ else:\n+ current_line.append((\"Token_Literal_String\", chunk))\n elif re.match(r\"\\s*\\d\", chunk):\n- current_line.append((\"json_number\", chunk))\n+ current_line.append((\"Token_Literal_Number\", chunk))\n elif re.match(r\"\\s*(true|null|false)\", chunk):\n- current_line.append((\"json_boolean\", chunk))\n+ current_line.append((\"Token_Keyword_Constant\", chunk))\n else:\n current_line.append((\"text\", chunk))\n yield current_line\ndiff --git a/mitmproxy/contentviews/msgpack.py b/mitmproxy/contentviews/msgpack.py\nindex 01f74e49ad..7e845bd118 100644\n--- a/mitmproxy/contentviews/msgpack.py\n+++ b/mitmproxy/contentviews/msgpack.py\n@@ -15,23 +15,62 @@ def parse_msgpack(s: bytes) -> Any:\n return PARSE_ERROR\n \n \n-def pretty(value, htchar=\" \", lfchar=\"\\n\", indent=0):\n- nlch = lfchar + htchar * (indent + 1)\n- if type(value) is dict:\n- items = [\n- nlch + repr(key) + \": \" + pretty(value[key], htchar, lfchar, indent + 1)\n- for key in value\n- ]\n- return \"{%s}\" % (\",\".join(items) + lfchar + htchar * indent)\n- elif type(value) is list:\n- items = [nlch + pretty(item, htchar, lfchar, indent + 1) for item in value]\n- return \"[%s]\" % (\",\".join(items) + lfchar + htchar * indent)\n- else:\n- return repr(value)\n+def format_msgpack(data: Any, output = None, indent_count: int = 0) -> list[base.TViewLine]:\n+ if output is None:\n+ output = [[]]\n+\n+ indent = (\"text\", \" \" * indent_count)\n+\n+ if type(data) is str:\n+ token = [(\"Token_Literal_String\", f\"\\\"{data}\\\"\")]\n+ output[-1] += token\n+\n+ # Need to return if single value, but return is discarded in dict/list loop\n+ return output\n+\n+ elif type(data) is float or type(data) is int:\n+ token = [(\"Token_Literal_Number\", repr(data))]\n+ output[-1] += token\n+\n+ return output\n+\n+ elif type(data) is bool:\n+ token = [(\"Token_Keyword_Constant\", repr(data))]\n+ output[-1] += token\n+\n+ return output\n+\n+ elif type(data) is dict:\n+ output[-1] += [(\"text\", \"{\")]\n+ for key in data:\n+ output.append([indent, (\"text\", \" \"), (\"Token_Name_Tag\", f'\"{key}\"'), (\"text\", \": \")])\n+ format_msgpack(data[key], output, indent_count + 1)\n \n+ if key != list(data)[-1]:\n+ output[-1] += [(\"text\", \",\")]\n+\n+ output.append([indent, (\"text\", \"}\")])\n+\n+ return output\n+\n+ elif type(data) is list:\n+ output[-1] += [(\"text\", \"[\")]\n+ for item in data:\n+ output.append([indent, (\"text\", \" \")])\n+ format_msgpack(item, output, indent_count + 1)\n+\n+ if item != data[-1]:\n+ output[-1] += [(\"text\", \",\")]\n+\n+ output.append([indent, (\"text\", \"]\")])\n+\n+ return output\n+\n+ else:\n+ token = [(\"text\", repr(data))]\n+ output[-1] += token\n \n-def format_msgpack(data):\n- return base.format_text(pretty(data))\n+ return output\n \n \n class ViewMsgPack(base.View):\ndiff --git a/mitmproxy/tools/console/palettes.py b/mitmproxy/tools/console/palettes.py\nindex 236553c1cd..4e86258e21 100644\n--- a/mitmproxy/tools/console/palettes.py\n+++ b/mitmproxy/tools/console/palettes.py\n@@ -69,10 +69,11 @@ class Palette:\n \"mark\",\n # Hex view\n \"offset\",\n- # JSON view\n- \"json_string\",\n- \"json_number\",\n- \"json_boolean\",\n+ # JSON/msgpack view\n+ \"Token_Name_Tag\",\n+ \"Token_Literal_String\",\n+ \"Token_Literal_Number\",\n+ \"Token_Keyword_Constant\",\n # TCP flow details\n \"from_client\",\n \"to_client\",\n@@ -207,10 +208,11 @@ class LowDark(Palette):\n mark=(\"light red\", \"default\"),\n # Hex view\n offset=(\"dark cyan\", \"default\"),\n- # JSON view\n- json_string=(\"dark blue\", \"default\"),\n- json_number=(\"light magenta\", \"default\"),\n- json_boolean=(\"dark magenta\", \"default\"),\n+ # JSON/msgpack view\n+ Token_Name_Tag=(\"dark green\", \"default\"),\n+ Token_Literal_String=(\"dark blue\", \"default\"),\n+ Token_Literal_Number=(\"light magenta\", \"default\"),\n+ Token_Keyword_Constant=(\"dark magenta\", \"default\"),\n # TCP flow details\n from_client=(\"light blue\", \"default\"),\n to_client=(\"light red\", \"default\"),\n@@ -306,10 +308,11 @@ class LowLight(Palette):\n mark=(\"dark red\", \"default\"),\n # Hex view\n offset=(\"dark blue\", \"default\"),\n- # JSON view\n- json_string=(\"dark blue\", \"default\"),\n- json_number=(\"light magenta\", \"default\"),\n- json_boolean=(\"dark magenta\", \"default\"),\n+ # JSON/msgpack view\n+ Token_Name_Tag=(\"dark green\", \"default\"),\n+ Token_Literal_String=(\"dark blue\", \"default\"),\n+ Token_Literal_Number=(\"light magenta\", \"default\"),\n+ Token_Keyword_Constant=(\"dark magenta\", \"default\"),\n # TCP flow details\n from_client=(\"dark blue\", \"default\"),\n to_client=(\"dark red\", \"default\"),\n@@ -427,10 +430,11 @@ class SolarizedLight(LowLight):\n ),\n # Hex view\n offset=(sol_cyan, \"default\"),\n- # JSON view\n- json_string=(sol_cyan, \"default\"),\n- json_number=(sol_blue, \"default\"),\n- json_boolean=(sol_magenta, \"default\"),\n+ # JSON/msgpack view\n+ Token_Name_Tag=(sol_green, \"default\"),\n+ Token_Literal_String=(sol_cyan, \"default\"),\n+ Token_Literal_Number=(sol_blue, \"default\"),\n+ Token_Keyword_Constant=(sol_magenta, \"default\"),\n # TCP flow details\n from_client=(sol_blue, \"default\"),\n to_client=(sol_red, \"default\"),\n@@ -506,10 +510,11 @@ class SolarizedDark(LowDark):\n ),\n # Hex view\n offset=(sol_cyan, \"default\"),\n- # JSON view\n- json_string=(sol_cyan, \"default\"),\n- json_number=(sol_blue, \"default\"),\n- json_boolean=(sol_magenta, \"default\"),\n+ # JSON/msgpack view\n+ Token_Name_Tag=(sol_green, \"default\"),\n+ Token_Literal_String=(sol_cyan, \"default\"),\n+ Token_Literal_Number=(sol_blue, \"default\"),\n+ Token_Keyword_Constant=(sol_magenta, \"default\"),\n # TCP flow details\n from_client=(sol_blue, \"default\"),\n to_client=(sol_red, \"default\"),\ndiff --git a/web/src/css/contentview.less b/web/src/css/contentview.less\nindex ec5efab8aa..e483214ff4 100644\n--- a/web/src/css/contentview.less\n+++ b/web/src/css/contentview.less\n@@ -14,4 +14,16 @@\n .codeeditor{\n margin-bottom: 12px;\n }\n+ .Token_Name_Tag{\n+ color: darkgreen;\n+ }\n+ .Token_Literal_String{\n+ color: firebrick;\n+ }\n+ .Token_Literal_Number{\n+ color: purple;\n+ }\n+ .Token_Keyword_Constant{\n+ color: blue;\n+ }\n }\n"},"test_patch":{"kind":"string","value":"diff --git a/test/mitmproxy/contentviews/test_json.py b/test/mitmproxy/contentviews/test_json.py\nindex 43565b2302..5b3883060f 100644\n--- a/test/mitmproxy/contentviews/test_json.py\n+++ b/test/mitmproxy/contentviews/test_json.py\n@@ -17,6 +17,32 @@ def test_parse_json():\n \n def test_format_json():\n assert list(json.format_json({\"data\": [\"str\", 42, True, False, None, {}, []]}))\n+ assert list(json.format_json({\"string\": \"test\"})) == [\n+ [('text', '{'), ('text', '')],\n+ [('text', ' '), ('Token_Name_Tag', '\"string\"'), ('text', ': '), ('Token_Literal_String', '\"test\"'), ('text', '')],\n+ [('text', ''), ('text', '}')]]\n+ assert list(json.format_json({\"num\": 4})) == [\n+ [('text', '{'), ('text', '')],\n+ [('text', ' '), ('Token_Name_Tag', '\"num\"'), ('text', ': '), ('Token_Literal_Number', '4'), ('text', '')],\n+ [('text', ''), ('text', '}')]]\n+ assert list(json.format_json({\"bool\": True})) == [\n+ [('text', '{'), ('text', '')],\n+ [('text', ' '), ('Token_Name_Tag', '\"bool\"'), ('text', ': '), ('Token_Keyword_Constant', 'true'), ('text', '')],\n+ [('text', ''), ('text', '}')]]\n+ assert list(json.format_json({\"object\": {\"int\": 1}})) == [\n+ [('text', '{'), ('text', '')],\n+ [('text', ' '), ('Token_Name_Tag', '\"object\"'), ('text', ': '), ('text', '{'), ('text', '')],\n+ [('text', ' '), ('Token_Name_Tag', '\"int\"'), ('text', ': '), ('Token_Literal_Number', '1'), ('text', '')],\n+ [('text', ' '), ('text', '}'), ('text', '')],\n+ [('text', ''), ('text', '}')]]\n+ assert list(json.format_json({\"list\": [\"string\", 1, True]})) == [\n+ [('text', '{'), ('text', '')],\n+ [('text', ' '), ('Token_Name_Tag', '\"list\"'), ('text', ': '), ('text', '[')],\n+ [('Token_Literal_String', ' \"string\"'), ('text', ',')],\n+ [('Token_Literal_Number', ' 1'), ('text', ',')],\n+ [('Token_Keyword_Constant', ' true'), ('text', '')],\n+ [('text', ' '), ('text', ']'), ('text', '')],\n+ [('text', ''), ('text', '}')]]\n \n \n def test_view_json():\ndiff --git a/test/mitmproxy/contentviews/test_msgpack.py b/test/mitmproxy/contentviews/test_msgpack.py\nindex 458dac810c..eeba8b2d13 100644\n--- a/test/mitmproxy/contentviews/test_msgpack.py\n+++ b/test/mitmproxy/contentviews/test_msgpack.py\n@@ -18,9 +18,32 @@ def test_parse_msgpack():\n \n \n def test_format_msgpack():\n- assert list(\n- msgpack.format_msgpack({\"data\": [\"str\", 42, True, False, None, {}, []]})\n- )\n+ assert list(msgpack.format_msgpack({\"string\": \"test\", \"int\": 1, \"float\": 1.44, \"bool\": True})) == [\n+ [('text', '{')],\n+ [('text', ''), ('text', ' '), ('Token_Name_Tag', '\"string\"'), ('text', ': '), ('Token_Literal_String', '\"test\"'), ('text', ',')],\n+ [('text', ''), ('text', ' '), ('Token_Name_Tag', '\"int\"'), ('text', ': '), ('Token_Literal_Number', '1'), ('text', ',')],\n+ [('text', ''), ('text', ' '), ('Token_Name_Tag', '\"float\"'), ('text', ': '), ('Token_Literal_Number', '1.44'), ('text', ',')],\n+ [('text', ''), ('text', ' '), ('Token_Name_Tag', '\"bool\"'), ('text', ': '), ('Token_Keyword_Constant', 'True')],\n+ [('text', ''), ('text', '}')]\n+ ]\n+\n+ assert list(msgpack.format_msgpack({\"object\": {\"key\": \"value\"}, \"list\": [1]})) == [\n+ [('text', '{')],\n+ [('text', ''), ('text', ' '), ('Token_Name_Tag', '\"object\"'), ('text', ': '), ('text', '{')],\n+ [('text', ' '), ('text', ' '), ('Token_Name_Tag', '\"key\"'), ('text', ': '), ('Token_Literal_String', '\"value\"')],\n+ [('text', ' '), ('text', '}'), ('text', ',')],\n+ [('text', ''), ('text', ' '), ('Token_Name_Tag', '\"list\"'), ('text', ': '), ('text', '[')],\n+ [('text', ' '), ('text', ' '), ('Token_Literal_Number', '1')],\n+ [('text', ' '), ('text', ']')],\n+ [('text', ''), ('text', '}')]]\n+\n+ assert list(msgpack.format_msgpack('string')) == [[('Token_Literal_String', '\"string\"')]]\n+\n+ assert list(msgpack.format_msgpack(1.2)) == [[('Token_Literal_Number', '1.2')]]\n+\n+ assert list(msgpack.format_msgpack(True)) == [[('Token_Keyword_Constant', 'True')]]\n+\n+ assert list(msgpack.format_msgpack(b'\\x01\\x02\\x03')) == [[('text', \"b'\\\\x01\\\\x02\\\\x03'\")]]\n \n \n def test_view_msgpack():\n"},"problem_statement":{"kind":"string","value":"mitmweb: Add support for syntax highlighting / coloring\n#### Problem Description\r\nWhen selecting \"View: msgpack\" on a msgpack request or response, the resultant JSON is displayed using single-quotes (`'`), which is not valid. It should use double-quotes (`\"`) instead.\r\n\r\n#### Steps to reproduce the behavior:\r\n1. Have a request/response in `mitmweb` and click Replace and use the file contained in this archive: [get_resource_version.zip](https://github.com/mitmproxy/mitmproxy/files/9692381/get_resource_version.zip)\r\n2. Select \"View: msgpack\" next to the Replace button\r\n3. Notice that the resultant JSON contains single-quoted properties and strings:\r\n```json\r\n{\r\n 'data_headers': {\r\n 'result_code': 1\r\n },\r\n 'data': {\r\n 'resource_version': 'y2XM6giU6zz56wCm'\r\n }\r\n}\r\n```\r\n\r\nI am not an expert on the JSON standard, but pasting the output into a [JSON validator](https://duckduckgo.com/?q=json+validator&t=ffab&ia=answer) throws up errors which can be fixed by using double quotes (and I assume that's what the red highlighting means, since the above code block starts with ```json)\r\n\r\n#### System Information\r\n```\r\n>mitmproxy --version\r\nMitmproxy: 8.1.1\r\nPython: 3.10.6\r\nOpenSSL: OpenSSL 1.1.1n 15 Mar 2022\r\nPlatform: Windows-10-10.0.22622-SP0\r\n```\r\n\r\n#### P.S.\r\nI know a bit of Python but am unfamiliar with this codebase, however I would be happy to try fixing this myself and submitting a PR if that would be easier? It seems like something that would be simple enough for a first time contributor to attempt.\n"},"hints_text":{"kind":"string","value":"I don't know if this is _supposed_ to be valid JSON. First and foremost this is a human readable version of msgpack that happens to look somewhat like JSON.\r\n\r\nThe code is here\r\n\r\nhttps://github.com/mitmproxy/mitmproxy/blob/a1631154d722ea4c82dcb72e0c84ad38c6991de5/mitmproxy/contentviews/msgpack.py#L18-L30\r\n\r\nI don't know if everything that msgpack does _can_ be represented in JSON (e.g. bytes). If so, then this code could basically just use `json.dumps`.\r\n\r\n@tasn can you comment on that please?\nSo yeah, msgpack is _not_ JSON compatible. E.g. map keys can have _any_ type. I'm closing, feel free to re-open if I'm missing something.\nAh, that makes sense about them not being the same especially with the bytes. \r\n\r\nMy use case was more pasting them into syntax highlighting things which expect the double quotes, rather than parsing the json (there are msgpack deserialisers for that). My msgpack data usually only used primitive types. I can just continue using a simple find-and-replace though, so I don’t have any objection to you closing.\nIf you're interested in contributing, I'm sure adding coloring to the mspack view would be a great addition.\r\n\r\nhttps://github.com/mitmproxy/mitmproxy/blob/a1631154d722ea4c82dcb72e0c84ad38c6991de5/mitmproxy/contentviews/msgpack.py#L18-L30\r\n\r\nHere's how this works for JSON\r\n\r\nhttps://github.com/mitmproxy/mitmproxy/blob/a1631154d722ea4c82dcb72e0c84ad38c6991de5/mitmproxy/contentviews/json.py#L20-L38\r\n\r\nYou essentially need to use `TViewLine` and mostly in the last else add tokens for the corresponding types instead of treating all the same:\r\n\r\nhttps://github.com/mitmproxy/mitmproxy/blob/a1631154d722ea4c82dcb72e0c84ad38c6991de5/mitmproxy/contentviews/msgpack.py#L29-L30\r\n\r\nBut mitmweb is currently missing the colors that the terminal uses https://github.com/mitmproxy/mitmproxy/blob/cd4a74fae7cbd8119afc3900597f798ec1604db7/mitmproxy/tools/console/palettes.py#L149-L225\r\nThat should be somewhat easy to add as well, but it can be a separate step. (TIL mitmproxy has themes?)\r\n\r\nI'm going to re-open this but as a feature request to add syntax highlighting support to mitmweb. Everything is already there (e.g. it adds things like `class=\"json_string\"`) but it doesn't do anything yet. So if the classes/colors where there it would already work for JSON. For msgpack it lacks it in the contentview.\n@Prinzhorn, yeah, adding coloring would indeed be a great addition!\r\n\r\nAs for JSON: yeah, msgpack is more complex than JSON and you can't represent it as valid json.\nI’m happy to contribute syntax highlighting as described. Thank you for taking the time to provide the relevant code snippets. I have a fair bit on my plate right now so it might be a while before I have a chance to look at it. \r\n\r\nI think I understand roughly what needs to be done, but one question I had was how this would be tested — can you actually get data from the content view with colour information inside of it? Or would it be a screenshot test?\n> how this would be tested — can you actually get data from the content view with colour information inside of it? Or would it be a screenshot test?\r\n\r\nCheck out the tests for other contentviews https://github.com/mitmproxy/mitmproxy/tree/a1631154d722ea4c82dcb72e0c84ad38c6991de5/test/mitmproxy/contentviews\r\n\r\nFrom what I can tell none of them test the coloring @mhils ?\r\n\r\nIf you wanted to test the coloring, you should be able to test the output of `pretty` for different inputs and make sure the expected parts have the expected tokens (strings, numbers, etc.)\r\n\r\nAlso again I think there are two separate things to be done:\r\n\r\n1. Add coloring to the msgpack view by using `TViewLine` and adding the appropriate tokens to the list (strings, numbers, etc.)\r\n2. Make coloring work in mitmweb. In general mitmweb already adds ``s with the token classes already. But I don't know what's the best way to get the colors into mitmweb without doing it manually.\n> From what I can tell none of them test the coloring @mhils ?\r\n\r\nI don't think so, but I haven't checked. :)\r\n\r\n> Make coloring work in mitmweb. In general mitmweb already adds s with the token classes already. But I don't know what's the best way to get the colors into mitmweb without doing it manually.\r\n\r\nCommon tokens have CSS class equivalents already (and we can add more there). Let me know if that doesn't make sense! :)"},"created_at":{"kind":"string","value":"2022-10-14T23:23:15Z"},"merged_at":{"kind":"string","value":"2022-10-19T21:51:03Z"},"PASS_TO_PASS":{"kind":"string","value":"[\"test/mitmproxy/contentviews/test_msgpack.py::test_parse_msgpack\", \"test/mitmproxy/contentviews/test_json.py::test_view_json\", \"test/mitmproxy/contentviews/test_msgpack.py::test_view_msgpack_doesnt_crash\", \"test/mitmproxy/contentviews/test_msgpack.py::test_view_msgpack\", \"test/mitmproxy/contentviews/test_json.py::test_view_json_doesnt_crash\", \"test/mitmproxy/contentviews/test_json.py::test_parse_json\", \"test/mitmproxy/contentviews/test_json.py::test_render_priority\"]"},"PASS_TO_FAIL":{"kind":"string","value":"[]"},"FAIL_TO_PASS":{"kind":"string","value":"[\"test/mitmproxy/contentviews/test_msgpack.py::test_render_priority\", \"test/mitmproxy/contentviews/test_json.py::test_format_json\", \"test/mitmproxy/contentviews/test_msgpack.py::test_format_msgpack\"]"},"FAIL_TO_FAIL":{"kind":"string","value":"[]"},"install":{"kind":"string","value":"{\"install\": [\"uv pip install -e .\"], \"pre_install\": [\"tee tox.ini <=3.8.4,<6.1\\n flake8-tidy-imports>=4.2.0,<5\\ncommands =\\n flake8 --jobs 8 mitmproxy examples test release {posargs}\\n\\n[testenv:filename_matching]\\ndeps =\\ncommands =\\n python ./test/filename_matching.py\\n\\n[testenv:mypy]\\ndeps =\\n mypy==1.0.0\\n types-certifi==2021.10.8.3\\n types-Flask==1.1.6\\n types-Werkzeug==1.0.9\\n types-requests==2.28.11.11\\n types-cryptography==3.3.23.2\\n types-pyOpenSSL==23.0.0.2\\n -e .[dev]\\n\\ncommands =\\n mypy {posargs}\\n\\n[testenv:individual_coverage]\\ncommands =\\n python ./test/individual_coverage.py {posargs}\\n\\n[testenv:wheeltest]\\nrecreate = True\\ndeps =\\ncommands =\\n pip install {posargs}\\n mitmproxy --version\\n mitmdump --version\\n mitmweb --version\\n\\nEOF_1234810234\"], \"python\": \"3.10\", \"pip_packages\": [\"altgraph==0.17.3\", \"arpeggio==1.10.2\", \"asgiref==3.5.2\", \"attrs==22.1.0\", \"brotli==1.0.9\", \"certifi==2022.9.24\", \"cffi==1.15.1\", \"charset-normalizer==2.1.1\", \"click==8.1.3\", \"coverage==6.5.0\", \"cryptography==38.0.1\", \"distlib==0.3.6\", \"execnet==1.9.0\", \"filelock==3.8.0\", \"flask==2.2.2\", \"h11==0.14.0\", \"h2==4.1.0\", \"hpack==4.0.0\", \"hyperframe==6.0.1\", \"hypothesis==6.47.1\", \"idna==3.4\", \"iniconfig==1.1.1\", \"itsdangerous==2.1.2\", \"jinja2==3.1.2\", \"kaitaistruct==0.10\", \"ldap3==2.9.1\", \"markupsafe==2.1.1\", \"mitmproxy-wireguard==0.1.13\", \"msgpack==1.0.4\", \"packaging==21.3\", \"parver==0.3.1\", \"passlib==1.7.4\", \"pdoc==12.2.0\", \"platformdirs==2.5.2\", \"pluggy==1.0.0\", \"protobuf==4.21.8\", \"publicsuffix2==2.20191221\", \"py==1.11.0\", \"pyasn1==0.4.8\", \"pycparser==2.21\", \"pygments==2.13.0\", \"pyinstaller==5.5\", \"pyinstaller-hooks-contrib==2022.10\", \"pyopenssl==22.1.0\", \"pyparsing==3.0.9\", \"pyperclip==1.8.2\", \"pytest==7.1.3\", \"pytest-asyncio==0.19.0\", \"pytest-cov==4.0.0\", \"pytest-forked==1.4.0\", \"pytest-timeout==2.1.0\", \"pytest-xdist==2.5.0\", \"requests==2.28.1\", \"ruamel-yaml==0.17.21\", \"ruamel-yaml-clib==0.2.6\", \"setuptools==65.5.0\", \"six==1.16.0\", \"sortedcontainers==2.4.0\", \"tomli==2.0.1\", \"tornado==6.2\", \"tox==3.26.0\", \"urllib3==1.26.12\", \"urwid==2.1.2\", \"virtualenv==20.16.5\", \"werkzeug==2.2.2\", \"wheel==0.37.1\", \"wsproto==1.2.0\", \"zstandard==0.18.0\"]}"},"test_framework":{"kind":"string","value":"tox -e py -- "},"test_commands":{"kind":"null"},"version":{"kind":"null"},"environment_setup_commit":{"kind":"null"},"docker_image_root":{"kind":"string","value":"swa-bench:sw.eval"}}},{"rowIdx":327,"cells":{"repo":{"kind":"string","value":"mitmproxy/mitmproxy"},"instance_id":{"kind":"string","value":"mitmproxy__mitmproxy-5589"},"base_commit":{"kind":"string","value":"d3fb9f43494359cc6dddccb56e63f02b8eb44fd2"},"patch":{"kind":"string","value":"diff --git a/mitmproxy/net/udp.py b/mitmproxy/net/udp.py\nindex 328fcba751..3590d42843 100644\n--- a/mitmproxy/net/udp.py\n+++ b/mitmproxy/net/udp.py\n@@ -175,8 +175,12 @@ def __init__(\n \"\"\"\n self._transport = transport\n self._remote_addr = remote_addr\n- self._reader = reader\n- self._closed = asyncio.Event() if reader is not None else None\n+ if reader is not None:\n+ self._reader = reader\n+ self._closed = asyncio.Event()\n+ else:\n+ self._reader = None\n+ self._closed = None\n \n @property\n def _protocol(self) -> DrainableDatagramProtocol | udp_wireguard.WireGuardDatagramTransport:\n@@ -199,9 +203,15 @@ def close(self) -> None:\n self._transport.close()\n else:\n self._closed.set()\n- if self._reader is not None:\n+ assert self._reader\n self._reader.feed_eof()\n \n+ def is_closing(self) -> bool:\n+ if self._closed is None:\n+ return self._transport.is_closing()\n+ else:\n+ return self._closed.is_set()\n+\n async def wait_closed(self) -> None:\n if self._closed is None:\n await self._protocol.wait_closed()\ndiff --git a/mitmproxy/proxy/server.py b/mitmproxy/proxy/server.py\nindex 06033e4272..1341564ada 100644\n--- a/mitmproxy/proxy/server.py\n+++ b/mitmproxy/proxy/server.py\n@@ -367,7 +367,8 @@ def server_event(self, event: events.Event) -> None:\n elif isinstance(command, commands.SendData):\n writer = self.transports[command.connection].writer\n assert writer\n- writer.write(command.data)\n+ if not writer.is_closing():\n+ writer.write(command.data)\n elif isinstance(command, commands.CloseConnection):\n self.close_connection(command.connection, command.half_close)\n elif isinstance(command, commands.StartHook):\n@@ -393,7 +394,8 @@ def close_connection(\n try:\n writer = self.transports[connection].writer\n assert writer\n- writer.write_eof()\n+ if not writer.is_closing():\n+ writer.write_eof()\n except OSError:\n # if we can't write to the socket anymore we presume it completely dead.\n connection.state = ConnectionState.CLOSED\n"},"test_patch":{"kind":"string","value":"diff --git a/test/mitmproxy/net/test_udp.py b/test/mitmproxy/net/test_udp.py\nindex 6e5a9f6237..f90538f559 100644\n--- a/test/mitmproxy/net/test_udp.py\n+++ b/test/mitmproxy/net/test_udp.py\n@@ -45,11 +45,16 @@ def handle_datagram(\n server.resume_writing()\n await server.drain()\n \n+ assert not client_writer.is_closing()\n+ assert not server_writer.is_closing()\n+\n assert await client_reader.read(MAX_DATAGRAM_SIZE) == b\"msg4\"\n client_writer.close()\n+ assert client_writer.is_closing()\n await client_writer.wait_closed()\n \n server_writer.close()\n+ assert server_writer.is_closing()\n await server_writer.wait_closed()\n \n server.close()\n"},"problem_statement":{"kind":"string","value":"'socket.send() raised exception.' on stderr\n#### Problem Description\r\nIn a long-running session of mitmdump that captures traffic of all surfing on an iPad, standard error logs a bunch of\r\n```\r\nsocket.send() raised exception.\r\n```\r\nNothing else is logged. Subjectively every now and then this is logged a browser tab stalls on the iPad. Looking at where the message comes from (`asyncio/*_events.py`) I believe this is the result of a socket already being dead when the HTTP/2 PING is sent periodically. \r\nIt looks to me like asyncio is catching this exception but mitmproxy is not made aware that the server connection is actually dead. Trying to use the dead connection often enough results in this log message:\r\n\r\n```\r\n if self._conn_lost >= constants.LOG_THRESHOLD_FOR_CONNLOST_WRITES:\r\n logger.warning('socket.send() raised exception.')\r\n```\r\nI do not see any method to query the status of `self._conn_lost` which would help fixing this.\r\n\r\n#### System Information\r\nMitmproxy: 9.0.0.dev (+151, commit 46f01ad)\r\nPython: 3.9.7\r\nOpenSSL: OpenSSL 1.1.1n 15 Mar 2022\r\nPlatform: Linux-4.18.0-383.el8.x86_64-x86_64-with-glibc2.28\r\n\n"},"hints_text":{"kind":"string","value":"I did some googling and issues like this show up in the bug tracker of various projects. I found this fix for the issue in one project:\r\nhttps://github.com/ska-sa/aiokatcp/commit/200189687148ab63b79081d8cfd6c2c92277895c\r\nI did a small modification to `mitmproxy/proxy/server.py` to see if this approach would be viable:\r\n```\r\n elif isinstance(command, commands.SendData):\r\n writer = self.transports[command.connection].writer\r\n assert writer\r\n+ if writer.transport.is_closing():\r\n+ self.log(f\"XXX Write to closed connection {command.connection}\")\r\n writer.write(command.data)\r\n elif isinstance(command, commands.CloseConnection):\r\n self.close_connection(command.connection, command.half_close)\r\n...\r\n try:\r\n writer = self.transports[connection].writer\r\n assert writer\r\n+ if writer.transport.is_closing():\r\n+ self.log(f\"XXX Eof for closed connection {connection}\")\r\n writer.write_eof()\r\n except OSError:\r\n```\r\nI did get the above log entry for `writer.write` pretty quickly. The log entries for one connection with the above log entry looks like this:\r\n```\r\n192.168.0.10:49775: client connect\r\n192.168.0.10:49775: server connect x.x.x.x:443\r\n192.168.0.10:49775: half-closing Server(x.x.x.x:443, state=open, src_port=49486)\r\n192.168.0.10:49775: XXX Write to closed connection Client(192.168.0.10:49775, state=can_write)\r\n192.168.0.10:49775: client disconnect\r\n192.168.0.10:49775: closing transports...\r\n192.168.0.10:49775: server disconnect x.x.x.x:443\r\n192.168.0.10:49775: transports closed!\r\n```\r\nAny suggestions if this test before the write is a good idea and whether to just not write if it is true or if this should trigger a flow kill?\r\n\nThanks again for the very nice report even though information is understandably limited at this time. :) Can you verify that this does not occur when disabling HTTP/2 keepalives?\r\n\r\nAssuming it's that, we can do multiple things here:\r\n\r\n1. Add the check you suggested. That seems reasonable to me.\r\n2. Check if the connection state is still open when receiving a wakeup, and only then sending a ping. This seems equally reasonable, maybe even more clean.\r\n3. Add a new `CancelWakeup` command to cancel the wakup requests when receiving a ConnectionClosed. Mentioned here for completeness, but this approach seems mostly overengineered.\nI let this run for more than a day now and here is what I got:\r\n- 150 x write() to closed client connection\r\n- 3 x write() to closed server connection\r\n- 1 x write_eol() to closed client connection\r\n\r\n**All connections** that logged the messages were pass-through connections. This is probably also the reason why few other will see the original error message. I have quite a list of hosts and domains for which I just want pass-through, because I don't care (ads, tracking) or because of certificate pinning or TLS fingerprinting. Anybody who wants to reproduce the error may want to do so with a script like this:\r\n```\r\ndef tls_clienthello(data: tls.ClientHelloData):\r\n data.ignore_connection = True\r\n```\r\nSo given that no higher protocol is involved it may be the best to just add the checks in the two locations in `server.py`, optionally only if the connection is pass-through, but I think adding it for all cases is safer. What I am not sure is that if `is_closing()` is true then the proxy is guaranteed to otherwise notice the closed connection and terminate the flow and both ends. It looks to me that way and just not doing the `write()` or `write_eol()` should be enough.\r\nI didn't find any other occurrences of `write()` or `write_eol()` but maybe I wasn't thorough enough.\nFollowup: I got one 'socket.send() raised exception.' in the error log and there was one matching client connection that logged five times `XXX Write ...`. `LOG_THRESHOLD_FOR_CONNLOST_WRITES` is defined to be 5 in `asyncio/constants.py` so I am pretty sure that connection produced the error log entry."},"created_at":{"kind":"string","value":"2022-09-15T12:43:55Z"},"merged_at":{"kind":"string","value":"2022-09-22T14:47:26Z"},"PASS_TO_PASS":{"kind":"string","value":"[]"},"PASS_TO_FAIL":{"kind":"string","value":"[]"},"FAIL_TO_PASS":{"kind":"string","value":"[\"test/mitmproxy/net/test_udp.py::test_reader\", \"test/mitmproxy/net/test_udp.py::test_client_server\"]"},"FAIL_TO_FAIL":{"kind":"string","value":"[]"},"install":{"kind":"string","value":"{\"install\": [\"uv pip install -e .\"], \"pre_install\": [\"tee tox.ini <=3.8.4,<6.1\\n flake8-tidy-imports>=4.2.0,<5\\ncommands =\\n flake8 --jobs 8 mitmproxy examples test release {posargs}\\n\\n[testenv:filename_matching]\\ndeps =\\ncommands =\\n python ./test/filename_matching.py\\n\\n[testenv:mypy]\\ndeps =\\n mypy==1.0.0\\n types-certifi==2021.10.8.3\\n types-Flask==1.1.6\\n types-Werkzeug==1.0.9\\n types-requests==2.28.11.11\\n types-cryptography==3.3.23.2\\n types-pyOpenSSL==23.0.0.2\\n -e .[dev]\\n\\ncommands =\\n mypy {posargs}\\n\\n[testenv:individual_coverage]\\ncommands =\\n python ./test/individual_coverage.py {posargs}\\n\\n[testenv:wheeltest]\\nrecreate = True\\ndeps =\\ncommands =\\n pip install {posargs}\\n mitmproxy --version\\n mitmdump --version\\n mitmweb --version\\n\\nEOF_1234810234\"], \"python\": \"3.10\", \"pip_packages\": [\"altgraph==0.17.2\", \"arpeggio==1.10.2\", \"asgiref==3.5.2\", \"attrs==22.1.0\", \"brotli==1.0.9\", \"certifi==2022.9.14\", \"cffi==1.15.1\", \"charset-normalizer==2.1.1\", \"click==8.1.3\", \"coverage==6.4.4\", \"cryptography==38.0.1\", \"distlib==0.3.6\", \"execnet==1.9.0\", \"filelock==3.8.0\", \"flask==2.2.2\", \"h11==0.13.0\", \"h2==4.1.0\", \"hpack==4.0.0\", \"hyperframe==6.0.1\", \"hypothesis==6.47.1\", \"idna==3.4\", \"iniconfig==1.1.1\", \"itsdangerous==2.1.2\", \"jinja2==3.1.2\", \"kaitaistruct==0.10\", \"ldap3==2.9.1\", \"markupsafe==2.1.1\", \"mitmproxy-wireguard==0.1.10\", \"msgpack==1.0.4\", \"packaging==21.3\", \"parver==0.3.1\", \"passlib==1.7.4\", \"pdoc==12.2.0\", \"platformdirs==2.5.2\", \"pluggy==1.0.0\", \"protobuf==4.21.6\", \"publicsuffix2==2.20191221\", \"py==1.11.0\", \"pyasn1==0.4.8\", \"pycparser==2.21\", \"pygments==2.13.0\", \"pyinstaller==5.4.1\", \"pyinstaller-hooks-contrib==2022.10\", \"pyopenssl==22.0.0\", \"pyparsing==3.0.9\", \"pyperclip==1.8.2\", \"pytest==7.1.3\", \"pytest-asyncio==0.19.0\", \"pytest-cov==3.0.0\", \"pytest-forked==1.4.0\", \"pytest-timeout==2.1.0\", \"pytest-xdist==2.5.0\", \"requests==2.28.1\", \"ruamel-yaml==0.17.21\", \"ruamel-yaml-clib==0.2.6\", \"setuptools==65.3.0\", \"six==1.16.0\", \"sortedcontainers==2.4.0\", \"tomli==2.0.1\", \"tornado==6.2\", \"tox==3.26.0\", \"urllib3==1.26.12\", \"urwid==2.1.2\", \"virtualenv==20.16.5\", \"werkzeug==2.2.2\", \"wheel==0.37.1\", \"wsproto==1.2.0\", \"zstandard==0.18.0\"]}"},"test_framework":{"kind":"string","value":"tox -e py -- "},"test_commands":{"kind":"null"},"version":{"kind":"null"},"environment_setup_commit":{"kind":"null"},"docker_image_root":{"kind":"string","value":"swa-bench:sw.eval"}}},{"rowIdx":328,"cells":{"repo":{"kind":"string","value":"dbcli/pgcli"},"instance_id":{"kind":"string","value":"dbcli__pgcli-1452"},"base_commit":{"kind":"string","value":"96eb37fd1989ec8fd86150f20053abd03f50e7a4"},"patch":{"kind":"string","value":"diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml\nindex 68a69acd..d9698ef4 100644\n--- a/.github/workflows/ci.yml\n+++ b/.github/workflows/ci.yml\n@@ -67,10 +67,6 @@ jobs:\n \n psql -h localhost -U postgres -p 6432 pgbouncer -c 'show help'\n \n- - name: Install beta version of pendulum\n- run: pip install pendulum==3.0.0b1\n- if: matrix.python-version == '3.12'\n-\n - name: Install requirements\n run: |\n pip install -U pip setuptools\ndiff --git a/changelog.rst b/changelog.rst\nindex 9f0f573f..cb70bb8d 100644\n--- a/changelog.rst\n+++ b/changelog.rst\n@@ -11,6 +11,7 @@ Bug fixes:\n * Fix display of \"short host\" in prompt (with `\\h`) for IPv4 addresses ([issue 964](https://github.com/dbcli/pgcli/issues/964)).\n * Fix backwards display of NOTICEs from a Function ([issue 1443](https://github.com/dbcli/pgcli/issues/1443))\n * Fix psycopg errors when installing on Windows. ([issue 1413](https://https://github.com/dbcli/pgcli/issues/1413))\n+* Use a home-made function to display query duration instead of relying on a third-party library (the general behaviour does not change), which fixes the installation of `pgcli` on 32-bit architectures ([issue 1451](https://github.com/dbcli/pgcli/issues/1451))\n \n ==================\n 4.0.1 (2023-10-30)\ndiff --git a/pgcli/main.py b/pgcli/main.py\nindex bbb1989d..cfa1c970 100644\n--- a/pgcli/main.py\n+++ b/pgcli/main.py\n@@ -11,7 +11,6 @@\n import threading\n import shutil\n import functools\n-import pendulum\n import datetime as dt\n import itertools\n import platform\n@@ -800,9 +799,9 @@ def execute_command(self, text, handle_closed_connection=True):\n \"Time: %0.03fs (%s), executed in: %0.03fs (%s)\"\n % (\n query.total_time,\n- pendulum.Duration(seconds=query.total_time).in_words(),\n+ duration_in_words(query.total_time),\n query.execution_time,\n- pendulum.Duration(seconds=query.execution_time).in_words(),\n+ duration_in_words(query.execution_time),\n )\n )\n else:\n@@ -1735,5 +1734,28 @@ def parse_service_info(service):\n return service_conf, service_file\n \n \n+def duration_in_words(duration_in_seconds: float) -> str:\n+ if not duration_in_seconds:\n+ return \"0 seconds\"\n+ components = []\n+ hours, remainder = divmod(duration_in_seconds, 3600)\n+ if hours > 1:\n+ components.append(f\"{hours} hours\")\n+ elif hours == 1:\n+ components.append(\"1 hour\")\n+ minutes, seconds = divmod(remainder, 60)\n+ if minutes > 1:\n+ components.append(f\"{minutes} minutes\")\n+ elif minutes == 1:\n+ components.append(\"1 minute\")\n+ if seconds >= 2:\n+ components.append(f\"{int(seconds)} seconds\")\n+ elif seconds >= 1:\n+ components.append(\"1 second\")\n+ elif seconds:\n+ components.append(f\"{round(seconds, 3)} second\")\n+ return \" \".join(components)\n+\n+\n if __name__ == \"__main__\":\n cli()\ndiff --git a/setup.py b/setup.py\nindex f9dbc56a..640dca00 100644\n--- a/setup.py\n+++ b/setup.py\n@@ -16,7 +16,6 @@\n \"psycopg-binary >= 3.0.14; sys_platform == 'win32'\",\n \"sqlparse >=0.3.0,<0.5\",\n \"configobj >= 5.0.6\",\n- \"pendulum>=2.1.0\",\n \"cli_helpers[styles] >= 2.2.1\",\n ]\n \n"},"test_patch":{"kind":"string","value":"diff --git a/tests/test_main.py b/tests/test_main.py\nindex cbf20a6a..0aeba80e 100644\n--- a/tests/test_main.py\n+++ b/tests/test_main.py\n@@ -11,6 +11,7 @@\n \n from pgcli.main import (\n obfuscate_process_password,\n+ duration_in_words,\n format_output,\n PGCli,\n OutputSettings,\n@@ -488,3 +489,28 @@ def test_application_name_db_uri(tmpdir):\n mock_pgexecute.assert_called_with(\n \"bar\", \"bar\", \"\", \"baz.com\", \"\", \"\", application_name=\"cow\"\n )\n+\n+\n+@pytest.mark.parametrize(\n+ \"duration_in_seconds,words\",\n+ [\n+ (0, \"0 seconds\"),\n+ (0.0009, \"0.001 second\"),\n+ (0.0005, \"0.001 second\"),\n+ (0.0004, \"0.0 second\"), # not perfect, but will do\n+ (0.2, \"0.2 second\"),\n+ (1, \"1 second\"),\n+ (1.4, \"1 second\"),\n+ (2, \"2 seconds\"),\n+ (3.4, \"3 seconds\"),\n+ (60, \"1 minute\"),\n+ (61, \"1 minute 1 second\"),\n+ (123, \"2 minutes 3 seconds\"),\n+ (3600, \"1 hour\"),\n+ (7235, \"2 hours 35 seconds\"),\n+ (9005, \"2 hours 30 minutes 5 seconds\"),\n+ (86401, \"24 hours 1 second\"),\n+ ],\n+)\n+def test_duration_in_words(duration_in_seconds, words):\n+ assert duration_in_words(duration_in_seconds) == words\n"},"problem_statement":{"kind":"string","value":"pendulum dependency cannot be installed on 32-bit arches\n## Description\r\nThe current version of `pendulum` is broken on 32-bit architectures, and prevents `pgcli` from being installed, e.g. on x86:\r\n\r\n```\r\n$ pip install pgcli\r\n[…]\r\nBuilding wheels for collected packages: pendulum\r\n Building wheel for pendulum (pyproject.toml) ... error\r\n error: subprocess-exited-with-error\r\n \r\n × Building wheel for pendulum (pyproject.toml) did not run successfully.\r\n │ exit code: 1\r\n ╰─> [44 lines of output]\r\n Running `maturin pep517 build-wheel -i /tmp/venv/bin/python --compatibility off`\r\n 🍹 Building a mixed python/rust project\r\n 🔗 Found pyo3 bindings\r\n 🐍 Found CPython 3.11 at /tmp/venv/bin/python\r\n Compiling target-lexicon v0.12.6\r\n Compiling python3-dll-a v0.2.9\r\n Compiling libc v0.2.139\r\n Compiling autocfg v1.1.0\r\n Compiling proc-macro2 v1.0.51\r\n Compiling once_cell v1.17.1\r\n Compiling unicode-ident v1.0.6\r\n Compiling quote v1.0.23\r\n Compiling syn v1.0.109\r\n Compiling parking_lot_core v0.9.7\r\n Compiling cc v1.0.79\r\n Compiling cfg-if v1.0.0\r\n Compiling scopeguard v1.1.0\r\n Compiling smallvec v1.10.0\r\n Compiling indoc v1.0.9\r\n Compiling unindent v0.1.11\r\n Compiling lock_api v0.4.9\r\n Compiling memoffset v0.9.0\r\n Compiling pyo3-build-config v0.19.1\r\n Compiling libmimalloc-sys v0.1.35\r\n Compiling parking_lot v0.12.1\r\n Compiling pyo3-ffi v0.19.1\r\n Compiling pyo3 v0.19.1\r\n Compiling mimalloc v0.1.39\r\n Compiling pyo3-macros-backend v0.19.1\r\n Compiling pyo3-macros v0.19.1\r\n Compiling _pendulum v3.0.0 (/tmp/pip-install-5opl0f4t/pendulum_6a9ca1944a154f03b7118e4016b5accf/rust)\r\n error: this arithmetic operation will overflow\r\n --> src/helpers.rs:59:20\r\n |\r\n 59 | seconds += ((146_097 - 10957) * SECS_PER_DAY as usize) as isize;\r\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ attempt to compute `135140_usize * 86400_usize`, which would overflow\r\n |\r\n = note: `#[deny(arithmetic_overflow)]` on by default\r\n \r\n error: could not compile `_pendulum` (lib) due to previous error\r\n 💥 maturin failed\r\n Caused by: Failed to build a native library through cargo\r\n Caused by: Cargo build finished with \"exit status: 101\": `PYO3_ENVIRONMENT_SIGNATURE=\"cpython-3.11-64bit\" PYO3_PYTHON=\"/tmp/venv/bin/python\" PYTHON_SYS_EXECUTABLE=\"/tmp/venv/bin/python\" \"cargo\" \"rustc\" \"--message-format\" \"json-render-diagnostics\" \"--manifest-path\" \"/tmp/pip-install-5opl0f4t/pendulum_6a9ca1944a154f03b7118e4016b5accf/rust/Cargo.toml\" \"--release\" \"--lib\" \"--crate-type\" \"cdylib\"`\r\n Error: command ['maturin', 'pep517', 'build-wheel', '-i', '/tmp/venv/bin/python', '--compatibility', 'off'] returned non-zero exit status 1\r\n [end of output]\r\n \r\n note: This error originates from a subprocess, and is likely not a problem with pip.\r\n ERROR: Failed building wheel for pendulum\r\nFailed to build pendulum\r\nERROR: Could not build wheels for pendulum, which is required to install pyproject.toml-based projects\r\n```\r\n\r\nThe issue apparently affects all 32-bit architectures. It has been [reported upstream two months ago](https://github.com/sdispater/pendulum/issues/784) but it has no received no attention. Additionally, the author [does not have time to actively maintain the package since December 2021](https://github.com/sdispater/pendulum/issues/590) (which makes the decision to rewrite it in Rust a bit surprising).\r\n\r\nGiven that it's only used to display human readable durations, could you please either make it optional or replace it with a portable package? FWICS it was introduced in #1199 but I don't really understand why — perhaps the change could be reverted.\r\n\r\n## Your environment\r\n- [x] Please provide your OS and version information.\r\n\r\nGentoo/Linux x86\r\n\r\n- [x] Please provide your CLI version.\r\n\r\npgcli-4.0.1-py3-none-any.whl.metadata\r\n\r\n- [x] What is the output of ``pip freeze`` command.\r\n\r\nEmpty, since it didn't manage to install anything ;-).\r\n\r\nOriginal bug report: https://bugs.gentoo.org/924881\n"},"hints_text":{"kind":"string","value":"I wasn't even sure what it was used for and how it looked like. Here is an example:\r\n\r\n```\r\n> select pg_sleep(2)\r\n+----------+\r\n| pg_sleep |\r\n|----------|\r\n| |\r\n+----------+\r\nSELECT 1\r\nTime: 2.013s (2 seconds), executed in: 2.003s (2 seconds)\r\n\r\n> select pg_sleep(62)\r\n+----------+\r\n| pg_sleep |\r\n|----------|\r\n| |\r\n+----------+\r\nSELECT 1\r\nTime: 62.066s (1 minute 2 seconds), executed in: 62.063s (1 minute 2 seconds)\r\n```\r\n\r\nPendulum (that is currently used) and Humanize (which was used before, as noted by the reporter) have translations, but pgcli does not even use them (which is understandable, since the rest of the UI is in English).\r\n\r\nIt's thus a bit sad to require a third-party package for such a small feature. @j-bennet: I'm inclined to rewrite a corresponding function within pgcli (and drop the requirement on pendulum), what do you think?\r\n\r\nActually, I am not even sure that displaying the duration in words is that useful... What's your take on this?"},"created_at":{"kind":"string","value":"2024-02-19T08:52:19Z"},"merged_at":{"kind":"string","value":"2024-02-20T11:51:33Z"},"PASS_TO_PASS":{"kind":"string","value":"[]"},"PASS_TO_FAIL":{"kind":"string","value":"[]"},"FAIL_TO_PASS":{"kind":"string","value":"[\"tests/test_main.py::test_duration_in_words[60-1 minute]\", \"tests/test_main.py::test_duration_in_words[0.0005-0.001 second]\", \"tests/test_main.py::test_pset_pager_always[Output longer than terminal width]\", \"tests/test_main.py::test_duration_in_words[86401-24 hours 1 second]\", \"tests/test_main.py::test_pset_pager_off[Output equal to terminal height]\", \"tests/test_main.py::test_duration_in_words[61-1 minute 1 second]\", \"tests/test_main.py::test_multihost_db_uri\", \"tests/test_main.py::test_pset_pager_always[Output shorter than terminal width]\", \"tests/test_main.py::test_missing_rc_dir\", \"tests/test_main.py::test_pset_pager_on[Output equal to terminal width]\", \"tests/test_main.py::test_pset_pager_always[Output shorter than terminal height]\", \"tests/test_main.py::test_duration_in_words[0-0 seconds]\", \"tests/test_main.py::test_duration_in_words[0.2-0.2 second]\", \"tests/test_main.py::test_application_name_db_uri\", \"tests/test_main.py::test_pg_service_file\", \"tests/test_main.py::test_pset_pager_off[Output shorter than terminal width]\", \"tests/test_main.py::test_pset_pager_off[Output equal to terminal width]\", \"tests/test_main.py::test_pset_pager_off[Output longer than terminal height]\", \"tests/test_main.py::test_pset_pager_on[Output shorter than terminal height]\", \"tests/test_main.py::test_pset_pager_on[Output longer than terminal width]\", \"tests/test_main.py::test_duration_in_words[9005-2 hours 30 minutes 5 seconds]\", \"tests/test_main.py::test_pset_pager_always[Output equal to terminal height]\", \"tests/test_main.py::test_port_db_uri\", \"tests/test_main.py::test_format_output\", \"tests/test_main.py::test_duration_in_words[3.4-3 seconds]\", \"tests/test_main.py::test_color_pattern[-\\\\x1b]23\\\\x07--2]\", \"tests/test_main.py::test_pset_pager_always[Output equal to terminal width]\", \"tests/test_main.py::test_duration_in_words[2-2 seconds]\", \"tests/test_main.py::test_format_output_truncate_on\", \"tests/test_main.py::test_duration_in_words[0.0009-0.001 second]\", \"tests/test_main.py::test_format_output_auto_expand\", \"tests/test_main.py::test_pset_pager_always[Output longer than terminal height]\", \"tests/test_main.py::test_quoted_db_uri\", \"tests/test_main.py::test_duration_in_words[1-1 second]\", \"tests/test_main.py::test_duration_in_words[1.4-1 second]\", \"tests/test_main.py::test_duration_in_words[123-2 minutes 3 seconds]\", \"tests/test_main.py::test_pset_pager_off[Output longer than terminal width]\", \"tests/test_main.py::test_pset_pager_off[Output shorter than terminal height]\", \"tests/test_main.py::test_duration_in_words[7235-2 hours 35 seconds]\", \"tests/test_main.py::test_pset_pager_on[Output equal to terminal height]\", \"tests/test_main.py::test_color_pattern[22200K .......\\\\x1b[0m\\\\x1b[91m... .......... ...\\\\x1b[0m\\\\x1b[91m.\\\\x1b[0m\\\\x1b[91m...... .........\\\\x1b[0m\\\\x1b[91m.\\\\x1b[0m\\\\x1b[91m \\\\x1b[0m\\\\x1b[91m.\\\\x1b[0m\\\\x1b[91m.\\\\x1b[0m\\\\x1b[91m.\\\\x1b[0m\\\\x1b[91m.\\\\x1b[0m\\\\x1b[91m...... 50% 28.6K 12m55s-78]\", \"tests/test_main.py::test_duration_in_words[3600-1 hour]\", \"tests/test_main.py::test_duration_in_words[0.0004-0.0 second]\", \"tests/test_main.py::test_ssl_db_uri\", \"tests/test_main.py::test_pset_pager_on[Output shorter than terminal width]\", \"tests/test_main.py::test_format_output_truncate_off\", \"tests/test_main.py::test_obfuscate_process_password\", \"tests/test_main.py::test_color_pattern[=\\\\x1b[m=-2]\", \"tests/test_main.py::test_pset_pager_on[Output longer than terminal height]\"]"},"FAIL_TO_FAIL":{"kind":"string","value":"[]"},"install":{"kind":"string","value":"{\"install\": [\"uv pip install -e '.[sshtunnel]'\"], \"pre_install\": [\"tee tests/pytest.ini <=2.7.0,<=3.0.7\\n mock>=1.0.1\\n behave>=1.2.4\\n pexpect==3.3\\n sshtunnel>=0.4.0\\ncommands = pytest --color=no -rA --tb=no -p no:cacheprovider \\n behave tests/features\\npassenv = PGHOST\\n PGPORT\\n PGUSER\\n PGPASSWORD\\n\\nEOF_1234810234\"], \"python\": \"3.12\", \"pip_packages\": [\"autopep8==2.0.4\", \"bcrypt==4.1.2\", \"behave==1.2.6\", \"black==24.2.0\", \"cachetools==5.3.2\", \"certifi==2024.2.2\", \"cffi==1.16.0\", \"cfgv==3.4.0\", \"chardet==5.2.0\", \"charset-normalizer==3.3.2\", \"cli-helpers==2.3.1\", \"click==8.1.7\", \"codecov==2.1.13\", \"colorama==0.4.6\", \"configobj==5.0.8\", \"coverage==7.4.2\", \"cryptography==42.0.3\", \"distlib==0.3.8\", \"docutils==0.20.1\", \"filelock==3.13.1\", \"identify==2.5.35\", \"idna==3.6\", \"importlib-metadata==7.0.1\", \"iniconfig==2.0.0\", \"jaraco-classes==3.3.1\", \"jeepney==0.8.0\", \"keyring==24.3.0\", \"keyrings-alt==5.0.0\", \"markdown-it-py==3.0.0\", \"mdurl==0.1.2\", \"more-itertools==10.2.0\", \"mypy-extensions==1.0.0\", \"nh3==0.2.15\", \"nodeenv==1.8.0\", \"packaging==23.2\", \"paramiko==3.4.0\", \"parse==1.20.1\", \"parse-type==0.6.2\", \"pathspec==0.12.1\", \"pendulum==3.0.0\", \"pexpect==3.3\", \"pgspecial==2.1.1\", \"pip==24.0\", \"pkginfo==1.9.6\", \"platformdirs==4.2.0\", \"pluggy==1.4.0\", \"pre-commit==3.6.2\", \"prompt-toolkit==3.0.43\", \"psycopg==3.1.18\", \"psycopg-binary==3.1.18\", \"pycodestyle==2.11.1\", \"pycparser==2.21\", \"pygments==2.17.2\", \"pynacl==1.5.0\", \"pyproject-api==1.6.1\", \"pytest==8.0.1\", \"python-dateutil==2.8.2\", \"pyyaml==6.0.1\", \"readme-renderer==42.0\", \"requests==2.31.0\", \"requests-toolbelt==1.0.0\", \"rfc3986==2.0.0\", \"rich==13.7.0\", \"secretstorage==3.3.3\", \"setproctitle==1.3.3\", \"setuptools==69.1.0\", \"six==1.16.0\", \"sqlparse==0.4.4\", \"sshtunnel==0.4.0\", \"tabulate==0.9.0\", \"time-machine==2.13.0\", \"tox==4.13.0\", \"twine==5.0.0\", \"typing-extensions==4.9.0\", \"tzdata==2024.1\", \"urllib3==2.2.1\", \"uv==0.1.6\", \"virtualenv==20.25.0\", \"wcwidth==0.2.13\", \"wheel==0.42.0\", \"zipp==3.17.0\"]}"},"test_framework":{"kind":"string","value":"pytest --tb=no -rA -p no:cacheprovider"},"test_commands":{"kind":"null"},"version":{"kind":"null"},"environment_setup_commit":{"kind":"null"},"docker_image_root":{"kind":"string","value":"swa-bench:sw.eval"}}},{"rowIdx":329,"cells":{"repo":{"kind":"string","value":"cookiecutter/cookiecutter"},"instance_id":{"kind":"string","value":"cookiecutter__cookiecutter-2029"},"base_commit":{"kind":"string","value":"9f94bceed2301659fbc64b20deb7f96a81ac42f8"},"patch":{"kind":"string","value":"diff --git a/cookiecutter/generate.py b/cookiecutter/generate.py\nindex 14a96e6ce..48aacb6d6 100644\n--- a/cookiecutter/generate.py\n+++ b/cookiecutter/generate.py\n@@ -15,6 +15,7 @@\n from binaryornot.check import is_binary\n from jinja2 import Environment, FileSystemLoader\n from jinja2.exceptions import TemplateSyntaxError, UndefinedError\n+from rich.prompt import InvalidResponse\n \n from cookiecutter.exceptions import (\n ContextDecodingException,\n@@ -24,6 +25,7 @@\n )\n from cookiecutter.find import find_template\n from cookiecutter.hooks import run_hook_from_repo_dir\n+from cookiecutter.prompt import YesNoPrompt\n from cookiecutter.utils import (\n create_env_with_context,\n make_sure_path_exists,\n@@ -103,6 +105,16 @@ def apply_overwrites_to_context(\n context_value, overwrite, in_dictionary_variable=True\n )\n context[variable] = context_value\n+ elif isinstance(context_value, bool) and isinstance(overwrite, str):\n+ # We are dealing with a boolean variable\n+ # Convert overwrite to its boolean counterpart\n+ try:\n+ context[variable] = YesNoPrompt().process_response(overwrite)\n+ except InvalidResponse as err:\n+ raise ValueError(\n+ f\"{overwrite} provided for variable \"\n+ f\"{variable} could not be converted to a boolean.\"\n+ ) from err\n else:\n # Simply overwrite the value for this variable\n context[variable] = overwrite\n"},"test_patch":{"kind":"string","value":"diff --git a/tests/test_generate_context.py b/tests/test_generate_context.py\nindex 6cc5c133a..fe2935302 100644\n--- a/tests/test_generate_context.py\n+++ b/tests/test_generate_context.py\n@@ -8,6 +8,7 @@\n \n from cookiecutter import generate\n from cookiecutter.exceptions import ContextDecodingException\n+from cookiecutter.prompt import YesNoPrompt\n \n \n def context_data():\n@@ -362,3 +363,24 @@ def test_apply_overwrites_in_nested_dict_additional_values() -> None:\n )\n \n assert generated_context == expected_context\n+\n+\n+@pytest.mark.parametrize(\n+ \"overwrite_value, expected\",\n+ [(bool_string, {'key': True}) for bool_string in YesNoPrompt.yes_choices]\n+ + [(bool_string, {'key': False}) for bool_string in YesNoPrompt.no_choices],\n+)\n+def test_apply_overwrites_overwrite_value_as_boolean_string(overwrite_value, expected):\n+ \"\"\"Verify boolean conversion for valid overwrite values.\"\"\"\n+ context = {'key': not expected['key']}\n+ overwrite_context = {'key': overwrite_value}\n+ generate.apply_overwrites_to_context(context, overwrite_context)\n+ assert context == expected\n+\n+\n+def test_apply_overwrites_error_overwrite_value_as_boolean_string():\n+ \"\"\"Verify boolean conversion for invalid overwrite values.\"\"\"\n+ context = {'key': True}\n+ overwrite_context = {'key': 'invalid'}\n+ with pytest.raises(ValueError):\n+ generate.apply_overwrites_to_context(context, overwrite_context)\n"},"problem_statement":{"kind":"string","value":"Cannot properly override boolean variable from command line\n* Cookiecutter version: 2.4.0\r\n* Template project url: N/A\r\n* Python version: 3.10\r\n* Operating System: Linux\r\n\r\n### Description:\r\n\r\nI tried to use the boolean variable. It works great when generating from interactive prompt. But when I try to use --no-input with command line context it doesn't propagate words like \"no\" or \"false\" as false value, but rather it seems to take it as string value, so if I pass an empty string it will be evaluated to false.\r\n\r\nHere is my cookiecutter.json:\r\n```json\r\n{\r\n \"project_name\": \"test_boolean\",\r\n \"generate_text\": true\r\n}\r\n```\r\n\r\nI have a file with template:\r\n```\r\n{% if cookiecutter.generate_text %}\r\nHello, world!\r\n{% endif %}\r\n```\r\n\r\nIf I run `cookiecutter --no-input -f . generate_text=false`, the generated file still has the \"Hello, world!\". But if i use `generate_text=\"\"` the generated file will be empty.\n"},"hints_text":{"kind":"string","value":""},"created_at":{"kind":"string","value":"2024-03-06T06:42:32Z"},"merged_at":{"kind":"string","value":"2024-03-25T14:51:19Z"},"PASS_TO_PASS":{"kind":"string","value":"[\"tests/test_generate_context.py::test_apply_overwrites_does_not_modify_choices_for_invalid_overwrite\", \"tests/test_generate_context.py::test_generate_context[input_params2-expected_context2]\", \"tests/test_generate_context.py::test_apply_overwrites_in_dictionaries\", \"tests/test_generate_context.py::test_generate_context[input_params0-expected_context0]\", \"tests/test_generate_context.py::test_apply_overwrite_context_as_in_nested_dict_with_additional_values\", \"tests/test_generate_context.py::test_apply_overwrites_in_nested_dict\", \"tests/test_generate_context.py::test_default_context_replacement_in_generate_context\", \"tests/test_generate_context.py::test_apply_overwrites_invalid_overwrite\", \"tests/test_generate_context.py::test_apply_overwrites_invalid_multichoice_values\", \"tests/test_generate_context.py::test_generate_context_with_json_decoding_error\", \"tests/test_generate_context.py::test_apply_overwrites_does_include_unused_variables\", \"tests/test_generate_context.py::test_generate_context_decodes_non_ascii_chars\", \"tests/test_generate_context.py::test_apply_overwrites_sets_non_list_value\", \"tests/test_generate_context.py::test_apply_overwrites_error_additional_values\", \"tests/test_generate_context.py::test_generate_context[input_params3-expected_context3]\", \"tests/test_generate_context.py::test_generate_context[input_params1-expected_context1]\", \"tests/test_generate_context.py::test_apply_overwrites_sets_default_for_choice_variable\", \"tests/test_generate_context.py::test_apply_overwrites_sets_multichoice_values\"]"},"PASS_TO_FAIL":{"kind":"string","value":"[]"},"FAIL_TO_PASS":{"kind":"string","value":"[\"tests/test_generate_context.py::test_apply_overwrites_overwrite_value_as_boolean_string[on-expected5]\", \"tests/test_generate_context.py::test_apply_overwrites_overwrite_value_as_boolean_string[t-expected2]\", \"tests/test_generate_context.py::test_apply_overwrites_overwrite_value_as_boolean_string[no-expected9]\", \"tests/test_generate_context.py::test_apply_overwrites_overwrite_value_as_boolean_string[0-expected6]\", \"tests/test_generate_context.py::test_apply_overwrites_error_overwrite_value_as_boolean_string\", \"tests/test_generate_context.py::test_apply_overwrites_overwrite_value_as_boolean_string[y-expected4]\", \"tests/test_generate_context.py::test_apply_overwrites_overwrite_value_as_boolean_string[yes-expected3]\", \"tests/test_generate_context.py::test_apply_overwrites_overwrite_value_as_boolean_string[false-expected7]\", \"tests/test_generate_context.py::test_apply_overwrites_overwrite_value_as_boolean_string[true-expected1]\", \"tests/test_generate_context.py::test_apply_overwrites_overwrite_value_as_boolean_string[n-expected10]\", \"tests/test_generate_context.py::test_apply_overwrites_overwrite_value_as_boolean_string[off-expected11]\", \"tests/test_generate_context.py::test_apply_overwrites_overwrite_value_as_boolean_string[f-expected8]\", \"tests/test_generate_context.py::test_apply_overwrites_overwrite_value_as_boolean_string[1-expected0]\", \"tests/test_generate_context.py::test_apply_overwrites_in_nested_dict_additional_values\"]"},"FAIL_TO_FAIL":{"kind":"string","value":"[]"},"install":{"kind":"string","value":"{\"install\": [], \"pre_install\": [\"tee tox.ini < dict:\n+ \"\"\"Process template options and return friendly prompt information.\"\"\"\n+ prompts = {\"__prompt__\": \"Select a template\"}\n+ for option_key, option_value in options.items():\n+ title = str(option_value.get(\"title\", option_key))\n+ description = option_value.get(\"description\", option_key)\n+ label = title if title == description else f\"{title} ({description})\"\n+ prompts[option_key] = label\n+ return prompts\n+\n+\n+def prompt_choice_for_template(key, options, no_input):\n+ \"\"\"Prompt user with a set of options to choose from.\n+\n+ :param no_input: Do not prompt for user input and return the first available option.\n+ \"\"\"\n+ opts = list(options.keys())\n+ prompts = {\"templates\": _prompts_from_options(options)}\n+ return opts[0] if no_input else read_user_choice(key, opts, prompts, \"\")\n+\n+\n def prompt_choice_for_config(\n cookiecutter_dict, env, key, options, no_input, prompts=None, prefix=\"\"\n ):\n@@ -238,16 +261,11 @@ def prompt_for_config(context, no_input=False):\n \"\"\"\n cookiecutter_dict = OrderedDict([])\n env = StrictEnvironment(context=context)\n-\n- prompts = {}\n- if '__prompts__' in context['cookiecutter'].keys():\n- prompts = context['cookiecutter']['__prompts__']\n- del context['cookiecutter']['__prompts__']\n+ prompts = context['cookiecutter'].pop('__prompts__', {})\n \n # First pass: Handle simple and raw variables, plus choices.\n # These must be done first because the dictionaries keys and\n # values might refer to them.\n-\n count = 0\n all_prompts = context['cookiecutter'].items()\n visible_prompts = [k for k, _ in all_prompts if not k.startswith(\"_\")]\n@@ -313,3 +331,40 @@ def prompt_for_config(context, no_input=False):\n raise UndefinedVariableInTemplate(msg, err, context) from err\n \n return cookiecutter_dict\n+\n+\n+def choose_nested_template(context: dict, repo_dir: str, no_input: bool = False) -> str:\n+ \"\"\"Prompt user to select the nested template to use.\n+\n+ :param context: Source for field names and sample values.\n+ :param repo_dir: Repository directory.\n+ :param no_input: Do not prompt for user input and use only values from context.\n+ :returns: Path to the selected template.\n+ \"\"\"\n+ cookiecutter_dict = OrderedDict([])\n+ env = StrictEnvironment(context=context)\n+ prefix = \"\"\n+ prompts = context['cookiecutter'].pop('__prompts__', {})\n+ key = \"templates\"\n+ config = context['cookiecutter'].get(key, {})\n+ if config:\n+ # Pass\n+ val = prompt_choice_for_template(key, config, no_input)\n+ template = config[val][\"path\"]\n+ else:\n+ # Old style\n+ key = \"template\"\n+ config = context['cookiecutter'].get(key, [])\n+ val = prompt_choice_for_config(\n+ cookiecutter_dict, env, key, config, no_input, prompts, prefix\n+ )\n+ template = re.search(r'\\((.+)\\)', val).group(1)\n+\n+ template = Path(template) if template else None\n+ if not (template and not template.is_absolute()):\n+ raise ValueError(\"Illegal template path\")\n+\n+ repo_dir = Path(repo_dir).resolve()\n+ template_path = (repo_dir / template).resolve()\n+ # Return path as string\n+ return f\"{template_path}\"\ndiff --git a/docs/advanced/nested_config_files.rst b/docs/advanced/nested_config_files.rst\nindex 464fd8d17..ca5a543bf 100644\n--- a/docs/advanced/nested_config_files.rst\n+++ b/docs/advanced/nested_config_files.rst\n@@ -1,10 +1,12 @@\n .. _nested-config-files:\n \n Nested configuration files\n-----------------------------------------------\n+--------------------------\n+\n+*New in Cookiecutter 2.5.0*\n \n If you wish to create a hierarchy of templates and use cookiecutter to choose among them,\n-you need just to specify the key ``template`` in the main configuration file to reach\n+you need just to specify the key ``templates`` in the main configuration file to reach\n the other ones.\n \n Let's imagine to have the following structure::\n@@ -14,7 +16,7 @@ Let's imagine to have the following structure::\n │ ├── cookiecutter.json\n │ ├── {{cookiecutter.project_slug}}\n |\t│ ├── ...\n- ├── project-2\n+ ├── package\n │ ├── cookiecutter.json\n │ ├── {{cookiecutter.project_slug}}\n |\t│ ├── ...\n@@ -23,6 +25,44 @@ Let's imagine to have the following structure::\n It is possible to specify in the main ``cookiecutter.json`` how to reach the other\n config files as follows:\n \n+.. code-block:: JSON\n+\n+ {\n+ \"templates\": {\n+ \"project-1\": {\n+ \"path\": \"./project-1\",\n+ \"title\": \"Project 1\",\n+ \"description\": \"A cookiecutter template for a project\"\n+ },\n+ \"package\": {\n+ \"path\": \"./package\",\n+ \"title\": \"Package\",\n+ \"description\": \"A cookiecutter template for a package\"\n+ }\n+ }\n+ }\n+\n+Then, when ``cookiecutter`` is launched in the main directory it will ask to choose\n+among the possible templates:\n+\n+.. code-block::\n+\n+ Select template:\n+ 1 - Project 1 (A cookiecutter template for a project)\n+ 2 - Package (A cookiecutter template for a package)\n+ Choose from 1, 2 [1]:\n+\n+Once a template is chosen, for example ``1``, it will continue to ask the info required by\n+``cookiecutter.json`` in the ``project-1`` folder, such as ``project-slug``\n+\n+\n+Old Format\n+++++++++++\n+\n+*New in Cookiecutter 2.2.0*\n+\n+In the main ``cookiecutter.json`` add a `template` key with the following format:\n+\n .. code-block:: JSON\n \n {\n@@ -32,10 +72,10 @@ config files as follows:\n ]\n }\n \n-Then, when ``cookiecutter`` is launched in the main directory it will ask to choice\n+Then, when ``cookiecutter`` is launched in the main directory it will ask to choose\n among the possible templates:\n \n-.. code-block:: bash\n+.. code-block::\n \n Select template:\n 1 - Project 1 (./project-1)\n"},"test_patch":{"kind":"string","value":"diff --git a/tests/fake-nested-templates-old-style/cookiecutter.json b/tests/fake-nested-templates-old-style/cookiecutter.json\nnew file mode 100644\nindex 000000000..2cdf1d272\n--- /dev/null\n+++ b/tests/fake-nested-templates-old-style/cookiecutter.json\n@@ -0,0 +1,11 @@\n+{\n+ \"template\": [\n+ \"fake-package (./fake-package)\"\n+ ],\n+ \"__prompts__\": {\n+ \"template\": {\n+ \"__prompt__\": \"Select a template\",\n+ \"fake-package (./fake-package)\": \"Fake Package\"\n+ }\n+ }\n+}\ndiff --git a/tests/fake-nested-templates-old-style/fake-package/cookiecutter.json b/tests/fake-nested-templates-old-style/fake-package/cookiecutter.json\nnew file mode 100644\nindex 000000000..0967ef424\n--- /dev/null\n+++ b/tests/fake-nested-templates-old-style/fake-package/cookiecutter.json\n@@ -0,0 +1,1 @@\n+{}\ndiff --git a/tests/fake-nested-templates/cookiecutter.json b/tests/fake-nested-templates/cookiecutter.json\nindex e3cb3a602..b0f40e80c 100644\n--- a/tests/fake-nested-templates/cookiecutter.json\n+++ b/tests/fake-nested-templates/cookiecutter.json\n@@ -1,5 +1,14 @@\n {\n- \"template\": [\n- \"fake-project (fake-project)\"\n- ]\n+ \"templates\": {\n+ \"fake-project\": {\n+ \"path\": \"./fake-project\",\n+ \"title\": \"A Fake Project\",\n+ \"description\": \"A cookiecutter template for a project\"\n+ },\n+ \"fake-package\": {\n+ \"path\": \"./fake-package\",\n+ \"title\": \"A Fake Package\",\n+ \"description\": \"A cookiecutter template for a package\"\n+ }\n+ }\n }\ndiff --git a/tests/fake-nested-templates/fake-package/cookiecutter.json b/tests/fake-nested-templates/fake-package/cookiecutter.json\nnew file mode 100644\nindex 000000000..0967ef424\n--- /dev/null\n+++ b/tests/fake-nested-templates/fake-package/cookiecutter.json\n@@ -0,0 +1,1 @@\n+{}\ndiff --git a/tests/test_cookiecutter_nested_templates.py b/tests/test_cookiecutter_nested_templates.py\nindex 8dc953d60..e12e54693 100644\n--- a/tests/test_cookiecutter_nested_templates.py\n+++ b/tests/test_cookiecutter_nested_templates.py\n@@ -1,14 +1,21 @@\n \"\"\"Test cookiecutter invocation with nested configuration structure.\"\"\"\n-import os\n+from pathlib import Path\n+import pytest\n \n from cookiecutter import main\n \n \n-def test_cookiecutter_nested_templates(mocker):\n+@pytest.mark.parametrize(\n+ \"template_dir,output_dir\",\n+ [\n+ [\"fake-nested-templates\", \"fake-project\"],\n+ [\"fake-nested-templates-old-style\", \"fake-package\"],\n+ ],\n+)\n+def test_cookiecutter_nested_templates(mocker, template_dir: str, output_dir: str):\n \"\"\"Verify cookiecutter nested configuration files mechanism.\"\"\"\n mock_generate_files = mocker.patch(\"cookiecutter.main.generate_files\")\n- main_dir = os.path.join(\"tests\", \"fake-nested-templates\")\n- main.cookiecutter(main_dir, no_input=True)\n- assert mock_generate_files.call_args[1][\"repo_dir\"] == os.path.join(\n- main_dir, \"fake-project\"\n- )\n+ main_dir = (Path(\"tests\") / template_dir).resolve()\n+ main.cookiecutter(f\"{main_dir}\", no_input=True)\n+ expected = (Path(main_dir) / output_dir).resolve()\n+ assert mock_generate_files.call_args[1][\"repo_dir\"] == f\"{expected}\"\ndiff --git a/tests/test_prompt.py b/tests/test_prompt.py\nindex f7f3b7e14..1b84dac3c 100644\n--- a/tests/test_prompt.py\n+++ b/tests/test_prompt.py\n@@ -1,8 +1,12 @@\n \"\"\"Tests for `cookiecutter.prompt` module.\"\"\"\n import platform\n+import sys\n+\n from collections import OrderedDict\n+from pathlib import Path\n \n import click\n+import json\n import pytest\n \n from cookiecutter import prompt, exceptions, environment\n@@ -573,3 +577,66 @@ def test_undefined_variable(context):\n error = err.value\n assert error.message == \"Unable to render variable 'foo'\"\n assert error.context == context\n+\n+\n+@pytest.mark.parametrize(\n+ \"template_dir,expected\",\n+ [\n+ [\"fake-nested-templates\", \"fake-project\"],\n+ [\"fake-nested-templates-old-style\", \"fake-package\"],\n+ ],\n+)\n+def test_cookiecutter_nested_templates(template_dir: str, expected: str):\n+ \"\"\"Test nested_templates generation.\"\"\"\n+ from cookiecutter import prompt\n+\n+ main_dir = (Path(\"tests\") / template_dir).resolve()\n+ cookiecuter_context = json.loads((main_dir / \"cookiecutter.json\").read_text())\n+ context = {\"cookiecutter\": cookiecuter_context}\n+ output_dir = prompt.choose_nested_template(context, main_dir, no_input=True)\n+ expected = (Path(main_dir) / expected).resolve()\n+ assert output_dir == f\"{expected}\"\n+\n+\n+@pytest.mark.skipif(sys.platform.startswith('win'), reason=\"Linux / macos test\")\n+@pytest.mark.parametrize(\n+ \"path\",\n+ [\n+ \"\",\n+ \"/tmp\",\n+ \"/foo\",\n+ ],\n+)\n+def test_cookiecutter_nested_templates_invalid_paths(path: str):\n+ \"\"\"Test nested_templates generation.\"\"\"\n+ from cookiecutter import prompt\n+\n+ main_dir = (Path(\"tests\") / \"fake-nested-templates\").resolve()\n+ cookiecuter_context = json.loads((main_dir / \"cookiecutter.json\").read_text())\n+ cookiecuter_context[\"templates\"][\"fake-project\"][\"path\"] = path\n+ context = {\"cookiecutter\": cookiecuter_context}\n+ with pytest.raises(ValueError) as exc:\n+ prompt.choose_nested_template(context, main_dir, no_input=True)\n+ assert \"Illegal template path\" in str(exc)\n+\n+\n+@pytest.mark.skipif(not sys.platform.startswith('win'), reason=\"Win only test\")\n+@pytest.mark.parametrize(\n+ \"path\",\n+ [\n+ \"\",\n+ \"C:/tmp\",\n+ \"D:/tmp\",\n+ ],\n+)\n+def test_cookiecutter_nested_templates_invalid_win_paths(path: str):\n+ \"\"\"Test nested_templates generation.\"\"\"\n+ from cookiecutter import prompt\n+\n+ main_dir = (Path(\"tests\") / \"fake-nested-templates\").resolve()\n+ cookiecuter_context = json.loads((main_dir / \"cookiecutter.json\").read_text())\n+ cookiecuter_context[\"templates\"][\"fake-project\"][\"path\"] = path\n+ context = {\"cookiecutter\": cookiecuter_context}\n+ with pytest.raises(ValueError) as exc:\n+ prompt.choose_nested_template(context, main_dir, no_input=True)\n+ assert \"Illegal template path\" in str(exc)\n"},"problem_statement":{"kind":"string","value":"Nested Config Files: New format for \"template\" key\n* Cookiecutter version: 2.4.0\r\n* Template project URL: https://github.com/plone/cookiecutter-plone/blob/main/cookiecutter.json\r\n* Python version: 3.11\r\n* Operating System: macOs\r\n\r\n### Description:\r\n\r\nThe format for the `template` key requires some additional parsing:\r\n\r\n```json\r\n {\r\n \"template\": [\r\n \"Project 1 (./project-1)\",\r\n \"Project 2 (./project-2)\"\r\n ]\r\n }\r\n```\r\n\r\nOur proposal is also to support the following format:\r\n\r\n```json\r\n {\r\n \"templates\": {\r\n \"project-1\": {\r\n \"path\": \"./project-1\",\r\n \"title\": \"Project 1\",\r\n \"description\": \"A cookiecutter template for a project\"\r\n },\r\n \"project-2\": {\r\n \"path\": \"./package\",\r\n \"title\": \"Package\",\r\n \"description\": \"A cookiecutter template for a package\"\r\n }\r\n }\r\n }\r\n\r\n```\r\n\r\n### Tasks\r\n\r\n- [ ] Still support the old format under `template` (but display a deprecation warning)\r\n- [ ] Implement the new format under the `templates` key\r\n- [ ] Support external templates (if possible)\r\n\r\n\n"},"hints_text":{"kind":"string","value":""},"created_at":{"kind":"string","value":"2023-11-17T23:54:33Z"},"merged_at":{"kind":"string","value":"2023-11-20T21:26:53Z"},"PASS_TO_PASS":{"kind":"string","value":"[\"tests/test_prompt.py::TestRenderVariable::test_convert_to_str_complex_variables[raw_var1-rendered_var1]\", \"tests/test_prompt.py::TestPromptChoiceForConfig::test_should_read_user_choice\", \"tests/test_prompt.py::TestPrompt::test_dont_prompt_for_private_context_var\", \"tests/test_prompt.py::TestPrompt::test_prompt_for_config_dict\", \"tests/test_prompt.py::TestReadUserYesNo::test_should_invoke_read_user_yes_no[True]\", \"tests/test_prompt.py::TestRenderVariable::test_convert_to_str_complex_variables[raw_var0-rendered_var0]\", \"tests/test_prompt.py::TestReadUserChoice::test_should_invoke_read_user_choice\", \"tests/test_prompt.py::TestPrompt::test_should_render_dict\", \"tests/test_prompt.py::TestPromptChoiceForConfig::test_should_return_first_option_if_no_input\", \"tests/test_prompt.py::TestRenderVariable::test_convert_to_str[True-True]\", \"tests/test_prompt.py::TestPrompt::test_internal_use_no_human_prompts\", \"tests/test_prompt.py::test_undefined_variable[Undefined variable in cookiecutter dict with choices]\", \"tests/test_prompt.py::TestPrompt::test_should_render_deep_dict\", \"tests/test_prompt.py::TestRenderVariable::test_convert_to_str[None-None]\", \"tests/test_prompt.py::test_undefined_variable[Undefined variable in cookiecutter dict]\", \"tests/test_prompt.py::TestReadUserChoice::test_should_render_choices\", \"tests/test_prompt.py::TestPrompt::test_prompt_for_templated_config\", \"tests/test_prompt.py::TestPrompt::test_should_render_deep_dict_with_human_prompts\", \"tests/test_prompt.py::TestReadUserYesNo::test_should_invoke_read_user_yes_no[False]\", \"tests/test_prompt.py::test_undefined_variable[Undefined variable in cookiecutter dict with key_value]\", \"tests/test_prompt.py::TestRenderVariable::test_convert_to_str[{{cookiecutter.project}}-foobar]\", \"tests/test_prompt.py::TestPrompt::test_prompt_for_config[Unicode default prompt/input]\", \"tests/test_prompt.py::TestPrompt::test_should_render_private_variables_with_two_underscores\", \"tests/test_prompt.py::TestPrompt::test_prompt_for_config[ASCII default prompt/input]\", \"tests/test_prompt.py::TestReadUserYesNo::test_boolean_parameter_no_input\", \"tests/test_prompt.py::TestRenderVariable::test_convert_to_str[1-1]\", \"tests/test_prompt.py::TestPrompt::test_should_not_render_private_variables\", \"tests/test_prompt.py::TestPrompt::test_prompt_for_config_with_human_prompts[ASCII default prompt/input]\", \"tests/test_prompt.py::test_undefined_variable[Undefined variable in cookiecutter dict with dict_key]\", \"tests/test_prompt.py::TestRenderVariable::test_convert_to_str_complex_variables[raw_var2-rendered_var2]\", \"tests/test_prompt.py::TestReadUserChoice::test_should_invoke_read_user_variable\", \"tests/test_prompt.py::TestRenderVariable::test_convert_to_str[foo-foo]\"]"},"PASS_TO_FAIL":{"kind":"string","value":"[]"},"FAIL_TO_PASS":{"kind":"string","value":"[\"tests/test_prompt.py::test_cookiecutter_nested_templates[fake-nested-templates-old-style-fake-package]\", \"tests/test_cookiecutter_nested_templates.py::test_cookiecutter_nested_templates[fake-nested-templates-fake-project]\", \"tests/test_prompt.py::test_cookiecutter_nested_templates_invalid_paths[/tmp]\", \"tests/test_prompt.py::test_cookiecutter_nested_templates[fake-nested-templates-fake-project]\", \"tests/test_cookiecutter_nested_templates.py::test_cookiecutter_nested_templates[fake-nested-templates-old-style-fake-package]\", \"tests/test_prompt.py::test_cookiecutter_nested_templates_invalid_paths[/foo]\", \"tests/test_prompt.py::test_cookiecutter_nested_templates_invalid_paths[]\"]"},"FAIL_TO_FAIL":{"kind":"string","value":"[\"[ 33%]\", \"[ 31%]\", \"tests/test_prompt.py::TestPrompt::test_prompt_for_config_with_human_choices[context1] - AttributeError: module 'click' has no attribute 'testing'\", \"tests/test_prompt.py::TestPrompt::test_prompt_for_config_with_human_choices[context0] - AttributeError: module 'click' has no attribute 'testing'\", \"[ 35%]\", \"'testing'\", \"tests/test_prompt.py::TestPrompt::test_prompt_for_config_with_human_choices[context2] - AttributeError: module 'click' has no attribute 'testing'\", \"test\"]"},"install":{"kind":"string","value":"{\"install\": [\"uv pip install -e .\"], \"pre_install\": [\"tee tox.ini < Path:\n+ \"\"\"Run pre_prompt hook from repo directory.\n+\n+ :param repo_dir: Project template input directory.\n+ \"\"\"\n+ # Check if we have a valid pre_prompt script\n+ with work_in(repo_dir):\n+ scripts = find_hook('pre_prompt')\n+ if not scripts:\n+ return repo_dir\n+\n+ # Create a temporary directory\n+ repo_dir = create_tmp_repo_dir(repo_dir)\n+ with work_in(repo_dir):\n+ scripts = find_hook('pre_prompt')\n+ for script in scripts:\n+ try:\n+ run_script(script, repo_dir)\n+ except FailedHookException:\n+ raise FailedHookException('Pre-Prompt Hook script failed')\n+ return repo_dir\ndiff --git a/cookiecutter/main.py b/cookiecutter/main.py\nindex 1ea48ee34..14d38910d 100644\n--- a/cookiecutter/main.py\n+++ b/cookiecutter/main.py\n@@ -9,10 +9,12 @@\n import re\n import sys\n from copy import copy\n+from pathlib import Path\n \n from cookiecutter.config import get_user_config\n from cookiecutter.exceptions import InvalidModeException\n from cookiecutter.generate import generate_context, generate_files\n+from cookiecutter.hooks import run_pre_prompt_hook\n from cookiecutter.prompt import prompt_for_config\n from cookiecutter.replay import dump, load\n from cookiecutter.repository import determine_repo_dir\n@@ -71,8 +73,7 @@ def cookiecutter(\n config_file=config_file,\n default_config=default_config,\n )\n-\n- repo_dir, cleanup = determine_repo_dir(\n+ base_repo_dir, cleanup_base_repo_dir = determine_repo_dir(\n template=template,\n abbreviations=config_dict['abbreviations'],\n clone_to_dir=config_dict['cookiecutters_dir'],\n@@ -81,10 +82,14 @@ def cookiecutter(\n password=password,\n directory=directory,\n )\n- import_patch = _patch_import_path_for_repo(repo_dir)\n+ repo_dir, cleanup = base_repo_dir, cleanup_base_repo_dir\n+ # Run pre_prompt hook\n+ repo_dir = run_pre_prompt_hook(base_repo_dir) if accept_hooks else repo_dir\n+ # Always remove temporary dir if it was created\n+ cleanup = True if repo_dir != base_repo_dir else False\n \n+ import_patch = _patch_import_path_for_repo(repo_dir)\n template_name = os.path.basename(os.path.abspath(repo_dir))\n-\n if replay:\n with import_patch:\n if isinstance(replay, bool):\n@@ -163,7 +168,7 @@ def cookiecutter(\n context['cookiecutter']['_output_dir'] = os.path.abspath(output_dir)\n \n # include repo dir or url in the context dict\n- context['cookiecutter']['_repo_dir'] = repo_dir\n+ context['cookiecutter']['_repo_dir'] = f\"{repo_dir}\"\n \n # include checkout details in the context dict\n context['cookiecutter']['_checkout'] = checkout\n@@ -185,13 +190,14 @@ def cookiecutter(\n # Cleanup (if required)\n if cleanup:\n rmtree(repo_dir)\n-\n+ if cleanup_base_repo_dir:\n+ rmtree(base_repo_dir)\n return result\n \n \n class _patch_import_path_for_repo:\n- def __init__(self, repo_dir):\n- self._repo_dir = repo_dir\n+ def __init__(self, repo_dir: \"os.PathLike[str]\"):\n+ self._repo_dir = f\"{repo_dir}\" if isinstance(repo_dir, Path) else repo_dir\n self._path = None\n \n def __enter__(self):\ndiff --git a/cookiecutter/utils.py b/cookiecutter/utils.py\nindex d90b3a81d..d0019312c 100644\n--- a/cookiecutter/utils.py\n+++ b/cookiecutter/utils.py\n@@ -5,6 +5,7 @@\n import shutil\n import stat\n import sys\n+import tempfile\n from pathlib import Path\n \n from jinja2.ext import Extension\n@@ -116,3 +117,13 @@ def __init__(self, environment):\n \n SimpleFilterExtension.__name__ = filter_function.__name__\n return SimpleFilterExtension\n+\n+\n+def create_tmp_repo_dir(repo_dir: \"os.PathLike[str]\") -> Path:\n+ \"\"\"Create a temporary dir with a copy of the contents of repo_dir.\"\"\"\n+ repo_dir = Path(repo_dir) if isinstance(repo_dir, str) else repo_dir\n+ base_dir = tempfile.mkdtemp(prefix='cookiecutter')\n+ new_dir = f\"{base_dir}/{repo_dir.name}\"\n+ logger.debug(f'Copying repo_dir from {repo_dir} to {new_dir}')\n+ shutil.copytree(repo_dir, new_dir)\n+ return Path(new_dir)\ndiff --git a/docs/advanced/hooks.rst b/docs/advanced/hooks.rst\nindex 69dc6abb5..3a9f764ba 100644\n--- a/docs/advanced/hooks.rst\n+++ b/docs/advanced/hooks.rst\n@@ -1,106 +1,125 @@\n-.. _user-hooks:\n+Hooks\n+=====\n \n-Using Pre/Post-Generate Hooks\n-=============================\n+Cookiecutter hooks are scripts executed at specific stages during the project generation process. They are either Python or shell scripts, facilitating automated tasks like data validation, pre-processing, and post-processing. These hooks are instrumental in customizing the generated project structure and executing initial setup tasks.\n \n-*New in cookiecutter 0.7*\n+Types of Hooks\n+--------------\n \n-You can have Python or Shell scripts that run before and/or after your project is generated.\n++------------------+------------------------------------------+------------------------------------------+--------------------+----------+\n+| Hook | Execution Timing | Working Directory | Template Variables | Version |\n++==================+==========================================+==========================================+====================+==========+\n+| pre_prompt | Before any question is rendered. | A copy of the repository directory | No | 2.4.0 |\n++------------------+------------------------------------------+------------------------------------------+--------------------+----------+\n+| pre_gen_project | After questions, before template process.| Root of the generated project | Yes | 0.7.0 |\n++------------------+------------------------------------------+------------------------------------------+--------------------+----------+\n+| post_gen_project | After the project generation. | Root of the generated project | Yes | 0.7.0 |\n++------------------+------------------------------------------+------------------------------------------+--------------------+----------+\n \n-Put them in ``hooks/`` like this::\n+Creating Hooks\n+--------------\n+\n+Hooks are added to the ``hooks/`` folder of your template. Both Python and Shell scripts are supported.\n+\n+**Python Hooks Structure:**\n+\n+.. code-block::\n \n cookiecutter-something/\n ├── {{cookiecutter.project_slug}}/\n ├── hooks\n+ │ ├── pre_prompt.py\n │ ├── pre_gen_project.py\n │ └── post_gen_project.py\n └── cookiecutter.json\n \n-Shell scripts work similarly::\n+**Shell Scripts Structure:**\n+\n+.. code-block::\n \n cookiecutter-something/\n ├── {{cookiecutter.project_slug}}/\n ├── hooks\n+ │ ├── pre_prompt.sh\n │ ├── pre_gen_project.sh\n │ └── post_gen_project.sh\n └── cookiecutter.json\n \n-It shouldn't be too hard to extend Cookiecutter to work with other types of scripts too.\n-Pull requests are welcome.\n+Python scripts are recommended for cross-platform compatibility. However, shell scripts or `.bat` files can be used for platform-specific templates.\n+\n+Hook Execution\n+--------------\n \n-For portability, you should use Python scripts (with extension `.py`) for your hooks, as these can be run on any platform.\n-However, if you intend for your template to only be run on a single platform, a shell script (or `.bat` file on Windows) can be a quicker alternative.\n+Hooks should be robust and handle errors gracefully. If a hook exits with a nonzero status, the project generation halts, and the generated directory is cleaned.\n \n-Writing hooks\n--------------\n+**Working Directory:**\n \n-Here are some details on how to write pre/post-generate hook scripts.\n+* ``pre_prompt``: Scripts run in the root directory of a copy of the repository directory. That allows the rewrite of ``cookiecutter.json`` to your own needs.\n \n-Exit with an appropriate status\n-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n+* ``pre_gen_project`` and ``post_gen_project``: Scripts run in the root directory of the generated project, simplifying the process of locating generated files using relative paths.\n \n-Make sure your hook scripts work in a robust manner.\n-If a hook script fails (that is, `if it finishes with a nonzero exit status `_), the project generation will stop and the generated directory will be cleaned up.\n+**Template Variables:**\n \n-Current working directory\n-^^^^^^^^^^^^^^^^^^^^^^^^^\n+The ``pre_gen_project`` and ``post_gen_project`` hooks support Jinja template rendering, similar to project templates. For instance:\n+\n+.. code-block:: python\n+\n+ module_name = '{{ cookiecutter.module_name }}'\n \n-When the hook scripts script are run, their current working directory is the root of the generated project.\n-This makes it easy for a post-generate hook to find generated files using relative paths.\n+Examples\n+--------\n \n-Template variables are rendered in the script\n-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n+**Pre-Prompt Sanity Check:**\n \n-Just like your project template, Cookiecutter also renders Jinja template syntax in your scripts.\n-This lets you incorporate Jinja template variables in your scripts.\n-For example, this line of Python sets ``module_name`` to the value of the ``cookiecutter.module_name`` template variable:\n+A ``pre_prompt`` hook, like the one below in ``hooks/pre_prompt.py``, ensures prerequisites, such as Docker, are installed before prompting the user.\n \n .. code-block:: python\n \n- module_name = '{{ cookiecutter.module_name }}'\n+ import sys\n+ import subprocess\n+\n+ def is_docker_installed() -> bool:\n+ try:\n+ subprocess.run([\"docker\", \"--version\"], capture_output=True, check=True)\n+ return True\n+ except Exception:\n+ return False\n+\n+ if __name__ == \"__main__\":\n+ if not is_docker_installed():\n+ print(\"ERROR: Docker is not installed.\")\n+ sys.exit(1)\n \n-Example: Validating template variables\n---------------------------------------\n+**Validating Template Variables:**\n \n-Here is an example of a pre-generate hook script, defined at ``hooks/pre_gen_project.py``, that validates a template variable before generating the project:\n+A ``pre_gen_project`` hook can validate template variables. The following script checks if the provided module name is valid.\n \n .. code-block:: python\n \n import re\n import sys\n \n-\n MODULE_REGEX = r'^[_a-zA-Z][_a-zA-Z0-9]+$'\n-\n module_name = '{{ cookiecutter.module_name }}'\n \n if not re.match(MODULE_REGEX, module_name):\n- print('ERROR: %s is not a valid Python module name!' % module_name)\n-\n- # exits with status 1 to indicate failure\n+ print(f'ERROR: {module_name} is not a valid Python module name!')\n sys.exit(1)\n \n-Example: Conditional files / directories\n-----------------------------------------\n-\n-Here is an example of a post-generate hook script.\n-The file ``hooks/post_gen_project.py`` shows how to achieve conditional control of files and directories after generating the project.\n+**Conditional File/Directory Removal:**\n \n-The script ensures that the directory structure is as expected by removing unwanted files and directories:\n+A ``post_gen_project`` hook can conditionally control files and directories. The example below removes unnecessary files based on the selected packaging option.\n \n .. code-block:: python\n \n- import os\n+ import os\n \n- REMOVE_PATHS = [\n- '{% if cookiecutter.packaging != \"pip\" %} requirements.txt {% endif %}',\n- '{% if cookiecutter.packaging != \"poetry\" %} poetry.lock {% endif %}',\n- ]\n+ REMOVE_PATHS = [\n+ '{% if cookiecutter.packaging != \"pip\" %}requirements.txt{% endif %}',\n+ '{% if cookiecutter.packaging != \"poetry\" %}poetry.lock{% endif %}',\n+ ]\n \n- for path in REMOVE_PATHS:\n- path = path.strip()\n- if path and os.path.exists(path):\n- if os.path.isdir(path):\n- os.rmdir(path)\n- else:\n- os.unlink(path)\n+ for path in REMOVE_PATHS:\n+ path = path.strip()\n+ if path and os.path.exists(path):\n+ os.unlink(path) if os.path.isfile(path) else os.rmdir(path)\n"},"test_patch":{"kind":"string","value":"diff --git a/tests/test-pyhooks/cookiecutter.json b/tests/test-pyhooks/cookiecutter.json\nnew file mode 100644\nindex 000000000..224d5c1fa\n--- /dev/null\n+++ b/tests/test-pyhooks/cookiecutter.json\n@@ -0,0 +1,4 @@\n+{\n+ \"pyhooks\": \"fake-project\",\n+ \"project_title\": \"Project Title\"\n+}\ndiff --git a/tests/test-pyhooks/hooks/pre_prompt.py b/tests/test-pyhooks/hooks/pre_prompt.py\nnew file mode 100644\nindex 000000000..7fef53c43\n--- /dev/null\n+++ b/tests/test-pyhooks/hooks/pre_prompt.py\n@@ -0,0 +1,26 @@\n+\"\"\"Simple pre-prompt hook that will fail if a specific env var is set.\"\"\"\n+from pathlib import Path\n+import os\n+import sys\n+\n+\n+def backup_configuration(cwd: Path) -> Path:\n+ \"\"\"Create a backup of cookiecutter.json.\"\"\"\n+ src_data = (cwd / 'cookiecutter.json').read_text()\n+ dst = cwd / '_cookiecutter.json'\n+ with open(dst, 'w') as fh:\n+ fh.write(src_data)\n+ return dst\n+\n+\n+def main():\n+ \"\"\"Check if we can run the cookiecutter.\"\"\"\n+ if os.environ.get(\"COOKIECUTTER_FAIL_PRE_PROMPT\", False):\n+ sys.exit(1)\n+ cwd = Path('.').resolve()\n+ bkp = backup_configuration(cwd)\n+ print(f\"All good here, created {bkp}\")\n+\n+\n+if __name__ == \"__main__\":\n+ main()\ndiff --git a/tests/test-pyshellhooks/cookiecutter.json b/tests/test-pyshellhooks/cookiecutter.json\nnew file mode 100644\nindex 000000000..600faeeb7\n--- /dev/null\n+++ b/tests/test-pyshellhooks/cookiecutter.json\n@@ -0,0 +1,4 @@\n+{\n+ \"pyshellhooks\": \"fake-project\",\n+ \"project_title\": \"Project Title\"\n+}\ndiff --git a/tests/test-pyshellhooks/hooks/pre_prompt.sh b/tests/test-pyshellhooks/hooks/pre_prompt.sh\nnew file mode 100755\nindex 000000000..b951bfb15\n--- /dev/null\n+++ b/tests/test-pyshellhooks/hooks/pre_prompt.sh\n@@ -0,0 +1,4 @@\n+#!/bin/bash\n+\n+echo 'Pre-Prompt hook';\n+touch '_cookiecutter.json'\ndiff --git a/tests/test_cli.py b/tests/test_cli.py\nindex ce9d9b904..dfecb13de 100644\n--- a/tests/test_cli.py\n+++ b/tests/test_cli.py\n@@ -30,8 +30,10 @@ def remove_fake_project_dir(request):\n \"\"\"Remove the fake project directory created during the tests.\"\"\"\n \n def fin_remove_fake_project_dir():\n- if os.path.isdir('fake-project'):\n- utils.rmtree('fake-project')\n+ for prefix in ('', 'input'):\n+ dir_name = f'{prefix}fake-project'\n+ if os.path.isdir(dir_name):\n+ utils.rmtree(dir_name)\n \n request.addfinalizer(fin_remove_fake_project_dir)\n \n@@ -685,3 +687,26 @@ def test_cli_with_json_decoding_error(cli_runner):\n # this point.\n path = os.path.sep.join(['tests', 'fake-repo-bad-json', 'cookiecutter.json'])\n assert path in result.output\n+\n+\n+@pytest.mark.usefixtures('remove_fake_project_dir')\n+def test_cli_with_pre_prompt_hook(cli_runner):\n+ \"\"\"Test cli invocation in a template with pre_prompt hook.\"\"\"\n+ template_path = 'tests/test-pyhooks/'\n+ result = cli_runner(template_path, '--no-input')\n+ assert result.exit_code == 0\n+ dir_name = 'inputfake-project'\n+ assert os.path.isdir(dir_name)\n+ content = Path(dir_name, \"README.rst\").read_text()\n+ assert 'foo' in content\n+\n+\n+def test_cli_with_pre_prompt_hook_fail(cli_runner, monkeypatch):\n+ \"\"\"Test cli invocation will fail when a given env var is present.\"\"\"\n+ template_path = 'tests/test-pyhooks/'\n+ with monkeypatch.context() as m:\n+ m.setenv('COOKIECUTTER_FAIL_PRE_PROMPT', '1')\n+ result = cli_runner(template_path, '--no-input')\n+ assert result.exit_code == 1\n+ dir_name = 'inputfake-project'\n+ assert not Path(dir_name).exists()\ndiff --git a/tests/test_generate_hooks.py b/tests/test_generate_hooks.py\nindex a57e0dbde..0644da6c8 100644\n--- a/tests/test_generate_hooks.py\n+++ b/tests/test_generate_hooks.py\n@@ -228,3 +228,19 @@ def test_ignore_shell_hooks(tmp_path):\n )\n assert not shell_pre_file.exists()\n assert not shell_post_file.exists()\n+\n+\n+@pytest.mark.usefixtures(\"clean_system\", \"remove_additional_folders\")\n+def test_deprecate_run_hook_from_repo_dir(tmp_path):\n+ \"\"\"Test deprecation warning in generate._run_hook_from_repo_dir.\"\"\"\n+ repo_dir = \"tests/test-shellhooks/\"\n+ project_dir = Path(tmp_path.joinpath('test-shellhooks'))\n+ project_dir.mkdir()\n+ with pytest.deprecated_call():\n+ generate._run_hook_from_repo_dir(\n+ repo_dir=repo_dir,\n+ hook_name=\"pre_gen_project\",\n+ project_dir=project_dir,\n+ context={},\n+ delete_project_on_failure=False,\n+ )\ndiff --git a/tests/test_pre_prompt_hooks.py b/tests/test_pre_prompt_hooks.py\nnew file mode 100644\nindex 000000000..34a51a94d\n--- /dev/null\n+++ b/tests/test_pre_prompt_hooks.py\n@@ -0,0 +1,50 @@\n+\"\"\"Test work of python and shell hooks on repository.\"\"\"\n+import sys\n+from pathlib import Path\n+\n+import pytest\n+\n+from cookiecutter import hooks, utils\n+from cookiecutter.exceptions import FailedHookException\n+\n+WINDOWS = sys.platform.startswith('win')\n+\n+\n+@pytest.fixture(scope='function')\n+def remove_tmp_repo_dir():\n+ \"\"\"Remove the generate repo_dir.\"\"\"\n+\n+ def _func(repo_dir: Path):\n+ if repo_dir.exists():\n+ utils.rmtree(repo_dir)\n+\n+ return _func\n+\n+\n+def test_run_pre_prompt_python_hook(remove_tmp_repo_dir):\n+ \"\"\"Verify pre_prompt.py runs and creates a copy of cookiecutter.json.\"\"\"\n+ new_repo_dir = hooks.run_pre_prompt_hook(repo_dir='tests/test-pyhooks/')\n+ assert new_repo_dir.exists()\n+ bkp_config = new_repo_dir / \"_cookiecutter.json\"\n+ assert bkp_config.exists()\n+ remove_tmp_repo_dir(new_repo_dir)\n+\n+\n+def test_run_pre_prompt_python_hook_fail(monkeypatch):\n+ \"\"\"Verify pre_prompt.py will fail when a given env var is present.\"\"\"\n+ message = 'Pre-Prompt Hook script failed'\n+ with monkeypatch.context() as m:\n+ m.setenv('COOKIECUTTER_FAIL_PRE_PROMPT', '1')\n+ with pytest.raises(FailedHookException) as excinfo:\n+ hooks.run_pre_prompt_hook(repo_dir='tests/test-pyhooks/')\n+ assert message in str(excinfo.value)\n+\n+\n+@pytest.mark.skipif(WINDOWS, reason='shell script will not run in Windows')\n+def test_run_pre_prompt_shell_hook(remove_tmp_repo_dir):\n+ \"\"\"Verify pre_prompt.sh runs and creates a copy of cookiecutter.json.\"\"\"\n+ new_repo_dir = hooks.run_pre_prompt_hook(repo_dir='tests/test-pyshellhooks/')\n+ assert new_repo_dir.exists()\n+ bkp_config = new_repo_dir / \"_cookiecutter.json\"\n+ assert bkp_config.exists()\n+ remove_tmp_repo_dir(new_repo_dir)\ndiff --git a/tests/test_utils.py b/tests/test_utils.py\nindex fdd3692e2..ea60d661e 100644\n--- a/tests/test_utils.py\n+++ b/tests/test_utils.py\n@@ -221,3 +221,17 @@ def test_prompt_should_not_ask_if_no_input_and_rm_repo_file(mocker, tmp_path):\n assert not mock_read_user.called\n assert not repo_file.exists()\n assert deleted\n+\n+\n+def test_create_tmp_repo_dir(tmp_path):\n+ \"\"\"Verify `utils.create_tmp_repo_dir` creates a copy.\"\"\"\n+ repo_dir = Path(tmp_path) / 'bar'\n+ repo_dir.mkdir()\n+ subdirs = ('foo', 'bar', 'foobar')\n+ for name in subdirs:\n+ (repo_dir / name).mkdir()\n+\n+ new_repo_dir = utils.create_tmp_repo_dir(repo_dir)\n+\n+ assert new_repo_dir.exists()\n+ assert new_repo_dir.glob('*')\n"},"problem_statement":{"kind":"string","value":"Implement a pre_prompt hook that will run before prompts\n* Cookiecutter version: 2.3.1\r\n\r\n### Description:\r\n\r\nCreate a new hook, `pre_prompt`, that will be called before `cookiecutter` asks the user any question. This hook can be used to:\r\n\r\n- Pre-process the context\r\n- Run sanity checks\r\n\n"},"hints_text":{"kind":"string","value":""},"created_at":{"kind":"string","value":"2023-09-28T16:49:45Z"},"merged_at":{"kind":"string","value":"2023-09-29T11:43:32Z"},"PASS_TO_PASS":{"kind":"string","value":"[\"tests/test_prompt.py::TestPrompt::test_prompt_for_config_with_human_choices[context0]\", \"tests/test_generate_hooks.py::test_run_python_hooks\", \"tests/test_default_extensions.py::test_jinja2_slugify_extension\", \"tests/test_prompt.py::TestReadUserChoice::test_should_invoke_read_user_choice\", \"tests/test_generate_hooks.py::test_empty_hooks\", \"tests/test_utils.py::test_prompt_should_ask_and_exit_on_user_no_answer\", \"tests/replay/test_replay.py::test_raise_on_invalid_mode[invalid_kwargs0]\", \"tests/test_cli.py::test_cli_help[-h]\", \"tests/repository/test_is_repo_url.py::test_is_repo_url_for_remote_urls[https://bitbucket.org/pokoli/cookiecutter.hg]\", \"tests/replay/test_dump.py::test_type_error_if_not_dict_context\", \"tests/test_cli.py::test_debug_list_installed_templates_failure\", \"tests/test_cli.py::test_cli_verbose\", \"tests/test_cookiecutter_invocation.py::test_should_invoke_main\", \"tests/test_cli.py::test_cli_accept_hooks[--output-dir---accept-hooks=ask-no-False]\", \"tests/test_prompt.py::test_undefined_variable[Undefined variable in cookiecutter dict with choices]\", \"tests/test_abort_generate_on_hook_error.py::test_hooks_raises_errors[post_gen_hook_raises_error]\", \"tests/test_generate_hooks.py::test_ignore_shell_hooks\", \"tests/test_cli.py::test_user_config\", \"tests/test_generate_files.py::test_generate_files_with_linux_newline\", \"tests/test_utils.py::test_prompt_should_ask_and_rm_repo_dir\", \"tests/test_generate_files.py::test_generate_files_with_skip_if_file_exists\", \"tests/test_generate_context.py::test_apply_overwrites_in_nested_dict\", \"tests/test_specify_output_dir.py::test_api_invocation\", \"tests/repository/test_abbreviation_expansion.py::test_abbreviation_expansion[Correct expansion for builtin abbreviations (github)]\", \"tests/test_hooks.py::TestExternalHooks::test_run_hook\", \"tests/test_generate_files.py::test_generate_files_permissions\", \"tests/test_cli.py::test_cli_accept_hooks[-o---accept-hooks=no-None-False]\", \"tests/replay/test_load.py::test_value_error_if_key_missing_in_context\", \"tests/test_utils.py::test_prompt_should_ask_and_keep_repo_on_reuse\", \"tests/zipfile/test_unzip.py::test_unzip_protected_local_file_user_password\", \"tests/zipfile/test_unzip.py::test_unzip_protected_local_file_user_bad_password\", \"tests/test_generate_context.py::test_generate_context_decodes_non_ascii_chars\", \"tests/replay/test_replay.py::test_get_replay_file_name[bar.json]\", \"tests/test_time_extension.py::test_accept_valid_timezones[local]\", \"tests/test_hooks.py::TestFindHooks::test_hook_not_found\", \"tests/vcs/test_identify_repo.py::test_identify_raise_on_unknown_repo[foo+hg]\", \"tests/test_prompt.py::TestPrompt::test_prompt_for_config_with_human_choices[context2]\", \"tests/zipfile/test_unzip.py::test_bad_zip_file\", \"tests/test_read_user_dict.py::test_process_json_invalid_json\", \"tests/test_preferred_encoding.py::test_not_ascii\", \"tests/test_get_user_config.py::test_specify_config_path\", \"tests/test_read_user_dict.py::test_process_json_deep_dict\", \"tests/test_generate_file.py::test_generate_file_random_ascii_string[False-40]\", \"tests/replay/test_replay.py::test_get_replay_file_name[bar]\", \"tests/replay/test_load.py::test_io_error_if_no_replay_file\", \"tests/test_generate_files.py::test_raise_undefined_variable_file_name\", \"tests/test_generate_hooks.py::test_ignore_hooks_dirs\", \"tests/vcs/test_is_vcs_installed.py::test_is_vcs_installed[/usr/local/bin/git-True]\", \"tests/test_generate_file.py::test_generate_file\", \"tests/test_abort_generate_on_hook_error.py::test_hooks_raises_errors[pre_gen_hook_raises_error]\", \"tests/replay/test_dump.py::test_ioerror_if_replay_dir_creation_fails\", \"tests/vcs/test_identify_repo.py::test_identify_known_repo[git@gitorious.org:cookiecutter-gitorious/cookiecutter-gitorious.git-git-git@gitorious.org:cookiecutter-gitorious/cookiecutter-gitorious.git]\", \"tests/test_cli.py::test_cli_replay_generated\", \"tests/test_cookiecutter_local_no_input.py::test_cookiecutter_templated_context\", \"tests/zipfile/test_unzip.py::test_unzip_url_existing_cache\", \"tests/test_time_extension.py::test_substract_time\", \"tests/test_generate_context.py::test_generate_context_with_json_decoding_error\", \"tests/test_read_user_yes_no.py::test_click_invocation\", \"tests/test_cli.py::test_run_cookiecutter_on_overwrite_if_exists_and_replay[-f]\", \"tests/repository/test_abbreviation_expansion.py::test_abbreviation_expansion[Skip expansion (expansion not an abbreviation)]\", \"tests/test_read_user_choice.py::test_raise_if_options_is_not_a_non_empty_list\", \"tests/test_get_user_config.py::test_get_user_config_nonexistent\", \"tests/test_cli.py::test_default_user_config\", \"tests/zipfile/test_unzip.py::test_non_repo_zip_file\", \"tests/vcs/test_identify_repo.py::test_identify_known_repo[hg+https://bitbucket.org/foo/bar.hg-hg-https://bitbucket.org/foo/bar.hg]\", \"tests/test_read_user_choice.py::test_click_invocation[1-hello]\", \"tests/test_get_config.py::test_merge_configs\", \"tests/zipfile/test_unzip.py::test_unzip_url_with_empty_chunks\", \"tests/test_prompt.py::TestRenderVariable::test_convert_to_str[1-1]\", \"tests/replay/test_replay.py::test_raise_on_invalid_mode[invalid_kwargs2]\", \"tests/test_cli.py::test_local_extension_not_available\", \"tests/test_time_extension.py::test_accept_valid_timezones[utc]\", \"tests/test_generate_file.py::test_generate_file_random_ascii_string[False-10]\", \"tests/repository/test_is_repo_url.py::test_is_zip_file[/path/to/zipfile.zip]\", \"tests/zipfile/test_unzip.py::test_unzip_is_ok_to_reuse\", \"tests/test_cli.py::test_cli_extra_context\", \"tests/test_cli.py::test_cli_with_pre_prompt_hook\", \"tests/test_cli.py::test_run_cookiecutter_on_overwrite_if_exists_and_replay[--overwrite-if-exists]\", \"tests/test_cli.py::test_cli_overwrite_if_exists_when_output_dir_does_not_exist[--overwrite-if-exists]\", \"tests/vcs/test_clone.py::test_clone_should_invoke_vcs_command[git-https://github.com/hello/world.git-world]\", \"tests/test_generate_files.py::test_ensure_dir_is_templated_raises[{{foo]\", \"tests/replay/test_dump.py::test_type_error_if_no_template_name\", \"tests/test_generate_context.py::test_apply_overwrites_invalid_overwrite\", \"tests/test_cookiecutter_local_no_input.py::test_cookiecutter_no_input_return_rendered_file\", \"tests/vcs/test_identify_repo.py::test_identify_known_repo[https://github.com/pytest-dev/cookiecutter-pytest-plugin.git-git-https://github.com/pytest-dev/cookiecutter-pytest-plugin.git]\", \"tests/repository/test_abbreviation_expansion.py::test_abbreviation_expansion[Correct expansion for builtin abbreviations (bitbucket)]\", \"tests/test_read_user_dict.py::test_json_prompt_process_response\", \"tests/repository/test_determine_repo_dir_clones_repo.py::test_zipfile_unzip[/path/to/zipfile.zip-False]\", \"tests/repository/test_determine_repository_should_use_local_repo.py::test_local_repo_with_no_context_raises\", \"tests/repository/test_repository_has_cookiecutter_json.py::test_invalid_repository[tests/fake-repo-bad]\", \"tests/repository/test_is_repo_url.py::test_is_repo_url_for_remote_urls[gitolite@server:team/repo]\", \"tests/test_generate_files.py::test_raise_undefined_variable_file_name_existing_project\", \"tests/test_cookiecutter_local_no_input.py::test_cookiecutter_no_input_return_project_dir[tests/fake-repo-pre]\", \"tests/zipfile/test_unzip.py::test_empty_zip_file\", \"tests/test_generate_context.py::test_apply_overwrites_does_include_unused_variables\", \"tests/test_generate_files.py::test_raise_undefined_variable_file_content\", \"tests/test_generate_files.py::test_generate_files_absolute_path\", \"tests/test_generate_context.py::test_apply_overwrites_does_not_modify_choices_for_invalid_overwrite\", \"tests/test_generate_copy_without_render_override.py::test_generate_copy_without_render_extensions\", \"tests/test_get_user_config.py::test_expand_user_for_directories_in_config\", \"tests/replay/test_load.py::test_type_error_if_no_template_name\", \"tests/test_hooks.py::test_ignore_hook_backup_files\", \"tests/test_read_user_dict.py::test_process_json_valid_json\", \"tests/test_time_extension.py::test_accept_valid_timezones[Europe/Berlin]\", \"tests/test_cli.py::test_cli_error_on_existing_output_directory\", \"tests/test_find.py::test_find_template[fake-repo-pre2]\", \"tests/test_generate_context.py::test_generate_context[input_params2-expected_context2]\", \"tests/repository/test_is_repo_url.py::test_expand_abbreviations\", \"tests/vcs/test_clone.py::test_clone_handles_branch_typo[hg: abort: unknown revision 'unknown_branch'!]\", \"tests/test_cli.py::test_cli_replay_file\", \"tests/zipfile/test_unzip.py::test_unzip_url\", \"tests/test_generate_context.py::test_default_context_replacement_in_generate_context\", \"tests/test_generate_file.py::test_generate_file_with_true_condition\", \"tests/test_generate_hooks.py::test_run_shell_hooks\", \"tests/test_cookiecutter_local_no_input.py::test_cookiecutter_no_input_return_project_dir[tests/fake-repo-pre/]\", \"tests/repository/test_abbreviation_expansion.py::test_abbreviation_expansion[expansion_override_builtin]\", \"tests/test_generate_context.py::test_generate_context[input_params1-expected_context1]\", \"tests/repository/test_is_repo_url.py::test_is_zip_file[http://example.com/path/to/zipfile.zip]\", \"tests/test_generate_files.py::test_generate_files_output_dir\", \"tests/vcs/test_clone.py::test_clone_unknown_subprocess_error\", \"tests/test_generate_file.py::test_generate_file_handles_mixed_line_endings\", \"tests/test_time_extension.py::test_offset_with_format\", \"tests/repository/test_is_repo_url.py::test_is_repo_url_for_local_urls[c:\\\\\\\\users\\\\\\\\foo\\\\\\\\appdata\\\\\\\\local\\\\\\\\temp\\\\\\\\1\\\\\\\\pytest-0\\\\\\\\test_default_output_dir0\\\\\\\\template]\", \"tests/vcs/test_clone.py::test_clone_should_abort_if_user_does_not_want_to_reclone\", \"tests/test_cli.py::test_echo_undefined_variable_error\", \"tests/test_utils.py::test_work_in_without_path\", \"tests/test_get_user_config.py::test_default_config_from_env_variable\", \"tests/test_generate_context.py::test_generate_context[input_params3-expected_context3]\", \"tests/test_prompt.py::TestPrompt::test_prompt_for_templated_config\", \"tests/zipfile/test_unzip.py::test_unzip_should_abort_if_no_redownload\", \"tests/test_generate_file.py::test_generate_file_jsonify_filter\", \"tests/test_read_user_yes_no.py::test_yesno_prompt_process_response\", \"tests/test_utils.py::test_prompt_should_not_ask_if_no_input_and_rm_repo_dir\", \"tests/test_cli.py::test_debug_file_verbose\", \"tests/test_hooks.py::TestFindHooks::test_find_hook\", \"tests/test_templates.py::test_build_templates[super]\", \"tests/repository/test_determine_repository_should_use_local_repo.py::test_finds_local_repo\", \"tests/test_prompt.py::test_undefined_variable[Undefined variable in cookiecutter dict with dict_key]\", \"tests/test_main.py::test_original_cookiecutter_options_preserved_in__cookiecutter\", \"tests/repository/test_repository_has_cookiecutter_json.py::test_invalid_repository[tests/unknown-repo]\", \"tests/test_read_user_choice.py::test_click_invocation[3-foo]\", \"tests/test_prompt.py::TestPrompt::test_prompt_for_config_dict\", \"tests/test_generate_context.py::test_apply_overwrites_invalid_multichoice_values\", \"tests/test_read_user_dict.py::test_read_user_dict_default_value[\\\\n]\", \"tests/test_templates.py::test_build_templates[extends]\", \"tests/zipfile/test_unzip.py::test_unzip_protected_local_file_bad_environment_password\", \"tests/test_prompt.py::TestPrompt::test_internal_use_no_human_prompts\", \"tests/test_main.py::test_replay_load_template_name\", \"tests/test_find.py::test_find_template[fake-repo-pre]\", \"tests/test_custom_extensions_in_hooks.py::test_hook_with_extension[pre_gen_hook]\", \"tests/zipfile/test_unzip.py::test_unzip_local_file\", \"tests/test_time_extension.py::test_tz_is_required\", \"tests/test_get_user_config.py::test_get_user_config_valid\", \"tests/test_generate_files.py::test_ensure_dir_is_templated_raises[{foo}]\", \"tests/test_cli.py::test_cli_accept_hooks[-o---accept-hooks=yes-None-True]\", \"tests/test_generate_files.py::test_raise_undefined_variable_dir_name_existing_project\", \"tests/test_main.py::test_custom_replay_file\", \"tests/test_utils.py::test_force_delete\", \"tests/test_read_user_choice.py::test_click_invocation[2-world]\", \"tests/test_read_user_choice.py::test_click_invocation[4-bar]\", \"tests/vcs/test_identify_repo.py::test_identify_known_repo[https://github.com/audreyfeldroy/cookiecutter-pypackage.git-git-https://github.com/audreyfeldroy/cookiecutter-pypackage.git]\", \"tests/replay/test_load.py::test_run_json_load\", \"tests/repository/test_abbreviation_expansion.py::test_abbreviation_expansion[Correct expansion for builtin abbreviations (gitlab)]\", \"tests/zipfile/test_unzip.py::test_unzip_protected_local_file_user_password_with_noinput\", \"tests/test_generate_files.py::test_generate_files_with_trailing_newline_forced_to_linux_by_context\", \"tests/test_prompt.py::TestRenderVariable::test_convert_to_str_complex_variables[raw_var1-rendered_var1]\", \"tests/test_cli.py::test_cli_extra_context_invalid_format\", \"tests/test_hooks.py::TestExternalHooks::test_run_script_with_context\", \"tests/vcs/test_identify_repo.py::test_identify_raise_on_unknown_repo[foo+git]\", \"tests/test_utils.py::test_make_sure_path_exists\", \"tests/test_generate_files.py::test_generate_files_with_windows_newline_forced_to_linux_by_context\", \"tests/repository/test_is_repo_url.py::test_is_repo_url_for_remote_urls[git+https://private.com/gitrepo]\", \"tests/test_generate_context.py::test_apply_overwrites_sets_multichoice_values\", \"tests/test_cli.py::test_cli_with_json_decoding_error\", \"tests/replay/test_replay.py::test_main_does_not_invoke_dump_but_load\", \"tests/test_cli.py::test_cli_help[help]\", \"tests/vcs/test_identify_repo.py::test_identify_raise_on_unknown_repo[foo+bar]\", \"tests/test_cli.py::test_cli_accept_hooks[--output-dir---accept-hooks=yes-None-True]\", \"tests/test_read_repo_password.py::test_click_invocation\", \"tests/test_generate_files.py::test_keep_project_dir_on_failure\", \"tests/test_generate_files.py::test_generate_files_with_windows_newline\", \"tests/test_prompt.py::TestPromptChoiceForConfig::test_should_read_user_choice\", \"tests/test_hooks.py::TestFindHooks::test_unknown_hooks_dir\", \"tests/test_environment.py::test_env_should_come_with_default_extensions\", \"tests/test_cli.py::test_cli_accept_hooks[--output-dir---accept-hooks=ask-yes-True]\", \"tests/test_exceptions.py::test_undefined_variable_to_str\", \"tests/test_generate_files.py::test_ensure_dir_is_templated_raises[]\", \"tests/repository/test_determine_repository_should_use_local_repo.py::test_local_repo_typo\", \"tests/test_read_user_variable.py::test_input_loop_with_null_default_value\", \"tests/test_cookiecutter_local_no_input.py::test_cookiecutter_no_input_extra_context\", \"tests/test_utils.py::test_prompt_should_not_ask_if_no_input_and_rm_repo_file\", \"tests/test_read_user_dict.py::test_read_user_dict_default_value[\\\\ndefault\\\\n]\", \"tests/test_time_extension.py::test_add_time\", \"tests/test_generate_file.py::test_generate_file_random_ascii_string[True-10]\", \"tests/test_prompt.py::TestPrompt::test_prompt_for_config[Unicode default prompt/input]\", \"tests/test_generate_files.py::test_generate_files_with_jinja2_environment\", \"tests/vcs/test_clone.py::test_clone_should_invoke_vcs_command[git-git@host:gitoliterepo-gitoliterepo]\", \"tests/test_cli.py::test_cli_overwrite_if_exists_when_output_dir_does_not_exist[-f]\", \"tests/test_prompt.py::TestRenderVariable::test_convert_to_str_complex_variables[raw_var0-rendered_var0]\", \"tests/test_generate_file.py::test_generate_file_with_false_condition\", \"tests/vcs/test_clone.py::test_clone_should_invoke_vcs_command[git-git@gitlab.com:cookiecutter/cookiecutter.git-cookiecutter]\", \"tests/test_get_config.py::test_get_config_does_not_exist\", \"tests/test_prompt.py::TestPrompt::test_should_render_deep_dict\", \"tests/repository/test_determine_repo_dir_clones_repo.py::test_repository_url_with_no_context_file\", \"tests/test_cli.py::test_cli_overwrite_if_exists_when_output_dir_exists[-f]\", \"tests/repository/test_determine_repo_dir_finds_subdirectories.py::test_should_find_existing_cookiecutter\", \"tests/repository/test_is_repo_url.py::test_is_repo_url_for_local_urls[/audreyr/cookiecutter.git]\", \"tests/test_cli.py::test_cli_accept_hooks[-o---accept-hooks=ask-yes-True]\", \"tests/repository/test_repository_has_cookiecutter_json.py::test_valid_repository\", \"tests/test_prompt.py::TestPrompt::test_prompt_for_config_with_human_prompts[ASCII default prompt/input]\", \"tests/test_generate_context.py::test_apply_overwrites_sets_non_list_value\", \"tests/test_prompt.py::TestRenderVariable::test_convert_to_str_complex_variables[raw_var2-rendered_var2]\", \"tests/test_time_extension.py::test_environment_datetime_format\", \"tests/test_generate_files.py::test_ensure_dir_is_templated_raises[bar}}]\", \"tests/test_prompt.py::TestPrompt::test_dont_prompt_for_private_context_var\", \"tests/test_generate_context.py::test_generate_context[input_params0-expected_context0]\", \"tests/test_read_user_dict.py::test_process_json_non_dict\", \"tests/vcs/test_identify_repo.py::test_identify_known_repo[https://audreyr@bitbucket.org/audreyr/cookiecutter-bitbucket-hg-https://audreyr@bitbucket.org/audreyr/cookiecutter-bitbucket]\", \"tests/test_hooks.py::TestExternalHooks::test_run_failing_script_enoexec\", \"tests/repository/test_is_repo_url.py::test_is_repo_url_for_local_urls[/home/audreyr/cookiecutter]\", \"tests/repository/test_determine_repo_dir_clones_repo.py::test_repository_url_should_clone\", \"tests/test_prompt.py::TestRenderVariable::test_convert_to_str[True-True]\", \"tests/test_default_extensions.py::test_jinja2_uuid_extension\", \"tests/test_log.py::test_debug_file_logging\", \"tests/test_prompt.py::TestPrompt::test_prompt_for_config_with_human_choices[context1]\", \"tests/repository/test_is_repo_url.py::test_is_zip_file[https://example.com/path/to/zipfile.zip]\", \"tests/replay/test_replay.py::test_raise_on_invalid_mode[invalid_kwargs1]\", \"tests/test_cli.py::test_cli_accept_hooks[-o---accept-hooks=ask-no-False]\", \"tests/test_prompt.py::test_undefined_variable[Undefined variable in cookiecutter dict with key_value]\", \"tests/test_cli.py::test_cli_output_dir[-o]\", \"tests/vcs/test_identify_repo.py::test_identify_known_repo[git+https://github.com/pytest-dev/cookiecutter-pytest-plugin.git-git-https://github.com/pytest-dev/cookiecutter-pytest-plugin.git]\", \"tests/vcs/test_clone.py::test_clone_handles_branch_typo[error: pathspec 'unknown_branch' did not match any file(s) known to git]\", \"tests/vcs/test_clone.py::test_clone_handles_repo_typo[fatal: repository 'https://github.com/hackebro/cookiedozer' not found]\", \"tests/test_prompt.py::TestRenderVariable::test_convert_to_str[{{cookiecutter.project}}-foobar]\", \"tests/test_cli.py::test_cli_output_dir[--output-dir]\", \"tests/zipfile/test_unzip.py::test_unzip_protected_local_file_environment_password\", \"tests/test_prompt.py::TestPrompt::test_should_not_render_private_variables\", \"tests/zipfile/test_unzip.py::test_unzip_url_existing_cache_no_input\", \"tests/test_output_folder.py::test_exception_when_output_folder_exists\", \"tests/test_hooks.py::TestFindHooks::test_no_hooks\", \"tests/test_get_config.py::test_get_config_with_defaults\", \"tests/test_cli.py::test_cli_help[--help]\", \"tests/repository/test_is_repo_url.py::test_is_repo_url_for_remote_urls[git@github.com:audreyfeldroy/cookiecutter.git]\", \"tests/test_read_user_dict.py::test_should_raise_type_error\", \"tests/test_generate_hooks.py::test_run_failing_hook_removes_output_directory\", \"tests/test_cookiecutter_local_with_input.py::test_cookiecutter_input_extra_context\", \"tests/test_get_config.py::test_get_config\", \"tests/vcs/test_clone.py::test_clone_should_rstrip_trailing_slash_in_repo_url\", \"tests/test_utils.py::test_rmtree\", \"tests/test_utils.py::test_prompt_should_ask_and_keep_repo_on_no_reuse\", \"tests/vcs/test_identify_repo.py::test_identify_raise_on_unknown_repo[foobar]\", \"tests/vcs/test_is_vcs_installed.py::test_is_vcs_installed[False-False]\", \"tests/test_generate_file.py::test_generate_file_does_not_translate_crlf_newlines_to_lf\", \"tests/test_prompt.py::test_undefined_variable[Undefined variable in cookiecutter dict]\", \"tests/test_generate_files.py::test_generate_files_with_overwrite_if_exists\", \"tests/test_prompt.py::TestReadUserChoice::test_should_render_choices\", \"tests/test_cli.py::test_directory_repo\", \"tests/test_prompt.py::TestReadUserYesNo::test_should_invoke_read_user_yes_no[False]\", \"tests/test_get_user_config.py::test_expand_vars_for_directories_in_config\", \"tests/test_time_extension.py::test_utc_default_datetime_format\", \"tests/test_hooks.py::TestExternalHooks::test_run_script\", \"tests/test_cli.py::test_cli_overwrite_if_exists_when_output_dir_exists[--overwrite-if-exists]\", \"tests/test_cli.py::test_echo_unknown_extension_error\", \"tests/repository/test_determine_repo_dir_clones_repo.py::test_zipfile_unzip[https://example.com/path/to/zipfile.zip-True]\", \"tests/test_generate_copy_without_render.py::test_generate_copy_without_render_extensions\", \"tests/test_generate_file.py::test_generate_file_random_ascii_string[True-40]\", \"tests/test_generate_hooks.py::test_oserror_hooks\", \"tests/test_hooks.py::TestExternalHooks::test_run_failing_hook\", \"tests/test_generate_context.py::test_apply_overwrites_error_additional_values\", \"tests/test_read_user_dict.py::test_should_call_prompt_with_process_json\", \"tests/repository/test_is_repo_url.py::test_is_repo_url_for_remote_urls[hg+https://private.com/mercurialrepo]\", \"tests/test_cli.py::test_debug_file_non_verbose\", \"tests/test_generate_files.py::test_generate_files_binaries\", \"tests/replay/test_dump.py::test_value_error_if_key_missing_in_context\", \"tests/repository/test_determine_repo_dir_finds_subdirectories.py::test_local_repo_typo\", \"tests/vcs/test_is_vcs_installed.py::test_is_vcs_installed[None-False]\", \"tests/test_log.py::test_debug_stdout_logging\", \"tests/replay/test_replay.py::test_main_does_not_invoke_load_but_dump\", \"tests/vcs/test_clone.py::test_clone_should_raise_if_vcs_not_installed\", \"tests/test_cookiecutter_local_with_input.py::test_cookiecutter_local_with_input\", \"tests/test_prompt.py::TestPrompt::test_should_render_deep_dict_with_human_prompts\", \"tests/test_repo_not_found.py::test_should_raise_error_if_repo_does_not_exist\", \"tests/test_read_user_dict.py::test_should_not_load_json_from_sentinel\", \"tests/test_cookiecutter_local_no_input.py::test_cookiecutter_template_cleanup\", \"tests/test_get_config.py::test_invalid_config\", \"tests/test_generate_file.py::test_generate_file_does_not_translate_lf_newlines_to_crlf\", \"tests/test_generate_files.py::test_raise_undefined_variable_project_dir\", \"tests/test_get_user_config.py::test_default_config_path\", \"tests/test_cli.py::test_local_extension\", \"tests/test_prompt.py::TestReadUserChoice::test_should_invoke_read_user_variable\", \"tests/test_get_user_config.py::test_get_user_config_invalid\", \"tests/vcs/test_clone.py::test_clone_should_invoke_vcs_command[hg-https://bitbucket.org/foo/bar-bar]\", \"tests/repository/test_is_repo_url.py::test_is_repo_url_for_remote_urls[file://server/path/to/repo.git]\", \"tests/test_default_extensions.py::test_jinja2_time_extension\", \"tests/test_cookiecutter_local_no_input.py::test_cookiecutter_dict_values_in_context\", \"tests/test_read_user_variable.py::test_click_invocation\", \"tests/test_cli.py::test_cli_replay\", \"tests/test_prompt.py::TestRenderVariable::test_convert_to_str[None-None]\", \"tests/test_cookiecutter_nested_templates.py::test_cookiecutter_nested_templates\", \"tests/test_cli.py::test_debug_list_installed_templates\", \"tests/test_cli.py::test_cli\", \"tests/repository/test_abbreviation_expansion.py::test_abbreviation_expansion[Expansion prefix]\", \"tests/test_log.py::test_info_stdout_logging\", \"tests/test_main.py::test_replay_dump_template_name\", \"tests/repository/test_abbreviation_expansion.py::test_abbreviation_expansion[Simple expansion]\", \"tests/repository/test_determine_repo_dir_finds_existing_cookiecutter.py::test_should_find_existing_cookiecutter\", \"tests/test_generate_hooks.py::test_run_python_hooks_cwd\", \"tests/vcs/test_identify_repo.py::test_identify_known_repo[https://github.com/audreyfeldroy/cookiecutter-pypackage-git-https://github.com/audreyfeldroy/cookiecutter-pypackage]\", \"tests/test_templates.py::test_build_templates[no-templates]\", \"tests/test_utils.py::test_make_sure_path_exists_correctly_handle_os_error\", \"tests/vcs/test_clone.py::test_clone_should_invoke_vcs_command[git-git@github.com:cookiecutter/cookiecutter.git-cookiecutter]\", \"tests/test_custom_extensions_in_hooks.py::test_hook_with_extension[post_gen_hook]\", \"tests/repository/test_abbreviation_expansion.py::test_abbreviation_expansion_prefix_not_0_in_braces\", \"tests/test_prompt.py::TestPrompt::test_should_render_dict\", \"tests/test_generate_files.py::test_generate_files_with_overwrite_if_exists_with_skip_if_file_exists\", \"tests/test_templates.py::test_build_templates[include]\", \"tests/vcs/test_identify_repo.py::test_identify_known_repo[https://bitbucket.org/foo/bar.hg-hg-https://bitbucket.org/foo/bar.hg]\", \"tests/test_utils.py::test_work_in\", \"tests/vcs/test_clone.py::test_clone_should_silent_exit_if_ok_to_reuse\", \"tests/test_get_user_config.py::test_force_default_config\", \"tests/test_hooks.py::TestExternalHooks::test_run_script_cwd\", \"tests/test_environment.py::test_env_should_raise_for_unknown_extension\", \"tests/test_generate_files.py::test_raise_undefined_variable_dir_name\", \"tests/vcs/test_identify_repo.py::test_identify_raise_on_unknown_repo[http://norepotypespecified.com]\", \"tests/repository/test_determine_repo_dir_clones_repo.py::test_zipfile_unzip[http://example.com/path/to/zipfile.zip-True]\", \"tests/vcs/test_clone.py::test_clone_handles_repo_typo[hg: abort: HTTP Error 404: Not Found]\", \"tests/test_generate_hooks.py::test_run_failing_hook_preserves_existing_output_directory\", \"tests/test_generate_files.py::test_generate_files_nontemplated_exception\", \"tests/test_prompt.py::TestReadUserYesNo::test_boolean_parameter_no_input\", \"tests/test_generate_file.py::test_generate_file_verbose_template_syntax_error\", \"tests/test_output_folder.py::test_output_folder\", \"tests/test_specify_output_dir.py::test_default_output_dir\", \"tests/test_hooks.py::TestExternalHooks::test_run_failing_script\", \"tests/test_prompt.py::TestReadUserYesNo::test_should_invoke_read_user_yes_no[True]\", \"tests/test_generate_context.py::test_apply_overwrites_sets_default_for_choice_variable\", \"tests/repository/test_abbreviation_expansion.py::test_abbreviation_expansion[expansion_prefix_ignores_suffix]\", \"tests/test_prompt.py::TestPromptChoiceForConfig::test_should_return_first_option_if_no_input\", \"tests/test_cli.py::test_default_user_config_overwrite\", \"tests/test_cli.py::test_cli_version[--version]\", \"tests/repository/test_is_repo_url.py::test_is_repo_url_for_remote_urls[https://github.com/cookiecutter/cookiecutter.git]\", \"tests/test_cli.py::test_cli_exit_on_noinput_and_replay\", \"tests/test_cli.py::test_cli_accept_hooks[--output-dir---accept-hooks=no-None-False]\", \"tests/test_prompt.py::TestPrompt::test_should_render_private_variables_with_two_underscores\", \"tests/replay/test_dump.py::test_run_json_dump\", \"tests/test_prompt.py::TestPrompt::test_prompt_for_config[ASCII default prompt/input]\", \"tests/test_utils.py::test_prompt_should_ask_and_rm_repo_file\", \"tests/test_cli.py::test_cli_version[-V]\", \"tests/test_generate_files.py::test_generate_files\", \"tests/vcs/test_is_vcs_installed.py::test_is_vcs_installed[-False]\", \"tests/test_prompt.py::TestRenderVariable::test_convert_to_str[foo-foo]\"]"},"PASS_TO_FAIL":{"kind":"string","value":"[]"},"FAIL_TO_PASS":{"kind":"string","value":"[\"tests/test_pre_prompt_hooks.py::test_run_pre_prompt_shell_hook\", \"tests/test_utils.py::test_create_tmp_repo_dir\", \"tests/test_cli.py::test_cli_with_pre_prompt_hook_fail\", \"tests/test_pre_prompt_hooks.py::test_run_pre_prompt_python_hook_fail\", \"tests/test_generate_hooks.py::test_deprecate_run_hook_from_repo_dir\", \"tests/test_pre_prompt_hooks.py::test_run_pre_prompt_python_hook\"]"},"FAIL_TO_FAIL":{"kind":"string","value":"[]"},"install":{"kind":"string","value":"{\"install\": [\"uv pip install -e .\"], \"pre_install\": [\"tee tox.ini <`_ to determine the correct ``run_as_docker``.\n+\n+Input Validation\n+~~~~~~~~~~~~~~~~\n+If a non valid value is inserted to a boolean field, the following error will be printed:\n+\n+.. code-block:: bash\n+\n+ run_as_docker [True]: docker\n+ Error: docker is not a valid boolean\n+\ndiff --git a/docs/advanced/index.rst b/docs/advanced/index.rst\nindex 216731d91..89150af5d 100644\n--- a/docs/advanced/index.rst\n+++ b/docs/advanced/index.rst\n@@ -18,6 +18,7 @@ Various advanced topics regarding cookiecutter usage.\n copy_without_render\n replay\n choice_variables\n+ boolean_variables\n dict_variables\n templates\n template_extensions\n"},"test_patch":{"kind":"string","value":"diff --git a/tests/test_prompt.py b/tests/test_prompt.py\nindex 037591dd4..9e85bcd9e 100644\n--- a/tests/test_prompt.py\n+++ b/tests/test_prompt.py\n@@ -21,7 +21,7 @@ class TestRenderVariable:\n 'raw_var, rendered_var',\n [\n (1, '1'),\n- (True, 'True'),\n+ (True, True),\n ('foo', 'foo'),\n ('{{cookiecutter.project}}', 'foobar'),\n (None, None),\n@@ -39,7 +39,7 @@ def test_convert_to_str(self, mocker, raw_var, rendered_var):\n assert result == rendered_var\n \n # Make sure that non None non str variables are converted beforehand\n- if raw_var is not None:\n+ if raw_var is not None and not isinstance(raw_var, bool):\n if not isinstance(raw_var, str):\n raw_var = str(raw_var)\n from_string.assert_called_once_with(raw_var)\n@@ -49,10 +49,10 @@ def test_convert_to_str(self, mocker, raw_var, rendered_var):\n @pytest.mark.parametrize(\n 'raw_var, rendered_var',\n [\n- ({1: True, 'foo': False}, {'1': 'True', 'foo': 'False'}),\n+ ({1: True, 'foo': False}, {'1': True, 'foo': False}),\n (\n {'{{cookiecutter.project}}': ['foo', 1], 'bar': False},\n- {'foobar': ['foo', '1'], 'bar': 'False'},\n+ {'foobar': ['foo', '1'], 'bar': False},\n ),\n (['foo', '{{cookiecutter.project}}', None], ['foo', 'foobar', None]),\n ],\n@@ -380,6 +380,42 @@ def test_should_read_user_choice(self, mocker, choices, context):\n assert expected_choice == actual_choice\n \n \n+class TestReadUserYesNo(object):\n+ \"\"\"Class to unite boolean prompt related tests.\"\"\"\n+\n+ @pytest.mark.parametrize(\n+ 'run_as_docker',\n+ (\n+ True,\n+ False,\n+ ),\n+ )\n+ def test_should_invoke_read_user_yes_no(self, mocker, run_as_docker):\n+ \"\"\"Verify correct function called for boolean variables.\"\"\"\n+ read_user_yes_no = mocker.patch('cookiecutter.prompt.read_user_yes_no')\n+ read_user_yes_no.return_value = run_as_docker\n+\n+ read_user_variable = mocker.patch('cookiecutter.prompt.read_user_variable')\n+\n+ context = {'cookiecutter': {'run_as_docker': run_as_docker}}\n+\n+ cookiecutter_dict = prompt.prompt_for_config(context)\n+\n+ assert not read_user_variable.called\n+ read_user_yes_no.assert_called_once_with('run_as_docker', run_as_docker)\n+ assert cookiecutter_dict == {'run_as_docker': run_as_docker}\n+\n+ def test_boolean_parameter_no_input(self):\n+ \"\"\"Verify boolean parameter sent to prompt for config with no input.\"\"\"\n+ context = {\n+ 'cookiecutter': {\n+ 'run_as_docker': True,\n+ }\n+ }\n+ cookiecutter_dict = prompt.prompt_for_config(context, no_input=True)\n+ assert cookiecutter_dict == context['cookiecutter']\n+\n+\n @pytest.mark.parametrize(\n 'context',\n (\n"},"problem_statement":{"kind":"string","value":"Boolean parameters parsed as String\n* Cookiecutter version: 2.0\r\n* Template project url: https://github.com/cookiecutter/cookiecutter-django\r\n* Python version: 3.8\r\n* Operating System: Linux\r\n\r\n### Description:\r\n\r\nWe want to be able to ask the user for true/false questions.\r\nThe example template shows the current usage of boolean parameters, in {{cookiecutter.project_slug}}/.github/dependabot.yml:\r\n`{%- if cookiecutter.use_docker == 'y' %}` \r\nThis usage is rather problematic, as it is requires the user to enter exactly 'y'. If the user enters \"yes\" or \"true\" it won't be valid.\r\n\r\nWe want to add the ability to specify boolean parameters as \"true\" JSON booleans and naturally prompt for them.\r\nThus the usage of booleans in the template's cookiecutter.json would look like:\r\n`\"use_docker\": false`\r\nInstead of the current usage, which is:\r\n `\"use_docker\": \"n\"`\r\n\r\nCurrently this example boolean which is specified in the cookiecutter.json file is parsed as a string and thus checking for it would require a string comparison, which raises and exact same problem as the user would have to explicitly enter \"true\" or \"false\" instead of a boolean.\r\n\r\nThis would also simplify the usage of the boolean parameters in files, so the above shown dependabot.yml would change to:\r\n`{%- if cookiecutter.use_docker %}` \n"},"hints_text":{"kind":"string","value":""},"created_at":{"kind":"string","value":"2021-12-19T22:48:20Z"},"merged_at":{"kind":"string","value":"2022-06-06T10:41:39Z"},"PASS_TO_PASS":{"kind":"string","value":"[\"tests/test_prompt.py::TestPromptChoiceForConfig::test_should_read_user_choice\", \"tests/test_prompt.py::TestPrompt::test_dont_prompt_for_private_context_var\", \"tests/test_prompt.py::TestPrompt::test_prompt_for_config_dict\", \"tests/test_prompt.py::TestReadUserChoice::test_should_invoke_read_user_choice\", \"tests/test_prompt.py::TestPrompt::test_should_render_dict\", \"tests/test_prompt.py::TestPromptChoiceForConfig::test_should_return_first_option_if_no_input\", \"tests/test_prompt.py::test_undefined_variable[Undefined variable in cookiecutter dict with choices]\", \"tests/test_prompt.py::TestPrompt::test_should_render_deep_dict\", \"tests/test_prompt.py::TestRenderVariable::test_convert_to_str[None-None]\", \"tests/test_prompt.py::test_undefined_variable[Undefined variable in cookiecutter dict]\", \"tests/test_prompt.py::TestReadUserChoice::test_should_render_choices\", \"tests/test_prompt.py::TestPrompt::test_prompt_for_templated_config\", \"tests/test_prompt.py::test_undefined_variable[Undefined variable in cookiecutter dict with key_value]\", \"tests/test_prompt.py::TestRenderVariable::test_convert_to_str[{{cookiecutter.project}}-foobar]\", \"tests/test_prompt.py::TestPrompt::test_prompt_for_config[Unicode default prompt/input]\", \"tests/test_prompt.py::TestPrompt::test_should_render_private_variables_with_two_underscores\", \"tests/test_prompt.py::TestPrompt::test_prompt_for_config[ASCII default prompt/input]\", \"tests/test_prompt.py::TestRenderVariable::test_convert_to_str[1-1]\", \"tests/test_prompt.py::TestPrompt::test_should_not_render_private_variables\", \"tests/test_prompt.py::test_undefined_variable[Undefined variable in cookiecutter dict with dict_key]\", \"tests/test_prompt.py::TestRenderVariable::test_convert_to_str_complex_variables[raw_var2-rendered_var2]\", \"tests/test_prompt.py::TestReadUserChoice::test_should_invoke_read_user_variable\", \"tests/test_prompt.py::TestRenderVariable::test_convert_to_str[foo-foo]\"]"},"PASS_TO_FAIL":{"kind":"string","value":"[]"},"FAIL_TO_PASS":{"kind":"string","value":"[\"tests/test_prompt.py::TestRenderVariable::test_convert_to_str[True-True]\", \"tests/test_prompt.py::TestReadUserYesNo::test_should_invoke_read_user_yes_no[False]\", \"tests/test_prompt.py::TestReadUserYesNo::test_boolean_parameter_no_input\", \"tests/test_prompt.py::TestRenderVariable::test_convert_to_str_complex_variables[raw_var1-rendered_var1]\", \"tests/test_prompt.py::TestReadUserYesNo::test_should_invoke_read_user_yes_no[True]\", \"tests/test_prompt.py::TestRenderVariable::test_convert_to_str_complex_variables[raw_var0-rendered_var0]\"]"},"FAIL_TO_FAIL":{"kind":"string","value":"[]"},"install":{"kind":"string","value":"{\"install\": [\"uv pip install -e .\"], \"pre_install\": [\"tee tox.ini <=0.15.2',\n 'binaryornot>=0.2.0',\n 'jinja2>=2.7',\n- 'click>=5.0',\n+ 'click>=7.0',\n 'whichcraft>=0.4.0',\n 'poyo>=0.1.0',\n 'jinja2-time>=0.1.0',\n"},"test_patch":{"kind":"string","value":"diff --git a/tests/test_read_user_choice.py b/tests/test_read_user_choice.py\nindex 0f9e003a1..0e81c2d75 100644\n--- a/tests/test_read_user_choice.py\n+++ b/tests/test_read_user_choice.py\n@@ -29,7 +29,8 @@ def test_click_invocation(mocker, user_choice, expected_value):\n prompt.assert_called_once_with(\n EXPECTED_PROMPT,\n type=click.Choice(OPTIONS),\n- default='1'\n+ default='1',\n+ show_choices=False\n )\n \n \n"},"problem_statement":{"kind":"string","value":"Choice options are redundant using cookiecutter with latest click package\n* Cookiecutter version: 1.6.0 -- installed via `pip install`\r\n* Template project url: n/a\r\n* Python version: 3.7\r\n* Operating System: Windows 10\r\n\r\n### Description:\r\n\r\nIf cookiecutter.json has the following:\r\n```json\r\n{\r\n \"my_choice\": [\"a\",\"b\"]\r\n}\r\n```\r\nThen running cookiecutter gives the following prompt:\r\n```\r\nSelect my_choice:\r\n1 - a\r\n2 - b\r\nChoose from 1, 2 (1, 2) [1]:\r\n```\r\n\r\nNote how the choices are repeated twice in the last line. This is because the [Click API](https://click.palletsprojects.com/en/7.x/api/) has been updated to 7.0 and automatically shows the choices to the user in parentheses. This is redundant. \r\n\r\n### Solution\r\nThe text passed to the `click.prompt` function should be changed to set `show_choices = False` or it should be changed to not show the choices and let the Click API do so instead.\r\n\n"},"hints_text":{"kind":"string","value":""},"created_at":{"kind":"string","value":"2019-05-03T22:42:29Z"},"merged_at":{"kind":"string","value":"2019-08-10T17:06:47Z"},"PASS_TO_PASS":{"kind":"string","value":"[]"},"PASS_TO_FAIL":{"kind":"string","value":"[]"},"FAIL_TO_PASS":{"kind":"string","value":"[\"tests/test_read_user_choice.py::test_raise_if_options_is_not_a_non_empty_list\", \"tests/test_read_user_choice.py::test_click_invocation[4-bar]\", \"tests/test_read_user_choice.py::test_click_invocation[1-hello]\", \"tests/test_read_user_choice.py::test_click_invocation[3-foo]\", \"tests/test_read_user_choice.py::test_click_invocation[2-world]\"]"},"FAIL_TO_FAIL":{"kind":"string","value":"[]"},"install":{"kind":"string","value":"{\"install\": [], \"pre_install\": [\"tee tox.ini <= 16.7.9\\n pip >= 19.3.1\\n\\n[testenv]\\npassenv =\\n LC_ALL\\n LANG\\n HOME\\ncommands =\\n pip install -e .\\n pytest --color=no -rA --tb=no -p no:cacheprovider --cov=cookiecutter {posargs:tests}\\ndeps = -rtest_requirements.txt\\nskip_install = true\\n\\n[testenv:lint]\\ncommands =\\n python -m pre_commit run {posargs:--all}\\ndeps = pre-commit>=1.20.0\\nskip_install = true\\nusedevelop = false\\n\\n[testenv:cov-report]\\n; This coverage only report run. Only for local development. Not used at CI/CD\\ncommands = pytest --color=no -rA --tb=no -p no:cacheprovider --cov=cookiecutter --cov-report=term --cov-report=html\\nEOF_1234810234\"], \"python\": \"3.7\", \"pip_packages\": [\"attrs==19.1.0\", \"filelock==3.0.12\", \"importlib-metadata==0.19\", \"packaging==19.1\", \"pip==22.3.1\", \"pluggy==0.12.0\", \"py==1.8.0\", \"pyparsing==2.4.2\", \"setuptools==65.6.3\", \"six==1.12.0\", \"toml==0.10.0\", \"tox==3.13.2\", \"virtualenv==16.7.2\", \"wheel==0.38.4\", \"zipp==0.5.2\"]}"},"test_framework":{"kind":"string","value":"tox -e py37 -- "},"test_commands":{"kind":"null"},"version":{"kind":"null"},"environment_setup_commit":{"kind":"null"},"docker_image_root":{"kind":"string","value":"swa-bench:sw.eval"}}},{"rowIdx":336,"cells":{"repo":{"kind":"string","value":"nvbn/thefuck"},"instance_id":{"kind":"string","value":"nvbn__thefuck-1316"},"base_commit":{"kind":"string","value":"f1b7d879bdfc712c14de1e40f00c52ed4a0437dd"},"patch":{"kind":"string","value":"diff --git a/thefuck/rules/brew_install.py b/thefuck/rules/brew_install.py\nindex 5848764cc..d285a2d46 100644\n--- a/thefuck/rules/brew_install.py\n+++ b/thefuck/rules/brew_install.py\n@@ -1,42 +1,24 @@\n-import os\n import re\n-from thefuck.utils import get_closest, replace_argument\n-from thefuck.specific.brew import get_brew_path_prefix, brew_available\n+from thefuck.utils import for_app\n+from thefuck.specific.brew import brew_available\n \n enabled_by_default = brew_available\n \n \n-def _get_formulas():\n- # Formulas are based on each local system's status\n- try:\n- brew_path_prefix = get_brew_path_prefix()\n- brew_formula_path = brew_path_prefix + '/Library/Formula'\n-\n- for file_name in os.listdir(brew_formula_path):\n- if file_name.endswith('.rb'):\n- yield file_name[:-3]\n- except Exception:\n- pass\n-\n-\n-def _get_similar_formula(formula_name):\n- return get_closest(formula_name, _get_formulas(), cutoff=0.85)\n+def _get_suggestions(str):\n+ suggestions = str.replace(\" or \", \", \").split(\", \")\n+ return suggestions\n \n \n+@for_app('brew', at_least=2)\n def match(command):\n- is_proper_command = ('brew install' in command.script and\n- 'No available formula' in command.output)\n-\n- if is_proper_command:\n- formula = re.findall(r'Error: No available formula for ([a-z]+)',\n- command.output)[0]\n- return bool(_get_similar_formula(formula))\n- return False\n+ is_proper_command = ('install' in command.script and\n+ 'No available formula' in command.output and\n+ 'Did you mean' in command.output)\n+ return is_proper_command\n \n \n def get_new_command(command):\n- not_exist_formula = re.findall(r'Error: No available formula for ([a-z]+)',\n- command.output)[0]\n- exist_formula = _get_similar_formula(not_exist_formula)\n-\n- return replace_argument(command.script, not_exist_formula, exist_formula)\n+ matcher = re.search('Warning: No available formula with the name \"(?:[^\"]+)\". Did you mean (.+)\\\\?', command.output)\n+ suggestions = _get_suggestions(matcher.group(1))\n+ return [\"brew install \" + formula for formula in suggestions]\n"},"test_patch":{"kind":"string","value":"diff --git a/tests/rules/test_brew_install.py b/tests/rules/test_brew_install.py\nindex cd6e028b6..e56cf7647 100644\n--- a/tests/rules/test_brew_install.py\n+++ b/tests/rules/test_brew_install.py\n@@ -1,17 +1,26 @@\n import pytest\n-from thefuck.rules.brew_install import match, get_new_command\n-from thefuck.rules.brew_install import _get_formulas\n+from thefuck.rules.brew_install import match, get_new_command, _get_suggestions\n from thefuck.types import Command\n \n \n @pytest.fixture\n-def brew_no_available_formula():\n- return '''Error: No available formula for elsticsearch '''\n+def brew_no_available_formula_one():\n+ return '''Warning: No available formula with the name \"giss\". Did you mean gist?'''\n+\n+\n+@pytest.fixture\n+def brew_no_available_formula_two():\n+ return '''Warning: No available formula with the name \"elasticserar\". Did you mean elasticsearch or elasticsearch@6?'''\n+\n+\n+@pytest.fixture\n+def brew_no_available_formula_three():\n+ return '''Warning: No available formula with the name \"gitt\". Did you mean git, gitg or gist?'''\n \n \n @pytest.fixture\n def brew_install_no_argument():\n- return '''This command requires a formula argument'''\n+ return '''Install a formula or cask. Additional options specific to a formula may be'''\n \n \n @pytest.fixture\n@@ -19,28 +28,38 @@ def brew_already_installed():\n return '''Warning: git-2.3.5 already installed'''\n \n \n-def _is_not_okay_to_test():\n- return 'elasticsearch' not in _get_formulas()\n+def test_suggestions():\n+ assert _get_suggestions(\"one\") == ['one']\n+ assert _get_suggestions(\"one or two\") == ['one', 'two']\n+ assert _get_suggestions(\"one, two or three\") == ['one', 'two', 'three']\n \n \n-@pytest.mark.skipif(_is_not_okay_to_test(),\n- reason='No need to run if there\\'s no formula')\n-def test_match(brew_no_available_formula, brew_already_installed,\n+def test_match(brew_no_available_formula_one, brew_no_available_formula_two,\n+ brew_no_available_formula_three, brew_already_installed,\n brew_install_no_argument):\n- assert match(Command('brew install elsticsearch',\n- brew_no_available_formula))\n+ assert match(Command('brew install giss',\n+ brew_no_available_formula_one))\n+ assert match(Command('brew install elasticserar',\n+ brew_no_available_formula_two))\n+ assert match(Command('brew install gitt',\n+ brew_no_available_formula_three))\n assert not match(Command('brew install git',\n brew_already_installed))\n assert not match(Command('brew install', brew_install_no_argument))\n \n \n-@pytest.mark.skipif(_is_not_okay_to_test(),\n- reason='No need to run if there\\'s no formula')\n-def test_get_new_command(brew_no_available_formula):\n- assert get_new_command(Command('brew install elsticsearch',\n- brew_no_available_formula))\\\n- == 'brew install elasticsearch'\n+def test_get_new_command(brew_no_available_formula_one, brew_no_available_formula_two,\n+ brew_no_available_formula_three):\n+ assert get_new_command(Command('brew install giss',\n+ brew_no_available_formula_one))\\\n+ == ['brew install gist']\n+ assert get_new_command(Command('brew install elasticsear',\n+ brew_no_available_formula_two))\\\n+ == ['brew install elasticsearch', 'brew install elasticsearch@6']\n+ assert get_new_command(Command('brew install gitt',\n+ brew_no_available_formula_three))\\\n+ == ['brew install git', 'brew install gitg', 'brew install gist']\n \n assert get_new_command(Command('brew install aa',\n- brew_no_available_formula))\\\n+ brew_no_available_formula_one))\\\n != 'brew install aha'\n"},"problem_statement":{"kind":"string","value":"IndexError when using thefuck with brew install command\n\r\n\r\n\r\n\r\nThe output of `thefuck --version` (something like `The Fuck 3.1 using Python\r\n3.5.0 and Bash 4.4.12(1)-release`):\r\n\r\n The Fuck 3.32 using Python 3.10.4 and ZSH 5.8.1\r\n\r\nYour system (Debian 7, ArchLinux, Windows, etc.):\r\n\r\n macOS 12.4\r\n\r\nHow to reproduce the bug:\r\n\r\n 1. type in brew install ______ (insert program here that is not a valid formula or cask)\r\n 2. Trigger thefuck using your favorite alias\r\n 3. Warning appears, text below:\r\n\r\n```\r\n [WARN] Rule brew_install:\r\nTraceback (most recent call last):\r\n File \"/opt/homebrew/Cellar/thefuck/3.32/libexec/lib/python3.10/site-packages/thefuck/types.py\", line 181, in is_match\r\n if self.match(command):\r\n File \"/opt/homebrew/Cellar/thefuck/3.32/libexec/lib/python3.10/site-packages/thefuck/rules/brew_install.py\", line 31, in match\r\n formula = re.findall(r'Error: No available formula for ([a-z]+)',\r\nIndexError: list index out of range\r\n----------------------------\r\n```\r\n\r\nThe output of The Fuck with `THEFUCK_DEBUG=true` exported (typically execute `export THEFUCK_DEBUG=true` in your shell before The Fuck):\r\n\r\n```\r\n DEBUG: Run with settings: {'alter_history': True,\r\n 'debug': True,\r\n 'env': {'GIT_TRACE': '1', 'LANG': 'C', 'LC_ALL': 'C'},\r\n 'exclude_rules': [],\r\n 'excluded_search_path_prefixes': [],\r\n 'history_limit': None,\r\n 'instant_mode': False,\r\n 'no_colors': False,\r\n 'num_close_matches': 3,\r\n 'priority': {},\r\n 'repeat': False,\r\n 'require_confirmation': True,\r\n 'rules': [],\r\n 'slow_commands': ['lein', 'react-native', 'gradle', './gradlew', 'vagrant'],\r\n 'user_dir': PosixPath('/Users/username/.config/thefuck'),\r\n 'wait_command': 3,\r\n 'wait_slow_command': 15}\r\nDEBUG: Received output: Warning: No available formula with the name \"vs-code\".\r\nError: No similarly named formulae found.\r\n==> Searching for similarly named formulae...\r\n==> Searching for a previously deleted formula (in the last month)...\r\nError: No previously deleted formula found.\r\n==> Searching taps on GitHub...\r\nError: No formulae found in taps.\r\n\r\nDEBUG: Call: brew install vs-code; with env: {'TERM_SESSION_ID': 'w0t0p0:67B78AAC-50B2-4C5B-A744-6FD9F3733C4E', 'SSH_AUTH_SOCK': '/private/tmp/com.apple.launchd.Eefl81qqDp/Listeners', 'LC_TERMINAL_VERSION': '3.4.15', 'COLORFGBG': '15;0', 'ITERM_PROFILE': 'Default', 'XPC_FLAGS': '0x0', 'LANG': 'C', 'PWD': '/Users/username', 'SHELL': '/bin/zsh', '__CFBundleIdentifier': 'com.googlecode.iterm2', 'SECURITYSESSIONID': '186ad', 'TERM_PROGRAM_VERSION': '3.4.15', 'TERM_PROGRAM': 'iTerm.app', 'PATH': '/opt/homebrew/bin:/opt/homebrew/sbin:/Library/Frameworks/Python.framework/Versions/3.10/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin', 'LC_TERMINAL': 'iTerm2', 'COLORTERM': 'truecolor', 'COMMAND_MODE': 'unix2003', 'TERM': 'xterm-256color', 'HOME': '/Users/username', 'TMPDIR': '/var/folders/m8/b4gbyd115jq2k438cv0dxxbw0000gn/T/', 'USER': 'username', 'XPC_SERVICE_NAME': '0', 'LOGNAME': 'username', 'LaunchInstanceID': '569101DB-C0FF-4A34-97AD-BA371DBE6A42', '__CF_USER_TEXT_ENCODING': '0x1F5:0x0:0x0', 'ITERM_SESSION_ID': 'w0t0p0:67B78AAC-50B2-4C5B-A744-6FD9F3733C4E', 'SHLVL': '1', 'OLDPWD': '/Users/username', 'HOMEBREW_PREFIX': '/opt/homebrew', 'HOMEBREW_CELLAR': '/opt/homebrew/Cellar', 'HOMEBREW_REPOSITORY': '/opt/homebrew', 'MANPATH': '/opt/homebrew/share/man::', 'INFOPATH': '/opt/homebrew/share/info:', 'ZSH': '/Users/username/.oh-my-zsh', 'PAGER': 'less', 'LESS': '-R', 'LSCOLORS': 'Gxfxcxdxbxegedabagacad', 'P9K_SSH': '0', 'P9K_TTY': 'old', '_P9K_TTY': '/dev/ttys000', 'TF_SHELL': 'zsh', 'TF_ALIAS': 'fuck', 'TF_SHELL_ALIASES': '-=\\'cd -\\'\\n...=../..\\n....=../../..\\n.....=../../../..\\n......=../../../../..\\n1=\\'cd -1\\'\\n2=\\'cd -2\\'\\n3=\\'cd -3\\'\\n4=\\'cd -4\\'\\n5=\\'cd -5\\'\\n6=\\'cd -6\\'\\n7=\\'cd -7\\'\\n8=\\'cd -8\\'\\n9=\\'cd -9\\'\\n_=\\'sudo \\'\\nafind=\\'ack -il\\'\\negrep=\\'egrep --color=auto --exclude-dir={.bzr,CVS,.git,.hg,.svn,.idea,.tox}\\'\\nfgrep=\\'fgrep --color=auto --exclude-dir={.bzr,CVS,.git,.hg,.svn,.idea,.tox}\\'\\ng=git\\nga=\\'git add\\'\\ngaa=\\'git add --all\\'\\ngam=\\'git am\\'\\ngama=\\'git am --abort\\'\\ngamc=\\'git am --continue\\'\\ngams=\\'git am --skip\\'\\ngamscp=\\'git am --show-current-patch\\'\\ngap=\\'git apply\\'\\ngapa=\\'git add --patch\\'\\ngapt=\\'git apply --3way\\'\\ngau=\\'git add --update\\'\\ngav=\\'git add --verbose\\'\\ngb=\\'git branch\\'\\ngbD=\\'git branch -D\\'\\ngba=\\'git branch -a\\'\\ngbd=\\'git branch -d\\'\\ngbda=\\'git branch --no-color --merged | command grep -vE \"^([+*]|\\\\s*($(git_main_branch)|$(git_develop_branch))\\\\s*$)\" | command xargs git branch -d 2>/dev/null\\'\\ngbl=\\'git blame -b -w\\'\\ngbnm=\\'git branch --no-merged\\'\\ngbr=\\'git branch --remote\\'\\ngbs=\\'git bisect\\'\\ngbsb=\\'git bisect bad\\'\\ngbsg=\\'git bisect good\\'\\ngbsr=\\'git bisect reset\\'\\ngbss=\\'git bisect start\\'\\ngc=\\'git commit -v\\'\\n\\'gc!\\'=\\'git commit -v --amend\\'\\ngca=\\'git commit -v -a\\'\\n\\'gca!\\'=\\'git commit -v -a --amend\\'\\ngcam=\\'git commit -a -m\\'\\n\\'gcan!\\'=\\'git commit -v -a --no-edit --amend\\'\\n\\'gcans!\\'=\\'git commit -v -a -s --no-edit --amend\\'\\ngcas=\\'git commit -a -s\\'\\ngcasm=\\'git commit -a -s -m\\'\\ngcb=\\'git checkout -b\\'\\ngcd=\\'git checkout $(git_develop_branch)\\'\\ngcf=\\'git config --list\\'\\ngcl=\\'git clone --recurse-submodules\\'\\ngclean=\\'git clean -id\\'\\ngcm=\\'git checkout $(git_main_branch)\\'\\ngcmsg=\\'git commit -m\\'\\n\\'gcn!\\'=\\'git commit -v --no-edit --amend\\'\\ngco=\\'git checkout\\'\\ngcor=\\'git checkout --recurse-submodules\\'\\ngcount=\\'git shortlog -sn\\'\\ngcp=\\'git cherry-pick\\'\\ngcpa=\\'git cherry-pick --abort\\'\\ngcpc=\\'git cherry-pick --continue\\'\\ngcs=\\'git commit -S\\'\\ngcsm=\\'git commit -s -m\\'\\ngcss=\\'git commit -S -s\\'\\ngcssm=\\'git commit -S -s -m\\'\\ngd=\\'git diff\\'\\ngdca=\\'git diff --cached\\'\\ngdct=\\'git describe --tags $(git rev-list --tags --max-count=1)\\'\\ngdcw=\\'git diff --cached --word-diff\\'\\ngds=\\'git diff --staged\\'\\ngdt=\\'git diff-tree --no-commit-id --name-only -r\\'\\ngdup=\\'git diff @{upstream}\\'\\ngdw=\\'git diff --word-diff\\'\\ngf=\\'git fetch\\'\\ngfa=\\'git fetch --all --prune --jobs=10\\'\\ngfg=\\'git ls-files | grep\\'\\ngfo=\\'git fetch origin\\'\\ngg=\\'git gui citool\\'\\ngga=\\'git gui citool --amend\\'\\nggpull=\\'git pull origin \"$(git_current_branch)\"\\'\\nggpur=ggu\\nggpush=\\'git push origin \"$(git_current_branch)\"\\'\\nggsup=\\'git branch --set-upstream-to=origin/$(git_current_branch)\\'\\nghh=\\'git help\\'\\ngignore=\\'git update-index --assume-unchanged\\'\\ngignored=\\'git ls-files -v | grep \"^[[:lower:]]\"\\'\\ngit-svn-dcommit-push=\\'git svn dcommit && git push github $(git_main_branch):svntrunk\\'\\ngk=\\'\\\\gitk --all --branches &!\\'\\ngke=\\'\\\\gitk --all $(git log -g --pretty=%h) &!\\'\\ngl=\\'git pull\\'\\nglg=\\'git log --stat\\'\\nglgg=\\'git log --graph\\'\\nglgga=\\'git log --graph --decorate --all\\'\\nglgm=\\'git log --graph --max-count=10\\'\\nglgp=\\'git log --stat -p\\'\\nglo=\\'git log --oneline --decorate\\'\\ngloburl=\\'noglob urlglobber \\'\\nglod=\\'git log --graph --pretty=\\'\\\\\\'\\'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ad) %C(bold blue)<%an>%Creset\\'\\\\\\'\\nglods=\\'git log --graph --pretty=\\'\\\\\\'\\'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ad) %C(bold blue)<%an>%Creset\\'\\\\\\'\\' --date=short\\'\\nglog=\\'git log --oneline --decorate --graph\\'\\ngloga=\\'git log --oneline --decorate --graph --all\\'\\nglol=\\'git log --graph --pretty=\\'\\\\\\'\\'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset\\'\\\\\\'\\nglola=\\'git log --graph --pretty=\\'\\\\\\'\\'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset\\'\\\\\\'\\' --all\\'\\nglols=\\'git log --graph --pretty=\\'\\\\\\'\\'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset\\'\\\\\\'\\' --stat\\'\\nglp=_git_log_prettily\\nglum=\\'git pull upstream $(git_main_branch)\\'\\ngm=\\'git merge\\'\\ngma=\\'git merge --abort\\'\\ngmom=\\'git merge origin/$(git_main_branch)\\'\\ngmtl=\\'git mergetool --no-prompt\\'\\ngmtlvim=\\'git mergetool --no-prompt --tool=vimdiff\\'\\ngmum=\\'git merge upstream/$(git_main_branch)\\'\\ngp=\\'git push\\'\\ngpd=\\'git push --dry-run\\'\\ngpf=\\'git push --force-with-lease\\'\\n\\'gpf!\\'=\\'git push --force\\'\\ngpoat=\\'git push origin --all && git push origin --tags\\'\\ngpr=\\'git pull --rebase\\'\\ngpristine=\\'git reset --hard && git clean -dffx\\'\\ngpsup=\\'git push --set-upstream origin $(git_current_branch)\\'\\ngpu=\\'git push upstream\\'\\ngpv=\\'git push -v\\'\\ngr=\\'git remote\\'\\ngra=\\'git remote add\\'\\ngrb=\\'git rebase\\'\\ngrba=\\'git rebase --abort\\'\\ngrbc=\\'git rebase --continue\\'\\ngrbd=\\'git rebase $(git_develop_branch)\\'\\ngrbi=\\'git rebase -i\\'\\ngrbm=\\'git rebase $(git_main_branch)\\'\\ngrbo=\\'git rebase --onto\\'\\ngrbom=\\'git rebase origin/$(git_main_branch)\\'\\ngrbs=\\'git rebase --skip\\'\\ngrep=\\'grep --color=auto --exclude-dir={.bzr,CVS,.git,.hg,.svn,.idea,.tox}\\'\\ngrev=\\'git revert\\'\\ngrh=\\'git reset\\'\\ngrhh=\\'git reset --hard\\'\\ngrm=\\'git rm\\'\\ngrmc=\\'git rm --cached\\'\\ngrmv=\\'git remote rename\\'\\ngroh=\\'git reset origin/$(git_current_branch) --hard\\'\\ngrrm=\\'git remote remove\\'\\ngrs=\\'git restore\\'\\ngrset=\\'git remote set-url\\'\\ngrss=\\'git restore --source\\'\\ngrst=\\'git restore --staged\\'\\ngrt=\\'cd \"$(git rev-parse --show-toplevel || echo .)\"\\'\\ngru=\\'git reset --\\'\\ngrup=\\'git remote update\\'\\ngrv=\\'git remote -v\\'\\ngsb=\\'git status -sb\\'\\ngsd=\\'git svn dcommit\\'\\ngsh=\\'git show\\'\\ngsi=\\'git submodule init\\'\\ngsps=\\'git show --pretty=short --show-signature\\'\\ngsr=\\'git svn rebase\\'\\ngss=\\'git status -s\\'\\ngst=\\'git status\\'\\ngsta=\\'git stash push\\'\\ngstaa=\\'git stash apply\\'\\ngstall=\\'git stash --all\\'\\ngstc=\\'git stash clear\\'\\ngstd=\\'git stash drop\\'\\ngstl=\\'git stash list\\'\\ngstp=\\'git stash pop\\'\\ngsts=\\'git stash show --text\\'\\ngstu=\\'gsta --include-untracked\\'\\ngsu=\\'git submodule update\\'\\ngsw=\\'git switch\\'\\ngswc=\\'git switch -c\\'\\ngswd=\\'git switch $(git_develop_branch)\\'\\ngswm=\\'git switch $(git_main_branch)\\'\\ngtl=\\'gtl(){ git tag --sort=-v:refname -n -l \"${1}*\" }; noglob gtl\\'\\ngts=\\'git tag -s\\'\\ngtv=\\'git tag | sort -V\\'\\ngunignore=\\'git update-index --no-assume-unchanged\\'\\ngunwip=\\'git log -n 1 | grep -q -c \"\\\\-\\\\-wip\\\\-\\\\-\" && git reset HEAD~1\\'\\ngup=\\'git pull --rebase\\'\\ngupa=\\'git pull --rebase --autostash\\'\\ngupav=\\'git pull --rebase --autostash -v\\'\\ngupv=\\'git pull --rebase -v\\'\\ngwch=\\'git whatchanged -p --abbrev-commit --pretty=medium\\'\\ngwip=\\'git add -A; git rm $(git ls-files --deleted) 2> /dev/null; git commit --no-verify --no-gpg-sign -m \"--wip-- [skip ci]\"\\'\\nhidefiles=\\'defaults write com.apple.finder AppleShowAllFiles -bool false && killall Finder\\'\\nhistory=omz_history\\nl=\\'ls -lah\\'\\nla=\\'ls -lAh\\'\\nll=\\'ls -lh\\'\\nls=\\'ls -G\\'\\nlsa=\\'ls -lah\\'\\nmd=\\'mkdir -p\\'\\nofd=\\'open_command $PWD\\'\\npip=\\'noglob pip\\'\\npipir=\\'pip install -r requirements.txt\\'\\npipreq=\\'pip freeze > requirements.txt\\'\\nrd=rmdir\\nrun-help=man\\nshowfiles=\\'defaults write com.apple.finder AppleShowAllFiles -bool true && killall Finder\\'\\nwhich-command=whence', 'PYTHONIOENCODING': 'utf-8', 'THEFUCK_DEBUG': 'true', 'TF_HISTORY': 'brew install adobe-reader\\nfuck\\nbrew install adobe-acrobat-dc\\nfuck\\nthefuck --version\\nbrew install vs-code\\nfuck\\nexport THEFUCK_DEBUG=true\\nthefuck\\nbrew install vs-code', '_': '/opt/homebrew/bin/thefuck', 'LC_ALL': 'C', 'GIT_TRACE': '1'}; is slow: False took: 0:00:03.026073\r\nDEBUG: Importing rule: adb_unknown_command; took: 0:00:00.000602\r\nDEBUG: Importing rule: ag_literal; took: 0:00:00.000515\r\nDEBUG: Importing rule: apt_get; took: 0:00:00.000996\r\nDEBUG: Importing rule: apt_get_search; took: 0:00:00.000180\r\nDEBUG: Importing rule: apt_invalid_operation; took: 0:00:00.000476\r\nDEBUG: Importing rule: apt_list_upgradable; took: 0:00:00.000156\r\nDEBUG: Importing rule: apt_upgrade; took: 0:00:00.000243\r\nDEBUG: Importing rule: aws_cli; took: 0:00:00.000139\r\nDEBUG: Importing rule: az_cli; took: 0:00:00.000141\r\nDEBUG: Importing rule: brew_cask_dependency; took: 0:00:00.000385\r\nDEBUG: Importing rule: brew_install; took: 0:00:00.000151\r\nDEBUG: Importing rule: brew_link; took: 0:00:00.000140\r\nDEBUG: Importing rule: brew_reinstall; took: 0:00:00.000363\r\nDEBUG: Importing rule: brew_uninstall; took: 0:00:00.000140\r\nDEBUG: Importing rule: brew_unknown_command; took: 0:00:00.000124\r\nDEBUG: Importing rule: brew_update_formula; took: 0:00:00.000126\r\nDEBUG: Importing rule: cargo; took: 0:00:00.000101\r\nDEBUG: Importing rule: cargo_no_command; took: 0:00:00.000124\r\nDEBUG: Importing rule: cat_dir; took: 0:00:00.000122\r\nDEBUG: Importing rule: cd_correction; took: 0:00:00.000826\r\nDEBUG: Importing rule: cd_cs; took: 0:00:00.000256\r\nDEBUG: Importing rule: cd_mkdir; took: 0:00:00.000234\r\nDEBUG: Importing rule: cd_parent; took: 0:00:00.000127\r\nDEBUG: Importing rule: chmod_x; took: 0:00:00.000112\r\nDEBUG: Importing rule: choco_install; took: 0:00:00.000247\r\nDEBUG: Importing rule: composer_not_command; took: 0:00:00.000180\r\nDEBUG: Importing rule: conda_mistype; took: 0:00:00.000158\r\nDEBUG: Importing rule: cp_create_destination; took: 0:00:00.000159\r\nDEBUG: Importing rule: cp_omitting_directory; took: 0:00:00.000172\r\nDEBUG: Importing rule: cpp11; took: 0:00:00.000138\r\nDEBUG: Importing rule: dirty_untar; took: 0:00:00.001097\r\nDEBUG: Importing rule: dirty_unzip; took: 0:00:00.000162\r\nDEBUG: Importing rule: django_south_ghost; took: 0:00:00.000097\r\nDEBUG: Importing rule: django_south_merge; took: 0:00:00.000223\r\nDEBUG: Importing rule: dnf_no_such_command; took: 0:00:00.000418\r\nDEBUG: Importing rule: docker_image_being_used_by_container; took: 0:00:00.000135\r\nDEBUG: Importing rule: docker_login; took: 0:00:00.000133\r\nDEBUG: Importing rule: docker_not_command; took: 0:00:00.000207\r\nDEBUG: Importing rule: dry; took: 0:00:00.000092\r\nDEBUG: Importing rule: fab_command_not_found; took: 0:00:00.000201\r\nDEBUG: Importing rule: fix_alt_space; took: 0:00:00.000156\r\nDEBUG: Importing rule: fix_file; took: 0:00:00.001773\r\nDEBUG: Importing rule: gem_unknown_command; took: 0:00:00.000304\r\nDEBUG: Importing rule: git_add; took: 0:00:00.000275\r\nDEBUG: Importing rule: git_add_force; took: 0:00:00.000117\r\nDEBUG: Importing rule: git_bisect_usage; took: 0:00:00.000115\r\nDEBUG: Importing rule: git_branch_0flag; took: 0:00:00.000243\r\nDEBUG: Importing rule: git_branch_delete; took: 0:00:00.000105\r\nDEBUG: Importing rule: git_branch_delete_checked_out; took: 0:00:00.000117\r\nDEBUG: Importing rule: git_branch_exists; took: 0:00:00.000114\r\nDEBUG: Importing rule: git_branch_list; took: 0:00:00.000107\r\nDEBUG: Importing rule: git_checkout; took: 0:00:00.000121\r\nDEBUG: Importing rule: git_clone_git_clone; took: 0:00:00.000104\r\nDEBUG: Importing rule: git_commit_add; took: 0:00:00.000157\r\nDEBUG: Importing rule: git_commit_amend; took: 0:00:00.000106\r\nDEBUG: Importing rule: git_commit_reset; took: 0:00:00.000104\r\nDEBUG: Importing rule: git_diff_no_index; took: 0:00:00.000103\r\nDEBUG: Importing rule: git_diff_staged; took: 0:00:00.000114\r\nDEBUG: Importing rule: git_fix_stash; took: 0:00:00.000108\r\nDEBUG: Importing rule: git_flag_after_filename; took: 0:00:00.000109\r\nDEBUG: Importing rule: git_help_aliased; took: 0:00:00.000107\r\nDEBUG: Importing rule: git_hook_bypass; took: 0:00:00.000247\r\nDEBUG: Importing rule: git_lfs_mistype; took: 0:00:00.000103\r\nDEBUG: Importing rule: git_main_master; took: 0:00:00.000106\r\nDEBUG: Importing rule: git_merge; took: 0:00:00.000101\r\nDEBUG: Importing rule: git_merge_unrelated; took: 0:00:00.000108\r\nDEBUG: Importing rule: git_not_command; took: 0:00:00.000104\r\nDEBUG: Importing rule: git_pull; took: 0:00:00.000111\r\nDEBUG: Importing rule: git_pull_clone; took: 0:00:00.000130\r\nDEBUG: Importing rule: git_pull_uncommitted_changes; took: 0:00:00.000104\r\nDEBUG: Importing rule: git_push; took: 0:00:00.000155\r\nDEBUG: Importing rule: git_push_different_branch_names; took: 0:00:00.000145\r\nDEBUG: Importing rule: git_push_force; took: 0:00:00.000109\r\nDEBUG: Importing rule: git_push_pull; took: 0:00:00.000101\r\nDEBUG: Importing rule: git_push_without_commits; took: 0:00:00.000089\r\nDEBUG: Importing rule: git_rebase_merge_dir; took: 0:00:00.000104\r\nDEBUG: Importing rule: git_rebase_no_changes; took: 0:00:00.000156\r\nDEBUG: Importing rule: git_remote_delete; took: 0:00:00.000101\r\nDEBUG: Importing rule: git_remote_seturl_add; took: 0:00:00.000088\r\nDEBUG: Importing rule: git_rm_local_modifications; took: 0:00:00.000100\r\nDEBUG: Importing rule: git_rm_recursive; took: 0:00:00.000096\r\nDEBUG: Importing rule: git_rm_staged; took: 0:00:00.000097\r\nDEBUG: Importing rule: git_stash; took: 0:00:00.000101\r\nDEBUG: Importing rule: git_stash_pop; took: 0:00:00.000097\r\nDEBUG: Importing rule: git_tag_force; took: 0:00:00.000103\r\nDEBUG: Importing rule: git_two_dashes; took: 0:00:00.000125\r\nDEBUG: Importing rule: go_run; took: 0:00:00.000100\r\nDEBUG: Importing rule: go_unknown_command; took: 0:00:00.000155\r\nDEBUG: Importing rule: gradle_no_task; took: 0:00:00.000214\r\nDEBUG: Importing rule: gradle_wrapper; took: 0:00:00.000119\r\nDEBUG: Importing rule: grep_arguments_order; took: 0:00:00.000108\r\nDEBUG: Importing rule: grep_recursive; took: 0:00:00.000245\r\nDEBUG: Importing rule: grunt_task_not_found; took: 0:00:00.000252\r\nDEBUG: Importing rule: gulp_not_task; took: 0:00:00.000157\r\nDEBUG: Importing rule: has_exists_script; took: 0:00:00.000111\r\nDEBUG: Importing rule: heroku_multiple_apps; took: 0:00:00.000099\r\nDEBUG: Importing rule: heroku_not_command; took: 0:00:00.000102\r\nDEBUG: Importing rule: history; took: 0:00:00.000073\r\nDEBUG: Importing rule: hostscli; took: 0:00:00.000122\r\nDEBUG: Importing rule: ifconfig_device_not_found; took: 0:00:00.000113\r\nDEBUG: Importing rule: java; took: 0:00:00.000136\r\nDEBUG: Importing rule: javac; took: 0:00:00.000113\r\nDEBUG: Importing rule: lein_not_task; took: 0:00:00.000155\r\nDEBUG: Importing rule: ln_no_hard_link; took: 0:00:00.000148\r\nDEBUG: Importing rule: ln_s_order; took: 0:00:00.000103\r\nDEBUG: Importing rule: long_form_help; took: 0:00:00.000077\r\nDEBUG: Importing rule: ls_all; took: 0:00:00.000205\r\nDEBUG: Importing rule: ls_lah; took: 0:00:00.000095\r\nDEBUG: Importing rule: man; took: 0:00:00.000104\r\nDEBUG: Importing rule: man_no_space; took: 0:00:00.000080\r\nDEBUG: Importing rule: mercurial; took: 0:00:00.000102\r\nDEBUG: Importing rule: missing_space_before_subcommand; took: 0:00:00.000076\r\nDEBUG: Importing rule: mkdir_p; took: 0:00:00.000108\r\nDEBUG: Importing rule: mvn_no_command; took: 0:00:00.000093\r\nDEBUG: Importing rule: mvn_unknown_lifecycle_phase; took: 0:00:00.000114\r\nDEBUG: Importing rule: nixos_cmd_not_found; took: 0:00:00.000297\r\nDEBUG: Importing rule: no_command; took: 0:00:00.000120\r\nDEBUG: Importing rule: no_such_file; took: 0:00:00.000079\r\nDEBUG: Importing rule: npm_missing_script; took: 0:00:00.000293\r\nDEBUG: Importing rule: npm_run_script; took: 0:00:00.000255\r\nDEBUG: Importing rule: npm_wrong_command; took: 0:00:00.000120\r\nDEBUG: Importing rule: omnienv_no_such_command; took: 0:00:00.000236\r\nDEBUG: Importing rule: open; took: 0:00:00.000119\r\nDEBUG: Importing rule: pacman; took: 0:00:00.000284\r\nDEBUG: Importing rule: pacman_invalid_option; took: 0:00:00.000127\r\nDEBUG: Importing rule: pacman_not_found; took: 0:00:00.000088\r\nDEBUG: Importing rule: path_from_history; took: 0:00:00.000101\r\nDEBUG: Importing rule: php_s; took: 0:00:00.000103\r\nDEBUG: Importing rule: pip_install; took: 0:00:00.000110\r\nDEBUG: Importing rule: pip_unknown_command; took: 0:00:00.000105\r\nDEBUG: Importing rule: port_already_in_use; took: 0:00:00.000134\r\nDEBUG: Importing rule: prove_recursively; took: 0:00:00.000203\r\nDEBUG: Importing rule: python_command; took: 0:00:00.000143\r\nDEBUG: Importing rule: python_execute; took: 0:00:00.000190\r\nDEBUG: Importing rule: python_module_error; took: 0:00:00.000075\r\nDEBUG: Importing rule: quotation_marks; took: 0:00:00.000109\r\nDEBUG: Importing rule: rails_migrations_pending; took: 0:00:00.000071\r\nDEBUG: Importing rule: react_native_command_unrecognized; took: 0:00:00.000133\r\nDEBUG: Importing rule: remove_shell_prompt_literal; took: 0:00:00.000082\r\nDEBUG: Importing rule: remove_trailing_cedilla; took: 0:00:00.000072\r\nDEBUG: Importing rule: rm_dir; took: 0:00:00.000095\r\nDEBUG: Importing rule: rm_root; took: 0:00:00.000087\r\nDEBUG: Importing rule: scm_correction; took: 0:00:00.000098\r\nDEBUG: Importing rule: sed_unterminated_s; took: 0:00:00.000100\r\nDEBUG: Importing rule: sl_ls; took: 0:00:00.000075\r\nDEBUG: Importing rule: ssh_known_hosts; took: 0:00:00.000092\r\nDEBUG: Importing rule: sudo; took: 0:00:00.000086\r\nDEBUG: Importing rule: sudo_command_from_user_path; took: 0:00:00.000148\r\nDEBUG: Importing rule: switch_lang; took: 0:00:00.000227\r\nDEBUG: Importing rule: systemctl; took: 0:00:00.000116\r\nDEBUG: Importing rule: terraform_init; took: 0:00:00.000101\r\nDEBUG: Importing rule: test.py; took: 0:00:00.000071\r\nDEBUG: Importing rule: tmux; took: 0:00:00.000099\r\nDEBUG: Importing rule: touch; took: 0:00:00.000101\r\nDEBUG: Importing rule: tsuru_login; took: 0:00:00.000119\r\nDEBUG: Importing rule: tsuru_not_command; took: 0:00:00.000095\r\nDEBUG: Importing rule: unknown_command; took: 0:00:00.000081\r\nDEBUG: Importing rule: unsudo; took: 0:00:00.000079\r\nDEBUG: Importing rule: vagrant_up; took: 0:00:00.000092\r\nDEBUG: Importing rule: whois; took: 0:00:00.000191\r\nDEBUG: Importing rule: workon_doesnt_exists; took: 0:00:00.000120\r\nDEBUG: Importing rule: wrong_hyphen_before_subcommand; took: 0:00:00.000099\r\nDEBUG: Importing rule: yarn_alias; took: 0:00:00.000137\r\nDEBUG: Importing rule: yarn_command_not_found; took: 0:00:00.000267\r\nDEBUG: Importing rule: yarn_command_replaced; took: 0:00:00.000151\r\nDEBUG: Importing rule: yarn_help; took: 0:00:00.000106\r\nDEBUG: Importing rule: yum_invalid_operation; took: 0:00:00.000245\r\nDEBUG: Trying rule: path_from_history; took: 0:00:00.000225\r\nDEBUG: Trying rule: cd_cs; took: 0:00:00.000039\r\nDEBUG: Trying rule: dry; took: 0:00:00.000002\r\nDEBUG: Trying rule: git_stash_pop; took: 0:00:00.000026\r\nDEBUG: Trying rule: test.py; took: 0:00:00.000001\r\nDEBUG: Trying rule: adb_unknown_command; took: 0:00:00.000007\r\nDEBUG: Trying rule: ag_literal; took: 0:00:00.000011\r\nDEBUG: Trying rule: aws_cli; took: 0:00:00.000009\r\nDEBUG: Trying rule: az_cli; took: 0:00:00.000009\r\nDEBUG: Trying rule: brew_cask_dependency; took: 0:00:00.000009\r\nDEBUG: Trying rule: brew_install; took: 0:00:00.000074\r\n[WARN] Rule brew_install:\r\nTraceback (most recent call last):\r\n File \"/opt/homebrew/Cellar/thefuck/3.32/libexec/lib/python3.10/site-packages/thefuck/types.py\", line 181, in is_match\r\n if self.match(command):\r\n File \"/opt/homebrew/Cellar/thefuck/3.32/libexec/lib/python3.10/site-packages/thefuck/rules/brew_install.py\", line 31, in match\r\n formula = re.findall(r'Error: No available formula for ([a-z]+)',\r\nIndexError: list index out of range\r\n----------------------------\r\n\r\nDEBUG: Trying rule: brew_link; took: 0:00:00.000015\r\nDEBUG: Trying rule: brew_reinstall; took: 0:00:00.000015\r\nDEBUG: Trying rule: brew_uninstall; took: 0:00:00.000008\r\nDEBUG: Trying rule: brew_unknown_command; took: 0:00:00.000003\r\nDEBUG: Trying rule: brew_update_formula; took: 0:00:00.000007\r\nDEBUG: Trying rule: cargo; took: 0:00:00.000001\r\nDEBUG: Trying rule: cargo_no_command; took: 0:00:00.000009\r\nDEBUG: Trying rule: cat_dir; took: 0:00:00.000009\r\nDEBUG: Trying rule: cd_correction; took: 0:00:00.000012\r\nDEBUG: Trying rule: cd_mkdir; took: 0:00:00.000011\r\nDEBUG: Trying rule: cd_parent; took: 0:00:00.000001\r\nDEBUG: Trying rule: chmod_x; took: 0:00:00.000001\r\nDEBUG: Trying rule: composer_not_command; took: 0:00:00.000009\r\nDEBUG: Trying rule: conda_mistype; took: 0:00:00.000008\r\nDEBUG: Trying rule: cp_create_destination; took: 0:00:00.000009\r\nDEBUG: Trying rule: cp_omitting_directory; took: 0:00:00.000013\r\nDEBUG: Trying rule: cpp11; took: 0:00:00.000008\r\nDEBUG: Trying rule: dirty_untar; took: 0:00:00.000008\r\nDEBUG: Trying rule: dirty_unzip; took: 0:00:00.000008\r\nDEBUG: Trying rule: django_south_ghost; took: 0:00:00.000001\r\nDEBUG: Trying rule: django_south_merge; took: 0:00:00.000001\r\nDEBUG: Trying rule: docker_image_being_used_by_container; took: 0:00:00.000008\r\nDEBUG: Trying rule: docker_login; took: 0:00:00.000007\r\nDEBUG: Trying rule: docker_not_command; took: 0:00:00.000010\r\nDEBUG: Trying rule: fab_command_not_found; took: 0:00:00.000008\r\nDEBUG: Trying rule: fix_alt_space; took: 0:00:00.000006\r\nDEBUG: Trying rule: fix_file; took: 0:00:00.000003\r\nDEBUG: Trying rule: gem_unknown_command; took: 0:00:00.000009\r\nDEBUG: Trying rule: git_add; took: 0:00:00.000008\r\nDEBUG: Trying rule: git_add_force; took: 0:00:00.000007\r\nDEBUG: Trying rule: git_bisect_usage; took: 0:00:00.000007\r\nDEBUG: Trying rule: git_branch_0flag; took: 0:00:00.000007\r\nDEBUG: Trying rule: git_branch_delete; took: 0:00:00.000007\r\nDEBUG: Trying rule: git_branch_delete_checked_out; took: 0:00:00.000006\r\nDEBUG: Trying rule: git_branch_exists; took: 0:00:00.000007\r\nDEBUG: Trying rule: git_branch_list; took: 0:00:00.000007\r\nDEBUG: Trying rule: git_checkout; took: 0:00:00.000007\r\nDEBUG: Trying rule: git_clone_git_clone; took: 0:00:00.000007\r\nDEBUG: Trying rule: git_commit_add; took: 0:00:00.000006\r\nDEBUG: Trying rule: git_commit_amend; took: 0:00:00.000006\r\nDEBUG: Trying rule: git_commit_reset; took: 0:00:00.000007\r\nDEBUG: Trying rule: git_diff_no_index; took: 0:00:00.000007\r\nDEBUG: Trying rule: git_diff_staged; took: 0:00:00.000007\r\nDEBUG: Trying rule: git_fix_stash; took: 0:00:00.000006\r\nDEBUG: Trying rule: git_flag_after_filename; took: 0:00:00.000006\r\nDEBUG: Trying rule: git_help_aliased; took: 0:00:00.000006\r\nDEBUG: Trying rule: git_lfs_mistype; took: 0:00:00.000006\r\nDEBUG: Trying rule: git_merge; took: 0:00:00.000006\r\nDEBUG: Trying rule: git_merge_unrelated; took: 0:00:00.000006\r\nDEBUG: Trying rule: git_not_command; took: 0:00:00.000007\r\nDEBUG: Trying rule: git_pull; took: 0:00:00.000007\r\nDEBUG: Trying rule: git_pull_clone; took: 0:00:00.000006\r\nDEBUG: Trying rule: git_pull_uncommitted_changes; took: 0:00:00.000007\r\nDEBUG: Trying rule: git_push; took: 0:00:00.000007\r\nDEBUG: Trying rule: git_push_different_branch_names; took: 0:00:00.000006\r\nDEBUG: Trying rule: git_push_pull; took: 0:00:00.000007\r\nDEBUG: Trying rule: git_push_without_commits; took: 0:00:00.000007\r\nDEBUG: Trying rule: git_rebase_merge_dir; took: 0:00:00.000007\r\nDEBUG: Trying rule: git_rebase_no_changes; took: 0:00:00.000007\r\nDEBUG: Trying rule: git_remote_delete; took: 0:00:00.000006\r\nDEBUG: Trying rule: git_remote_seturl_add; took: 0:00:00.000006\r\nDEBUG: Trying rule: git_rm_local_modifications; took: 0:00:00.000006\r\nDEBUG: Trying rule: git_rm_recursive; took: 0:00:00.000006\r\nDEBUG: Trying rule: git_rm_staged; took: 0:00:00.000007\r\nDEBUG: Trying rule: git_stash; took: 0:00:00.000007\r\nDEBUG: Trying rule: git_tag_force; took: 0:00:00.000006\r\nDEBUG: Trying rule: git_two_dashes; took: 0:00:00.000006\r\nDEBUG: Trying rule: go_run; took: 0:00:00.000007\r\nDEBUG: Trying rule: go_unknown_command; took: 0:00:00.000007\r\nDEBUG: Trying rule: gradle_no_task; took: 0:00:00.000008\r\nDEBUG: Trying rule: gradle_wrapper; took: 0:00:00.000008\r\nDEBUG: Trying rule: grep_arguments_order; took: 0:00:00.000008\r\nDEBUG: Trying rule: grep_recursive; took: 0:00:00.000008\r\nDEBUG: Trying rule: grunt_task_not_found; took: 0:00:00.000008\r\nDEBUG: Trying rule: gulp_not_task; took: 0:00:00.000007\r\nDEBUG: Trying rule: has_exists_script; took: 0:00:00.000020\r\nDEBUG: Trying rule: heroku_multiple_apps; took: 0:00:00.000009\r\nDEBUG: Trying rule: heroku_not_command; took: 0:00:00.000007\r\nDEBUG: Trying rule: hostscli; took: 0:00:00.000011\r\nDEBUG: Trying rule: ifconfig_device_not_found; took: 0:00:00.000007\r\nDEBUG: Trying rule: java; took: 0:00:00.000008\r\nDEBUG: Trying rule: javac; took: 0:00:00.000008\r\nDEBUG: Trying rule: lein_not_task; took: 0:00:00.000012\r\nDEBUG: Trying rule: ln_no_hard_link; took: 0:00:00.000004\r\nDEBUG: Trying rule: ln_s_order; took: 0:00:00.000004\r\nDEBUG: Trying rule: ls_all; took: 0:00:00.000007\r\nDEBUG: Trying rule: ls_lah; took: 0:00:00.000006\r\nDEBUG: Trying rule: man; took: 0:00:00.000008\r\nDEBUG: Trying rule: mercurial; took: 0:00:00.000008\r\nDEBUG: Trying rule: mkdir_p; took: 0:00:00.000004\r\nDEBUG: Trying rule: mvn_no_command; took: 0:00:00.000008\r\nDEBUG: Trying rule: mvn_unknown_lifecycle_phase; took: 0:00:00.000007\r\nDEBUG: Trying rule: no_such_file; took: 0:00:00.000298\r\nDEBUG: Trying rule: open; took: 0:00:00.000012\r\nDEBUG: Trying rule: pacman_invalid_option; took: 0:00:00.000013\r\nDEBUG: Trying rule: php_s; took: 0:00:00.000009\r\nDEBUG: Trying rule: pip_install; took: 0:00:00.000011\r\nDEBUG: Trying rule: pip_unknown_command; took: 0:00:00.000012\r\nDEBUG: Trying rule: port_already_in_use; took: 0:00:00.000209\r\nDEBUG: Trying rule: prove_recursively; took: 0:00:00.000012\r\nDEBUG: Trying rule: python_command; took: 0:00:00.000006\r\nDEBUG: Trying rule: python_execute; took: 0:00:00.000008\r\nDEBUG: Trying rule: python_module_error; took: 0:00:00.000001\r\nDEBUG: Trying rule: quotation_marks; took: 0:00:00\r\nDEBUG: Trying rule: rails_migrations_pending; took: 0:00:00\r\nDEBUG: Trying rule: react_native_command_unrecognized; took: 0:00:00.000008\r\nDEBUG: Trying rule: remove_shell_prompt_literal; took: 0:00:00.000001\r\nDEBUG: Trying rule: remove_trailing_cedilla; took: 0:00:00.000001\r\nDEBUG: Trying rule: rm_dir; took: 0:00:00.000005\r\nDEBUG: Trying rule: scm_correction; took: 0:00:00.000007\r\nDEBUG: Trying rule: sed_unterminated_s; took: 0:00:00.000008\r\nDEBUG: Trying rule: sl_ls; took: 0:00:00.000001\r\nDEBUG: Trying rule: ssh_known_hosts; took: 0:00:00.000007\r\nDEBUG: Trying rule: sudo; took: 0:00:00.000011\r\nDEBUG: Trying rule: sudo_command_from_user_path; took: 0:00:00.000008\r\nDEBUG: Trying rule: switch_lang; took: 0:00:00.000001\r\nDEBUG: Trying rule: systemctl; took: 0:00:00.000010\r\nDEBUG: Trying rule: terraform_init; took: 0:00:00.000008\r\nDEBUG: Trying rule: tmux; took: 0:00:00.000008\r\nDEBUG: Trying rule: touch; took: 0:00:00.000007\r\nDEBUG: Trying rule: tsuru_login; took: 0:00:00.000007\r\nDEBUG: Trying rule: tsuru_not_command; took: 0:00:00.000007\r\nDEBUG: Trying rule: unknown_command; took: 0:00:00.000199\r\nDEBUG: Trying rule: unsudo; took: 0:00:00.000001\r\nDEBUG: Trying rule: vagrant_up; took: 0:00:00.000010\r\nDEBUG: Trying rule: whois; took: 0:00:00.000009\r\nDEBUG: Trying rule: workon_doesnt_exists; took: 0:00:00.000008\r\nDEBUG: Trying rule: yarn_alias; took: 0:00:00.000008\r\nDEBUG: Trying rule: yarn_command_not_found; took: 0:00:00.000007\r\nDEBUG: Trying rule: yarn_command_replaced; took: 0:00:00.000008\r\nDEBUG: Trying rule: yarn_help; took: 0:00:00.000008\r\nDEBUG: Trying rule: git_hook_bypass; took: 0:00:00.000007\r\nDEBUG: Trying rule: git_main_master; took: 0:00:00.000007\r\nDEBUG: Trying rule: man_no_space; took: 0:00:00.000001\r\nDEBUG: Trying rule: no_command; took: 0:00:00.000006\r\nDEBUG: Trying rule: missing_space_before_subcommand; took: 0:00:00.000006\r\nDEBUG: Trying rule: wrong_hyphen_before_subcommand; took: 0:00:00.000005\r\nDEBUG: Trying rule: long_form_help; took: 0:00:00.000132\r\nDEBUG: Trying rule: history; took: 0:00:00.001588\r\n```\r\n\r\n\r\n\n"},"hints_text":{"kind":"string","value":"Seems to occur because the `is_proper_commnd` check on line 27 is much looser than the findall check on the following line:\r\n\r\nhttps://github.com/nvbn/thefuck/blob/d8ddf5a2be9d52ec4bc8c11e79fcc7b3c390b669/thefuck/rules/brew_install.py#L31\r\n\r\nThen the findall assumes it will find something and without checking, indexes the first, non-existent, element.\r\n\r\nIt looks the the expected output has changed. "},"created_at":{"kind":"string","value":"2022-06-29T12:18:56Z"},"merged_at":{"kind":"string","value":"2022-07-02T13:06:00Z"},"PASS_TO_PASS":{"kind":"string","value":"[]"},"PASS_TO_FAIL":{"kind":"string","value":"[]"},"FAIL_TO_PASS":{"kind":"string","value":"[\"tests/rules/test_brew_install.py::test_suggestions\", \"tests/rules/test_brew_install.py::test_get_new_command\", \"tests/rules/test_brew_install.py::test_match\"]"},"FAIL_TO_FAIL":{"kind":"string","value":"[]"},"install":{"kind":"string","value":"{\"install\": [\"python setup.py develop\"], \"pre_install\": [\"tee tox.ini <\nThis is more of a feature request -- it'd be nice to support fixing `brew update $package_name` to `brew upgrade $package_name`, e.g.:\r\n\r\n```\r\n ❯ brew update 1password\r\n\r\nError: This command updates brew itself, and does not take formula names.\r\nUse `brew upgrade 1password` instead.\r\n```\r\n\r\nLove this package, and sorry if this is spammy -- I wasn't able to find a similar issue.\n"},"hints_text":{"kind":"string","value":"I ran into the same problem and in my research I found that the output at brew has been changed and that's why the rule doesn't recognize it correctly anymore.\r\n\r\nI will try a PR in a moment."},"created_at":{"kind":"string","value":"2022-06-23T15:14:02Z"},"merged_at":{"kind":"string","value":"2022-06-28T16:28:38Z"},"PASS_TO_PASS":{"kind":"string","value":"[\"tests/rules/test_brew_update_formula.py::test_get_new_command[brew update bar zap-bar zap]\", \"tests/rules/test_brew_update_formula.py::test_not_match[brew upgrade foo]\", \"tests/rules/test_brew_update_formula.py::test_get_new_command[brew update foo-foo]\", \"tests/rules/test_brew_update_formula.py::test_not_match[brew update]\"]"},"PASS_TO_FAIL":{"kind":"string","value":"[]"},"FAIL_TO_PASS":{"kind":"string","value":"[\"tests/rules/test_brew_update_formula.py::test_match\"]"},"FAIL_TO_FAIL":{"kind":"string","value":"[]"},"install":{"kind":"string","value":"{\"install\": [\"python setup.py develop\"], \"pre_install\": [\"tee tox.ini < ([^\\n]*)\",\n command.output)\n alias = search.group(1)\n"},"test_patch":{"kind":"string","value":"diff --git a/tests/specific/test_git.py b/tests/specific/test_git.py\nindex a17121082..10acb6cde 100644\n--- a/tests/specific/test_git.py\n+++ b/tests/specific/test_git.py\n@@ -27,9 +27,10 @@ def fn(command):\n ('ls', False),\n ('cat git', False),\n ('cat hub', False)])\n-def test_git_support_match(command, is_git):\n+@pytest.mark.parametrize('output', ['', None])\n+def test_git_support_match(command, is_git, output):\n @git_support\n def fn(command):\n return True\n \n- assert fn(Command(command, '')) == is_git\n+ assert fn(Command(command, output)) == is_git\n"},"problem_statement":{"kind":"string","value":"Python exception when executing rule git_hook_bypass: NoneType is not iterable\n\r\n\r\n\r\n\r\nThe output of `thefuck --version` :\r\n\r\nThe Fuck 3.31 using Python 3.9.6 and ZSH 5.8\r\n\r\nYour system (Debian 7, ArchLinux, Windows, etc.):\r\n\r\nMacOS Big Sur 11.5.1 (20G80)\r\n\r\nHow to reproduce the bug:\r\n```\r\n❯ git push\r\nTo ssh://prefix.url.com:1234/REPO/repo.git\r\n ! [rejected] AB-123-task -> AB-123-task (non-fast-forward)\r\nerror: failed to push some refs to 'ssh://prefix.url.com:1234/REPO/repo.git'\r\nhint: Updates were rejected because the tip of your current branch is behind\r\nhint: its remote counterpart. Integrate the remote changes (e.g.\r\nhint: 'git pull ...') before pushing again.\r\nhint: See the 'Note about fast-forwards' in 'git push --help' for details.\r\n\r\n❯ fuck\r\n[WARN] Rule git_hook_bypass:\r\nTraceback (most recent call last):\r\n File \"/usr/local/lib/python3.9/site-packages/thefuck/types.py\", line 181, in is_match\r\n if self.match(command):\r\n File \"/usr/local/lib/python3.9/site-packages/decorator.py\", line 232, in fun\r\n return caller(func, *(extras + args), **kw)\r\n File \"/usr/local/lib/python3.9/site-packages/thefuck/specific/git.py\", line 17, in git_support\r\n if 'trace: alias expansion:' in command.output:\r\nTypeError: argument of type 'NoneType' is not iterable\r\n----------------------------\r\n\r\nNo fucks given\r\n```\r\n\r\nThe output of The Fuck with `THEFUCK_DEBUG=true` exported (typically execute `export THEFUCK_DEBUG=true` in your shell before The Fuck):\r\n```\r\n❯ git push\r\nTo ssh://prefix.url.com:1234/REPO/repo.git\r\n ! [rejected] AB-123-task -> AB-123-task (non-fast-forward)\r\nerror: failed to push some refs to 'ssh://prefix.url.com:1234/REPO/repo.git'\r\nhint: Updates were rejected because the tip of your current branch is behind\r\nhint: its remote counterpart. Integrate the remote changes (e.g.\r\nhint: 'git pull ...') before pushing again.\r\nhint: See the 'Note about fast-forwards' in 'git push --help' for details.\r\n\r\n❯ fuck\r\nDEBUG: Run with settings: {'alter_history': True,\r\n 'debug': True,\r\n 'env': {'GIT_TRACE': '1', 'LANG': 'C', 'LC_ALL': 'C'},\r\n 'exclude_rules': [],\r\n 'excluded_search_path_prefixes': [],\r\n 'history_limit': None,\r\n 'instant_mode': False,\r\n 'no_colors': False,\r\n 'num_close_matches': 3,\r\n 'priority': {'git_hook_bypass': 1001},\r\n 'repeat': False,\r\n 'require_confirmation': True,\r\n 'rules': [],\r\n 'slow_commands': ['lein', 'react-native', 'gradle', './gradlew', 'vagrant'],\r\n 'user_dir': PosixPath('/Users/bbukaty/.config/thefuck'),\r\n 'wait_command': 3,\r\n 'wait_slow_command': 15}\r\nDEBUG: Execution timed out!\r\nDEBUG: Call: git push; with env: {redacted}; is slow: False took: 0:00:03.040546\r\nDEBUG: Importing rule: adb_unknown_command; took: 0:00:00.000584\r\nDEBUG: Importing rule: ag_literal; took: 0:00:00.000537\r\nDEBUG: Importing rule: apt_get; took: 0:00:00.001473\r\nDEBUG: Importing rule: apt_get_search; took: 0:00:00.000353\r\nDEBUG: Importing rule: apt_invalid_operation; took: 0:00:00.000839\r\nDEBUG: Importing rule: apt_list_upgradable; took: 0:00:00.000367\r\nDEBUG: Importing rule: apt_upgrade; took: 0:00:00.001274\r\nDEBUG: Importing rule: aws_cli; took: 0:00:00.000422\r\nDEBUG: Importing rule: az_cli; took: 0:00:00.000383\r\nDEBUG: Importing rule: brew_cask_dependency; took: 0:00:00.000850\r\nDEBUG: Importing rule: brew_install; took: 0:00:00.000304\r\nDEBUG: Importing rule: brew_link; took: 0:00:00.000350\r\nDEBUG: Importing rule: brew_reinstall; took: 0:00:00.000704\r\nDEBUG: Importing rule: brew_uninstall; took: 0:00:00.000377\r\nDEBUG: Importing rule: brew_unknown_command; took: 0:00:00.000310\r\nDEBUG: Importing rule: brew_update_formula; took: 0:00:00.000353\r\nDEBUG: Importing rule: brew_upgrade; took: 0:00:00.000282\r\nDEBUG: Importing rule: cargo; took: 0:00:00.000268\r\nDEBUG: Importing rule: cargo_no_command; took: 0:00:00.000588\r\nDEBUG: Importing rule: cat_dir; took: 0:00:00.000516\r\nDEBUG: Importing rule: cd_correction; took: 0:00:00.001532\r\nDEBUG: Importing rule: cd_cs; took: 0:00:00.000280\r\nDEBUG: Importing rule: cd_mkdir; took: 0:00:00.000355\r\nDEBUG: Importing rule: cd_parent; took: 0:00:00.000276\r\nDEBUG: Importing rule: chmod_x; took: 0:00:00.000277\r\nDEBUG: Importing rule: choco_install; took: 0:00:00.000538\r\nDEBUG: Importing rule: composer_not_command; took: 0:00:00.000338\r\nDEBUG: Importing rule: conda_mistype; took: 0:00:00.000333\r\nDEBUG: Importing rule: cp_create_destination; took: 0:00:00.000369\r\nDEBUG: Importing rule: cp_omitting_directory; took: 0:00:00.000375\r\nDEBUG: Importing rule: cpp11; took: 0:00:00.000338\r\nDEBUG: Importing rule: dirty_untar; took: 0:00:00.001920\r\nDEBUG: Importing rule: dirty_unzip; took: 0:00:00.003105\r\nDEBUG: Importing rule: django_south_ghost; took: 0:00:00.000336\r\nDEBUG: Importing rule: django_south_merge; took: 0:00:00.000263\r\nDEBUG: Importing rule: dnf_no_such_command; took: 0:00:00.000883\r\nDEBUG: Importing rule: docker_image_being_used_by_container; took: 0:00:00.000342\r\nDEBUG: Importing rule: docker_login; took: 0:00:00.000328\r\nDEBUG: Importing rule: docker_not_command; took: 0:00:00.000496\r\nDEBUG: Importing rule: dry; took: 0:00:00.000264\r\nDEBUG: Importing rule: fab_command_not_found; took: 0:00:00.000403\r\nDEBUG: Importing rule: fix_alt_space; took: 0:00:00.000324\r\nDEBUG: Importing rule: fix_file; took: 0:00:00.002060\r\nDEBUG: Importing rule: gem_unknown_command; took: 0:00:00.000445\r\nDEBUG: Importing rule: git_add; took: 0:00:00.000714\r\nDEBUG: Importing rule: git_add_force; took: 0:00:00.000309\r\nDEBUG: Importing rule: git_bisect_usage; took: 0:00:00.000313\r\nDEBUG: Importing rule: git_branch_delete; took: 0:00:00.000306\r\nDEBUG: Importing rule: git_branch_delete_checked_out; took: 0:00:00.000313\r\nDEBUG: Importing rule: git_branch_exists; took: 0:00:00.000323\r\nDEBUG: Importing rule: git_branch_list; took: 0:00:00.000484\r\nDEBUG: Importing rule: git_checkout; took: 0:00:00.000455\r\nDEBUG: Importing rule: git_clone_git_clone; took: 0:00:00.000300\r\nDEBUG: Importing rule: git_commit_amend; took: 0:00:00.000346\r\nDEBUG: Importing rule: git_commit_reset; took: 0:00:00.000296\r\nDEBUG: Importing rule: git_diff_no_index; took: 0:00:00.000306\r\nDEBUG: Importing rule: git_diff_staged; took: 0:00:00.000299\r\nDEBUG: Importing rule: git_fix_stash; took: 0:00:00.000366\r\nDEBUG: Importing rule: git_flag_after_filename; took: 0:00:00.000305\r\nDEBUG: Importing rule: git_help_aliased; took: 0:00:00.000310\r\nDEBUG: Importing rule: git_hook_bypass; took: 0:00:00.000301\r\nDEBUG: Importing rule: git_lfs_mistype; took: 0:00:00.000298\r\nDEBUG: Importing rule: git_merge; took: 0:00:00.000370\r\nDEBUG: Importing rule: git_merge_unrelated; took: 0:00:00.000302\r\nDEBUG: Importing rule: git_not_command; took: 0:00:00.000319\r\nDEBUG: Importing rule: git_pull; took: 0:00:00.000293\r\nDEBUG: Importing rule: git_pull_clone; took: 0:00:00.000296\r\nDEBUG: Importing rule: git_pull_uncommitted_changes; took: 0:00:00.000293\r\nDEBUG: Importing rule: git_push; took: 0:00:00.000361\r\nDEBUG: Importing rule: git_push_different_branch_names; took: 0:00:00.000308\r\nDEBUG: Importing rule: git_push_force; took: 0:00:00.000322\r\nDEBUG: Importing rule: git_push_pull; took: 0:00:00.000319\r\nDEBUG: Importing rule: git_push_without_commits; took: 0:00:00.000511\r\nDEBUG: Importing rule: git_rebase_merge_dir; took: 0:00:00.000353\r\nDEBUG: Importing rule: git_rebase_no_changes; took: 0:00:00.000318\r\nDEBUG: Importing rule: git_remote_delete; took: 0:00:00.000315\r\nDEBUG: Importing rule: git_remote_seturl_add; took: 0:00:00.000288\r\nDEBUG: Importing rule: git_rm_local_modifications; took: 0:00:00.000311\r\nDEBUG: Importing rule: git_rm_recursive; took: 0:00:00.000320\r\nDEBUG: Importing rule: git_rm_staged; took: 0:00:00.000297\r\nDEBUG: Importing rule: git_stash; took: 0:00:00.000307\r\nDEBUG: Importing rule: git_stash_pop; took: 0:00:00.000304\r\nDEBUG: Importing rule: git_tag_force; took: 0:00:00.000522\r\nDEBUG: Importing rule: git_two_dashes; took: 0:00:00.000435\r\nDEBUG: Importing rule: go_run; took: 0:00:00.000305\r\nDEBUG: Importing rule: go_unknown_command; took: 0:00:00.000464\r\nDEBUG: Importing rule: gradle_no_task; took: 0:00:00.000525\r\nDEBUG: Importing rule: gradle_wrapper; took: 0:00:00.000402\r\nDEBUG: Importing rule: grep_arguments_order; took: 0:00:00.000344\r\nDEBUG: Importing rule: grep_recursive; took: 0:00:00.000313\r\nDEBUG: Importing rule: grunt_task_not_found; took: 0:00:00.000466\r\nDEBUG: Importing rule: gulp_not_task; took: 0:00:00.000333\r\nDEBUG: Importing rule: has_exists_script; took: 0:00:00.000366\r\nDEBUG: Importing rule: heroku_multiple_apps; took: 0:00:00.000347\r\nDEBUG: Importing rule: heroku_not_command; took: 0:00:00.000329\r\nDEBUG: Importing rule: history; took: 0:00:00.000272\r\nDEBUG: Importing rule: hostscli; took: 0:00:00.000338\r\nDEBUG: Importing rule: ifconfig_device_not_found; took: 0:00:00.000317\r\nDEBUG: Importing rule: java; took: 0:00:00.000301\r\nDEBUG: Importing rule: javac; took: 0:00:00.000283\r\nDEBUG: Importing rule: lein_not_task; took: 0:00:00.000316\r\nDEBUG: Importing rule: ln_no_hard_link; took: 0:00:00.000292\r\nDEBUG: Importing rule: ln_s_order; took: 0:00:00.000270\r\nDEBUG: Importing rule: long_form_help; took: 0:00:00.000236\r\nDEBUG: Importing rule: ls_all; took: 0:00:00.000356\r\nDEBUG: Importing rule: ls_lah; took: 0:00:00.000288\r\nDEBUG: Importing rule: man; took: 0:00:00.000283\r\nDEBUG: Importing rule: man_no_space; took: 0:00:00.000232\r\nDEBUG: Importing rule: mercurial; took: 0:00:00.000291\r\nDEBUG: Importing rule: missing_space_before_subcommand; took: 0:00:00.000338\r\nDEBUG: Importing rule: mkdir_p; took: 0:00:00.000290\r\nDEBUG: Importing rule: mvn_no_command; took: 0:00:00.000292\r\nDEBUG: Importing rule: mvn_unknown_lifecycle_phase; took: 0:00:00.000284\r\nDEBUG: Importing rule: nixos_cmd_not_found; took: 0:00:00.000728\r\nDEBUG: Importing rule: no_command; took: 0:00:00.000467\r\nDEBUG: Importing rule: no_such_file; took: 0:00:00.000372\r\nDEBUG: Importing rule: npm_missing_script; took: 0:00:00.000632\r\nDEBUG: Importing rule: npm_run_script; took: 0:00:00.000298\r\nDEBUG: Importing rule: npm_wrong_command; took: 0:00:00.000348\r\nDEBUG: Importing rule: omnienv_no_such_command; took: 0:00:00.000534\r\nDEBUG: Importing rule: open; took: 0:00:00.000352\r\nDEBUG: Importing rule: pacman; took: 0:00:00.000675\r\nDEBUG: Importing rule: pacman_invalid_option; took: 0:00:00.000346\r\nDEBUG: Importing rule: pacman_not_found; took: 0:00:00.000341\r\nDEBUG: Importing rule: path_from_history; took: 0:00:00.000281\r\nDEBUG: Importing rule: php_s; took: 0:00:00.000284\r\nDEBUG: Importing rule: pip_install; took: 0:00:00.000297\r\nDEBUG: Importing rule: pip_unknown_command; took: 0:00:00.000287\r\nDEBUG: Importing rule: port_already_in_use; took: 0:00:00.000335\r\nDEBUG: Importing rule: prove_recursively; took: 0:00:00.000287\r\nDEBUG: Importing rule: pyenv_no_such_command; took: 0:00:00.000324\r\nDEBUG: Importing rule: python_command; took: 0:00:00.000269\r\nDEBUG: Importing rule: python_execute; took: 0:00:00.000272\r\nDEBUG: Importing rule: python_module_error; took: 0:00:00.000231\r\nDEBUG: Importing rule: quotation_marks; took: 0:00:00.000246\r\nDEBUG: Importing rule: react_native_command_unrecognized; took: 0:00:00.000304\r\nDEBUG: Importing rule: remove_shell_prompt_literal; took: 0:00:00.000221\r\nDEBUG: Importing rule: remove_trailing_cedilla; took: 0:00:00.000220\r\nDEBUG: Importing rule: rm_dir; took: 0:00:00.000317\r\nDEBUG: Importing rule: rm_root; took: 0:00:00.000271\r\nDEBUG: Importing rule: scm_correction; took: 0:00:00.000279\r\nDEBUG: Importing rule: sed_unterminated_s; took: 0:00:00.000279\r\nDEBUG: Importing rule: sl_ls; took: 0:00:00.000223\r\nDEBUG: Importing rule: ssh_known_hosts; took: 0:00:00.000284\r\nDEBUG: Importing rule: sudo; took: 0:00:00.000225\r\nDEBUG: Importing rule: sudo_command_from_user_path; took: 0:00:00.000275\r\nDEBUG: Importing rule: switch_lang; took: 0:00:00.000299\r\nDEBUG: Importing rule: systemctl; took: 0:00:00.000322\r\nDEBUG: Importing rule: terraform_init; took: 0:00:00.000298\r\nDEBUG: Importing rule: test.py; took: 0:00:00.000226\r\nDEBUG: Importing rule: tmux; took: 0:00:00.000276\r\nDEBUG: Importing rule: touch; took: 0:00:00.000281\r\nDEBUG: Importing rule: tsuru_login; took: 0:00:00.000282\r\nDEBUG: Importing rule: tsuru_not_command; took: 0:00:00.000280\r\nDEBUG: Importing rule: unknown_command; took: 0:00:00.000228\r\nDEBUG: Importing rule: unsudo; took: 0:00:00.000238\r\nDEBUG: Importing rule: vagrant_up; took: 0:00:00.000280\r\nDEBUG: Importing rule: whois; took: 0:00:00.000467\r\nDEBUG: Importing rule: workon_doesnt_exists; took: 0:00:00.000304\r\nDEBUG: Importing rule: yarn_alias; took: 0:00:00.000278\r\nDEBUG: Importing rule: yarn_command_not_found; took: 0:00:00.000495\r\nDEBUG: Importing rule: yarn_command_replaced; took: 0:00:00.000370\r\nDEBUG: Importing rule: yarn_help; took: 0:00:00.000293\r\nDEBUG: Importing rule: yum_invalid_operation; took: 0:00:00.000663\r\nDEBUG: Trying rule: dirty_unzip; took: 0:00:00.000090\r\nDEBUG: Trying rule: git_hook_bypass; took: 0:00:00.000029\r\n[WARN] Rule git_hook_bypass:\r\nTraceback (most recent call last):\r\n File \"/usr/local/lib/python3.9/site-packages/thefuck/types.py\", line 181, in is_match\r\n if self.match(command):\r\n File \"/usr/local/lib/python3.9/site-packages/decorator.py\", line 232, in fun\r\n return caller(func, *(extras + args), **kw)\r\n File \"/usr/local/lib/python3.9/site-packages/thefuck/specific/git.py\", line 17, in git_support\r\n if 'trace: alias expansion:' in command.output:\r\nTypeError: argument of type 'NoneType' is not iterable\r\n----------------------------\r\n\r\nNo fucks given\r\nDEBUG: Total took: 0:00:03.145064\r\n```\r\n\r\n\r\n\r\n\n"},"hints_text":{"kind":"string","value":"Hey! 👋 Thanks a lot for reporting.\r\n\r\nSo, what happens is that for some reason [the execution times out and therefore no output gets collected](https://github.com/nvbn/thefuck/blob/master/thefuck/output_readers/rerun.py#L67-L68). As the `git_hook_bypass` rule [does not require output](https://github.com/nvbn/thefuck/blob/2a166a7dec3c872ef6be3870b50889500ca6a212/thefuck/rules/git_hook_bypass.py#L27), it gets triggered. But then the `git_support` decorator — used not only [by `git_hook_bypass`](https://github.com/nvbn/thefuck/blob/2a166a7dec3c872ef6be3870b50889500ca6a212/thefuck/rules/git_hook_bypass.py#L7) but by all Git rules — [does depend on output](https://github.com/nvbn/thefuck/blob/2a166a7dec3c872ef6be3870b50889500ca6a212/thefuck/specific/git.py#L17), which is `None` in this case. Hence the error.\r\n\r\nThe fix is rather simple. Would you be willing to contribute? 🙂 \nsure.\r\n\r\nI roughly understand what you've described so far, but not enough to guess the solution you have in mind: what is it?\nAwesome! 🙌💥\r\n\r\nTL;DR: please make `git_support` work for cases where there's no output 🙂 \r\n\r\nIt's a good idea to support Git rules that do not depend on output — as is the case of the `git_hook_bypass`. That in turn rules out one possible solution which would be making `git_hook_bypass` output-dependable.\r\n\r\nSo, that means we need to make `git_support` work for cases where there's no output — such as a case where a git hook that runs tests takes too long to run and you just want to have a quick dirty commit or simply push code to a temporary branch on a remote.\r\n\r\nThing is that the `git_support` decorator not only validates the name of the command (either `git` or `hub`) but also converts an alias to its respective expansion — e.g. it can convert `git l` into `git log`. And that is dependent on Git's output — more specifically on Git's trace output, something you can enable by setting a variable before running Git — `export GIT_TRACE=1`.\r\n\r\nIt's nice to have the alias converted so TheFuck can be more assertive when matching rules. But if no output is available to `git_support` and the command does not involve an alias (think `git push`) and the rule does not depend on an output to match or generate a new command, the alias expansion can be skipped.\r\n\r\nI hope that helps. I can be more specific if you wish 😊"},"created_at":{"kind":"string","value":"2021-08-16T22:35:57Z"},"merged_at":{"kind":"string","value":"2021-08-17T13:41:54Z"},"PASS_TO_PASS":{"kind":"string","value":"[\"tests/specific/test_git.py::test_git_support[git br -d some_branch-git branch -d some_branch-19:22:36.299340 git.c:282 trace: alias expansion: br => 'branch']\", \"tests/specific/test_git.py::test_git_support_match[-git pull-True]\", \"tests/specific/test_git.py::test_git_support_match[-cat git-False]\", \"tests/specific/test_git.py::test_git_support[git com file-git commit --verbose file-19:23:25.470911 git.c:282 trace: alias expansion: com => 'commit' '--verbose']\", \"tests/specific/test_git.py::test_git_support_match[-ls-False]\", \"tests/specific/test_git.py::test_git_support_match[None-cat hub-False]\", \"tests/specific/test_git.py::test_git_support_match[None-cat git-False]\", \"tests/specific/test_git.py::test_git_support[git com -m \\\"Initial commit\\\"-git commit -m \\\"Initial commit\\\"-19:22:36.299340 git.c:282 trace: alias expansion: com => 'commit']\", \"tests/specific/test_git.py::test_git_support_match[None-ls-False]\", \"tests/specific/test_git.py::test_git_support_match[-hub pull-True]\", \"tests/specific/test_git.py::test_git_support_match[-hub push --set-upstream origin foo-True]\", \"tests/specific/test_git.py::test_git_support_match[-cat hub-False]\", \"tests/specific/test_git.py::test_git_support[git co-git checkout-19:22:36.299340 git.c:282 trace: alias expansion: co => 'checkout']\", \"tests/specific/test_git.py::test_git_support_match[-git push --set-upstream origin foo-True]\"]"},"PASS_TO_FAIL":{"kind":"string","value":"[]"},"FAIL_TO_PASS":{"kind":"string","value":"[\"tests/specific/test_git.py::test_git_support_match[None-git push --set-upstream origin foo-True]\", \"tests/specific/test_git.py::test_git_support_match[None-hub pull-True]\", \"tests/specific/test_git.py::test_git_support_match[None-git pull-True]\", \"tests/specific/test_git.py::test_git_support_match[None-hub push --set-upstream origin foo-True]\"]"},"FAIL_TO_FAIL":{"kind":"string","value":"[]"},"install":{"kind":"string","value":"{\"install\": [\"python setup.py develop\"], \"pre_install\": [\"tee tox.ini <\r\n\r\n\r\n\r\nThe output of `thefuck --version` (something like `The Fuck 3.1 using Python\r\n3.5.0 and Bash 4.4.12(1)-release`):\r\n\r\n The Fuck 3.30 using Python 3.9.2 and Bash 5.1.4(1)-release\r\n\r\nYour system (Debian 7, ArchLinux, Windows, etc.):\r\n\r\n ArchLinux\r\n\r\nHow to reproduce the bug:\r\n\r\n echo \\\r\n >\r\n fuck\r\n\r\nThe output of The Fuck with `THEFUCK_DEBUG=true` exported (typically execute `export THEFUCK_DEBUG=true` in your shell before The Fuck):\r\n\r\n Traceback (most recent call last):\r\n File \"/usr/bin/thefuck\", line 13, in \r\n sys.exit(main())\r\n File \"/usr/lib/python3.9/site-packages/thefuck/entrypoints/main.py\", line 31, in main\r\n fix_command(known_args)\r\n File \"/usr/lib/python3.9/site-packages/thefuck/entrypoints/fix_command.py\", line 36, in fix_command\r\n command = types.Command.from_raw_script(raw_command)\r\n File \"/usr/lib/python3.9/site-packages/thefuck/types.py\", line 82, in from_raw_script\r\n output = get_output(script, expanded)\r\n File \"/usr/lib/python3.9/site-packages/thefuck/output_readers/__init__.py\", line 20, in get_output\r\n return rerun.get_output(script, expanded)\r\n File \"/usr/lib/python3.9/site-packages/thefuck/output_readers/rerun.py\", line 56, in get_output\r\n split_expand = shlex.split(expanded)\r\n File \"/usr/lib/python3.9/shlex.py\", line 315, in split\r\n return list(lex)\r\n File \"/usr/lib/python3.9/shlex.py\", line 300, in __next__\r\n token = self.get_token()\r\n File \"/usr/lib/python3.9/shlex.py\", line 109, in get_token\r\n raw = self.read_token()\r\n File \"/usr/lib/python3.9/shlex.py\", line 210, in read_token\r\n raise ValueError(\"No escaped character\")\r\n ValueError: No escaped character\r\n\r\n\r\n\r\n\n"},"hints_text":{"kind":"string","value":"Yep, can confirm this issue also exists on windows/powershell\nFWIW I do not get this error on mac(big sur 11.3)"},"created_at":{"kind":"string","value":"2021-07-23T18:09:12Z"},"merged_at":{"kind":"string","value":"2021-07-29T20:04:47Z"},"PASS_TO_PASS":{"kind":"string","value":"[\"tests/test_types.py::TestCorrectedCommand::test_run[git branch-git branch-override_settings0]\", \"tests/test_types.py::TestRule::test_from_path_excluded_rule\", \"tests/test_types.py::TestRule::test_isnt_match_when_rule_failed\", \"tests/test_types.py::TestRule::test_is_enabled[rules1-rule1-False]\", \"tests/test_types.py::TestRule::test_is_enabled[rules2-rule2-False]\", \"tests/test_types.py::TestRule::test_from_path_rule_exception\", \"tests/test_types.py::TestRule::test_get_corrected_commands_with_rule_returns_command\", \"tests/test_types.py::TestCorrectedCommand::test_run[git brunch-git brunch || fuck --repeat --force-command 'git brunch'-override_settings1]\", \"tests/test_types.py::TestCorrectedCommand::test_run[git brunch-git brunch || fuck --repeat --debug --force-command 'git brunch'-override_settings2]\", \"tests/test_types.py::TestCommand::test_from_script_calls\", \"tests/test_types.py::TestRule::test_from_path\", \"tests/test_types.py::TestRule::test_is_enabled[rules4-rule4-True]\", \"tests/test_types.py::TestCommand::test_from_script[script2-None]\", \"tests/test_types.py::TestCorrectedCommand::test_hashable\", \"tests/test_types.py::TestCommand::test_from_script[script1-None]\", \"tests/test_types.py::TestCorrectedCommand::test_representable\", \"tests/test_types.py::TestRule::test_get_corrected_commands_with_rule_returns_list\", \"tests/test_types.py::TestRule::test_is_enabled[rules0-rule0-True]\", \"tests/test_types.py::TestRule::test_is_match\", \"tests/test_types.py::TestRule::test_is_enabled[rules5-rule5-True]\", \"tests/test_types.py::TestRule::test_is_enabled[rules3-rule3-False]\", \"tests/test_types.py::TestCommand::test_from_script[script0-None]\", \"tests/test_types.py::TestCorrectedCommand::test_equality\", \"tests/test_types.py::TestCommand::test_from_script[script3-ls -la]\", \"tests/test_types.py::TestRule::test_isnt_match\"]"},"PASS_TO_FAIL":{"kind":"string","value":"[]"},"FAIL_TO_PASS":{"kind":"string","value":"[\"tests/test_types.py::TestCommand::test_from_script[script4-ls]\", \"tests/test_types.py::TestCommand::test_from_script[script6-echo \\\\\\\\\\\\n]\", \"tests/test_types.py::TestCommand::test_from_script[script5-echo \\\\\\\\ ]\"]"},"FAIL_TO_FAIL":{"kind":"string","value":"[]"},"install":{"kind":"string","value":"{\"install\": [\"python setup.py develop\"], \"pre_install\": [\"tee tox.ini <\r\n File \"d:\\python36\\lib\\site-packages\\thefuck\\entrypoints\\main.py\", line 26, in main\r\n fix_command(known_args)\r\n File \"d:\\python36\\lib\\site-packages\\thefuck\\entrypoints\\fix_command.py\", line 36, in fix_command\r\n command = types.Command.from_raw_script(raw_command)\r\n File \"d:\\python36\\lib\\site-packages\\thefuck\\types.py\", line 82, in from_raw_script\r\n output = get_output(script, expanded)\r\n File \"d:\\python36\\lib\\site-packages\\thefuck\\output_readers\\__init__.py\", line 20, in get_output\r\n return rerun.get_output(script, expanded)\r\n File \"d:\\python36\\lib\\site-packages\\thefuck\\output_readers\\rerun.py\", line 62, in get_output\r\n output = result.stdout.read().decode('utf-8')\r\nUnicodeDecodeError: 'utf-8' codec can't decode byte 0xb2 in position 9: invalid start byte\r\n```\n"},"hints_text":{"kind":"string","value":"@nvbn would this be easier if we decode the `output = result.stdout.read().decode('utf-8')` using **utf-32** instead of utf-8 ?\nHey, can I look into this issue?\n@Surya97, you are more than welcome! The Fuck really needs Windows users as contributors!\nMaybe we can using `chardet` to make it? \nI'm not sure to open a new issue since this is also open for ubuntu. I get the same proble wiht MAC OS X catalina. installed with homebrew and usd with a [zsh plugin](https://github.com/laggardkernel/zsh-thefuck).\r\n\r\nIt generally worked well i.e.:\r\n\r\n```\r\n~ via ⬢ v12.4.0\r\n➜ ls -j\r\nls: illegal option -- j\r\nusage: ls [-@ABCFGHLOPRSTUWabcdefghiklmnopqrstuwx1%] [file ...]\r\n\r\n~ via ⬢ v12.4.0\r\n➜ fuck\r\nls -k [enter/↑/↓/ctrl+c]\r\n```\r\n\r\nbut when I use a spanish character, for example in my keyboard ñ is near to l, so I cant type easily, \r\nls -ñ instead of ls -l (Really normaly not happens, but in this case I was thinking for an option than doesnt have ls)\r\n\r\nso I tried with this:\r\n\r\n```\r\n~ via ⬢ v12.4.0 took 8s\r\n➜ ls -ñ\r\nls: illegal option -- �\r\nusage: ls [-@ABCFGHLOPRSTUWabcdefghiklmnopqrstuwx1%] [file ...]\r\n\r\n~ via ⬢ v12.4.0\r\n➜ fuck\r\nTraceback (most recent call last):\r\n File \"/usr/local/bin/thefuck\", line 13, in \r\n sys.exit(main())\r\n File \"/usr/local/Cellar/thefuck/3.30/libexec/lib/python3.8/site-packages/thefuck/entrypoints/main.py\", line 31, in main\r\n fix_command(known_args)\r\n File \"/usr/local/Cellar/thefuck/3.30/libexec/lib/python3.8/site-packages/thefuck/entrypoints/fix_command.py\", line 36, in fix_command\r\n command = types.Command.from_raw_script(raw_command)\r\n File \"/usr/local/Cellar/thefuck/3.30/libexec/lib/python3.8/site-packages/thefuck/types.py\", line 82, in from_raw_script\r\n output = get_output(script, expanded)\r\n File \"/usr/local/Cellar/thefuck/3.30/libexec/lib/python3.8/site-packages/thefuck/output_readers/__init__.py\", line 20, in get_output\r\n return rerun.get_output(script, expanded)\r\n File \"/usr/local/Cellar/thefuck/3.30/libexec/lib/python3.8/site-packages/thefuck/output_readers/rerun.py\", line 63, in get_output\r\n output = result.stdout.read().decode('utf-8')\r\nUnicodeDecodeError: 'utf-8' codec can't decode byte 0xc3 in position 22: invalid continuation byte\r\n\r\n~ via ⬢ v12.4.0\r\n➜ locale\r\nLANG=\"es_ES.UTF-8\"\r\nLC_COLLATE=\"es_ES.UTF-8\"\r\nLC_CTYPE=\"es_ES.UTF-8\"\r\nLC_MESSAGES=\"es_ES.UTF-8\"\r\nLC_MONETARY=\"es_ES.UTF-8\"\r\nLC_NUMERIC=\"es_ES.UTF-8\"\r\nLC_TIME=\"es_ES.UTF-8\"\r\nLC_ALL=\r\n```\r\n\r\nto be fear I think that I have my locale well configured, but also ls doesn't catch ñ, but in environment varianles it works, it seems that ls only handles ascii internally?.\r\n\r\nThanks for this nice library for console use.\nThis is the output Python gets:\r\n\r\n```\r\nb'ls: illegal option -- \\xc3\\nusage: ls [-@ABCFGHLOPRSTUWabcdefghiklmnopqrstuwx1%] [file ...]\\n'\r\n```\r\n\r\nAnd indeed, `\\n` is not a valid continuation for `\\xc3`. That's very odd. 🤔"},"created_at":{"kind":"string","value":"2021-07-14T11:17:50Z"},"merged_at":{"kind":"string","value":"2021-07-29T19:37:19Z"},"PASS_TO_PASS":{"kind":"string","value":"[\"tests/output_readers/test_rerun.py::TestRerun::test_wait_output_is_slow\", \"tests/output_readers/test_rerun.py::TestRerun::test_get_output\", \"tests/output_readers/test_rerun.py::TestRerun::test_wait_output_timeout\", \"tests/output_readers/test_rerun.py::TestRerun::test_wait_output_timeout_children\", \"tests/output_readers/test_rerun.py::TestRerun::test_wait_output_is_not_slow\", \"tests/output_readers/test_rerun.py::TestRerun::test_kill_process\"]"},"PASS_TO_FAIL":{"kind":"string","value":"[]"},"FAIL_TO_PASS":{"kind":"string","value":"[\"tests/output_readers/test_rerun.py::TestRerun::test_get_output_invalid_continuation_byte\", \"tests/output_readers/test_rerun.py::TestRerun::test_kill_process_access_denied\"]"},"FAIL_TO_FAIL":{"kind":"string","value":"[]"},"install":{"kind":"string","value":"{\"install\": [\"python setup.py develop\"], \"pre_install\": [\"tee tox.ini <\r\n\r\n\r\n\r\nMaybe this is just me, but often when I want to install a new package with composer I'll try `composer install package` when I should be using `composer require package`. Composer prints the message \"Invalid argument package. Use \"composer require package\" instead to add packages to your composer.json.\" when you do this, so I expected thefuck to pick up on that.\r\n\r\nThe output of `thefuck --version` (something like `The Fuck 3.1 using Python\r\n3.5.0 and Bash 4.4.12(1)-release`):\r\n\r\n The Fuck 3.30 using Python 3.8.2 and Bash 5.0.17(1)-release\r\n\r\nYour system (Debian 7, ArchLinux, Windows, etc.):\r\n\r\n Ubuntu 20.04\r\n\r\nHow to reproduce the bug:\r\n\r\n```shell\r\n$ composer install package\r\nInvalid argument package. Use \"composer require package\" instead to add packages to your composer.json.\r\n$ fuck\r\nNothing found\r\n```\r\n\r\nThe output of The Fuck with `THEFUCK_DEBUG=true` exported (typically execute `export THEFUCK_DEBUG=true` in your shell before The Fuck):\r\n```\r\nDEBUG: Run with settings: {'alter_history': True,\r\n 'debug': True,\r\n 'env': {'GIT_TRACE': '1', 'LANG': 'C', 'LC_ALL': 'C'},\r\n 'exclude_rules': [],\r\n 'history_limit': None,\r\n 'instant_mode': False,\r\n 'no_colors': False,\r\n 'num_close_matches': 3,\r\n 'priority': {},\r\n 'repeat': False,\r\n 'require_confirmation': True,\r\n 'rules': [],\r\n 'slow_commands': ['lein', 'react-native', 'gradle', './gradlew', 'vagrant'],\r\n 'user_dir': PosixPath('/home/workini/.config/thefuck'),\r\n 'wait_command': 3,\r\n 'wait_slow_command': 15}\r\nDEBUG: Received output: Invalid argument package. Use \"composer require package\" instead to add packages to your composer.json.\r\n\r\nDEBUG: Call: composer install package; with env: {'SHELL': '/bin/bash', 'SESSION_MANAGER': 'local/REDSTONEBLOCK:@/tmp/.ICE-unix/3333,unix/REDSTONEBLOCK:/tmp/.ICE-unix/3333', 'QT_ACCESSIBILITY': '1', 'TF_SHELL': 'bash', 'COLORTERM': 'truecolor', 'XDG_CONFIG_DIRS': '/etc/xdg/xdg-ubuntu:/etc/xdg', 'NVM_INC': '/home/workini/.nvm/versions/node/v12.18.3/include/node', 'XDG_MENU_PREFIX': 'gnome-', 'GNOME_DESKTOP_SESSION_ID': 'this-is-deprecated', 'GTK_IM_MODULE': 'ibus', 'LANGUAGE': 'en_GB:en', 'QT4_IM_MODULE': 'ibus', 'GNOME_SHELL_SESSION_MODE': 'ubuntu', 'SSH_AUTH_SOCK': '/run/user/1001/keyring/ssh', 'XMODIFIERS': '@im=ibus', 'DESKTOP_SESSION': 'ubuntu', 'SSH_AGENT_PID': '3219', 'GTK_MODULES': 'gail:atk-bridge', 'PWD': '/home/workini/Code/avro-energy/portal', 'LOGNAME': 'workini', 'XDG_SESSION_DESKTOP': 'ubuntu', 'XDG_SESSION_TYPE': 'x11', 'GPG_AGENT_INFO': '/run/user/1001/gnupg/S.gpg-agent:0:1', 'XAUTHORITY': '/run/user/1001/gdm/Xauthority', 'GJS_DEBUG_TOPICS': 'JS ERROR;JS LOG', 'WINDOWPATH': '2', 'HOME': '/home/workini', 'USERNAME': 'workini', 'IM_CONFIG_PHASE': '1', 'LANG': 'C', 'LS_COLORS': 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:', 'XDG_CURRENT_DESKTOP': 'ubuntu:GNOME', 'VTE_VERSION': '6003', 'GNOME_TERMINAL_SCREEN': '/org/gnome/Terminal/screen/5a99e198_deb1_4832_9908_2527cbbed078', 'INVOCATION_ID': '4714ae1119714268adadf185d5163e23', 'MANAGERPID': '3014', 'CLUTTER_IM_MODULE': 'ibus', 'TF_ALIAS': 'f', 'GJS_DEBUG_OUTPUT': 'stderr', 'NVM_DIR': '/home/workini/.nvm', 'LESSCLOSE': '/usr/bin/lesspipe %s %s', 'XDG_SESSION_CLASS': 'user', 'TERM': 'xterm-256color', 'TF_HISTORY': '\\t thefuck --version | clip\\n\\t osname\\n\\t uname\\n\\t tldr uname\\n\\t uname -s\\n\\t uname -srv\\n\\t composer install package\\n\\t f\\n\\t export THEFUCK_DEBUG=true\\n\\t composer install package', 'LESSOPEN': '| /usr/bin/lesspipe %s', 'USER': 'workini', 'PYTHONIOENCODING': 'utf-8', 'TF_SHELL_ALIASES': 'alias alert=\\'notify-send --urgency=low -i \"$([ $? = 0 ] && echo terminal || echo error)\" \"$(history|tail -n1|sed -e \\'\\\\\\'\\'s/^\\\\s*[0-9]\\\\+\\\\s*//;s/[;&|]\\\\s*alert$//\\'\\\\\\'\\')\"\\'\\nalias clip=\\'xclip -sel clip\\'\\nalias egrep=\\'egrep --color=auto\\'\\nalias fgrep=\\'fgrep --color=auto\\'\\nalias fin=\\'printf \\'\\\\\\'\\'\\\\a\\'\\\\\\'\\'\\'\\nalias grep=\\'grep --color=auto\\'\\nalias hartisan=\\'homestead artisan\\'\\nalias hphpunit=\\'homestead cmd vendor/bin/phpunit\\'\\nalias htinker=\\'hartisan tinker\\'\\nalias l=\\'ls -CF\\'\\nalias la=\\'ls -A\\'\\nalias ll=\\'ls -alF\\'\\nalias ls=\\'ls --color=auto\\'\\nalias phpunit=\\'vendor/bin/phpunit\\'\\nalias tinker=\\'artisan tinker\\'', 'GNOME_TERMINAL_SERVICE': ':1.121', 'DISPLAY': ':0', 'SHLVL': '1', 'NVM_CD_FLAGS': '', 'QT_IM_MODULE': 'ibus', 'XDG_RUNTIME_DIR': '/run/user/1001', 'JOURNAL_STREAM': '9:58545', 'XDG_DATA_DIRS': '/usr/share/ubuntu:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop', 'PATH': '/home/workini/.nvm/versions/node/v12.18.3/bin:/home/workini/.local/bin:/home/workini/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin', 'GDMSESSION': 'ubuntu', 'THEFUCK_DEBUG': 'true', 'DBUS_SESSION_BUS_ADDRESS': 'unix:path=/run/user/1001/bus', 'NVM_BIN': '/home/workini/.nvm/versions/node/v12.18.3/bin', 'OLDPWD': '/home/workini', '_': '/usr/local/bin/thefuck', 'LC_ALL': 'C', 'GIT_TRACE': '1'}; is slow: False took: 0:00:00.093402\r\nDEBUG: Importing rule: adb_unknown_command; took: 0:00:00.000417\r\nDEBUG: Importing rule: ag_literal; took: 0:00:00.000760\r\nDEBUG: Importing rule: apt_get; took: 0:00:00.014360\r\nDEBUG: Importing rule: apt_get_search; took: 0:00:00.000385\r\nDEBUG: Importing rule: apt_invalid_operation; took: 0:00:00.000862\r\nDEBUG: Importing rule: apt_list_upgradable; took: 0:00:00.000462\r\nDEBUG: Importing rule: apt_upgrade; took: 0:00:00.000428\r\nDEBUG: Importing rule: aws_cli; took: 0:00:00.000270\r\nDEBUG: Importing rule: az_cli; took: 0:00:00.000269\r\nDEBUG: Importing rule: brew_cask_dependency; took: 0:00:00.000659\r\nDEBUG: Importing rule: brew_install; took: 0:00:00.000111\r\nDEBUG: Importing rule: brew_link; took: 0:00:00.000266\r\nDEBUG: Importing rule: brew_reinstall; took: 0:00:00.000556\r\nDEBUG: Importing rule: brew_uninstall; took: 0:00:00.000274\r\nDEBUG: Importing rule: brew_unknown_command; took: 0:00:00.000128\r\nDEBUG: Importing rule: brew_update_formula; took: 0:00:00.000275\r\nDEBUG: Importing rule: brew_upgrade; took: 0:00:00.000107\r\nDEBUG: Importing rule: cargo; took: 0:00:00.000093\r\nDEBUG: Importing rule: cargo_no_command; took: 0:00:00.000272\r\nDEBUG: Importing rule: cat_dir; took: 0:00:00.000268\r\nDEBUG: Importing rule: cd_correction; took: 0:00:00.001175\r\nDEBUG: Importing rule: cd_mkdir; took: 0:00:00.000426\r\nDEBUG: Importing rule: cd_parent; took: 0:00:00.000098\r\nDEBUG: Importing rule: chmod_x; took: 0:00:00.000101\r\nDEBUG: Importing rule: choco_install; took: 0:00:00.000470\r\nDEBUG: Importing rule: composer_not_command; took: 0:00:00.000280\r\nDEBUG: Importing rule: cp_create_destination; took: 0:00:00.000266\r\nDEBUG: Importing rule: cp_omitting_directory; took: 0:00:00.000425\r\nDEBUG: Importing rule: cpp11; took: 0:00:00.000341\r\nDEBUG: Importing rule: dirty_untar; took: 0:00:00.001123\r\nDEBUG: Importing rule: dirty_unzip; took: 0:00:00.001456\r\nDEBUG: Importing rule: django_south_ghost; took: 0:00:00.000111\r\nDEBUG: Importing rule: django_south_merge; took: 0:00:00.000098\r\nDEBUG: Importing rule: dnf_no_such_command; took: 0:00:00.000839\r\nDEBUG: Importing rule: docker_image_being_used_by_container; took: 0:00:00.000271\r\nDEBUG: Importing rule: docker_login; took: 0:00:00.000266\r\nDEBUG: Importing rule: docker_not_command; took: 0:00:00.000605\r\nDEBUG: Importing rule: dry; took: 0:00:00.000098\r\nDEBUG: Importing rule: fab_command_not_found; took: 0:00:00.000484\r\nDEBUG: Importing rule: fix_alt_space; took: 0:00:00.000279\r\nDEBUG: Importing rule: fix_file; took: 0:00:00.002043\r\nDEBUG: Importing rule: gem_unknown_command; took: 0:00:00.000456\r\nDEBUG: Importing rule: git_add; took: 0:00:00.000492\r\nDEBUG: Importing rule: git_add_force; took: 0:00:00.000265\r\nDEBUG: Importing rule: git_bisect_usage; took: 0:00:00.000261\r\nDEBUG: Importing rule: git_branch_delete; took: 0:00:00.000269\r\nDEBUG: Importing rule: git_branch_delete_checked_out; took: 0:00:00.000267\r\nDEBUG: Importing rule: git_branch_exists; took: 0:00:00.000337\r\nDEBUG: Importing rule: git_branch_list; took: 0:00:00.000255\r\nDEBUG: Importing rule: git_checkout; took: 0:00:00.000267\r\nDEBUG: Importing rule: git_commit_amend; took: 0:00:00.000260\r\nDEBUG: Importing rule: git_commit_reset; took: 0:00:00.000254\r\nDEBUG: Importing rule: git_diff_no_index; took: 0:00:00.000253\r\nDEBUG: Importing rule: git_diff_staged; took: 0:00:00.000319\r\nDEBUG: Importing rule: git_fix_stash; took: 0:00:00.000270\r\nDEBUG: Importing rule: git_flag_after_filename; took: 0:00:00.000262\r\nDEBUG: Importing rule: git_help_aliased; took: 0:00:00.000252\r\nDEBUG: Importing rule: git_merge; took: 0:00:00.000313\r\nDEBUG: Importing rule: git_merge_unrelated; took: 0:00:00.000258\r\nDEBUG: Importing rule: git_not_command; took: 0:00:00.000259\r\nDEBUG: Importing rule: git_pull; took: 0:00:00.000264\r\nDEBUG: Importing rule: git_pull_clone; took: 0:00:00.000251\r\nDEBUG: Importing rule: git_pull_uncommitted_changes; took: 0:00:00.000254\r\nDEBUG: Importing rule: git_push; took: 0:00:00.000273\r\nDEBUG: Importing rule: git_push_different_branch_names; took: 0:00:00.000250\r\nDEBUG: Importing rule: git_push_force; took: 0:00:00.000253\r\nDEBUG: Importing rule: git_push_pull; took: 0:00:00.000265\r\nDEBUG: Importing rule: git_push_without_commits; took: 0:00:00.000320\r\nDEBUG: Importing rule: git_rebase_merge_dir; took: 0:00:00.000257\r\nDEBUG: Importing rule: git_rebase_no_changes; took: 0:00:00.000183\r\nDEBUG: Importing rule: git_remote_delete; took: 0:00:00.000260\r\nDEBUG: Importing rule: git_remote_seturl_add; took: 0:00:00.000180\r\nDEBUG: Importing rule: git_rm_local_modifications; took: 0:00:00.000255\r\nDEBUG: Importing rule: git_rm_recursive; took: 0:00:00.000256\r\nDEBUG: Importing rule: git_rm_staged; took: 0:00:00.000252\r\nDEBUG: Importing rule: git_stash; took: 0:00:00.000252\r\nDEBUG: Importing rule: git_stash_pop; took: 0:00:00.000315\r\nDEBUG: Importing rule: git_tag_force; took: 0:00:00.000268\r\nDEBUG: Importing rule: git_two_dashes; took: 0:00:00.000257\r\nDEBUG: Importing rule: go_run; took: 0:00:00.000269\r\nDEBUG: Importing rule: go_unknown_command; took: 0:00:00.000389\r\nDEBUG: Importing rule: gradle_no_task; took: 0:00:00.000498\r\nDEBUG: Importing rule: gradle_wrapper; took: 0:00:00.000271\r\nDEBUG: Importing rule: grep_arguments_order; took: 0:00:00.000302\r\nDEBUG: Importing rule: grep_recursive; took: 0:00:00.000262\r\nDEBUG: Importing rule: grunt_task_not_found; took: 0:00:00.000470\r\nDEBUG: Importing rule: gulp_not_task; took: 0:00:00.000278\r\nDEBUG: Importing rule: has_exists_script; took: 0:00:00.000265\r\nDEBUG: Importing rule: heroku_multiple_apps; took: 0:00:00.000271\r\nDEBUG: Importing rule: heroku_not_command; took: 0:00:00.000268\r\nDEBUG: Importing rule: history; took: 0:00:00.000099\r\nDEBUG: Importing rule: hostscli; took: 0:00:00.000425\r\nDEBUG: Importing rule: ifconfig_device_not_found; took: 0:00:00.000333\r\nDEBUG: Importing rule: java; took: 0:00:00.000315\r\nDEBUG: Importing rule: javac; took: 0:00:00.000259\r\nDEBUG: Importing rule: lein_not_task; took: 0:00:00.000413\r\nDEBUG: Importing rule: ln_no_hard_link; took: 0:00:00.000257\r\nDEBUG: Importing rule: ln_s_order; took: 0:00:00.000262\r\nDEBUG: Importing rule: long_form_help; took: 0:00:00.000102\r\nDEBUG: Importing rule: ls_all; took: 0:00:00.000259\r\nDEBUG: Importing rule: ls_lah; took: 0:00:00.000265\r\nDEBUG: Importing rule: man; took: 0:00:00.000272\r\nDEBUG: Importing rule: man_no_space; took: 0:00:00.000097\r\nDEBUG: Importing rule: mercurial; took: 0:00:00.000265\r\nDEBUG: Importing rule: missing_space_before_subcommand; took: 0:00:00.000109\r\nDEBUG: Importing rule: mkdir_p; took: 0:00:00.000257\r\nDEBUG: Importing rule: mvn_no_command; took: 0:00:00.000269\r\nDEBUG: Importing rule: mvn_unknown_lifecycle_phase; took: 0:00:00.000271\r\nDEBUG: Importing rule: nixos_cmd_not_found; took: 0:00:00.000451\r\nDEBUG: Importing rule: no_command; took: 0:00:00.000284\r\nDEBUG: Importing rule: no_such_file; took: 0:00:00.000105\r\nDEBUG: Importing rule: npm_missing_script; took: 0:00:00.000562\r\nDEBUG: Importing rule: npm_run_script; took: 0:00:00.000273\r\nDEBUG: Importing rule: npm_wrong_command; took: 0:00:00.000518\r\nDEBUG: Importing rule: open; took: 0:00:00.000423\r\nDEBUG: Importing rule: pacman; took: 0:00:00.000483\r\nDEBUG: Importing rule: pacman_not_found; took: 0:00:00.000108\r\nDEBUG: Importing rule: path_from_history; took: 0:00:00.000118\r\nDEBUG: Importing rule: php_s; took: 0:00:00.000272\r\nDEBUG: Importing rule: pip_install; took: 0:00:00.000349\r\nDEBUG: Importing rule: pip_unknown_command; took: 0:00:00.000350\r\nDEBUG: Importing rule: port_already_in_use; took: 0:00:00.000202\r\nDEBUG: Importing rule: prove_recursively; took: 0:00:00.000286\r\nDEBUG: Importing rule: pyenv_no_such_command; took: 0:00:00.000529\r\nDEBUG: Importing rule: python_command; took: 0:00:00.000259\r\nDEBUG: Importing rule: python_execute; took: 0:00:00.000272\r\nDEBUG: Importing rule: quotation_marks; took: 0:00:00.000095\r\nDEBUG: Importing rule: react_native_command_unrecognized; took: 0:00:00.000347\r\nDEBUG: Importing rule: remove_shell_prompt_literal; took: 0:00:00.000097\r\nDEBUG: Importing rule: remove_trailing_cedilla; took: 0:00:00.000096\r\nDEBUG: Importing rule: rm_dir; took: 0:00:00.000262\r\nDEBUG: Importing rule: rm_root; took: 0:00:00.000279\r\nDEBUG: Importing rule: scm_correction; took: 0:00:00.000280\r\nDEBUG: Importing rule: sed_unterminated_s; took: 0:00:00.000443\r\nDEBUG: Importing rule: sl_ls; took: 0:00:00.000097\r\nDEBUG: Importing rule: ssh_known_hosts; took: 0:00:00.000279\r\nDEBUG: Importing rule: sudo; took: 0:00:00.000109\r\nDEBUG: Importing rule: sudo_command_from_user_path; took: 0:00:00.000279\r\nDEBUG: Importing rule: switch_lang; took: 0:00:00.000162\r\nDEBUG: Importing rule: systemctl; took: 0:00:00.000431\r\nDEBUG: Importing rule: terraform_init; took: 0:00:00.000277\r\nDEBUG: Importing rule: test.py; took: 0:00:00.000094\r\nDEBUG: Importing rule: tmux; took: 0:00:00.000264\r\nDEBUG: Importing rule: touch; took: 0:00:00.000267\r\nDEBUG: Importing rule: tsuru_login; took: 0:00:00.000266\r\nDEBUG: Importing rule: tsuru_not_command; took: 0:00:00.000263\r\nDEBUG: Importing rule: unknown_command; took: 0:00:00.000100\r\nDEBUG: Importing rule: unsudo; took: 0:00:00.000093\r\nDEBUG: Importing rule: vagrant_up; took: 0:00:00.000268\r\nDEBUG: Importing rule: whois; took: 0:00:00.000401\r\nDEBUG: Importing rule: workon_doesnt_exists; took: 0:00:00.000348\r\nDEBUG: Importing rule: yarn_alias; took: 0:00:00.000264\r\nDEBUG: Importing rule: yarn_command_not_found; took: 0:00:00.000577\r\nDEBUG: Importing rule: yarn_command_replaced; took: 0:00:00.000421\r\nDEBUG: Importing rule: yarn_help; took: 0:00:00.000269\r\nDEBUG: Importing rule: yum_invalid_operation; took: 0:00:00.000642\r\nDEBUG: Trying rule: path_from_history; took: 0:00:00.000445\r\nDEBUG: Trying rule: dry; took: 0:00:00.000070\r\nDEBUG: Trying rule: git_stash_pop; took: 0:00:00.000019\r\nDEBUG: Trying rule: test.py; took: 0:00:00.000002\r\nDEBUG: Trying rule: adb_unknown_command; took: 0:00:00.000013\r\nDEBUG: Trying rule: ag_literal; took: 0:00:00.000013\r\nDEBUG: Trying rule: apt_get; took: 0:00:00.000003\r\nDEBUG: Trying rule: apt_get_search; took: 0:00:00.000013\r\nDEBUG: Trying rule: apt_invalid_operation; took: 0:00:00.000015\r\nDEBUG: Trying rule: apt_list_upgradable; took: 0:00:00.000014\r\nDEBUG: Trying rule: apt_upgrade; took: 0:00:00.000012\r\nDEBUG: Trying rule: aws_cli; took: 0:00:00.000012\r\nDEBUG: Trying rule: az_cli; took: 0:00:00.000012\r\nDEBUG: Trying rule: brew_link; took: 0:00:00.000013\r\nDEBUG: Trying rule: brew_reinstall; took: 0:00:00.000011\r\nDEBUG: Trying rule: brew_uninstall; took: 0:00:00.000011\r\nDEBUG: Trying rule: brew_update_formula; took: 0:00:00.000014\r\nDEBUG: Trying rule: cargo; took: 0:00:00.000002\r\nDEBUG: Trying rule: cargo_no_command; took: 0:00:00.000012\r\nDEBUG: Trying rule: cat_dir; took: 0:00:00.000012\r\nDEBUG: Trying rule: cd_correction; took: 0:00:00.000013\r\nDEBUG: Trying rule: cd_mkdir; took: 0:00:00.000011\r\nDEBUG: Trying rule: cd_parent; took: 0:00:00.000002\r\nDEBUG: Trying rule: chmod_x; took: 0:00:00.000003\r\nDEBUG: Trying rule: composer_not_command; took: 0:00:00.000014\r\nDEBUG: Trying rule: cp_create_destination; took: 0:00:00.000012\r\nDEBUG: Trying rule: cp_omitting_directory; took: 0:00:00.000012\r\nDEBUG: Trying rule: cpp11; took: 0:00:00.000011\r\nDEBUG: Trying rule: dirty_untar; took: 0:00:00.000012\r\nDEBUG: Trying rule: dirty_unzip; took: 0:00:00.000012\r\nDEBUG: Trying rule: django_south_ghost; took: 0:00:00.000003\r\nDEBUG: Trying rule: django_south_merge; took: 0:00:00.000002\r\nDEBUG: Trying rule: docker_image_being_used_by_container; took: 0:00:00.000012\r\nDEBUG: Trying rule: docker_login; took: 0:00:00.000010\r\nDEBUG: Trying rule: docker_not_command; took: 0:00:00.000012\r\nDEBUG: Trying rule: fab_command_not_found; took: 0:00:00.000012\r\nDEBUG: Trying rule: fix_alt_space; took: 0:00:00.000003\r\nDEBUG: Trying rule: fix_file; took: 0:00:00.000007\r\nDEBUG: Trying rule: gem_unknown_command; took: 0:00:00.000012\r\nDEBUG: Trying rule: git_add; took: 0:00:00.000010\r\nDEBUG: Trying rule: git_add_force; took: 0:00:00.000010\r\nDEBUG: Trying rule: git_bisect_usage; took: 0:00:00.000010\r\nDEBUG: Trying rule: git_branch_delete; took: 0:00:00.000009\r\nDEBUG: Trying rule: git_branch_delete_checked_out; took: 0:00:00.000010\r\nDEBUG: Trying rule: git_branch_exists; took: 0:00:00.000010\r\nDEBUG: Trying rule: git_branch_list; took: 0:00:00.000009\r\nDEBUG: Trying rule: git_checkout; took: 0:00:00.000009\r\nDEBUG: Trying rule: git_commit_amend; took: 0:00:00.000009\r\nDEBUG: Trying rule: git_commit_reset; took: 0:00:00.000009\r\nDEBUG: Trying rule: git_diff_no_index; took: 0:00:00.000010\r\nDEBUG: Trying rule: git_diff_staged; took: 0:00:00.000010\r\nDEBUG: Trying rule: git_fix_stash; took: 0:00:00.000009\r\nDEBUG: Trying rule: git_flag_after_filename; took: 0:00:00.000010\r\nDEBUG: Trying rule: git_help_aliased; took: 0:00:00.000009\r\nDEBUG: Trying rule: git_merge; took: 0:00:00.000009\r\nDEBUG: Trying rule: git_merge_unrelated; took: 0:00:00.000009\r\nDEBUG: Trying rule: git_not_command; took: 0:00:00.000010\r\nDEBUG: Trying rule: git_pull; took: 0:00:00.000009\r\nDEBUG: Trying rule: git_pull_clone; took: 0:00:00.000009\r\nDEBUG: Trying rule: git_pull_uncommitted_changes; took: 0:00:00.000009\r\nDEBUG: Trying rule: git_push; took: 0:00:00.000009\r\nDEBUG: Trying rule: git_push_different_branch_names; took: 0:00:00.000039\r\nDEBUG: Trying rule: git_push_pull; took: 0:00:00.000010\r\nDEBUG: Trying rule: git_push_without_commits; took: 0:00:00.000009\r\nDEBUG: Trying rule: git_rebase_merge_dir; took: 0:00:00.000009\r\nDEBUG: Trying rule: git_rebase_no_changes; took: 0:00:00.000010\r\nDEBUG: Trying rule: git_remote_delete; took: 0:00:00.000009\r\nDEBUG: Trying rule: git_remote_seturl_add; took: 0:00:00.000010\r\nDEBUG: Trying rule: git_rm_local_modifications; took: 0:00:00.000010\r\nDEBUG: Trying rule: git_rm_recursive; took: 0:00:00.000010\r\nDEBUG: Trying rule: git_rm_staged; took: 0:00:00.000009\r\nDEBUG: Trying rule: git_stash; took: 0:00:00.000010\r\nDEBUG: Trying rule: git_tag_force; took: 0:00:00.000009\r\nDEBUG: Trying rule: git_two_dashes; took: 0:00:00.000010\r\nDEBUG: Trying rule: go_run; took: 0:00:00.000013\r\nDEBUG: Trying rule: go_unknown_command; took: 0:00:00.000010\r\nDEBUG: Trying rule: gradle_no_task; took: 0:00:00.000012\r\nDEBUG: Trying rule: gradle_wrapper; took: 0:00:00.000012\r\nDEBUG: Trying rule: grep_arguments_order; took: 0:00:00.000012\r\nDEBUG: Trying rule: grep_recursive; took: 0:00:00.000015\r\nDEBUG: Trying rule: grunt_task_not_found; took: 0:00:00.000012\r\nDEBUG: Trying rule: gulp_not_task; took: 0:00:00.000012\r\nDEBUG: Trying rule: has_exists_script; took: 0:00:00.000013\r\nDEBUG: Trying rule: heroku_multiple_apps; took: 0:00:00.000012\r\nDEBUG: Trying rule: heroku_not_command; took: 0:00:00.000010\r\nDEBUG: Trying rule: hostscli; took: 0:00:00.000013\r\nDEBUG: Trying rule: ifconfig_device_not_found; took: 0:00:00.000011\r\nDEBUG: Trying rule: java; took: 0:00:00.000016\r\nDEBUG: Trying rule: javac; took: 0:00:00.000012\r\nDEBUG: Trying rule: lein_not_task; took: 0:00:00.000013\r\nDEBUG: Trying rule: ln_no_hard_link; took: 0:00:00.000003\r\nDEBUG: Trying rule: ln_s_order; took: 0:00:00.000003\r\nDEBUG: Trying rule: ls_all; took: 0:00:00.000011\r\nDEBUG: Trying rule: ls_lah; took: 0:00:00.000013\r\nDEBUG: Trying rule: man; took: 0:00:00.000012\r\nDEBUG: Trying rule: mercurial; took: 0:00:00.000012\r\nDEBUG: Trying rule: mkdir_p; took: 0:00:00.000004\r\nDEBUG: Trying rule: mvn_no_command; took: 0:00:00.000012\r\nDEBUG: Trying rule: mvn_unknown_lifecycle_phase; took: 0:00:00.000010\r\nDEBUG: Trying rule: no_such_file; took: 0:00:00.000590\r\nDEBUG: Trying rule: npm_missing_script; took: 0:00:00.000016\r\nDEBUG: Trying rule: npm_run_script; took: 0:00:00.000011\r\nDEBUG: Trying rule: npm_wrong_command; took: 0:00:00.000012\r\nDEBUG: Trying rule: open; took: 0:00:00.000013\r\nDEBUG: Trying rule: php_s; took: 0:00:00.000013\r\nDEBUG: Trying rule: pip_install; took: 0:00:00.000012\r\nDEBUG: Trying rule: pip_unknown_command; took: 0:00:00.000014\r\nDEBUG: Trying rule: port_already_in_use; took: 0:00:00.000456\r\nDEBUG: Trying rule: prove_recursively; took: 0:00:00.000013\r\nDEBUG: Trying rule: pyenv_no_such_command; took: 0:00:00.000012\r\nDEBUG: Trying rule: python_command; took: 0:00:00.000004\r\nDEBUG: Trying rule: python_execute; took: 0:00:00.000011\r\nDEBUG: Trying rule: quotation_marks; took: 0:00:00.000002\r\nDEBUG: Trying rule: react_native_command_unrecognized; took: 0:00:00.000011\r\nDEBUG: Trying rule: remove_shell_prompt_literal; took: 0:00:00.000002\r\nDEBUG: Trying rule: remove_trailing_cedilla; took: 0:00:00.000002\r\nDEBUG: Trying rule: rm_dir; took: 0:00:00.000003\r\nDEBUG: Trying rule: scm_correction; took: 0:00:00.000012\r\nDEBUG: Trying rule: sed_unterminated_s; took: 0:00:00.000011\r\nDEBUG: Trying rule: sl_ls; took: 0:00:00.000002\r\nDEBUG: Trying rule: ssh_known_hosts; took: 0:00:00.000012\r\nDEBUG: Trying rule: sudo; took: 0:00:00.000011\r\nDEBUG: Trying rule: sudo_command_from_user_path; took: 0:00:00.000012\r\nDEBUG: Trying rule: switch_lang; took: 0:00:00.000002\r\nDEBUG: Trying rule: systemctl; took: 0:00:00.000015\r\nDEBUG: Trying rule: terraform_init; took: 0:00:00.000011\r\nDEBUG: Trying rule: tmux; took: 0:00:00.000012\r\nDEBUG: Trying rule: touch; took: 0:00:00.000011\r\nDEBUG: Trying rule: tsuru_login; took: 0:00:00.000010\r\nDEBUG: Trying rule: tsuru_not_command; took: 0:00:00.000009\r\nDEBUG: Trying rule: unknown_command; took: 0:00:00.000165\r\nDEBUG: Trying rule: unsudo; took: 0:00:00.000002\r\nDEBUG: Trying rule: vagrant_up; took: 0:00:00.000013\r\nDEBUG: Trying rule: whois; took: 0:00:00.000012\r\nDEBUG: Trying rule: workon_doesnt_exists; took: 0:00:00.000011\r\nDEBUG: Trying rule: yarn_alias; took: 0:00:00.000012\r\nDEBUG: Trying rule: yarn_command_not_found; took: 0:00:00.000010\r\nDEBUG: Trying rule: yarn_command_replaced; took: 0:00:00.000010\r\nDEBUG: Trying rule: yarn_help; took: 0:00:00.000012\r\nDEBUG: Trying rule: man_no_space; took: 0:00:00.000003\r\nDEBUG: Trying rule: no_command; took: 0:00:00.000079\r\nDEBUG: Trying rule: missing_space_before_subcommand; took: 0:00:00.000055\r\nDEBUG: Trying rule: long_form_help; took: 0:00:00.000243\r\nDEBUG: Trying rule: history; took: 0:00:00.008103\r\nNothing found\r\nDEBUG: Total took: 0:00:00.223141\r\n```\r\n\r\nIf the bug only appears with a specific application, the output of that application and its version:\r\n\r\n N/A\r\n\r\nAnything else you think is relevant:\r\n\r\nN/A\r\n\r\n\r\n\n"},"hints_text":{"kind":"string","value":"Seems like the `composer_not_command` rule needs to be updated to cover that version of `compose`.\n@scorphus I'm on it!"},"created_at":{"kind":"string","value":"2020-10-01T04:39:46Z"},"merged_at":{"kind":"string","value":"2021-06-30T21:10:06Z"},"PASS_TO_PASS":{"kind":"string","value":"[]"},"PASS_TO_FAIL":{"kind":"string","value":"[]"},"FAIL_TO_PASS":{"kind":"string","value":"[\"tests/rules/test_composer_not_command.py::test_match\", \"tests/rules/test_composer_not_command.py::test_get_new_command\"]"},"FAIL_TO_FAIL":{"kind":"string","value":"[]"},"install":{"kind":"string","value":"{\"install\": [\"python setup.py develop\"], \"pre_install\": [\"tee tox.ini <\n+ import {1}\n+ModuleNotFoundError: No module named '{1}'\"\"\".format(\n+ filename, module_name\n+ )\n+\n+\n+@pytest.mark.parametrize(\n+ \"test\",\n+ [\n+ Command(\"python hello_world.py\", \"Hello World\"),\n+ Command(\n+ \"./hello_world.py\",\n+ \"\"\"Traceback (most recent call last):\n+ File \"hello_world.py\", line 1, in \n+ pritn(\"Hello World\")\n+NameError: name 'pritn' is not defined\"\"\",\n+ ),\n+ ],\n+)\n+def test_not_match(test):\n+ assert not match(test)\n+\n+\n+positive_tests = [\n+ (\n+ \"python some_script.py\",\n+ \"some_script.py\",\n+ \"more_itertools\",\n+ \"pip install more_itertools && python some_script.py\",\n+ ),\n+ (\n+ \"./some_other_script.py\",\n+ \"some_other_script.py\",\n+ \"a_module\",\n+ \"pip install a_module && ./some_other_script.py\",\n+ ),\n+]\n+\n+\n+@pytest.mark.parametrize(\n+ \"script, filename, module_name, corrected_script\", positive_tests\n+)\n+def test_match(script, filename, module_name, corrected_script, module_error_output):\n+ assert match(Command(script, module_error_output))\n+\n+\n+@pytest.mark.parametrize(\n+ \"script, filename, module_name, corrected_script\", positive_tests\n+)\n+def test_get_new_command(\n+ script, filename, module_name, corrected_script, module_error_output\n+):\n+ assert get_new_command(Command(script, module_error_output)) == corrected_script\n"},"problem_statement":{"kind":"string","value":"Give a fuck about ModuleNotFoundError\nThose who have ever tried to run moderately complicated python scripts are familiar with this kind of errors:\r\n\r\n ModuleNotFoundError: No module named 'more_itertools'\r\n\r\nIt would be nice if `fuck` was able to fix this with `pip install`.\n"},"hints_text":{"kind":"string","value":"Seems to be a nice idea, maybe I'll try to make a PR on this!\r\n\r\nThank you for the Issue 👍🏻\nHowever, there are some python modules which have a different package name on PyPI and expose different module name for import.\r\n\r\nAny ideas on how to handle that?\nHmm, quick googling showed there is indeed no simple way to find the package name given a module name. I'd suggest adding a config like this:\r\n\r\n```\r\n{\r\n \"module_name1\": \"package_name1\",\r\n \"module_name2\": \"package_name2\",\r\n \"module_name3\": [\"package_name3.1\", \"package_name3.2\"],\r\n ...\r\n}\r\n```\r\n\r\nIf the missing module is specified in the config, then suggest installing the corresponding package from the config (or suggest to select on of the specified packages, if there are several). If the missing module is not specified in the config, then suggest installing the package with the same name.\r\n\r\nI hope in most of the cases the package name and the module name are the same, so the config should be of a decent size and relatively easy to maintain.\r\n\r\nWhat do you think?\nI think maintaining such a config (which in itself is not a trivial task) for a single rule, should not come under thefuck's umbrella of responsibilities. IMO, a basic rule for the modules with the same package name should be the only thing thefuck should handle.\r\n\r\nThoughts, @scorphus?\n> some python modules which have a different package name on PyPI and expose different module name for import\r\n\r\nI'd say most modules are called the same on PyPI. The rule would then work for the majority of them. It's only a shame it won't work for things like `PIL`, `dateutil`, `ffmpeg`, etc. \nThat's why I suggest having a small supplimentary config.\nI don't like the idea of a supplementary config file.\r\n\r\nThoughts on that @scorphus?\nA module=>package dictionary would be nice but I don't think it's even nearly feasible. Moreover, it would be out of the scope of TF.\r\n\r\nIs there perhaps any lib out there that has a near-complete dictionary?"},"created_at":{"kind":"string","value":"2020-12-27T22:30:20Z"},"merged_at":{"kind":"string","value":"2021-01-19T21:37:05Z"},"PASS_TO_PASS":{"kind":"string","value":"[]"},"PASS_TO_FAIL":{"kind":"string","value":"[]"},"FAIL_TO_PASS":{"kind":"string","value":"[\"tests/rules/test_python_module_error.py::test_not_match[test0]\", \"tests/rules/test_python_module_error.py::test_not_match[test1]\", \"tests/rules/test_python_module_error.py::test_match[./some_other_script.py-some_other_script.py-a_module-pip install a_module && ./some_other_script.py]\", \"tests/rules/test_python_module_error.py::test_get_new_command[python some_script.py-some_script.py-more_itertools-pip install more_itertools && python some_script.py]\", \"tests/rules/test_python_module_error.py::test_get_new_command[./some_other_script.py-some_other_script.py-a_module-pip install a_module && ./some_other_script.py]\", \"tests/rules/test_python_module_error.py::test_match[python some_script.py-some_script.py-more_itertools-pip install more_itertools && python some_script.py]\"]"},"FAIL_TO_FAIL":{"kind":"string","value":"[]"},"install":{"kind":"string","value":"{\"install\": [\"python setup.py develop\"], \"pre_install\": [\"tee tox.ini <],\r\n 'slow_commands': ['lein', 'react-native', 'gradle', './gradlew', 'vagrant'],\r\n 'user_dir': PosixPath('/home/bjoern/.config/thefuck'),\r\n 'wait_command': 3,\r\n 'wait_slow_command': 15}\r\nDEBUG: Received stdout: \r\nDEBUG: Received stderr: ERROR: unknown command \"un+install\" - maybe you meant \"uninstall\"\r\n\r\nDEBUG: Call: pip un+install thefuck; with env: {'MODULEPATH': '/etc/scl/modulefiles:/etc/scl/modulefiles:/etc/scl/modulefiles:/usr/share/Modules/modulefiles:/etc/modulefiles:/usr/share/modulefiles', 'MODULESHOME': '/usr/share/Modules', 'SESSION_MANAGER': 'local/unix:@/tmp/.ICE-unix/89353,unix/unix:/tmp/.ICE-unix/89353', 'LANG': 'C', 'MODULES_RUN_QUARANTINE': 'LD_LIBRARY_PATH', 'XDG_CURRENT_DESKTOP': 'GNOME', 'HOME': '/home/bjoern', 'SSH_AUTH_SOCK': '/run/user/1000/keyring/ssh', 'WAYLAND_DISPLAY': 'wayland-0', 'GIO_LAUNCHED_DESKTOP_FILE_PID': '114880', 'INVOCATION_ID': '2e365a8005b343578188da653fa4abc2', 'LESSOPEN': '||/usr/bin/lesspipe.sh %s', 'QT_IM_MODULE': 'ibus', 'DESKTOP_SESSION': 'gnome', 'HOSTNAME': 'xps-9370', 'OLDPWD': '/home/bjoern', 'HISTSIZE': '50000', 'KDEDIRS': '/usr', 'USER': 'bjoern', 'TILIX_ID': '31ecbf37-ed53-42d7-ad81-478e7e6782ae', 'XDG_MENU_PREFIX': 'gnome-', 'DBUS_SESSION_BUS_ADDRESS': 'unix:path=/run/user/1000/bus', 'MANPATH': ':', 'LC_NUMERIC': 'de_DE.UTF-8', 'XDG_DATA_DIRS': '/home/bjoern/.local/share/flatpak/exports/share/:/var/lib/flatpak/exports/share/:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop', 'MODULES_CMD': '/usr/share/Modules/libexec/modulecmd.tcl', 'VTE_VERSION': '5803', 'XDG_SESSION_DESKTOP': 'gnome', 'JOURNAL_STREAM': '9:1201623', 'LC_MEASUREMENT': 'de_DE.UTF-8', 'MANAGERPID': '1493', 'LC_TIME': 'de_DE.UTF-8', 'MAIL': '/var/spool/mail/bjoern', 'LOGNAME': 'bjoern', 'LC_PAPER': 'de_DE.UTF-8', 'PATH': '/usr/share/Modules/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/home/bjoern/bin:/var/lib/snapd/snap/bin:/home/bjoern/.local/bin:/home/bjoern/.npm-global/bin:/home/bjoern/.cargo/bin', 'XDG_RUNTIME_DIR': '/run/user/1000', 'XMODIFIERS': '@im=ibus', 'SHELL': '/usr/bin/zsh', 'XDG_SESSION_TYPE': 'wayland', 'FPATH': '/home/bjoern/.oh-my-zsh/custom/plugins/zsh-completions:/home/bjoern/.oh-my-zsh/custom/plugins/zsh-autosuggestions:/home/bjoern/.oh-my-zsh/plugins/sudo:/home/bjoern/.oh-my-zsh/plugins/npm:/home/bjoern/.oh-my-zsh/plugins/history:/home/bjoern/.oh-my-zsh/plugins/common-aliases:/home/bjoern/.oh-my-zsh/plugins/colorize:/home/bjoern/.oh-my-zsh/plugins/colored-man-pages:/home/bjoern/.oh-my-zsh/plugins/dnf:/home/bjoern/.oh-my-zsh/plugins/git:/home/bjoern/.oh-my-zsh/functions:/home/bjoern/.oh-my-zsh/completions:/usr/share/Modules/init/zsh-functions:/usr/local/share/zsh/site-functions:/usr/share/zsh/site-functions:/usr/share/zsh/5.7.1/functions:/home/bjoern/.oh-my-zsh/custom/plugins/zsh-completions/src', 'LC_MONETARY': 'de_DE.UTF-8', 'LOADEDMODULES': '', 'HISTCONTROL': 'ignoredups', 'USERNAME': 'bjoern', 'GDM_LANG': 'en_US.UTF-8', 'PWD': '/home/bjoern', 'SHLVL': '1', 'XAUTHORITY': '/run/user/1000/.mutter-Xwaylandauth.8999F0', 'COLORTERM': 'truecolor', 'MODULEPATH_modshare': '/usr/share/modulefiles:1:/usr/share/Modules/modulefiles:1:/etc/modulefiles:1', 'DISPLAY': ':0', 'GDMSESSION': 'gnome', 'XDG_SESSION_CLASS': 'user', 'TERM': 'xterm-256color', 'LS_COLORS': 'rs=0:di=38;5;33:ln=38;5;51:mh=00:pi=40;38;5;11:so=38;5;13:do=38;5;5:bd=48;5;232;38;5;11:cd=48;5;232;38;5;3:or=48;5;232;38;5;9:mi=01;37;41:su=48;5;196;38;5;15:sg=48;5;11;38;5;16:ca=48;5;196;38;5;226:tw=48;5;10;38;5;16:ow=48;5;10;38;5;21:st=48;5;21;38;5;15:ex=38;5;40:*.tar=38;5;9:*.tgz=38;5;9:*.arc=38;5;9:*.arj=38;5;9:*.taz=38;5;9:*.lha=38;5;9:*.lz4=38;5;9:*.lzh=38;5;9:*.lzma=38;5;9:*.tlz=38;5;9:*.txz=38;5;9:*.tzo=38;5;9:*.t7z=38;5;9:*.zip=38;5;9:*.z=38;5;9:*.dz=38;5;9:*.gz=38;5;9:*.lrz=38;5;9:*.lz=38;5;9:*.lzo=38;5;9:*.xz=38;5;9:*.zst=38;5;9:*.tzst=38;5;9:*.bz2=38;5;9:*.bz=38;5;9:*.tbz=38;5;9:*.tbz2=38;5;9:*.tz=38;5;9:*.deb=38;5;9:*.rpm=38;5;9:*.jar=38;5;9:*.war=38;5;9:*.ear=38;5;9:*.sar=38;5;9:*.rar=38;5;9:*.alz=38;5;9:*.ace=38;5;9:*.zoo=38;5;9:*.cpio=38;5;9:*.7z=38;5;9:*.rz=38;5;9:*.cab=38;5;9:*.wim=38;5;9:*.swm=38;5;9:*.dwm=38;5;9:*.esd=38;5;9:*.jpg=38;5;13:*.jpeg=38;5;13:*.mjpg=38;5;13:*.mjpeg=38;5;13:*.gif=38;5;13:*.bmp=38;5;13:*.pbm=38;5;13:*.pgm=38;5;13:*.ppm=38;5;13:*.tga=38;5;13:*.xbm=38;5;13:*.xpm=38;5;13:*.tif=38;5;13:*.tiff=38;5;13:*.png=38;5;13:*.svg=38;5;13:*.svgz=38;5;13:*.mng=38;5;13:*.pcx=38;5;13:*.mov=38;5;13:*.mpg=38;5;13:*.mpeg=38;5;13:*.m2v=38;5;13:*.mkv=38;5;13:*.webm=38;5;13:*.ogm=38;5;13:*.mp4=38;5;13:*.m4v=38;5;13:*.mp4v=38;5;13:*.vob=38;5;13:*.qt=38;5;13:*.nuv=38;5;13:*.wmv=38;5;13:*.asf=38;5;13:*.rm=38;5;13:*.rmvb=38;5;13:*.flc=38;5;13:*.avi=38;5;13:*.fli=38;5;13:*.flv=38;5;13:*.gl=38;5;13:*.dl=38;5;13:*.xcf=38;5;13:*.xwd=38;5;13:*.yuv=38;5;13:*.cgm=38;5;13:*.emf=38;5;13:*.ogv=38;5;13:*.ogx=38;5;13:*.aac=38;5;45:*.au=38;5;45:*.flac=38;5;45:*.m4a=38;5;45:*.mid=38;5;45:*.midi=38;5;45:*.mka=38;5;45:*.mp3=38;5;45:*.mpc=38;5;45:*.ogg=38;5;45:*.ra=38;5;45:*.wav=38;5;45:*.oga=38;5;45:*.opus=38;5;45:*.spx=38;5;45:*.xspf=38;5;45:', 'ZSH': '/home/bjoern/.oh-my-zsh', 'PAGER': 'less', 'LESS': '-R', 'LSCOLORS': 'Gxfxcxdxbxegedabagacad', 'NVM_DIR': '/home/bjoern/.nvm', 'THEFUCK_DEBUG': 'true', 'TF_ALIAS': 'fuck', 'PYTHONIOENCODING': 'utf-8', 'TF_SHELL_ALIASES': '-=\\'cd -\\'\\n...=../..\\n....=../../..\\n.....=../../../..\\n......=../../../../..\\n1=\\'cd -\\'\\n2=\\'cd -2\\'\\n3=\\'cd -3\\'\\n4=\\'cd -4\\'\\n5=\\'cd -5\\'\\n6=\\'cd -6\\'\\n7=\\'cd -7\\'\\n8=\\'cd -8\\'\\n9=\\'cd -9\\'\\nCA=\\'2>&1 | cat -A\\'\\nG=\\'| grep\\'\\nH=\\'| head\\'\\nL=\\'| less\\'\\nLL=\\'2>&1 | less\\'\\nM=\\'| most\\'\\nNE=\\'2> /dev/null\\'\\nNUL=\\'> /dev/null 2>&1\\'\\nP=\\'2>&1| pygmentize -l pytb\\'\\nT=\\'| tail\\'\\n_=\\'sudo \\'\\nafind=\\'ack -il\\'\\nccat=colorize_cat\\ncless=colorize_less\\ncp=\\'cp -i\\'\\ndnfc=\\'sudo dnf clean all\\'\\ndnfgi=\\'sudo dnf groupinstall\\'\\ndnfgl=\\'dnf grouplist\\'\\ndnfgr=\\'sudo dnf groupremove\\'\\ndnfi=\\'sudo dnf install\\'\\ndnfl=\\'dnf list\\'\\ndnfli=\\'dnf list installed\\'\\ndnfmc=\\'dnf makecache\\'\\ndnfp=\\'dnf info\\'\\ndnfr=\\'sudo dnf remove\\'\\ndnfs=\\'dnf search\\'\\ndnfu=\\'sudo dnf upgrade\\'\\ndud=\\'du -d 1 -h\\'\\nduf=\\'du -sh *\\'\\nebuild=\\'nocorrect ebuild\\'\\negrep=\\'egrep --color=auto\\'\\nfd=\\'find . -type d -name\\'\\nff=\\'find . -type f -name\\'\\nfgrep=\\'fgrep --color=auto\\'\\nfuck=\\'TF_CMD=$(TF_ALIAS=fuck PYTHONIOENCODING=utf-8 TF_SHELL_ALIASES=$(alias) thefuck $(fc -ln -1 | tail -n 1)) && eval $TF_CMD ; test -n \"$TF_CMD\" && print -s $TF_CMD\\'\\ng=git\\nga=\\'git add\\'\\ngaa=\\'git add --all\\'\\ngap=\\'git apply\\'\\ngapa=\\'git add --patch\\'\\ngau=\\'git add --update\\'\\ngav=\\'git add --verbose\\'\\ngb=\\'git branch\\'\\ngbD=\\'git branch -D\\'\\ngba=\\'git branch -a\\'\\ngbd=\\'git branch -d\\'\\ngbda=\\'git branch --no-color --merged | command grep -vE \"^(\\\\+|\\\\*|\\\\s*(master|develop|dev)\\\\s*$)\" | command xargs -n 1 git branch -d\\'\\ngbl=\\'git blame -b -w\\'\\ngbnm=\\'git branch --no-merged\\'\\ngbr=\\'git branch --remote\\'\\ngbs=\\'git bisect\\'\\ngbsb=\\'git bisect bad\\'\\ngbsg=\\'git bisect good\\'\\ngbsr=\\'git bisect reset\\'\\ngbss=\\'git bisect start\\'\\ngc=\\'git commit -v\\'\\n\\'gc!\\'=\\'git commit -v --amend\\'\\ngca=\\'git commit -v -a\\'\\n\\'gca!\\'=\\'git commit -v -a --amend\\'\\ngcam=\\'git commit -a -m\\'\\n\\'gcan!\\'=\\'git commit -v -a --no-edit --amend\\'\\n\\'gcans!\\'=\\'git commit -v -a -s --no-edit --amend\\'\\ngcb=\\'git checkout -b\\'\\ngcd=\\'git checkout develop\\'\\ngcf=\\'git config --list\\'\\ngcl=\\'git clone --recurse-submodules\\'\\ngclean=\\'git clean -id\\'\\ngcm=\\'git checkout master\\'\\ngcmsg=\\'git commit -m\\'\\n\\'gcn!\\'=\\'git commit -v --no-edit --amend\\'\\ngco=\\'git checkout\\'\\ngcount=\\'git shortlog -sn\\'\\ngcp=\\'git cherry-pick\\'\\ngcpa=\\'git cherry-pick --abort\\'\\ngcpc=\\'git cherry-pick --continue\\'\\ngcs=\\'git commit -S\\'\\ngcsm=\\'git commit -s -m\\'\\ngd=\\'git diff\\'\\ngdca=\\'git diff --cached\\'\\ngdct=\\'git describe --tags $(git rev-list --tags --max-count=1)\\'\\ngdcw=\\'git diff --cached --word-diff\\'\\ngds=\\'git diff --staged\\'\\ngdt=\\'git diff-tree --no-commit-id --name-only -r\\'\\ngdw=\\'git diff --word-diff\\'\\ngf=\\'git fetch\\'\\ngfa=\\'git fetch --all --prune\\'\\ngfg=\\'git ls-files | grep\\'\\ngfo=\\'git fetch origin\\'\\ngg=\\'git gui citool\\'\\ngga=\\'git gui citool --amend\\'\\nggpull=\\'git pull origin \"$(git_current_branch)\"\\'\\nggpur=ggu\\nggpush=\\'git push origin \"$(git_current_branch)\"\\'\\nggsup=\\'git branch --set-upstream-to=origin/$(git_current_branch)\\'\\nghh=\\'git help\\'\\ngignore=\\'git update-index --assume-unchanged\\'\\ngignored=\\'git ls-files -v | grep \"^[[:lower:]]\"\\'\\ngist=\\'nocorrect gist\\'\\ngit-svn-dcommit-push=\\'git svn dcommit && git push github master:svntrunk\\'\\ngk=\\'\\\\gitk --all --branches\\'\\ngke=\\'\\\\gitk --all $(git log -g --pretty=%h)\\'\\ngl=\\'git pull\\'\\nglg=\\'git log --stat\\'\\nglgg=\\'git log --graph\\'\\nglgga=\\'git log --graph --decorate --all\\'\\nglgm=\\'git log --graph --max-count=10\\'\\nglgp=\\'git log --stat -p\\'\\nglo=\\'git log --oneline --decorate\\'\\ngloburl=\\'noglob urlglobber \\'\\nglod=\\'git log --graph --pretty=\\'\\\\\\'\\'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ad) %C(bold blue)<%an>%Creset\\'\\\\\\'\\nglods=\\'git log --graph --pretty=\\'\\\\\\'\\'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ad) %C(bold blue)<%an>%Creset\\'\\\\\\'\\' --date=short\\'\\nglog=\\'git log --oneline --decorate --graph\\'\\ngloga=\\'git log --oneline --decorate --graph --all\\'\\nglol=\\'git log --graph --pretty=\\'\\\\\\'\\'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset\\'\\\\\\'\\nglola=\\'git log --graph --pretty=\\'\\\\\\'\\'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset\\'\\\\\\'\\' --all\\'\\nglols=\\'git log --graph --pretty=\\'\\\\\\'\\'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset\\'\\\\\\'\\' --stat\\'\\nglp=_git_log_prettily\\nglum=\\'git pull upstream master\\'\\ngm=\\'git merge\\'\\ngma=\\'git merge --abort\\'\\ngmom=\\'git merge origin/master\\'\\ngmt=\\'git mergetool --no-prompt\\'\\ngmtvim=\\'git mergetool --no-prompt --tool=vimdiff\\'\\ngmum=\\'git merge upstream/master\\'\\ngp=\\'git push\\'\\ngpd=\\'git push --dry-run\\'\\ngpf=\\'git push --force-with-lease\\'\\n\\'gpf!\\'=\\'git push --force\\'\\ngpoat=\\'git push origin --all && git push origin --tags\\'\\ngpristine=\\'git reset --hard && git clean -dfx\\'\\ngpsup=\\'git push --set-upstream origin $(git_current_branch)\\'\\ngpu=\\'git push upstream\\'\\ngpv=\\'git push -v\\'\\ngr=\\'git remote\\'\\ngra=\\'git remote add\\'\\ngrb=\\'git rebase\\'\\ngrba=\\'git rebase --abort\\'\\ngrbc=\\'git rebase --continue\\'\\ngrbd=\\'git rebase develop\\'\\ngrbi=\\'git rebase -i\\'\\ngrbm=\\'git rebase master\\'\\ngrbs=\\'git rebase --skip\\'\\ngrep=\\'grep --color\\'\\ngrev=\\'git revert\\'\\ngrh=\\'git reset\\'\\ngrhh=\\'git reset --hard\\'\\ngrm=\\'git rm\\'\\ngrmc=\\'git rm --cached\\'\\ngrmv=\\'git remote rename\\'\\ngroh=\\'git reset origin/$(git_current_branch) --hard\\'\\ngrrm=\\'git remote remove\\'\\ngrs=\\'git restore\\'\\ngrset=\\'git remote set-url\\'\\ngrss=\\'git restore --source\\'\\ngrt=\\'cd \"$(git rev-parse --show-toplevel || echo .)\"\\'\\ngru=\\'git reset --\\'\\ngrup=\\'git remote update\\'\\ngrv=\\'git remote -v\\'\\ngsb=\\'git status -sb\\'\\ngsd=\\'git svn dcommit\\'\\ngsh=\\'git show\\'\\ngsi=\\'git submodule init\\'\\ngsps=\\'git show --pretty=short --show-signature\\'\\ngsr=\\'git svn rebase\\'\\ngss=\\'git status -s\\'\\ngst=\\'git status\\'\\ngsta=\\'git stash push\\'\\ngstaa=\\'git stash apply\\'\\ngstall=\\'git stash --all\\'\\ngstc=\\'git stash clear\\'\\ngstd=\\'git stash drop\\'\\ngstl=\\'git stash list\\'\\ngstp=\\'git stash pop\\'\\ngsts=\\'git stash show --text\\'\\ngstu=\\'git stash --include-untracked\\'\\ngsu=\\'git submodule update\\'\\ngsw=\\'git switch\\'\\ngswc=\\'git switch -c\\'\\ngtl=\\'gtl(){ git tag --sort=-v:refname -n -l \"${1}*\" }; noglob gtl\\'\\ngts=\\'git tag -s\\'\\ngtv=\\'git tag | sort -V\\'\\ngunignore=\\'git update-index --no-assume-unchanged\\'\\ngunwip=\\'git log -n 1 | grep -q -c \"\\\\-\\\\-wip\\\\-\\\\-\" && git reset HEAD~1\\'\\ngup=\\'git pull --rebase\\'\\ngupa=\\'git pull --rebase --autostash\\'\\ngupav=\\'git pull --rebase --autostash -v\\'\\ngupv=\\'git pull --rebase -v\\'\\ngwch=\\'git whatchanged -p --abbrev-commit --pretty=medium\\'\\ngwip=\\'git add -A; git rm $(git ls-files --deleted) 2> /dev/null; git commit --no-verify --no-gpg-sign -m \"--wip-- [skip ci]\"\\'\\nh=history\\nhelp=man\\nheroku=\\'nocorrect heroku\\'\\nhgrep=\\'fc -El 0 | grep\\'\\nhistory=omz_history\\nhpodder=\\'nocorrect hpodder\\'\\nhsi=\\'hs -i\\'\\nl=\\'ls -lFh\\'\\nl.=\\'ls -d .* --color=auto\\'\\nlS=\\'ls -1FSsh\\'\\nla=\\'ls -lAFh\\'\\nlart=\\'ls -1Fcart\\'\\nldot=\\'ls -ld .*\\'\\nll=\\'ls -l\\'\\nlr=\\'ls -tRFh\\'\\nlrt=\\'ls -1Fcrt\\'\\nls=\\'ls --color=auto\\'\\nlsa=\\'ls -lah\\'\\nlt=\\'ls -ltFh\\'\\nman=\\'nocorrect man\\'\\nmd=\\'mkdir -p\\'\\nmkdir=\\'nocorrect mkdir\\'\\nmv=\\'mv -i\\'\\nmysql=\\'nocorrect mysql\\'\\nnpmD=\\'npm i -D \\'\\nnpmE=\\'PATH=\"$(npm bin)\":\"$PATH\"\\'\\nnpmI=\\'npm init\\'\\nnpmL=\\'npm list\\'\\nnpmL0=\\'npm ls --depth=0\\'\\nnpmO=\\'npm outdated\\'\\nnpmP=\\'npm publish\\'\\nnpmR=\\'npm run\\'\\nnpmS=\\'npm i -S \\'\\nnpmV=\\'npm -v\\'\\nnpmg=\\'npm i -g \\'\\nnpmst=\\'npm start\\'\\nnpmt=\\'npm test\\'\\np=\\'ps -f\\'\\nrd=rmdir\\nrm=\\'rm -i\\'\\nrun-help=man\\nsgrep=\\'grep -R -n -H -C 5 --exclude-dir={.git,.svn,CVS} \\'\\nsortnr=\\'sort -n -r\\'\\nsudo=\\'nocorrect sudo\\'\\nt=\\'tail -f\\'\\nunexport=unset\\nvi=vim\\nwhich=\\'(alias; declare -f) | /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot\\'\\nwhich-command=whence\\nxzegrep=\\'xzegrep --color=auto\\'\\nxzfgrep=\\'xzfgrep --color=auto\\'\\nxzgrep=\\'xzgrep --color=auto\\'\\nzegrep=\\'zegrep --color=auto\\'\\nzfgrep=\\'zfgrep --color=auto\\'\\nzgrep=\\'zgrep --color=auto\\'\\nzshrc=\\'${=EDITOR} ~/.zshrc\\'', '_': '/usr/bin/thefuck', 'LC_ALL': 'C', 'GIT_TRACE': '1'}; is slow: took: 0:00:00.414857\r\nDEBUG: Importing rule: ag_literal; took: 0:00:00.000625\r\nDEBUG: Importing rule: apt_get; took: 0:00:00.000856\r\nDEBUG: Importing rule: apt_get_search; took: 0:00:00.000356\r\nDEBUG: Importing rule: apt_invalid_operation; took: 0:00:00.000911\r\nDEBUG: Importing rule: aws_cli; took: 0:00:00.000347\r\nDEBUG: Importing rule: brew_install; took: 0:00:00.000398\r\nDEBUG: Importing rule: brew_link; took: 0:00:00.000349\r\nDEBUG: Importing rule: brew_uninstall; took: 0:00:00.000427\r\nDEBUG: Importing rule: brew_unknown_command; took: 0:00:00.000180\r\nDEBUG: Importing rule: brew_update_formula; took: 0:00:00.000338\r\nDEBUG: Importing rule: brew_upgrade; took: 0:00:00.000134\r\nDEBUG: Importing rule: cargo; took: 0:00:00.000122\r\nDEBUG: Importing rule: cargo_no_command; took: 0:00:00.000358\r\nDEBUG: Importing rule: cd_correction; took: 0:00:00.001285\r\nDEBUG: Importing rule: cd_mkdir; took: 0:00:00.000491\r\nDEBUG: Importing rule: cd_parent; took: 0:00:00.000132\r\nDEBUG: Importing rule: chmod_x; took: 0:00:00.000154\r\nDEBUG: Importing rule: composer_not_command; took: 0:00:00.000442\r\nDEBUG: Importing rule: cp_omitting_directory; took: 0:00:00.000714\r\nDEBUG: Importing rule: cpp11; took: 0:00:00.000466\r\nDEBUG: Importing rule: dirty_untar; took: 0:00:00.001937\r\nDEBUG: Importing rule: dirty_unzip; took: 0:00:00.000467\r\nDEBUG: Importing rule: django_south_ghost; took: 0:00:00.000165\r\nDEBUG: Importing rule: django_south_merge; took: 0:00:00.000167\r\nDEBUG: Importing rule: docker_not_command; took: 0:00:00.000748\r\nDEBUG: Importing rule: dry; took: 0:00:00.000171\r\nDEBUG: Importing rule: fab_command_not_found; took: 0:00:00.000936\r\nDEBUG: Importing rule: fix_alt_space; took: 0:00:00.000755\r\nDEBUG: Importing rule: fix_file; took: 0:00:00.004750\r\nDEBUG: Importing rule: gem_unknown_command; took: 0:00:00.000664\r\nDEBUG: Importing rule: git_add; took: 0:00:00.000848\r\nDEBUG: Importing rule: git_add_force; took: 0:00:00.000457\r\nDEBUG: Importing rule: git_bisect_usage; took: 0:00:00.000460\r\nDEBUG: Importing rule: git_branch_delete; took: 0:00:00.000470\r\nDEBUG: Importing rule: git_branch_exists; took: 0:00:00.000585\r\nDEBUG: Importing rule: git_branch_list; took: 0:00:00.000483\r\nDEBUG: Importing rule: git_checkout; took: 0:00:00.000481\r\nDEBUG: Importing rule: git_diff_no_index; took: 0:00:00.000443\r\nDEBUG: Importing rule: git_diff_staged; took: 0:00:00.000424\r\nDEBUG: Importing rule: git_fix_stash; took: 0:00:00.000484\r\nDEBUG: Importing rule: git_flag_after_filename; took: 0:00:00.000437\r\nDEBUG: Importing rule: git_help_aliased; took: 0:00:00.000449\r\nDEBUG: Importing rule: git_not_command; took: 0:00:00.000424\r\nDEBUG: Importing rule: git_pull; took: 0:00:00.000346\r\nDEBUG: Importing rule: git_pull_clone; took: 0:00:00.000539\r\nDEBUG: Importing rule: git_pull_uncommitted_changes; took: 0:00:00.001125\r\nDEBUG: Importing rule: git_push; took: 0:00:00.000944\r\nDEBUG: Importing rule: git_push_force; took: 0:00:00.000756\r\nDEBUG: Importing rule: git_push_pull; took: 0:00:00.000681\r\nDEBUG: Importing rule: git_rebase_merge_dir; took: 0:00:00.000641\r\nDEBUG: Importing rule: git_rebase_no_changes; took: 0:00:00.000328\r\nDEBUG: Importing rule: git_remote_seturl_add; took: 0:00:00.000311\r\nDEBUG: Importing rule: git_rm_local_modifications; took: 0:00:00.000438\r\nDEBUG: Importing rule: git_rm_recursive; took: 0:00:00.000432\r\nDEBUG: Importing rule: git_rm_staged; took: 0:00:00.000427\r\nDEBUG: Importing rule: git_stash; took: 0:00:00.000441\r\nDEBUG: Importing rule: git_stash_pop; took: 0:00:00.000446\r\nDEBUG: Importing rule: git_tag_force; took: 0:00:00.000435\r\nDEBUG: Importing rule: git_two_dashes; took: 0:00:00.000364\r\nDEBUG: Importing rule: go_run; took: 0:00:00.000338\r\nDEBUG: Importing rule: gradle_no_task; took: 0:00:00.000639\r\nDEBUG: Importing rule: gradle_wrapper; took: 0:00:00.000325\r\nDEBUG: Importing rule: grep_arguments_order; took: 0:00:00.000368\r\nDEBUG: Importing rule: grep_recursive; took: 0:00:00.001079\r\nDEBUG: Importing rule: grunt_task_not_found; took: 0:00:00.001706\r\nDEBUG: Importing rule: gulp_not_task; took: 0:00:00.000338\r\nDEBUG: Importing rule: has_exists_script; took: 0:00:00.000312\r\nDEBUG: Importing rule: heroku_not_command; took: 0:00:00.000326\r\nDEBUG: Importing rule: history; took: 0:00:00.000142\r\nDEBUG: Importing rule: hostscli; took: 0:00:00.000495\r\nDEBUG: Importing rule: ifconfig_device_not_found; took: 0:00:00.000405\r\nDEBUG: Importing rule: java; took: 0:00:00.000453\r\nDEBUG: Importing rule: javac; took: 0:00:00.000534\r\nDEBUG: Importing rule: lein_not_task; took: 0:00:00.000776\r\nDEBUG: Importing rule: ln_no_hard_link; took: 0:00:00.000385\r\nDEBUG: Importing rule: ln_s_order; took: 0:00:00.000374\r\nDEBUG: Importing rule: ls_all; took: 0:00:00.000388\r\nDEBUG: Importing rule: ls_lah; took: 0:00:00.000334\r\nDEBUG: Importing rule: man; took: 0:00:00.000341\r\nDEBUG: Importing rule: man_no_space; took: 0:00:00.000130\r\nDEBUG: Importing rule: mercurial; took: 0:00:00.000468\r\nDEBUG: Importing rule: missing_space_before_subcommand; took: 0:00:00.000169\r\nDEBUG: Importing rule: mkdir_p; took: 0:00:00.000329\r\nDEBUG: Importing rule: mvn_no_command; took: 0:00:00.000332\r\nDEBUG: Importing rule: mvn_unknown_lifecycle_phase; took: 0:00:00.000337\r\nDEBUG: Importing rule: no_command; took: 0:00:00.000326\r\nDEBUG: Importing rule: no_such_file; took: 0:00:00.000139\r\nDEBUG: Importing rule: npm_missing_script; took: 0:00:00.000673\r\nDEBUG: Importing rule: npm_run_script; took: 0:00:00.000322\r\nDEBUG: Importing rule: npm_wrong_command; took: 0:00:00.000495\r\nDEBUG: Importing rule: open; took: 0:00:00.000409\r\nDEBUG: Importing rule: pacman; took: 0:00:00.000454\r\nDEBUG: Importing rule: pacman_not_found; took: 0:00:00.000136\r\nDEBUG: Importing rule: path_from_history; took: 0:00:00.000168\r\nDEBUG: Importing rule: pip_unknown_command; took: 0:00:00.000430\r\nDEBUG: Importing rule: port_already_in_use; took: 0:00:00.000220\r\nDEBUG: Importing rule: python_command; took: 0:00:00.000315\r\nDEBUG: Importing rule: python_execute; took: 0:00:00.000327\r\nDEBUG: Importing rule: quotation_marks; took: 0:00:00.000126\r\nDEBUG: Importing rule: react_native_command_unrecognized; took: 0:00:00.000335\r\nDEBUG: Importing rule: remove_trailing_cedilla; took: 0:00:00.000124\r\nDEBUG: Importing rule: rm_dir; took: 0:00:00.000373\r\nDEBUG: Importing rule: rm_root; took: 0:00:00.000315\r\nDEBUG: Importing rule: scm_correction; took: 0:00:00.000444\r\nDEBUG: Importing rule: sed_unterminated_s; took: 0:00:00.000424\r\nDEBUG: Importing rule: sl_ls; took: 0:00:00.000151\r\nDEBUG: Importing rule: ssh_known_hosts; took: 0:00:00.000440\r\nDEBUG: Importing rule: sudo; took: 0:00:00.000161\r\nDEBUG: Importing rule: sudo_command_from_user_path; took: 0:00:00.000328\r\nDEBUG: Importing rule: switch_lang; took: 0:00:00.000155\r\nDEBUG: Importing rule: systemctl; took: 0:00:00.000517\r\nDEBUG: Importing rule: test.py; took: 0:00:00.000118\r\nDEBUG: Importing rule: tmux; took: 0:00:00.000352\r\nDEBUG: Importing rule: touch; took: 0:00:00.000309\r\nDEBUG: Importing rule: tsuru_login; took: 0:00:00.000343\r\nDEBUG: Importing rule: tsuru_not_command; took: 0:00:00.000676\r\nDEBUG: Importing rule: unknown_command; took: 0:00:00.000464\r\nDEBUG: Importing rule: vagrant_up; took: 0:00:00.000787\r\nDEBUG: Importing rule: whois; took: 0:00:00.001220\r\nDEBUG: Importing rule: workon_doesnt_exists; took: 0:00:00.001056\r\nDEBUG: Importing rule: yarn_alias; took: 0:00:00.000811\r\nDEBUG: Importing rule: yarn_command_not_found; took: 0:00:00.000888\r\nDEBUG: Importing rule: yarn_help; took: 0:00:00.000513\r\nDEBUG: Trying rule: path_from_history; took: 0:00:00.000839\r\nDEBUG: Trying rule: dry; took: 0:00:00.000097\r\nDEBUG: Trying rule: git_stash_pop; took: 0:00:00.000035\r\nDEBUG: Trying rule: test.py; took: 0:00:00.000003\r\nDEBUG: Trying rule: ag_literal; took: 0:00:00.000024\r\nDEBUG: Trying rule: aws_cli; took: 0:00:00.000020\r\nDEBUG: Trying rule: brew_link; took: 0:00:00.000022\r\nDEBUG: Trying rule: brew_uninstall; took: 0:00:00.000018\r\nDEBUG: Trying rule: brew_update_formula; took: 0:00:00.000017\r\nDEBUG: Trying rule: cargo; took: 0:00:00.000004\r\nDEBUG: Trying rule: cargo_no_command; took: 0:00:00.000020\r\nDEBUG: Trying rule: cd_correction; took: 0:00:00.000021\r\nDEBUG: Trying rule: cd_mkdir; took: 0:00:00.000018\r\nDEBUG: Trying rule: cd_parent; took: 0:00:00.000005\r\nDEBUG: Trying rule: chmod_x; took: 0:00:00.000005\r\nDEBUG: Trying rule: composer_not_command; took: 0:00:00.000019\r\nDEBUG: Trying rule: cp_omitting_directory; took: 0:00:00.000019\r\nDEBUG: Trying rule: cpp11; took: 0:00:00.000020\r\nDEBUG: Trying rule: dirty_untar; took: 0:00:00.000029\r\nDEBUG: Trying rule: dirty_unzip; took: 0:00:00.000027\r\nDEBUG: Trying rule: django_south_ghost; took: 0:00:00.000003\r\nDEBUG: Trying rule: django_south_merge; took: 0:00:00.000004\r\nDEBUG: Trying rule: docker_not_command; took: 0:00:00.000020\r\nDEBUG: Trying rule: fab_command_not_found; took: 0:00:00.000018\r\nDEBUG: Trying rule: fix_alt_space; took: 0:00:00.000007\r\nDEBUG: Trying rule: fix_file; took: 0:00:00.000019\r\nDEBUG: Trying rule: gem_unknown_command; took: 0:00:00.000019\r\nDEBUG: Trying rule: git_add; took: 0:00:00.000017\r\nDEBUG: Trying rule: git_add_force; took: 0:00:00.000016\r\nDEBUG: Trying rule: git_bisect_usage; took: 0:00:00.000015\r\nDEBUG: Trying rule: git_branch_delete; took: 0:00:00.000015\r\nDEBUG: Trying rule: git_branch_exists; took: 0:00:00.000014\r\nDEBUG: Trying rule: git_branch_list; took: 0:00:00.000014\r\nDEBUG: Trying rule: git_checkout; took: 0:00:00.000015\r\nDEBUG: Trying rule: git_diff_no_index; took: 0:00:00.000017\r\nDEBUG: Trying rule: git_diff_staged; took: 0:00:00.000014\r\nDEBUG: Trying rule: git_fix_stash; took: 0:00:00.000014\r\nDEBUG: Trying rule: git_flag_after_filename; took: 0:00:00.000014\r\nDEBUG: Trying rule: git_help_aliased; took: 0:00:00.000014\r\nDEBUG: Trying rule: git_not_command; took: 0:00:00.000014\r\nDEBUG: Trying rule: git_pull; took: 0:00:00.000015\r\nDEBUG: Trying rule: git_pull_clone; took: 0:00:00.000014\r\nDEBUG: Trying rule: git_pull_uncommitted_changes; took: 0:00:00.000014\r\nDEBUG: Trying rule: git_push; took: 0:00:00.000017\r\nDEBUG: Trying rule: git_push_pull; took: 0:00:00.000014\r\nDEBUG: Trying rule: git_rebase_merge_dir; took: 0:00:00.000020\r\nDEBUG: Trying rule: git_rebase_no_changes; took: 0:00:00.000015\r\nDEBUG: Trying rule: git_remote_seturl_add; took: 0:00:00.000015\r\nDEBUG: Trying rule: git_rm_local_modifications; took: 0:00:00.000014\r\nDEBUG: Trying rule: git_rm_recursive; took: 0:00:00.000014\r\nDEBUG: Trying rule: git_rm_staged; took: 0:00:00.000014\r\nDEBUG: Trying rule: git_stash; took: 0:00:00.000014\r\nDEBUG: Trying rule: git_tag_force; took: 0:00:00.000017\r\nDEBUG: Trying rule: git_two_dashes; took: 0:00:00.000014\r\nDEBUG: Trying rule: go_run; took: 0:00:00.000017\r\nDEBUG: Trying rule: gradle_no_task; took: 0:00:00.000018\r\nDEBUG: Trying rule: gradle_wrapper; took: 0:00:00.000016\r\nDEBUG: Trying rule: grep_arguments_order; took: 0:00:00.000018\r\nDEBUG: Trying rule: grep_recursive; took: 0:00:00.000016\r\nDEBUG: Trying rule: grunt_task_not_found; took: 0:00:00.000017\r\nDEBUG: Trying rule: gulp_not_task; took: 0:00:00.000017\r\nDEBUG: Trying rule: has_exists_script; took: 0:00:00.000027\r\nDEBUG: Trying rule: heroku_not_command; took: 0:00:00.000019\r\nDEBUG: Trying rule: hostscli; took: 0:00:00.000018\r\nDEBUG: Trying rule: ifconfig_device_not_found; took: 0:00:00.000017\r\nDEBUG: Trying rule: java; took: 0:00:00.000020\r\nDEBUG: Trying rule: javac; took: 0:00:00.000017\r\nDEBUG: Trying rule: lein_not_task; took: 0:00:00.000019\r\nDEBUG: Trying rule: ln_no_hard_link; took: 0:00:00.000010\r\nDEBUG: Trying rule: ln_s_order; took: 0:00:00.000006\r\nDEBUG: Trying rule: ls_all; took: 0:00:00.000017\r\nDEBUG: Trying rule: ls_lah; took: 0:00:00.000015\r\nDEBUG: Trying rule: man; took: 0:00:00.000018\r\nDEBUG: Trying rule: mercurial; took: 0:00:00.000017\r\nDEBUG: Trying rule: missing_space_before_subcommand; took: 0:00:00.000089\r\nDEBUG: Trying rule: mkdir_p; took: 0:00:00.000009\r\nDEBUG: Trying rule: mvn_no_command; took: 0:00:00.000019\r\nDEBUG: Trying rule: mvn_unknown_lifecycle_phase; took: 0:00:00.000016\r\nDEBUG: Trying rule: no_such_file; took: 0:00:00.000699\r\nDEBUG: Trying rule: npm_missing_script; took: 0:00:00.000023\r\nDEBUG: Trying rule: npm_run_script; took: 0:00:00.000017\r\nDEBUG: Trying rule: npm_wrong_command; took: 0:00:00.000019\r\nDEBUG: Trying rule: open; took: 0:00:00.000020\r\nDEBUG: Trying rule: pip_unknown_command; took: 0:00:00.000020\r\nDEBUG: Total took: 0:00:00.493066\r\nTraceback (most recent call last):\r\n File \"/usr/bin/thefuck\", line 11, in \r\n load_entry_point('thefuck==3.15', 'console_scripts', 'thefuck')()\r\n File \"/usr/lib/python3.7/site-packages/thefuck/main.py\", line 67, in main\r\n fix_command()\r\n File \"/usr/lib/python3.7/site-packages/thefuck/main.py\", line 31, in fix_command\r\n selected_command = select_command(corrected_commands)\r\n File \"/usr/lib/python3.7/site-packages/thefuck/ui.py\", line 70, in select_command\r\n selector = CommandSelector(corrected_commands)\r\n File \"/usr/lib/python3.7/site-packages/thefuck/ui.py\", line 33, in __init__\r\n self._commands = [next(self._commands_gen)]\r\n File \"/usr/lib/python3.7/site-packages/thefuck/corrector.py\", line 43, in organize_commands\r\n first_command = next(corrected_commands)\r\n File \"/usr/lib/python3.7/site-packages/thefuck/corrector.py\", line 74, in \r\n for corrected in rule.get_corrected_commands(command))\r\n File \"/usr/lib/python3.7/site-packages/thefuck/types.py\", line 240, in get_corrected_commands\r\n new_commands = self.get_new_command(command)\r\n File \"/usr/lib/python3.7/site-packages/thefuck/rules/pip_unknown_command.py\", line 16, in get_new_command\r\n command.stderr)[0]\r\nIndexError: list index out of range\r\n```\r\n\r\n\r\n\n"},"hints_text":{"kind":"string","value":""},"created_at":{"kind":"string","value":"2020-03-01T01:34:48Z"},"merged_at":{"kind":"string","value":"2020-03-01T16:40:50Z"},"PASS_TO_PASS":{"kind":"string","value":"[\"tests/rules/test_pip_unknown_command.py::test_match\", \"tests/rules/test_pip_unknown_command.py::test_get_new_command[pip instatl-instatl-install-pip install]\"]"},"PASS_TO_FAIL":{"kind":"string","value":"[]"},"FAIL_TO_PASS":{"kind":"string","value":"[\"tests/rules/test_pip_unknown_command.py::test_get_new_command[pip un+install thefuck-un+install-uninstall-pip uninstall thefuck]\"]"},"FAIL_TO_FAIL":{"kind":"string","value":"[]"},"install":{"kind":"string","value":"{\"install\": [\"python setup.py develop\"], \"pre_install\": [\"tee tox.ini < str:\n fname=BASH_FUNCTION_FINDER.sub(r\"\\1\", var), decl=val\n )\n else:\n- source_line = f\"{var}={double_quote_escape(val)}; export {var}\"\n+ source_line = f\"{var}={shlex.quote(val)}; export {var}\"\n return source_line\n \n \n@@ -689,11 +670,10 @@ def shell_modifications(\n if new is None:\n cmds += _SHELL_UNSET_STRINGS[shell].format(name)\n else:\n- if sys.platform != \"win32\":\n- new_env_name = double_quote_escape(new_env[name])\n- else:\n- new_env_name = new_env[name]\n- cmd = _SHELL_SET_STRINGS[shell].format(name, new_env_name)\n+ value = new_env[name]\n+ if shell not in (\"bat\", \"pwsh\"):\n+ value = shlex.quote(value)\n+ cmd = _SHELL_SET_STRINGS[shell].format(name, value)\n cmds += cmd\n return cmds\n \n"},"test_patch":{"kind":"string","value":"diff --git a/lib/spack/spack/test/util/environment.py b/lib/spack/spack/test/util/environment.py\nindex ef7c151fee1a0..adf82aa83f4e5 100644\n--- a/lib/spack/spack/test/util/environment.py\n+++ b/lib/spack/spack/test/util/environment.py\n@@ -160,22 +160,13 @@ def test_reverse_environment_modifications(working_env):\n assert os.environ == start_env\n \n \n-def test_escape_double_quotes_in_shell_modifications():\n- to_validate = envutil.EnvironmentModifications()\n-\n- to_validate.set(\"VAR\", \"$PATH\")\n- to_validate.append_path(\"VAR\", \"$ANOTHER_PATH\")\n-\n- to_validate.set(\"QUOTED_VAR\", '\"MY_VAL\"')\n-\n- if sys.platform == \"win32\":\n- cmds = to_validate.shell_modifications(shell=\"bat\")\n- assert r'set \"VAR=$PATH;$ANOTHER_PATH\"' in cmds\n- assert r'set \"QUOTED_VAR=\"MY_VAL\"' in cmds\n- cmds = to_validate.shell_modifications(shell=\"pwsh\")\n- assert \"$Env:VAR='$PATH;$ANOTHER_PATH'\" in cmds\n- assert \"$Env:QUOTED_VAR='\\\"MY_VAL\\\"'\" in cmds\n- else:\n- cmds = to_validate.shell_modifications()\n- assert 'export VAR=\"$PATH:$ANOTHER_PATH\"' in cmds\n- assert r'export QUOTED_VAR=\"\\\"MY_VAL\\\"\"' in cmds\n+def test_shell_modifications_are_properly_escaped():\n+ \"\"\"Test that variable values are properly escaped so that they can safely be eval'd.\"\"\"\n+ changes = envutil.EnvironmentModifications()\n+ changes.set(\"VAR\", \"$PATH\")\n+ changes.append_path(\"VAR\", \"$ANOTHER_PATH\")\n+ changes.set(\"RM_RF\", \"$(rm -rf /)\")\n+\n+ script = changes.shell_modifications(shell=\"sh\")\n+ assert f\"export VAR='$PATH{os.pathsep}$ANOTHER_PATH'\" in script\n+ assert \"export RM_RF='$(rm -rf /)'\" in script\n"},"problem_statement":{"kind":"string","value":"spack build-env doesn't escape backticks in existing env variable values \n### Steps to reproduce\r\n\r\n```console\r\n$ export SOME_VARIABLE=\"\\`the_answer_to_life_the_universe_and_everything\\`\"\r\n$ spack build-env --dump myenv.sh zlib\r\n$ source myenv.sh\r\n```\r\n\r\n**Background for your entertainment:**\r\nThis showed up due to a new GitLab feature where the merge request description (Markdown, which may use backticks for code) is put it into an environment variable `CI_MERGE_REQUEST_DESCRIPTION`. While GitLab escapes the variable value properly, `spack build-env` doesn't escape it when building the dump file, which causes this hilarious situation where `anything_you_write_as_code` in the MR description will be interpreted as shell invocation when you source the produced file.\r\n\r\n### Error message\r\n\r\n```console\r\nmyenv.sh:30: command not found: the_answer_to_life_the_universe_and_everything\r\n```\r\n\r\n### Information on your system\r\n\r\n* **Spack:** 0.23.0.dev0 (96191eceee97411ab3108825296f337b71a5416d)\r\n* **Python:** 3.12.4\r\n* **Platform:** darwin-sonoma-m1\r\n* **Concretizer:** clingo\r\n\r\n### General information\r\n\r\n- [X] I have run `spack debug report` and reported the version of Spack/Python/Platform\r\n- [X] I have searched the issues of this repo and believe this is not a duplicate\r\n- [X] I have run the failing commands in debug mode and reported the output\n"},"hints_text":{"kind":"string","value":""},"created_at":{"kind":"string","value":"2024-02-21T11:52:00Z"},"merged_at":{"kind":"string","value":"2024-08-16T15:32:48Z"},"PASS_TO_PASS":{"kind":"string","value":"[\"lib/spack/spack/test/util/environment.py::test_is_system_path\", \"lib/spack/spack/test/util/environment.py::test_dump_environment[bash]\", \"lib/spack/spack/test/util/environment.py::test_prune_duplicate_paths\", \"lib/spack/spack/test/util/environment.py::test_path_set\", \"lib/spack/spack/test/util/environment.py::test_filter_system_paths\", \"lib/spack/spack/test/util/environment.py::test_get_path\", \"lib/spack/spack/test/util/environment.py::test_path_put_first\", \"lib/spack/spack/test/util/environment.py::test_env_flag\"]"},"PASS_TO_FAIL":{"kind":"string","value":"[]"},"FAIL_TO_PASS":{"kind":"string","value":"[\"lib/spack/spack/test/util/environment.py::test_shell_modifications_are_properly_escaped\", \"lib/spack/spack/test/util/environment.py::test_reverse_environment_modifications\"]"},"FAIL_TO_FAIL":{"kind":"string","value":"[]"},"install":{"kind":"string","value":"{\"install\": [\"uv pip install -e .\", \"spack -d bootstrap now --dev\"], \"pre_install\": [\"tee pytest.ini < List[Spec]:\n- \"\"\"Return the list of nodes to be packaged, given a list of specs.\n- Raises NotInstalledError if a spec is not installed but picked to be packaged.\n-\n- Args:\n- specs: list of root specs to be processed\n- root: include the root of each spec in the nodes\n- dependencies: include the dependencies of each\n- spec in the nodes\n- \"\"\"\n-\n- if not root and not dependencies:\n- return []\n-\n- # Filter packageable roots\n- with spack.store.STORE.db.read_transaction():\n- if root:\n- # Error on uninstalled roots, when roots are requested\n- uninstalled_roots = list(s for s in specs if not s.installed)\n- if uninstalled_roots:\n- raise NotInstalledError(uninstalled_roots)\n- roots = specs\n- else:\n- roots = []\n-\n- if dependencies:\n- # Error on uninstalled deps, when deps are requested\n- deps = list(\n- traverse.traverse_nodes(\n- specs, deptype=\"all\", order=\"breadth\", root=False, key=traverse.by_dag_hash\n- )\n- )\n- uninstalled_deps = list(s for s in deps if not s.installed)\n- if uninstalled_deps:\n- raise NotInstalledError(uninstalled_deps)\n- else:\n- deps = []\n-\n- return [s for s in itertools.chain(roots, deps) if not s.external]\n-\n-\n def try_verify(specfile_path):\n \"\"\"Utility function to attempt to verify a local file. Assumes the\n file is a clearsigned signature file.\ndiff --git a/lib/spack/spack/cmd/buildcache.py b/lib/spack/spack/cmd/buildcache.py\nindex a2dace6003e8a..78d8e7a00cec9 100644\n--- a/lib/spack/spack/cmd/buildcache.py\n+++ b/lib/spack/spack/cmd/buildcache.py\n@@ -3,25 +3,25 @@\n #\n # SPDX-License-Identifier: (Apache-2.0 OR MIT)\n import argparse\n+import concurrent.futures\n import copy\n import glob\n import hashlib\n import json\n-import multiprocessing\n-import multiprocessing.pool\n import os\n import shutil\n import sys\n import tempfile\n-from typing import Dict, List, Optional, Tuple, Union\n+from typing import Dict, List, Optional, Tuple\n \n import llnl.util.tty as tty\n from llnl.string import plural\n-from llnl.util.lang import elide_list\n+from llnl.util.lang import elide_list, stable_partition\n \n import spack.binary_distribution as bindist\n import spack.cmd\n import spack.config\n+import spack.deptypes as dt\n import spack.environment as ev\n import spack.error\n import spack.hash_types as ht\n@@ -35,10 +35,10 @@\n import spack.store\n import spack.user_environment\n import spack.util.crypto\n+import spack.util.parallel\n import spack.util.url as url_util\n import spack.util.web as web_util\n from spack import traverse\n-from spack.build_environment import determine_number_of_jobs\n from spack.cmd import display_specs\n from spack.cmd.common import arguments\n from spack.oci.image import (\n@@ -112,6 +112,17 @@ def setup_parser(subparser: argparse.ArgumentParser):\n \"Alternatively, one can decide to build a cache for only the package or only the \"\n \"dependencies\",\n )\n+ with_or_without_build_deps = push.add_mutually_exclusive_group()\n+ with_or_without_build_deps.add_argument(\n+ \"--with-build-dependencies\",\n+ action=\"store_true\",\n+ help=\"include build dependencies in the buildcache\",\n+ )\n+ with_or_without_build_deps.add_argument(\n+ \"--without-build-dependencies\",\n+ action=\"store_true\",\n+ help=\"exclude build dependencies from the buildcache\",\n+ )\n push.add_argument(\n \"--fail-fast\",\n action=\"store_true\",\n@@ -336,32 +347,6 @@ def _progress(i: int, total: int):\n return \"\"\n \n \n-class NoPool:\n- def map(self, func, args):\n- return [func(a) for a in args]\n-\n- def starmap(self, func, args):\n- return [func(*a) for a in args]\n-\n- def __enter__(self):\n- return self\n-\n- def __exit__(self, *args):\n- pass\n-\n-\n-MaybePool = Union[multiprocessing.pool.Pool, NoPool]\n-\n-\n-def _make_pool() -> MaybePool:\n- \"\"\"Can't use threading because it's unsafe, and can't use spawned processes because of globals.\n- That leaves only forking\"\"\"\n- if multiprocessing.get_start_method() == \"fork\":\n- return multiprocessing.pool.Pool(determine_number_of_jobs(parallel=True))\n- else:\n- return NoPool()\n-\n-\n def _skip_no_redistribute_for_public(specs):\n remaining_specs = list()\n removed_specs = list()\n@@ -381,6 +366,47 @@ def _skip_no_redistribute_for_public(specs):\n return remaining_specs\n \n \n+class PackagesAreNotInstalledError(spack.error.SpackError):\n+ \"\"\"Raised when a list of specs is not installed but picked to be packaged.\"\"\"\n+\n+ def __init__(self, specs: List[Spec]):\n+ super().__init__(\n+ \"Cannot push non-installed packages\",\n+ \", \".join(elide_list(list(_format_spec(s) for s in specs), 5)),\n+ )\n+\n+\n+class PackageNotInstalledError(spack.error.SpackError):\n+ \"\"\"Raised when a spec is not installed but picked to be packaged.\"\"\"\n+\n+\n+class MissingLayerError(spack.error.SpackError):\n+ \"\"\"Raised when a required layer for a dependency is missing in an OCI registry.\"\"\"\n+\n+\n+def _specs_to_be_packaged(\n+ requested: List[Spec], things_to_install: str, build_deps: bool\n+) -> List[Spec]:\n+ \"\"\"Collect all non-external with or without roots and dependencies\"\"\"\n+ if \"dependencies\" not in things_to_install:\n+ deptype = dt.NONE\n+ elif build_deps:\n+ deptype = dt.ALL\n+ else:\n+ deptype = dt.RUN | dt.LINK | dt.TEST\n+ return [\n+ s\n+ for s in traverse.traverse_nodes(\n+ requested,\n+ root=\"package\" in things_to_install,\n+ deptype=deptype,\n+ order=\"breadth\",\n+ key=traverse.by_dag_hash,\n+ )\n+ if not s.external\n+ ]\n+\n+\n def push_fn(args):\n \"\"\"create a binary package and push it to a mirror\"\"\"\n if args.spec_file:\n@@ -420,40 +446,52 @@ def push_fn(args):\n \"Use --unsigned to silence this warning.\"\n )\n \n- # This is a list of installed, non-external specs.\n- specs = bindist.specs_to_be_packaged(\n+ specs = _specs_to_be_packaged(\n roots,\n- root=\"package\" in args.things_to_install,\n- dependencies=\"dependencies\" in args.things_to_install,\n+ things_to_install=args.things_to_install,\n+ build_deps=args.with_build_dependencies or not args.without_build_dependencies,\n )\n+\n if not args.private:\n specs = _skip_no_redistribute_for_public(specs)\n \n- # When pushing multiple specs, print the url once ahead of time, as well as how\n- # many specs are being pushed.\n if len(specs) > 1:\n tty.info(f\"Selected {len(specs)} specs to push to {push_url}\")\n \n- failed = []\n+ # Pushing not installed specs is an error. Either fail fast or populate the error list and\n+ # push installed package in best effort mode.\n+ failed: List[Tuple[Spec, BaseException]] = []\n+ with spack.store.STORE.db.read_transaction():\n+ if any(not s.installed for s in specs):\n+ specs, not_installed = stable_partition(specs, lambda s: s.installed)\n+ if args.fail_fast:\n+ raise PackagesAreNotInstalledError(not_installed)\n+ else:\n+ failed.extend(\n+ (s, PackageNotInstalledError(\"package not installed\")) for s in not_installed\n+ )\n \n- # TODO: unify this logic in the future.\n+ # TODO: move into bindist.push_or_raise\n if target_image:\n base_image = ImageReference.from_string(args.base_image) if args.base_image else None\n with tempfile.TemporaryDirectory(\n dir=spack.stage.get_stage_root()\n- ) as tmpdir, _make_pool() as pool:\n- skipped, base_images, checksums = _push_oci(\n+ ) as tmpdir, spack.util.parallel.make_concurrent_executor() as executor:\n+ skipped, base_images, checksums, upload_errors = _push_oci(\n target_image=target_image,\n base_image=base_image,\n installed_specs_with_deps=specs,\n force=args.force,\n tmpdir=tmpdir,\n- pool=pool,\n+ executor=executor,\n )\n \n+ if upload_errors:\n+ failed.extend(upload_errors)\n+\n # Apart from creating manifests for each individual spec, we allow users to create a\n # separate image tag for all root specs and their runtime dependencies.\n- if args.tag:\n+ elif args.tag:\n tagged_image = target_image.with_tag(args.tag)\n # _push_oci may not populate base_images if binaries were already in the registry\n for spec in roots:\n@@ -496,7 +534,7 @@ def push_fn(args):\n e, (bindist.PickKeyException, bindist.NoKeyException)\n ):\n raise\n- failed.append((_format_spec(spec), e))\n+ failed.append((spec, e))\n \n if skipped:\n if len(specs) == 1:\n@@ -519,7 +557,13 @@ def push_fn(args):\n raise spack.error.SpackError(\n f\"The following {len(failed)} errors occurred while pushing specs to the buildcache\",\n \"\\n\".join(\n- elide_list([f\" {spec}: {e.__class__.__name__}: {e}\" for spec, e in failed], 5)\n+ elide_list(\n+ [\n+ f\" {_format_spec(spec)}: {e.__class__.__name__}: {e}\"\n+ for spec, e in failed\n+ ],\n+ 5,\n+ )\n ),\n )\n \n@@ -529,8 +573,8 @@ def push_fn(args):\n if target_image and len(skipped) < len(specs) and args.update_index:\n with tempfile.TemporaryDirectory(\n dir=spack.stage.get_stage_root()\n- ) as tmpdir, _make_pool() as pool:\n- _update_index_oci(target_image, tmpdir, pool)\n+ ) as tmpdir, spack.util.parallel.make_concurrent_executor() as executor:\n+ _update_index_oci(target_image, tmpdir, executor)\n \n \n def _get_spack_binary_blob(image_ref: ImageReference) -> Optional[spack.oci.oci.Blob]:\n@@ -604,17 +648,12 @@ def _put_manifest(\n ):\n architecture = _archspec_to_gooarch(specs[0])\n \n- dependencies = list(\n- reversed(\n- list(\n- s\n- for s in traverse.traverse_nodes(\n- specs, order=\"topo\", deptype=(\"link\", \"run\"), root=True\n- )\n- if not s.external\n- )\n- )\n- )\n+ expected_blobs: List[Spec] = [\n+ s\n+ for s in traverse.traverse_nodes(specs, order=\"topo\", deptype=(\"link\", \"run\"), root=True)\n+ if not s.external\n+ ]\n+ expected_blobs.reverse()\n \n base_manifest, base_config = base_images[architecture]\n env = _retrieve_env_dict_from_config(base_config)\n@@ -633,9 +672,16 @@ def _put_manifest(\n # Create an oci.image.config file\n config = copy.deepcopy(base_config)\n \n- # Add the diff ids of the dependencies\n- for s in dependencies:\n- config[\"rootfs\"][\"diff_ids\"].append(str(checksums[s.dag_hash()].uncompressed_digest))\n+ # Add the diff ids of the blobs\n+ for s in expected_blobs:\n+ # If a layer for a dependency has gone missing (due to removed manifest in the registry, a\n+ # failed push, or a local forced uninstall), we cannot create a runnable container image.\n+ # If an OCI registry is only used for storage, this is not a hard error, but for now we\n+ # raise an exception unconditionally, until someone requests a more lenient behavior.\n+ checksum = checksums.get(s.dag_hash())\n+ if not checksum:\n+ raise MissingLayerError(f\"missing layer for {_format_spec(s)}\")\n+ config[\"rootfs\"][\"diff_ids\"].append(str(checksum.uncompressed_digest))\n \n # Set the environment variables\n config[\"config\"][\"Env\"] = [f\"{k}={v}\" for k, v in env.items()]\n@@ -679,7 +725,7 @@ def _put_manifest(\n \"digest\": str(checksums[s.dag_hash()].compressed_digest),\n \"size\": checksums[s.dag_hash()].size,\n }\n- for s in dependencies\n+ for s in expected_blobs\n ),\n ],\n }\n@@ -724,9 +770,14 @@ def _push_oci(\n base_image: Optional[ImageReference],\n installed_specs_with_deps: List[Spec],\n tmpdir: str,\n- pool: MaybePool,\n+ executor: concurrent.futures.Executor,\n force: bool = False,\n-) -> Tuple[List[str], Dict[str, Tuple[dict, dict]], Dict[str, spack.oci.oci.Blob]]:\n+) -> Tuple[\n+ List[str],\n+ Dict[str, Tuple[dict, dict]],\n+ Dict[str, spack.oci.oci.Blob],\n+ List[Tuple[Spec, BaseException]],\n+]:\n \"\"\"Push specs to an OCI registry\n \n Args:\n@@ -739,7 +790,8 @@ def _push_oci(\n Returns:\n A tuple consisting of the list of skipped specs already in the build cache,\n a dictionary mapping architectures to base image manifests and configs,\n- and a dictionary mapping each spec's dag hash to a blob.\n+ a dictionary mapping each spec's dag hash to a blob,\n+ and a list of tuples of specs with errors of failed uploads.\n \"\"\"\n \n # Reverse the order\n@@ -756,39 +808,50 @@ def _push_oci(\n \n if not force:\n tty.info(\"Checking for existing specs in the buildcache\")\n- to_be_uploaded = []\n+ blobs_to_upload = []\n \n tags_to_check = (target_image.with_tag(default_tag(s)) for s in installed_specs_with_deps)\n- available_blobs = pool.map(_get_spack_binary_blob, tags_to_check)\n+ available_blobs = executor.map(_get_spack_binary_blob, tags_to_check)\n \n for spec, maybe_blob in zip(installed_specs_with_deps, available_blobs):\n if maybe_blob is not None:\n checksums[spec.dag_hash()] = maybe_blob\n skipped.append(_format_spec(spec))\n else:\n- to_be_uploaded.append(spec)\n+ blobs_to_upload.append(spec)\n else:\n- to_be_uploaded = installed_specs_with_deps\n+ blobs_to_upload = installed_specs_with_deps\n \n- if not to_be_uploaded:\n- return skipped, base_images, checksums\n+ if not blobs_to_upload:\n+ return skipped, base_images, checksums, []\n \n tty.info(\n- f\"{len(to_be_uploaded)} specs need to be pushed to \"\n+ f\"{len(blobs_to_upload)} specs need to be pushed to \"\n f\"{target_image.domain}/{target_image.name}\"\n )\n \n # Upload blobs\n- new_blobs = pool.starmap(\n- _push_single_spack_binary_blob, ((target_image, spec, tmpdir) for spec in to_be_uploaded)\n- )\n-\n- # And update the spec to blob mapping\n- for spec, blob in zip(to_be_uploaded, new_blobs):\n- checksums[spec.dag_hash()] = blob\n+ blob_futures = [\n+ executor.submit(_push_single_spack_binary_blob, target_image, spec, tmpdir)\n+ for spec in blobs_to_upload\n+ ]\n+\n+ concurrent.futures.wait(blob_futures)\n+\n+ manifests_to_upload: List[Spec] = []\n+ errors: List[Tuple[Spec, BaseException]] = []\n+\n+ # And update the spec to blob mapping for successful uploads\n+ for spec, blob_future in zip(blobs_to_upload, blob_futures):\n+ error = blob_future.exception()\n+ if error is None:\n+ manifests_to_upload.append(spec)\n+ checksums[spec.dag_hash()] = blob_future.result()\n+ else:\n+ errors.append((spec, error))\n \n # Copy base images if necessary\n- for spec in to_be_uploaded:\n+ for spec in manifests_to_upload:\n _update_base_images(\n base_image=base_image,\n target_image=target_image,\n@@ -807,30 +870,35 @@ def extra_config(spec: Spec):\n \n # Upload manifests\n tty.info(\"Uploading manifests\")\n- pool.starmap(\n- _put_manifest,\n- (\n- (\n- base_images,\n- checksums,\n- target_image.with_tag(default_tag(spec)),\n- tmpdir,\n- extra_config(spec),\n- {\"org.opencontainers.image.description\": spec.format()},\n- spec,\n- )\n- for spec in to_be_uploaded\n- ),\n- )\n+ manifest_futures = [\n+ executor.submit(\n+ _put_manifest,\n+ base_images,\n+ checksums,\n+ target_image.with_tag(default_tag(spec)),\n+ tmpdir,\n+ extra_config(spec),\n+ {\"org.opencontainers.image.description\": spec.format()},\n+ spec,\n+ )\n+ for spec in manifests_to_upload\n+ ]\n+\n+ concurrent.futures.wait(manifest_futures)\n \n # Print the image names of the top-level specs\n- for spec in to_be_uploaded:\n- tty.info(f\"Pushed {_format_spec(spec)} to {target_image.with_tag(default_tag(spec))}\")\n+ for spec, manifest_future in zip(manifests_to_upload, manifest_futures):\n+ error = manifest_future.exception()\n+ if error is None:\n+ tty.info(f\"Pushed {_format_spec(spec)} to {target_image.with_tag(default_tag(spec))}\")\n+ else:\n+ errors.append((spec, error))\n \n- return skipped, base_images, checksums\n+ return skipped, base_images, checksums, errors\n \n \n-def _config_from_tag(image_ref: ImageReference, tag: str) -> Optional[dict]:\n+def _config_from_tag(image_ref_and_tag: Tuple[ImageReference, str]) -> Optional[dict]:\n+ image_ref, tag = image_ref_and_tag\n # Don't allow recursion here, since Spack itself always uploads\n # vnd.oci.image.manifest.v1+json, not vnd.oci.image.index.v1+json\n _, config = get_manifest_and_config_with_retry(image_ref.with_tag(tag), tag, recurse=0)\n@@ -840,13 +908,13 @@ def _config_from_tag(image_ref: ImageReference, tag: str) -> Optional[dict]:\n return config if \"spec\" in config else None\n \n \n-def _update_index_oci(image_ref: ImageReference, tmpdir: str, pool: MaybePool) -> None:\n+def _update_index_oci(\n+ image_ref: ImageReference, tmpdir: str, pool: concurrent.futures.Executor\n+) -> None:\n tags = list_tags(image_ref)\n \n # Fetch all image config files in parallel\n- spec_dicts = pool.starmap(\n- _config_from_tag, ((image_ref, tag) for tag in tags if tag_is_spec(tag))\n- )\n+ spec_dicts = pool.map(_config_from_tag, ((image_ref, tag) for tag in tags if tag_is_spec(tag)))\n \n # Populate the database\n db_root_dir = os.path.join(tmpdir, \"db_root\")\n@@ -1182,8 +1250,8 @@ def update_index(mirror: spack.mirror.Mirror, update_keys=False):\n if image_ref:\n with tempfile.TemporaryDirectory(\n dir=spack.stage.get_stage_root()\n- ) as tmpdir, _make_pool() as pool:\n- _update_index_oci(image_ref, tmpdir, pool)\n+ ) as tmpdir, spack.util.parallel.make_concurrent_executor() as executor:\n+ _update_index_oci(image_ref, tmpdir, executor)\n return\n \n # Otherwise, assume a normal mirror.\ndiff --git a/lib/spack/spack/util/parallel.py b/lib/spack/spack/util/parallel.py\nindex 9c0ff1ab8e75e..28c55b7d1e5ee 100644\n--- a/lib/spack/spack/util/parallel.py\n+++ b/lib/spack/spack/util/parallel.py\n@@ -2,12 +2,15 @@\n # Spack Project Developers. See the top-level COPYRIGHT file for details.\n #\n # SPDX-License-Identifier: (Apache-2.0 OR MIT)\n+import concurrent.futures\n import multiprocessing\n import os\n import sys\n import traceback\n from typing import Optional\n \n+from spack.util.cpus import determine_number_of_jobs\n+\n \n class ErrorFromWorker:\n \"\"\"Wrapper class to report an error from a worker process\"\"\"\n@@ -80,3 +83,24 @@ def imap_unordered(\n if isinstance(result, ErrorFromWorker):\n raise RuntimeError(result.stacktrace if debug else str(result))\n yield result\n+\n+\n+class SequentialExecutor(concurrent.futures.Executor):\n+ \"\"\"Executor that runs tasks sequentially in the current thread.\"\"\"\n+\n+ def submit(self, fn, *args, **kwargs):\n+ \"\"\"Submit a function to be executed.\"\"\"\n+ future = concurrent.futures.Future()\n+ try:\n+ future.set_result(fn(*args, **kwargs))\n+ except Exception as e:\n+ future.set_exception(e)\n+ return future\n+\n+\n+def make_concurrent_executor() -> concurrent.futures.Executor:\n+ \"\"\"Can't use threading because it's unsafe, and can't use spawned processes because of globals.\n+ That leaves only forking.\"\"\"\n+ if multiprocessing.get_start_method() == \"fork\":\n+ return concurrent.futures.ProcessPoolExecutor(determine_number_of_jobs(parallel=True))\n+ return SequentialExecutor()\ndiff --git a/share/spack/spack-completion.bash b/share/spack/spack-completion.bash\nindex 7a33021f4c452..0e946f3f1889f 100644\n--- a/share/spack/spack-completion.bash\n+++ b/share/spack/spack-completion.bash\n@@ -571,7 +571,7 @@ _spack_buildcache() {\n _spack_buildcache_push() {\n if $list_options\n then\n- SPACK_COMPREPLY=\"-h --help -f --force --unsigned -u --signed --key -k --update-index --rebuild-index --spec-file --only --fail-fast --base-image --tag -t --private -j --jobs\"\n+ SPACK_COMPREPLY=\"-h --help -f --force --unsigned -u --signed --key -k --update-index --rebuild-index --spec-file --only --with-build-dependencies --without-build-dependencies --fail-fast --base-image --tag -t --private -j --jobs\"\n else\n _mirrors\n fi\n@@ -580,7 +580,7 @@ _spack_buildcache_push() {\n _spack_buildcache_create() {\n if $list_options\n then\n- SPACK_COMPREPLY=\"-h --help -f --force --unsigned -u --signed --key -k --update-index --rebuild-index --spec-file --only --fail-fast --base-image --tag -t --private -j --jobs\"\n+ SPACK_COMPREPLY=\"-h --help -f --force --unsigned -u --signed --key -k --update-index --rebuild-index --spec-file --only --with-build-dependencies --without-build-dependencies --fail-fast --base-image --tag -t --private -j --jobs\"\n else\n _mirrors\n fi\ndiff --git a/share/spack/spack-completion.fish b/share/spack/spack-completion.fish\nindex a2ffebda7ca80..6ec431feca800 100644\n--- a/share/spack/spack-completion.fish\n+++ b/share/spack/spack-completion.fish\n@@ -699,7 +699,7 @@ complete -c spack -n '__fish_spack_using_command buildcache' -s h -l help -f -a\n complete -c spack -n '__fish_spack_using_command buildcache' -s h -l help -d 'show this help message and exit'\n \n # spack buildcache push\n-set -g __fish_spack_optspecs_spack_buildcache_push h/help f/force u/unsigned signed k/key= update-index spec-file= only= fail-fast base-image= t/tag= private j/jobs=\n+set -g __fish_spack_optspecs_spack_buildcache_push h/help f/force u/unsigned signed k/key= update-index spec-file= only= with-build-dependencies without-build-dependencies fail-fast base-image= t/tag= private j/jobs=\n complete -c spack -n '__fish_spack_using_command_pos_remainder 1 buildcache push' -f -k -a '(__fish_spack_specs)'\n complete -c spack -n '__fish_spack_using_command buildcache push' -s h -l help -f -a help\n complete -c spack -n '__fish_spack_using_command buildcache push' -s h -l help -d 'show this help message and exit'\n@@ -717,6 +717,10 @@ complete -c spack -n '__fish_spack_using_command buildcache push' -l spec-file -\n complete -c spack -n '__fish_spack_using_command buildcache push' -l spec-file -r -d 'create buildcache entry for spec from json or yaml file'\n complete -c spack -n '__fish_spack_using_command buildcache push' -l only -r -f -a 'package dependencies'\n complete -c spack -n '__fish_spack_using_command buildcache push' -l only -r -d 'select the buildcache mode. The default is to build a cache for the package along with all its dependencies. Alternatively, one can decide to build a cache for only the package or only the dependencies'\n+complete -c spack -n '__fish_spack_using_command buildcache push' -l with-build-dependencies -f -a with_build_dependencies\n+complete -c spack -n '__fish_spack_using_command buildcache push' -l with-build-dependencies -d 'include build dependencies in the buildcache'\n+complete -c spack -n '__fish_spack_using_command buildcache push' -l without-build-dependencies -f -a without_build_dependencies\n+complete -c spack -n '__fish_spack_using_command buildcache push' -l without-build-dependencies -d 'exclude build dependencies from the buildcache'\n complete -c spack -n '__fish_spack_using_command buildcache push' -l fail-fast -f -a fail_fast\n complete -c spack -n '__fish_spack_using_command buildcache push' -l fail-fast -d 'stop pushing on first failure (default is best effort)'\n complete -c spack -n '__fish_spack_using_command buildcache push' -l base-image -r -f -a base_image\n@@ -729,7 +733,7 @@ complete -c spack -n '__fish_spack_using_command buildcache push' -s j -l jobs -\n complete -c spack -n '__fish_spack_using_command buildcache push' -s j -l jobs -r -d 'explicitly set number of parallel jobs'\n \n # spack buildcache create\n-set -g __fish_spack_optspecs_spack_buildcache_create h/help f/force u/unsigned signed k/key= update-index spec-file= only= fail-fast base-image= t/tag= private j/jobs=\n+set -g __fish_spack_optspecs_spack_buildcache_create h/help f/force u/unsigned signed k/key= update-index spec-file= only= with-build-dependencies without-build-dependencies fail-fast base-image= t/tag= private j/jobs=\n complete -c spack -n '__fish_spack_using_command_pos_remainder 1 buildcache create' -f -k -a '(__fish_spack_specs)'\n complete -c spack -n '__fish_spack_using_command buildcache create' -s h -l help -f -a help\n complete -c spack -n '__fish_spack_using_command buildcache create' -s h -l help -d 'show this help message and exit'\n@@ -747,6 +751,10 @@ complete -c spack -n '__fish_spack_using_command buildcache create' -l spec-file\n complete -c spack -n '__fish_spack_using_command buildcache create' -l spec-file -r -d 'create buildcache entry for spec from json or yaml file'\n complete -c spack -n '__fish_spack_using_command buildcache create' -l only -r -f -a 'package dependencies'\n complete -c spack -n '__fish_spack_using_command buildcache create' -l only -r -d 'select the buildcache mode. The default is to build a cache for the package along with all its dependencies. Alternatively, one can decide to build a cache for only the package or only the dependencies'\n+complete -c spack -n '__fish_spack_using_command buildcache create' -l with-build-dependencies -f -a with_build_dependencies\n+complete -c spack -n '__fish_spack_using_command buildcache create' -l with-build-dependencies -d 'include build dependencies in the buildcache'\n+complete -c spack -n '__fish_spack_using_command buildcache create' -l without-build-dependencies -f -a without_build_dependencies\n+complete -c spack -n '__fish_spack_using_command buildcache create' -l without-build-dependencies -d 'exclude build dependencies from the buildcache'\n complete -c spack -n '__fish_spack_using_command buildcache create' -l fail-fast -f -a fail_fast\n complete -c spack -n '__fish_spack_using_command buildcache create' -l fail-fast -d 'stop pushing on first failure (default is best effort)'\n complete -c spack -n '__fish_spack_using_command buildcache create' -l base-image -r -f -a base_image\n"},"test_patch":{"kind":"string","value":"diff --git a/lib/spack/spack/test/cmd/buildcache.py b/lib/spack/spack/test/cmd/buildcache.py\nindex b634e371165dc..eee8c160f1fb2 100644\n--- a/lib/spack/spack/test/cmd/buildcache.py\n+++ b/lib/spack/spack/test/cmd/buildcache.py\n@@ -12,7 +12,9 @@\n \n import spack.binary_distribution\n import spack.cmd.buildcache\n+import spack.deptypes\n import spack.environment as ev\n+import spack.error\n import spack.main\n import spack.spec\n import spack.util.url\n@@ -443,3 +445,54 @@ def test_skip_no_redistribute(mock_packages, config):\n filtered = spack.cmd.buildcache._skip_no_redistribute_for_public(specs)\n assert not any(s.name == \"no-redistribute\" for s in filtered)\n assert any(s.name == \"no-redistribute-dependent\" for s in filtered)\n+\n+\n+def test_best_effort_vs_fail_fast_when_dep_not_installed(tmp_path, mutable_database):\n+ \"\"\"When --fail-fast is passed, the push command should fail if it immediately finds an\n+ uninstalled dependency. Otherwise, failure to push one dependency shouldn't prevent the\n+ others from being pushed.\"\"\"\n+\n+ mirror(\"add\", \"--unsigned\", \"my-mirror\", str(tmp_path))\n+\n+ # Uninstall mpich so that its dependent mpileaks can't be pushed\n+ for s in mutable_database.query_local(\"mpich\"):\n+ s.package.do_uninstall(force=True)\n+\n+ with pytest.raises(spack.cmd.buildcache.PackagesAreNotInstalledError, match=\"mpich\"):\n+ buildcache(\"push\", \"--update-index\", \"--fail-fast\", \"my-mirror\", \"mpileaks^mpich\")\n+\n+ # nothing should be pushed due to --fail-fast.\n+ assert not os.listdir(tmp_path)\n+ assert not spack.binary_distribution.update_cache_and_get_specs()\n+\n+ with pytest.raises(spack.cmd.buildcache.PackageNotInstalledError):\n+ buildcache(\"push\", \"--update-index\", \"my-mirror\", \"mpileaks^mpich\")\n+\n+ specs = spack.binary_distribution.update_cache_and_get_specs()\n+\n+ # everything but mpich should be pushed\n+ mpileaks = mutable_database.query_local(\"mpileaks^mpich\")[0]\n+ assert set(specs) == {s for s in mpileaks.traverse() if s.name != \"mpich\"}\n+\n+\n+def test_push_without_build_deps(tmp_path, temporary_store, mock_packages, mutable_config):\n+ \"\"\"Spack should not error when build deps are uninstalled and --without-build-dependenies is\n+ passed.\"\"\"\n+\n+ mirror(\"add\", \"--unsigned\", \"my-mirror\", str(tmp_path))\n+\n+ s = spack.spec.Spec(\"dtrun3\").concretized()\n+ s.package.do_install(fake=True)\n+ s[\"dtbuild3\"].package.do_uninstall()\n+\n+ # fails when build deps are required\n+ with pytest.raises(spack.error.SpackError, match=\"package not installed\"):\n+ buildcache(\n+ \"push\", \"--update-index\", \"--with-build-dependencies\", \"my-mirror\", f\"/{s.dag_hash()}\"\n+ )\n+\n+ # succeeds when build deps are not required\n+ buildcache(\n+ \"push\", \"--update-index\", \"--without-build-dependencies\", \"my-mirror\", f\"/{s.dag_hash()}\"\n+ )\n+ assert spack.binary_distribution.update_cache_and_get_specs() == [s]\ndiff --git a/lib/spack/spack/test/conftest.py b/lib/spack/spack/test/conftest.py\nindex 00d7980a551de..8a1f887fbec93 100644\n--- a/lib/spack/spack/test/conftest.py\n+++ b/lib/spack/spack/test/conftest.py\n@@ -56,6 +56,7 @@\n import spack.util.executable\n import spack.util.git\n import spack.util.gpg\n+import spack.util.parallel\n import spack.util.spack_yaml as syaml\n import spack.util.url as url_util\n import spack.version\n@@ -1961,10 +1962,12 @@ def pytest_runtest_setup(item):\n pytest.skip(*not_on_windows_marker.args)\n \n \n-@pytest.fixture(scope=\"function\")\n+@pytest.fixture(autouse=True)\n def disable_parallel_buildcache_push(monkeypatch):\n \"\"\"Disable process pools in tests.\"\"\"\n- monkeypatch.setattr(spack.cmd.buildcache, \"_make_pool\", spack.cmd.buildcache.NoPool)\n+ monkeypatch.setattr(\n+ spack.util.parallel, \"make_concurrent_executor\", spack.util.parallel.SequentialExecutor\n+ )\n \n \n def _root_path(x, y, *, path):\ndiff --git a/lib/spack/spack/test/oci/integration_test.py b/lib/spack/spack/test/oci/integration_test.py\nindex c4e2636619474..cefd95f92db9f 100644\n--- a/lib/spack/spack/test/oci/integration_test.py\n+++ b/lib/spack/spack/test/oci/integration_test.py\n@@ -10,12 +10,19 @@\n import json\n import os\n import pathlib\n+import re\n from contextlib import contextmanager\n \n+import pytest\n+\n+import spack.cmd.buildcache\n+import spack.database\n import spack.environment as ev\n+import spack.error\n import spack.oci.opener\n+import spack.spec\n from spack.main import SpackCommand\n-from spack.oci.image import Digest, ImageReference, default_config, default_manifest\n+from spack.oci.image import Digest, ImageReference, default_config, default_manifest, default_tag\n from spack.oci.oci import blob_exists, get_manifest_and_config, upload_blob, upload_manifest\n from spack.test.oci.mock_registry import DummyServer, InMemoryOCIRegistry, create_opener\n from spack.util.archive import gzip_compressed_tarfile\n@@ -34,7 +41,7 @@ def oci_servers(*servers: DummyServer):\n spack.oci.opener.urlopen = old_opener\n \n \n-def test_buildcache_push_command(mutable_database, disable_parallel_buildcache_push):\n+def test_buildcache_push_command(mutable_database):\n with oci_servers(InMemoryOCIRegistry(\"example.com\")):\n mirror(\"add\", \"oci-test\", \"oci://example.com/image\")\n \n@@ -57,9 +64,7 @@ def test_buildcache_push_command(mutable_database, disable_parallel_buildcache_p\n assert os.path.exists(os.path.join(spec.prefix, \"bin\", \"mpileaks\"))\n \n \n-def test_buildcache_tag(\n- install_mockery, mock_fetch, mutable_mock_env_path, disable_parallel_buildcache_push\n-):\n+def test_buildcache_tag(install_mockery, mock_fetch, mutable_mock_env_path):\n \"\"\"Tests whether we can create an OCI image from a full environment with multiple roots.\"\"\"\n env(\"create\", \"test\")\n with ev.read(\"test\"):\n@@ -97,9 +102,7 @@ def test_buildcache_tag(\n assert len(manifest[\"layers\"]) == 1\n \n \n-def test_buildcache_push_with_base_image_command(\n- mutable_database, tmpdir, disable_parallel_buildcache_push\n-):\n+def test_buildcache_push_with_base_image_command(mutable_database, tmpdir):\n \"\"\"Test that we can push a package with a base image to an OCI registry.\n \n This test is a bit involved, cause we have to create a small base image.\"\"\"\n@@ -200,7 +203,7 @@ def test_buildcache_push_with_base_image_command(\n \n \n def test_uploading_with_base_image_in_docker_image_manifest_v2_format(\n- tmp_path: pathlib.Path, mutable_database, disable_parallel_buildcache_push\n+ tmp_path: pathlib.Path, mutable_database\n ):\n \"\"\"If the base image uses an old manifest schema, Spack should also use that.\n That is necessary for container images to work with Apptainer, which is rather strict about\n@@ -286,3 +289,57 @@ def test_uploading_with_base_image_in_docker_image_manifest_v2_format(\n for layer in m[\"layers\"]:\n assert layer[\"mediaType\"] == \"application/vnd.docker.image.rootfs.diff.tar.gzip\"\n assert \"annotations\" not in m\n+\n+\n+def test_best_effort_upload(mutable_database: spack.database.Database, monkeypatch):\n+ \"\"\"Failure to upload a blob or manifest should not prevent others from being uploaded\"\"\"\n+\n+ _push_blob = spack.cmd.buildcache._push_single_spack_binary_blob\n+ _push_manifest = spack.cmd.buildcache._put_manifest\n+\n+ def push_blob(image_ref, spec, tmpdir):\n+ # fail to upload the blob of mpich\n+ if spec.name == \"mpich\":\n+ raise Exception(\"Blob Server Error\")\n+ return _push_blob(image_ref, spec, tmpdir)\n+\n+ def put_manifest(base_images, checksums, image_ref, tmpdir, extra_config, annotations, *specs):\n+ # fail to upload the manifest of libdwarf\n+ if \"libdwarf\" in (s.name for s in specs):\n+ raise Exception(\"Manifest Server Error\")\n+ return _push_manifest(\n+ base_images, checksums, image_ref, tmpdir, extra_config, annotations, *specs\n+ )\n+\n+ monkeypatch.setattr(spack.cmd.buildcache, \"_push_single_spack_binary_blob\", push_blob)\n+ monkeypatch.setattr(spack.cmd.buildcache, \"_put_manifest\", put_manifest)\n+\n+ registry = InMemoryOCIRegistry(\"example.com\")\n+ with oci_servers(registry):\n+ mirror(\"add\", \"oci-test\", \"oci://example.com/image\")\n+\n+ with pytest.raises(spack.error.SpackError, match=\"The following 4 errors occurred\") as e:\n+ buildcache(\"push\", \"--update-index\", \"oci-test\", \"mpileaks^mpich\")\n+\n+ error = str(e.value)\n+\n+ # mpich's blob failed to upload\n+ assert re.search(\"mpich.+: Exception: Blob Server Error\", error)\n+\n+ # libdwarf's manifest failed to upload\n+ assert re.search(\"libdwarf.+: Exception: Manifest Server Error\", error)\n+\n+ # since there is no blob for mpich, runtime dependents cannot refer to it in their\n+ # manifests, which is a transitive error.\n+ assert re.search(\"callpath.+: MissingLayerError: missing layer for mpich\", error)\n+ assert re.search(\"mpileaks.+: MissingLayerError: missing layer for mpich\", error)\n+\n+ mpileaks: spack.spec.Spec = mutable_database.query_local(\"mpileaks^mpich\")[0]\n+\n+ # ensure that packages not affected by errors were uploaded still.\n+ uploaded_tags = {tag for _, tag in registry.manifests.keys()}\n+ failures = {\"mpich\", \"libdwarf\", \"callpath\", \"mpileaks\"}\n+ expected_tags = {default_tag(s) for s in mpileaks.traverse() if s.name not in failures}\n+\n+ assert expected_tags\n+ assert uploaded_tags == expected_tags\n"},"problem_statement":{"kind":"string","value":"Doing \"buildcache push\" should work on partial environments\n### Steps to reproduce\n\nBuild a spack environment where one or more specs fail to install (e.g. the \"bart\" package is currently failing in the develop branch), then try to do a \"buildcache push\" command to save progress on all the packages that did build successfully.\n\n### Error message\n\nSpack responds with \"Error: Cannot push non-installed packages\" for any packages that failed to install. The user must then manually list all the specs that were built successfully.\n\n### Information on your system\n\n* **Spack:** 0.22.0.dev0\r\n* **Python:** 3.9.17\r\n* **Platform:** linux-centos7-haswell\r\n* **Concretizer:** clingo\r\n\n\n### General information\n\n- [X] I have run `spack debug report` and reported the version of Spack/Python/Platform\n- [X] I have searched the issues of this repo and believe this is not a duplicate\n- [X] I have run the failing commands in debug mode and reported the output\n"},"hints_text":{"kind":"string","value":""},"created_at":{"kind":"string","value":"2024-08-08T13:02:41Z"},"merged_at":{"kind":"string","value":"2024-08-13T06:12:49Z"},"PASS_TO_PASS":{"kind":"string","value":"[]"},"PASS_TO_FAIL":{"kind":"string","value":"[]"},"FAIL_TO_PASS":{"kind":"string","value":"[\"lib/spack/spack/test/cmd/buildcache.py::test_correct_specs_are_pushed[package-expected2]\", \"lib/spack/spack/test/cmd/buildcache.py::test_correct_specs_are_pushed[dependencies-expected1]\", \"lib/spack/spack/test/cmd/buildcache.py::test_buildcache_list_allarch\", \"lib/spack/spack/test/cmd/buildcache.py::test_buildcache_create_fails_on_noargs\", \"lib/spack/spack/test/cmd/buildcache.py::test_buildcache_list_duplicates\", \"lib/spack/spack/test/cmd/buildcache.py::test_skip_no_redistribute\", \"lib/spack/spack/test/cmd/buildcache.py::test_correct_specs_are_pushed[-expected0]\"]"},"FAIL_TO_FAIL":{"kind":"string","value":"[\"lib/spack/spack/test/oci/integration_test.py::test_buildcache_push_with_base_image_command\", \"lib/spack/spack/test/cmd/buildcache.py::test_update_key_index[mock_archive0]\", \"lib/spack/spack/test/oci/integration_test.py::test_best_effort_upload\", \"lib/spack/spack/test/cmd/buildcache.py::test_push_and_install_with_mirror_marked_unsigned_does_not_require_extra_flags[True]\", \"lib/spack/spack/test/cmd/buildcache.py::test_buildcache_sync[mock_archive0]\", \"lib/spack/spack/test/oci/integration_test.py::test_buildcache_tag[mock_archive0]\", \"lib/spack/spack/test/cmd/buildcache.py::test_buildcache_autopush[mock_archive0]\", \"lib/spack/spack/test/cmd/buildcache.py::tests_buildcache_create_env[mock_archive0]\", \"lib/spack/spack/test/cmd/buildcache.py::test_buildcache_create_install[mock_archive0]\", \"lib/spack/spack/test/cmd/buildcache.py::test_push_and_install_with_mirror_marked_unsigned_does_not_require_extra_flags[False]\", \"lib/spack/spack/test/cmd/buildcache.py::test_push_without_build_deps\", \"lib/spack/spack/test/cmd/buildcache.py::test_best_effort_vs_fail_fast_when_dep_not_installed\", \"lib/spack/spack/test/oci/integration_test.py::test_uploading_with_base_image_in_docker_image_manifest_v2_format\", \"lib/spack/spack/test/cmd/buildcache.py::tests_buildcache_create[mock_archive0]\", \"lib/spack/spack/test/cmd/buildcache.py::test_buildcache_create_fail_on_perm_denied[mock_archive0]\", \"lib/spack/spack/test/oci/integration_test.py::test_buildcache_push_command\"]"},"install":{"kind":"string","value":"{\"install\": [\"uv pip install -e .\", \"spack -d bootstrap now --dev\"], \"pre_install\": [\"tee pytest.ini <:externals. This means:\n+ #\n+ # packages::externals[local_idx].spec == spec\n+ external_versions = []\n+ for local_idx, spec in enumerate(candidate_specs):\n+ msg = f\"{spec.name} available as external when satisfying {spec}\"\n+\n+ if spec_filters and spec not in selected_externals:\n+ continue\n+\n+ if not spec.versions.concrete:\n+ warnings.warn(f\"cannot use the external spec {spec}: needs a concrete version\")\n+ continue\n+\n+ def external_imposition(input_spec, requirements):\n+ return requirements + [\n+ fn.attr(\"external_conditions_hold\", input_spec.name, local_idx)\n+ ]\n+\n+ try:\n+ self.condition(spec, spec, msg=msg, transform_imposed=external_imposition)\n+ except (spack.error.SpecError, RuntimeError) as e:\n+ warnings.warn(f\"while setting up external spec {spec}: {e}\")\n+ continue\n+ external_versions.append((spec.version, local_idx))\n+ self.possible_versions[spec.name].add(spec.version)\n+ self.gen.newline()\n \n # Order the external versions to prefer more recent versions\n # even if specs in packages.yaml are not ordered that way\n- external_versions = [\n- (x.version, external_id) for external_id, x in enumerate(external_specs)\n- ]\n external_versions = [\n (v, idx, external_id)\n for idx, (v, external_id) in enumerate(sorted(external_versions, reverse=True))\n@@ -1718,19 +1740,6 @@ def external_packages(self):\n DeclaredVersion(version=version, idx=idx, origin=Provenance.EXTERNAL)\n )\n \n- # Declare external conditions with a local index into packages.yaml\n- for local_idx, spec in enumerate(external_specs):\n- msg = \"%s available as external when satisfying %s\" % (spec.name, spec)\n-\n- def external_imposition(input_spec, requirements):\n- return requirements + [\n- fn.attr(\"external_conditions_hold\", input_spec.name, local_idx)\n- ]\n-\n- self.condition(spec, spec, msg=msg, transform_imposed=external_imposition)\n- self.possible_versions[spec.name].add(spec.version)\n- self.gen.newline()\n-\n self.trigger_rules()\n self.effect_rules()\n \n"},"test_patch":{"kind":"string","value":"diff --git a/lib/spack/spack/test/concretize.py b/lib/spack/spack/test/concretize.py\nindex e1076abd103abc..f18e1f6854ee27 100644\n--- a/lib/spack/spack/test/concretize.py\n+++ b/lib/spack/spack/test/concretize.py\n@@ -2609,6 +2609,55 @@ def test_cannot_reuse_host_incompatible_libc(self):\n assert len(result.specs) == 1\n assert result.specs[0] == snd\n \n+ @pytest.mark.regression(\"45321\")\n+ @pytest.mark.parametrize(\n+ \"corrupted_str\",\n+ [\n+ \"cmake@3.4.3 foo=bar\", # cmake has no variant \"foo\"\n+ \"mvdefaults@1.0 foo=a,d\", # variant \"foo\" has no value \"d\"\n+ \"cmake %gcc\", # spec has no version\n+ ],\n+ )\n+ def test_corrupted_external_does_not_halt_concretization(self, corrupted_str, mutable_config):\n+ \"\"\"Tests that having a wrong variant in an external spec doesn't stop concretization\"\"\"\n+ corrupted_spec = Spec(corrupted_str)\n+ packages_yaml = {\n+ f\"{corrupted_spec.name}\": {\n+ \"externals\": [{\"spec\": corrupted_str, \"prefix\": \"/dev/null\"}]\n+ }\n+ }\n+ mutable_config.set(\"packages\", packages_yaml)\n+ # Assert we don't raise due to the corrupted external entry above\n+ s = Spec(\"pkg-a\").concretized()\n+ assert s.concrete\n+\n+ @pytest.mark.regression(\"44828\")\n+ @pytest.mark.not_on_windows(\"Tests use linux paths\")\n+ def test_correct_external_is_selected_from_packages_yaml(self, mutable_config):\n+ \"\"\"Tests that when filtering external specs, the correct external is selected to\n+ reconstruct the prefix, and other external attributes.\n+ \"\"\"\n+ packages_yaml = {\n+ \"cmake\": {\n+ \"externals\": [\n+ {\"spec\": \"cmake@3.23.1 %gcc\", \"prefix\": \"/tmp/prefix1\"},\n+ {\"spec\": \"cmake@3.23.1 %clang\", \"prefix\": \"/tmp/prefix2\"},\n+ ]\n+ }\n+ }\n+ concretizer_yaml = {\n+ \"reuse\": {\"roots\": True, \"from\": [{\"type\": \"external\", \"exclude\": [\"%gcc\"]}]}\n+ }\n+ mutable_config.set(\"packages\", packages_yaml)\n+ mutable_config.set(\"concretizer\", concretizer_yaml)\n+\n+ s = Spec(\"cmake\").concretized()\n+\n+ # Check that we got the properties from the right external\n+ assert s.external\n+ assert s.satisfies(\"%clang\")\n+ assert s.prefix == \"/tmp/prefix2\"\n+\n \n @pytest.fixture()\n def duplicates_test_repository():\n"},"problem_statement":{"kind":"string","value":"Cannot concretize if an external entry is corrupted\n### Steps to reproduce\n\nAdd this entry to `packages.yaml`:\r\n```yaml\r\npackages:\r\n gcc:\r\n externals:\r\n - spec: gcc@9.4.0 languages='c,c++,fortran,z'\r\n prefix: /usr\r\n extra_attributes:\r\n compilers:\r\n c: /usr/bin/gcc\r\n cxx: /usr/bin/g++\r\n fortran: /usr/bin/gfortran\r\n```\r\nthen try to concretize any spec:\r\n```console\r\n$ spack spec zlib\r\n==> Error: invalid values for variant \"languages\" in package \"gcc\": ['z']\r\n```\n\n### Error message\n\nThis is the error message:\r\n```console\r\n$ spack spec zlib-ng\r\n==> [2024-07-19-15:44:05.024536] Error: invalid values for variant \"languages\" in package \"gcc\": ['z']\r\n\r\nTraceback (most recent call last):\r\n File \"/home/culpo/PycharmProjects/spack/lib/spack/spack/main.py\", line 1070, in main\r\n return _main(argv)\r\n ^^^^^^^^^^^\r\n File \"/home/culpo/PycharmProjects/spack/lib/spack/spack/main.py\", line 1023, in _main\r\n return finish_parse_and_run(parser, cmd_name, args, env_format_error)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/home/culpo/PycharmProjects/spack/lib/spack/spack/main.py\", line 1053, in finish_parse_and_run\r\n return _invoke_command(command, parser, args, unknown)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/home/culpo/PycharmProjects/spack/lib/spack/spack/main.py\", line 650, in _invoke_command\r\n return_val = command(parser, args)\r\n ^^^^^^^^^^^^^^^^^^^^^\r\n File \"/home/culpo/PycharmProjects/spack/lib/spack/spack/cmd/spec.py\", line 101, in spec\r\n concretized_specs = spack.cmd.parse_specs(args.specs, concretize=True)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/home/culpo/PycharmProjects/spack/lib/spack/spack/cmd/__init__.py\", line 177, in parse_specs\r\n spec.concretize(tests=tests)\r\n File \"/home/culpo/PycharmProjects/spack/lib/spack/spack/spec.py\", line 3091, in concretize\r\n self._new_concretize(tests)\r\n File \"/home/culpo/PycharmProjects/spack/lib/spack/spack/spec.py\", line 3064, in _new_concretize\r\n result = solver.solve([self], tests=tests, allow_deprecated=allow_deprecated)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/home/culpo/PycharmProjects/spack/lib/spack/spack/solver/asp.py\", line 3880, in solve\r\n result, _, _ = self.driver.solve(\r\n ^^^^^^^^^^^^^^^^^^\r\n File \"/home/culpo/PycharmProjects/spack/lib/spack/spack/solver/asp.py\", line 838, in solve\r\n asp_problem = setup.setup(specs, reuse=reuse, allow_deprecated=allow_deprecated)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/home/culpo/PycharmProjects/spack/lib/spack/spack/solver/asp.py\", line 2504, in setup\r\n self.external_packages()\r\n File \"/home/culpo/PycharmProjects/spack/lib/spack/spack/solver/asp.py\", line 1730, in external_packages\r\n self.condition(spec, spec, msg=msg, transform_imposed=external_imposition)\r\n File \"/home/culpo/PycharmProjects/spack/lib/spack/spack/solver/asp.py\", line 1444, in condition\r\n trigger_id = self._get_condition_id(\r\n ^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/home/culpo/PycharmProjects/spack/lib/spack/spack/solver/asp.py\", line 1401, in _get_condition_id\r\n requirements = self.spec_clauses(named_cond, body=body)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/home/culpo/PycharmProjects/spack/lib/spack/spack/solver/asp.py\", line 1799, in spec_clauses\r\n clauses = self._spec_clauses(\r\n ^^^^^^^^^^^^^^^^^^^\r\n File \"/home/culpo/PycharmProjects/spack/lib/spack/spack/solver/asp.py\", line 1881, in _spec_clauses\r\n variant_def.validate_or_raise(\r\n File \"/home/culpo/PycharmProjects/spack/lib/spack/spack/variant.py\", line 127, in validate_or_raise\r\n raise InvalidVariantValueError(self, not_allowed_values, pkg_cls)\r\nspack.variant.InvalidVariantValueError: invalid values for variant \"languages\" in package \"gcc\": ['z']\r\n```\r\nI would expect a warning or debug message, over a corrupted external entry.\n\n### Information on your system\n\nNot relevant\n\n### General information\n\n- [X] I have run `spack debug report` and reported the version of Spack/Python/Platform\n- [X] I have searched the issues of this repo and believe this is not a duplicate\n- [X] I have run the failing commands in debug mode and reported the output\n"},"hints_text":{"kind":"string","value":""},"created_at":{"kind":"string","value":"2024-07-19T14:51:34Z"},"merged_at":{"kind":"string","value":"2024-08-05T16:24:57Z"},"PASS_TO_PASS":{"kind":"string","value":"[\"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@:1]\", \"lib/spack/spack/test/concretize.py::TestConcretizeEdges::test_virtuals_provided_together_but_only_one_required_in_dag\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_custom_compiler_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_is_equivalent_to_specified_version[0.2.15]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3@1.0 ^python@3.5.1-expected4-unexpected4]\", \"lib/spack/spack/test/concretize.py::test_reuse_prefers_standard_over_git_versions[2.1.6]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants[conditional-variant-pkg@1.0-expected0-unexpected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_config[python@configured]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[0000000000000000000000000000000000000001=1.2.3-v_opts10-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_provider_must_meet_requirements\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_and_compiler_preferences[cmake %clang-expected2]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_match\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts0-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_select_lower_priority_package_from_repository_stack[builtin.mock.gmake-expected_namespaces0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[external-buildable-with-variant@0.9 +baz-True-@0.9]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inheritance[gcc]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretization_of_test_dependencies\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_with_restricted_virtual\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_flag_propagation[hypre cflags='-g' ^openblas-expected1-not_expected1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3@1.1 ^python@2.7.11-expected3-unexpected3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[quantum-espresso~veritas-expected4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_parents\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[externaltool@0.9-True-@0.9]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs0-1-1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize_preferences[specs2-libelf@0.8.13-3]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts14-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_regression_issue_7941\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagated_variant_is_not_passed_to_dependent\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_installed_packages_when_package_def_changes[context2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_specified_variant\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concrete_specs_are_not_modified_on_reuse[mpich-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[cannonlake-preference-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[develop-v_opts1-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_installed_version_is_selected_only_for_reuse\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[pkg-a foobar=bar-tests_arg3-with_dep3-without_dep3]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts11-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@:1.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[fftw ^mpich-expected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_hash_assigned_version_is_preferred\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3 ^python@2.7.11-expected1-unexpected1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_is_equivalent_to_specified_version[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts3-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_succeeds_with_unknown_version[fbranch]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_with_unknown_namespace_dont_raise\", \"lib/spack/spack/test/concretize.py::test_reuse_prefers_standard_over_git_versions[2.1.5]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_delete_version_and_reuse\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_newer_dependency_adds_a_transitive_virtual\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts7-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[external-buildable-with-variant@1.0: ~baz-False-@1.0 ~baz]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_user_can_select_externals_with_require\", \"lib/spack/spack/test/concretize.py::TestConcretizeEdges::test_condition_triggered_by_edge_property[conditional-edge+foo-expected_satisfies2-expected_not_satisfies2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mv_variants_disjoint_sets_from_packages_yaml\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[pkg-a foobar=bar-tests_arg2-with_dep2-without_dep2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[externaltool@0_8-True-@0_8]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mv_variants_disjoint_sets_from_spec[mvapich2 file_systems=lustre,gpfs-file_systems-expected_values2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[skylake-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_detection\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_conflicts_in_package_py[bowtie@1.4.0-%gcc@10.2.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[True-dev-build-test-install-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[conflict-parent%gcc]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mv_variants_disjoint_sets_from_spec[mvapich2-file_systems-expected_values0]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_match_virtual\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant foo=foo-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[cannonlake-preference-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[True-dev-build-test-dependent ^dev-build-test-install-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[haswell-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_package_with_constraint_not_met_by_external\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3 ^python@2.7.11-expected1-unexpected1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_misleading_error_message_on_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflicts_show_cores[conflict-parent@0.9^conflict~foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_with_flags\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich debug=True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[cannonlake-preference-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-preference-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_select_lower_priority_package_from_repository_stack[hdf5 ^gmake-expected_namespaces2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_nobuild_package\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtual_is_fully_expanded_for_callpath\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[ascent~~shared +adios2 ^adios2+shared-expected_propagation3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[False-dev-build-test-install-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[libelf0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize_preferences[specs0-libelf@0.8.12-1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_conflicts_in_package_py[bowtie@1.2.2 os=redhat6-%gcc@11.1.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_noversion_pkg[noversion]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[False-dev-build-test-install-True]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_two_gmake[minimal]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich cppflags=\\\"-O3\\\"]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts13-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_conflicts_in_package_py[bowtie@1.3.0-%clang@15.0.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_flag_propagation[hypre cflags=='-g' ^openblas cflags='-O3'-expected2-not_expected2]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_different_spec\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[quantum-espresso-expected1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs6-4-1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_flag_propagation[cmake-client cflags=='-O2 -g'-expected3-not_expected3]\", \"lib/spack/spack/test/concretize.py::TestConcreteSpecsByHash::test_adding_specs[input_specs0]\", \"lib/spack/spack/test/concretize.py::TestConcretizeEdges::test_condition_triggered_by_edge_property[conditional-edge-expected_satisfies0-expected_not_satisfies0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_no_matching_compiler_specs\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_coconcretize_reuse_and_virtuals\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[ascent++shared +adios2 ^adios2~shared-expected_propagation4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_sticky_variant_in_external[sticky-variant@1.0-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_versions_in_virtual_dependencies\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[ascent~~shared +adios2-expected_propagation2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_target_granularity\", \"lib/spack/spack/test/concretize.py::test_spec_filters[specs0-include0-exclude0-expected0]\", \"lib/spack/spack/test/concretize.py::test_concretization_version_order\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_dependent_with_singlevalued_variant_type\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich~debug]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3@1.0 ^python@3.5.1-expected4-unexpected4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_different_compilers_get_different_flags\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_specs_from_non_available_compilers\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concrete_specs_are_not_modified_on_reuse[mpich~debug-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_version_weight_and_provenance\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[external-buildable-with-variant ~baz-False-@1.0 ~baz]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_python_from_cli_and_extension_from_db\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[skylake-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_spec_with_build_dep_from_json\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_externals_with_platform_explicitly_set\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_no_multiple_solutions_with_different_edges_same_nodes\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concrete_specs_are_not_modified_on_reuse[mpich+debug-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[haswell-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant foo=bar-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs3-4-1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[True-dev-build-test-dependent ^dev-build-test-install-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mv_variants_disjoint_sets_from_spec[mvapich2 file_systems=lustre-file_systems-expected_values1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_version_badness_more_important_than_default_mv_variants\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_is_equivalent_to_specified_version[main]\", \"lib/spack/spack/test/concretize.py::test_git_ref_version_can_be_reused\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_match_constraints_when_selected\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_non_default_provider_of_multiple_virtuals\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant@1.62.0 cxxstd=17-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_succeeds_with_unknown_version[0.2.15]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants[conditional-variant-pkg@2.0~version_based-expected2-unexpected2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inheritance[gcc@10.2.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_sticky_variant_in_package\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3 ^python@3.5.1-expected0-unexpected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_conditional_variant\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_os_selection_when_multiple_choices_are_possible[mpileaks-os=debian6]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3@1.1 ^python@2.7.11-expected3-unexpected3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtual_is_fully_expanded_for_mpileaks\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_require_targets_are_allowed\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_two_setuptools[minimal]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[0000001=1.2.3-v_opts12-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[broadwell-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants[conditional-variant-pkg@2.0+version_based+variant_based-expected3-unexpected3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[libelf@0.8.13]\", \"lib/spack/spack/test/concretize.py::test_reuse_prefers_standard_over_git_versions[2.0.0]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts2-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_target_ranges_in_conflicts\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_dependency_conditional_on_another_dependency_state\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs4-3-1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[external-buildable-with-variant +baz-True-@1.1.special +baz]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_result_specs_is_not_empty[specs2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant@1.72.0 staging=flexpath-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_packages_have_consistent_hash\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_that_would_require_a_virtual_dependency\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies ^libelf@0.8.10-patched_deps3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_constraint_with_external_package[cmake %clang-%clang]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich+debug]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_annotated_on_edges[mpileaks]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_sibling\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_sticky_variant_in_external[sticky-variant@1.0+allow-gcc-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_regression_issue_7239\", \"lib/spack/spack/test/concretize.py::test_selecting_reused_sources[reuse_yaml1-0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[False-dev-build-test-dependent ^dev-build-test-install-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[quantum-espresso-expected3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_none\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3@1.0 ^python@2.7.11-expected2-unexpected2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants_fail[@1.0+version_based]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_installed_specs_disregard_conflicts\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_child\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals_with_one_bound\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_my_dep_depends_on_provider_of_my_virtual_dep\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[libelf1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_anonymous\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_cumulative_version_ranges_with_different_length\", \"lib/spack/spack/test/concretize.py::test_selecting_reused_sources[reuse_yaml0-17]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_enable_disable_compiler_existence_check\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts4-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_multivalue_variant\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[callpath]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_different_modules[None]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant@1.72.0 cxxstd=2a-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals_with_dual_provider\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies +foo-patched_deps4]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_different_prefix\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_installed\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_and_compiler_preferences[cmake-expected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_with_unknown_package_dont_raise\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_flag_propagation[hypre cflags=='-g' ^openblas-expected0-not_expected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_cannot_reuse_host_incompatible_libc\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs5-2-1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_succeeds_with_config_compatible_os\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_installed_externals_are_reused\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@2:]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize_preferences[specs3-mpich-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_solve_in_rounds_all_unsolved\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mixing_compilers_only_affects_subdag\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts15-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_all_patches_applied\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_specifying_different_versions_build_deps\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_version_matches_any_entry_in_compilers_yaml\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_deprecated_versions_not_selected[deprecated-versions-deprecated-versions@1.0.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_multivalued_variants_from_cli[multivalue-variant-expected_dict0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_dont_select_version_that_brings_more_variants_in\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_include_specs_from_externals_and_libcs[included_externals0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_unified_python\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_reconstructed_on_reuse[mpileaks ^zmpi-zmpi]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_target_compatibility\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@2.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@2.2_1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_multivalued_variants_from_cli[multivalue-variant libs=static-expected_dict1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_clear_error_when_unknown_compiler_requested\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies@1.0 ^libdwarf@20111030-patched_deps2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_provides_handles_multiple_providers_of_same_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflicts_in_spec[conflict-parent@0.9^conflict~foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[broadwell-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_error_message_for_inconsistent_variants[wrong-variant-in-conflicts]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-preference-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[pkg-a foobar=bar-True-with_dep1-without_dep1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals_with_two_bound\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants_fail[@2.0+version_based~variant_based+two_whens]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_and_virtual\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[broadwell-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_deprecated_versions_not_selected[deprecated-versions@=1.1.0-deprecated-versions@1.1.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[hypre~~shared ^openblas-expected_propagation1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_simultaneous_concretization_of_specs[abstract_specs1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_regression_issue_7705\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_simultaneous_concretization_of_specs[abstract_specs2]\", \"lib/spack/spack/test/concretize.py::test_spec_filters[specs1-include1-exclude1-expected1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_match_is_preferred_to_newer_version\", \"lib/spack/spack/test/concretize.py::test_filtering_reused_specs[roots0-reuse_yaml0-expected0-not_expected0-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflicts_show_cores[conflict%clang+foo]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[git.branch=1.2.3-v_opts16-False]\", \"lib/spack/spack/test/concretize.py::TestConcreteSpecsByHash::test_adding_specs[input_specs1]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_pure_build_virtual_dependency[full]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_children\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[pkg-a-True-with_dep0-without_dep0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_exclude_specs_from_reuse\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[False-dev-build-test-dependent ^dev-build-test-install-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies@1.0-patched_deps1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[haswell-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[conflict%clang~foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[externaltool@1.0-True-@1.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_spec_flags_maintain_order\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_add_microarchitectures_on_explicit_request\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_unsolved_specs_raises_error\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_constraint_with_external_package[cmake %gcc-%gcc]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_simultaneous_concretization_of_specs[abstract_specs3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_flags_from_user_are_grouped\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_dont_define_new_version_from_input_if_checksum_required\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[cannonlake-preference-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_include_specs_from_externals_and_libcs[included_externals1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_os_selection_when_multiple_choices_are_possible[mpileaks%gcc@10.2.1 platform=test os=debian6-os=debian6]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[quantum-espresso-expected2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_result_specs_is_not_empty[specs0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[skylake-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_config[python@configured target=core2]\", \"lib/spack/spack/test/concretize.py::test_filtering_reused_specs[roots1-reuse_yaml1-expected1-not_expected1-1]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_two_gmake[full]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_is_unique[mpileaks ^mpich%clang@15.0.0-%clang@15.0.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs7-2-1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_config[python@configured os=debian]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[pkg-a foobar=bar-False-with_dep4-without_dep4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs8-1-1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@1.2:2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3 ^python@3.5.1-expected0-unexpected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich cppflags==\\\"-O3\\\"]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs1-2-1]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_different_modules[modules1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_module\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_noversion_pkg[noversion-bundle]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals_with_dual_provider_and_a_conflict\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[conflict]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[old-external-True-@1.0.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_preferred_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_provides_or_depends_on\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretization_with_compilers_supporting_target_any\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_variant_not_default\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_architecture_deep_inheritance\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-preference-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_anonymous_dep[mpileaks ^cflags=-g]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[skylake-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_reconstructed_on_reuse[mpileaks ^mpich2-mpich2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inheritance[clang@:15.0.0]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts9-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant@1.62.0 cxxstd=2a-False]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_solution_without_cycles\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_installed_packages_when_package_def_changes[context0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_regression_issue_4492\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inherited_upwards\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-preference-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[hypre~~shared ^openblas+shared-expected_propagation0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_succeeds_with_unknown_version[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@2.2_0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_do_not_invent_new_concrete_versions_unless_necessary\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_no_conflict_in_external_specs[conflict@10.0%clang+foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_select_lower_priority_package_from_repository_stack[hdf5 ^builtin.mock.gmake-expected_namespaces1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_no_compilers_for_arch\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflicts_in_spec[conflict%clang+foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_config[python@configured platform=test]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts5-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_mention_build_dep\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[True-dev-build-test-install-True]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_pure_build_virtual_dependency[minimal]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_with_custom_non_numeric_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inheritance[clang]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_result_specs_is_not_empty[specs1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_os_selection_when_multiple_choices_are_possible[mpileaks%gcc@10.2.1 platform=test os=redhat6-os=redhat6]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_is_unique[mpileaks-%gcc@10.2.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_can_reuse_concrete_externals_for_dependents\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[haswell-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_and_compiler_preferences[cmake %gcc-expected1]\", \"lib/spack/spack/test/concretize.py::TestConcretizeEdges::test_condition_triggered_by_edge_property[conditional-edge~foo-expected_satisfies1-expected_not_satisfies1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_reconstructed_on_reuse[mpileaks-mpich]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_anonymous_dep[mpileaks ^%gcc]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extensions_have_dependency\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_self\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_host_compatible_concretization\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_in_nonbuildable_external_package[gcc-external-common-python %clang-%clang ^external-common-openssl%gcc ^external-common-gdbm%clang-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants[conditional-variant-pkg@2.0-expected1-unexpected1]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts8-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants_fail[@2.0~version_based+variant_based]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[broadwell-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_installed_packages_when_package_def_changes[context1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_transitive_conditional_virtual_dependency\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_in_nonbuildable_external_package[clang-external-common-python-%clang ^external-common-openssl%clang ^external-common-gdbm%clang-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_no_reuse_when_variant_condition_does_not_hold\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_annotated_on_edges[mpileaks ^mpich]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies-patched_deps0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize_preferences[specs1-libelf@0.8.12-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_with_provides_when\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_with_non_default_variant_as_dependency\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_simultaneous_concretization_of_specs[abstract_specs0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_flags_differ_identical_compilers\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflict_in_all_directives_true\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_sticky_variant_in_external[sticky-variant@1.0~allow-gcc-False]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_two_setuptools[full]\", \"lib/spack/spack/test/concretize.py::TestConcreteSpecsByHash::test_adding_specs[input_specs2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3@1.0 ^python@2.7.11-expected2-unexpected2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts6-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants_fail[@1.0~version_based]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs2-3-1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_missing_compiler\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_error_message_for_inconsistent_variants[wrong-variant-in-depends-on]\"]"},"PASS_TO_FAIL":{"kind":"string","value":"[]"},"FAIL_TO_PASS":{"kind":"string","value":"[\"lib/spack/spack/test/concretize.py::TestConcretize::test_corrupted_external_does_not_halt_concretization[mvdefaults@1.0 foo=a,d]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_correct_external_is_selected_from_packages_yaml\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_corrupted_external_does_not_halt_concretization[cmake %gcc]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_corrupted_external_does_not_halt_concretization[cmake@3.4.3 foo=bar]\"]"},"FAIL_TO_FAIL":{"kind":"string","value":"[]"},"install":{"kind":"string","value":"{\"install\": [\"uv pip install -e .\", \"spack -d bootstrap now --dev\"], \"pre_install\": [\"tee pytest.ini < Error: [Errno 13] Permission denied: '/path/to/extracted/tarball/of/spack/release/opt'\r\n```\r\n\r\nFull debug output:\r\n\r\n[spec-debug.txt](https://github.com/user-attachments/files/16249293/spec-debug.txt)\r\n\r\n`spack.yaml` file:\r\n\r\n[spack-yaml.txt](https://github.com/user-attachments/files/16249330/spack-yaml.txt)\r\n\r\n### Information on your system\r\n\r\n```\r\n* **Spack:** 0.22.0\r\n* **Python:** 3.9.18\r\n* **Platform:** linux-rocky9-cascadelake\r\n* **Concretizer:** clingo\r\n```\r\n\r\nWe are refactoring our cluster around Spack and aim to offer Spack itself via an environment module. We download and extract a tarball release to a shared location, then set the permissions to read-only for all users. The module then sources `setup-env.sh` when you load it. This works well in normal `spack` usage when you pass `-C /path/to/personal/configs` to any command.\r\n\r\nThe `spack.yaml` file for the environment above contains all relevant sections of a personal config scope, particularly both a defined `config` `install_tree` `root` in a personal location writable to the user and an `upstream` section, but it still seems to want to see if it can write to `$spack/opt`. I would have thought that the `config` `install_tree` `root` section of `spack.yaml` would override this.\r\n\r\nI spoke to @alalazo on Slack and was advised to raise this issue. It was suggested I include this:\r\n\r\n```\r\n$ spack bootstrap root\r\n/homedir/.spack/bootstrap\r\n```\r\n\r\nSo, a writable path in my own home directory. I can get the `spec` command to run if I give it a personal config scope:\r\n\r\n```\r\n$ spack -d -C /path/to/personal/configs spec\r\n```\r\n\r\nBut I was hoping to not need to do this as all those files (`config.yaml` etc.) are already integrated into each relevant section (`config` etc.) in `spack.yaml` for the environment. \r\n\r\n### General information\r\n\r\n- [X] I have run `spack debug report` and reported the version of Spack/Python/Platform\r\n- [X] I have searched the issues of this repo and believe this is not a duplicate\r\n- [X] I have run the failing commands in debug mode and reported the output\n"},"hints_text":{"kind":"string","value":"OK, an update.\r\n\r\nI decided to try this again with a local clone of Spack from GitHub to a location that is r/w for me. When I activate the Spack env from the same YAML, then run `spack spec` without a config scope, it works, and I noticed it creates the following directory inside the cloned version of Spack:\r\n\r\n```\r\nopt/spack/.spack-db/failures\r\n```\r\n\r\nThe `failures` directory is empty. So, with a bit of lateral thinking I created the same directory in the read-only version of Spack we have for the environment module version, i.e.:\r\n\r\n```\r\n/path/to/extracted/tarball/of/spack/release/opt/spack/.spack-db/failures\r\n```\r\n\r\nWith that directory present (even if empty and read-only), all Spack commands in the activated env like `spack spec` and `spack install` work without issue.\r\n\r\nI couldn't see anything in the docs about defining a `failures` directory in any of the config YAML files/environment stanzas. So is there something in the bootstrap Python that always needs to check for `opt/spack/.spack-db/failures` in the default path and creates it if missing?\nThanks for the additional info. Very helpful. I confirm that using this simple environment:\r\n```yaml\r\nspack:\r\n specs: []\r\n view: true\r\n concretizer:\r\n unify: true\r\n config:\r\n install_tree:\r\n root: ./store\r\n```\r\nwe indeed create:\r\n```console\r\n$ tree -a opt\r\nopt\r\n└── spack\r\n └── .spack-db\r\n └── failures\r\n\r\n3 directories, 0 files\r\n```\r\nin the _default_ store location too.\n> So is there something in the bootstrap Python that always needs to check for opt/spack/.spack-db/failures in the default path and creates it if missing?\r\n\r\nNo, it's definitely a bug on our side when using a custom install tree root. Checking that right now."},"created_at":{"kind":"string","value":"2024-07-17T09:53:59Z"},"merged_at":{"kind":"string","value":"2024-07-18T05:18:15Z"},"PASS_TO_PASS":{"kind":"string","value":"[\"lib/spack/spack/test/bootstrap.py::test_nested_use_of_context_manager\", \"lib/spack/spack/test/bootstrap.py::test_raising_exception_executables_in_path\", \"lib/spack/spack/test/bootstrap.py::test_store_is_restored_correctly_after_bootstrap\", \"lib/spack/spack/test/bootstrap.py::test_store_path_customization[/opt/spack/bootstrap-/opt/spack/bootstrap/store]\", \"lib/spack/spack/test/bootstrap.py::test_bootstrap_search_for_compilers_with_no_environment\", \"lib/spack/spack/test/bootstrap.py::test_bootstrap_search_for_compilers_with_environment_active\", \"lib/spack/spack/test/bootstrap.py::test_raising_exception_module_importable\", \"lib/spack/spack/test/bootstrap.py::test_bootstrap_custom_store_in_environment\", \"lib/spack/spack/test/bootstrap.py::test_raising_exception_if_bootstrap_disabled\", \"lib/spack/spack/test/bootstrap.py::test_bootstrap_deactivates_environments\", \"lib/spack/spack/test/bootstrap.py::test_status_function_find_files[False]\", \"lib/spack/spack/test/bootstrap.py::test_store_padding_length_is_zero_during_bootstrapping\", \"lib/spack/spack/test/bootstrap.py::test_install_tree_customization_is_respected\", \"lib/spack/spack/test/bootstrap.py::test_config_yaml_is_preserved_during_bootstrap\", \"lib/spack/spack/test/bootstrap.py::test_status_function_find_files[True]\", \"lib/spack/spack/test/bootstrap.py::test_store_path_customization[$spack/opt/bootstrap-$spack/opt/bootstrap/store]\", \"lib/spack/spack/test/bootstrap.py::test_bootstrap_disables_modulefile_generation\"]"},"PASS_TO_FAIL":{"kind":"string","value":"[]"},"FAIL_TO_PASS":{"kind":"string","value":"[\"lib/spack/spack/test/bootstrap.py::test_use_store_does_not_try_writing_outside_root\", \"lib/spack/spack/test/bootstrap.py::test_source_is_disabled\"]"},"FAIL_TO_FAIL":{"kind":"string","value":"[]"},"install":{"kind":"string","value":"{\"install\": [\"uv pip install -e .\", \"spack -d bootstrap now --dev\"], \"pre_install\": [\"tee pytest.ini < None:\n root_dirname = os.path.dirname(self.root)\n tmp_symlink_name = os.path.join(root_dirname, \"._view_link\")\n \n+ # Remove self.root if is it an empty dir, since we need a symlink there. Note that rmdir\n+ # fails if self.root is a symlink.\n+ try:\n+ os.rmdir(self.root)\n+ except (FileNotFoundError, NotADirectoryError):\n+ pass\n+ except OSError as e:\n+ if e.errno == errno.ENOTEMPTY:\n+ msg = \"it is a non-empty directory\"\n+ elif e.errno == errno.EACCES:\n+ msg = \"of insufficient permissions\"\n+ else:\n+ raise\n+ raise SpackEnvironmentViewError(\n+ f\"The environment view in {self.root} cannot not be created because {msg}.\"\n+ ) from e\n+\n # Create a new view\n try:\n fs.mkdirp(new_root)\n"},"test_patch":{"kind":"string","value":"diff --git a/lib/spack/spack/test/env.py b/lib/spack/spack/test/env.py\nindex c09393376a175..46be9ca66c864 100644\n--- a/lib/spack/spack/test/env.py\n+++ b/lib/spack/spack/test/env.py\n@@ -841,3 +841,28 @@ def test_root_version_weights_for_old_versions(mutable_mock_env_path, mock_packa\n \n assert bowtie.satisfies(\"@=1.3.0\")\n assert gcc.satisfies(\"@=1.0\")\n+\n+\n+def test_env_view_on_empty_dir_is_fine(tmp_path, config, mock_packages, temporary_store):\n+ \"\"\"Tests that creating a view pointing to an empty dir is not an error.\"\"\"\n+ view_dir = tmp_path / \"view\"\n+ view_dir.mkdir()\n+ env = ev.create_in_dir(tmp_path, with_view=\"view\")\n+ env.add(\"mpileaks\")\n+ env.concretize()\n+ env.install_all(fake=True)\n+ env.regenerate_views()\n+ assert view_dir.is_symlink()\n+\n+\n+def test_env_view_on_non_empty_dir_errors(tmp_path, config, mock_packages, temporary_store):\n+ \"\"\"Tests that creating a view pointing to a non-empty dir errors.\"\"\"\n+ view_dir = tmp_path / \"view\"\n+ view_dir.mkdir()\n+ (view_dir / \"file\").write_text(\"\")\n+ env = ev.create_in_dir(tmp_path, with_view=\"view\")\n+ env.add(\"mpileaks\")\n+ env.concretize()\n+ env.install_all(fake=True)\n+ with pytest.raises(ev.SpackEnvironmentError, match=\"because it is a non-empty dir\"):\n+ env.regenerate_views()\n"},"problem_statement":{"kind":"string","value":"Symlinking environment view to /usr/local seems broken\n### Steps to reproduce\n\nBuild this Dockerfile:\r\n\r\n```Dockerfile\r\nFROM ubuntu:latest AS dev\r\nUSER root\r\n\r\nENV DEBIAN_FRONTEND=noninteractive \\\r\n LANGUAGE=en_US.UTF-8 \\\r\n LANG=en_US.UTF-8 \\\r\n LC_ALL=en_US.UTF-8\r\n\r\nWORKDIR /root\r\n\r\n# Install Spack dependencies\r\nRUN apt-get -yqq update \\\r\n && apt-get -yqq upgrade \\\r\n && apt-get -yqq install --no-install-recommends \\\r\n build-essential \\\r\n ca-certificates \\\r\n curl \\\r\n file \\\r\n g++ \\\r\n gcc \\\r\n gfortran \\\r\n git \\\r\n gnupg2 \\\r\n iproute2 \\\r\n libssl-dev \\\r\n locales \\\r\n make \\\r\n openssl \\\r\n python3 \\\r\n python3-pip \\\r\n python3-setuptools \\\r\n unzip \\\r\n && locale-gen en_US.UTF-8\r\n\r\n# Install Spack\r\nRUN git clone \\\r\n -c feature.manyFiles=true \\\r\n --branch releases/v0.18 --single-branch \\\r\n https://github.com/spack/spack.git \\\r\n /opt/spack\r\nENV PATH=\"/opt/spack/bin:$PATH\"\r\n\r\n# Configure Spack\r\nRUN spack external find\r\n\r\n# Install environment\r\nCOPY spack.yaml /opt/spack-env/spack.yaml\r\nRUN spack -e /opt/spack-env concretize\r\n```\r\n\r\nThis is `spack.yaml`:\r\n\r\n```yaml\r\n\r\nspack:\r\n specs:\r\n - zlib\r\n concretizer:\r\n unify: True\r\n config:\r\n install_tree: /opt/software\r\n view: /usr/local\r\n```\n\n### Error message\n\n```\r\n==> Error: [Errno 21] Is a directory: '/usr/._view_link' -> '/usr/local'\r\n```\n\n### Information on your system\n\nSpack v0.18 (See Dockerfile above)\n\n### General information\n\n- [X] I have run `spack debug report` and reported the version of Spack/Python/Platform\n- [X] I have searched the issues of this repo and believe this is not a duplicate\n- [X] I have run the failing commands in debug mode and reported the output\n"},"hints_text":{"kind":"string","value":"This issue appears when (because) /usr/local already exists, is a directory, and isn't empty. In that case, spack won't remove it. Exception [IsADirectoryError](https://docs.python.org/3.10/library/exceptions.html#IsADirectoryError) is raised in https://github.com/spack/spack/blob/7c1a3094536730be698809daf2c3df267dd8a91b/lib/spack/llnl/util/filesystem.py#L226\r\nSee [os.replace](https://docs.python.org/3.10/library/os.html#os.replace) for behavior: \"If dst is a non-empty directory, [OSError](https://docs.python.org/3.10/library/exceptions.html#OSError) will be raised.\"\r\n\r\nThis could be a clearer error message, but `filesystem.py` would not be the place for it. Relevant call stack (as of 7c1a3094536730be698809daf2c3df267dd8a91b):\r\n```\r\n File \"/opt/spack/lib/spack/spack/main.py\", line 648, in _invoke_command\r\n return_val = command(parser, args)\r\n File \"/opt/spack/lib/spack/spack/cmd/concretize.py\", line 47, in concretize\r\n env.write()\r\n File \"/opt/spack/lib/spack/spack/environment/environment.py\", line 2064, in write\r\n self.regenerate_views()\r\n File \"/opt/spack/lib/spack/spack/environment/environment.py\", line 1573, in regenerate_views\r\n view.regenerate(self.concrete_roots())\r\n File \"/opt/spack/lib/spack/spack/environment/environment.py\", line 726, in regenerate\r\n fs.rename(tmp_symlink_name, self.root)\r\n File \"/opt/spack/lib/spack/llnl/path.py\", line 94, in path_filter_caller\r\n return func(*args, **kwargs)\r\n File \"/opt/spack/lib/spack/llnl/util/filesystem.py\", line 226, in rename\r\n os.replace(src, dst)\r\nIsADirectoryError: [Errno 21] Is a directory: '/usr/._view_link' -> '/usr/local'\r\n```\r\n\r\nA suitable place for an error message may be in the except block after https://github.com/spack/spack/blob/7c1a3094536730be698809daf2c3df267dd8a91b/lib/spack/spack/environment/environment.py#L726\r\n\r\nE.g.\r\n```python\r\n if isinstance(e, IsADirectoryError):\r\n raise SpackEnvironmentViewError(\r\n f\"The environment view in {self.root} could not be created, \"\r\n \"because the target directory already exists and is not empty.\"\r\n ) from e\r\n raise\r\n```"},"created_at":{"kind":"string","value":"2024-07-17T00:04:34Z"},"merged_at":{"kind":"string","value":"2024-07-17T21:17:30Z"},"PASS_TO_PASS":{"kind":"string","value":"[\"lib/spack/spack/test/env.py::test_environment_concretizer_scheme_used[False-True]\", \"lib/spack/spack/test/env.py::test_update_default_complex_view[\\\\nspack:\\\\n specs:\\\\n - mpileaks\\\\n view:\\\\n default:\\\\n root: ./view-gcc\\\\n select: ['%gcc']\\\\n link_type: symlink\\\\n-True-expected_view1]\", \"lib/spack/spack/test/env.py::test_activate_should_require_an_env\", \"lib/spack/spack/test/env.py::test_roundtrip_spack_yaml_with_comments[spack:\\\\n specs:\\\\n - matrix:\\\\n # test\\\\n - - a\\\\n concretizer:\\\\n unify: false]\", \"lib/spack/spack/test/env.py::test_environment_config_scheme_used[True]\", \"lib/spack/spack/test/env.py::test_requires_on_virtual_and_potential_providers[mpich-False]\", \"lib/spack/spack/test/env.py::test_env_change_spec_in_matrix_raises_error\", \"lib/spack/spack/test/env.py::test_env_change_spec\", \"lib/spack/spack/test/env.py::test_update_default_view[True-True]\", \"lib/spack/spack/test/env.py::test_deconcretize_then_concretize_does_not_error\", \"lib/spack/spack/test/env.py::test_environment_concretizer_scheme_used[when_possible-True]\", \"lib/spack/spack/test/env.py::test_environment_config_scheme_used[False]\", \"lib/spack/spack/test/env.py::test_update_default_view[True-False]\", \"lib/spack/spack/test/env.py::test_cannot_initialize_in_dir_with_init_file[spack.yaml]\", \"lib/spack/spack/test/env.py::test_initialize_from_lockfile[as9582g54.lock]\", \"lib/spack/spack/test/env.py::test_env_with_include_def_missing\", \"lib/spack/spack/test/env.py::test_error_on_nonempty_view_dir\", \"lib/spack/spack/test/env.py::test_update_default_view[True-./view]\", \"lib/spack/spack/test/env.py::test_initialize_from_random_file_as_manifest[random.yaml]\", \"lib/spack/spack/test/env.py::test_manifest_file_removal_works_if_spec_is_not_normalized[mpileaks ~shared +opt]\", \"lib/spack/spack/test/env.py::test_conflicts_with_packages_that_are_not_dependencies[vendorsb@=1.1-True-None]\", \"lib/spack/spack/test/env.py::test_can_add_specs_to_environment_without_specs_attribute\", \"lib/spack/spack/test/env.py::test_environment_concretizer_scheme_used[False-when_possible]\", \"lib/spack/spack/test/env.py::test_manifest_file_removal_works_if_spec_is_not_normalized[mpileaks +opt]\", \"lib/spack/spack/test/env.py::test_cannot_initialize_from_bad_lockfile\", \"lib/spack/spack/test/env.py::test_cannot_initialize_if_init_file_does_not_exist\", \"lib/spack/spack/test/env.py::test_initialize_from_random_file_as_manifest[spack.yaml]\", \"lib/spack/spack/test/env.py::test_environment_config_scheme_used[when_possible]\", \"lib/spack/spack/test/env.py::test_requires_on_virtual_and_potential_providers[zmpi-True]\", \"lib/spack/spack/test/env.py::test_initialize_from_lockfile[spack.lock]\", \"lib/spack/spack/test/env.py::test_update_default_view[False-True]\", \"lib/spack/spack/test/env.py::test_env_with_include_defs\", \"lib/spack/spack/test/env.py::test_requires_on_virtual_and_potential_providers[mpich-True]\", \"lib/spack/spack/test/env.py::test_preserving_comments_when_adding_specs[spack:\\\\n specs:\\\\n # baz\\\\n - zlib\\\\n-libpng-spack:\\\\n specs:\\\\n # baz\\\\n - zlib\\\\n - libpng\\\\n]\", \"lib/spack/spack/test/env.py::test_removing_from_non_existing_list_fails\", \"lib/spack/spack/test/env.py::test_hash_change_no_rehash_concrete\", \"lib/spack/spack/test/env.py::test_environment_concretizer_scheme_used[True-False]\", \"lib/spack/spack/test/env.py::test_environment_concretizer_scheme_used[when_possible-False]\", \"lib/spack/spack/test/env.py::test_environment_cant_modify_environments_root\", \"lib/spack/spack/test/env.py::test_initialize_from_random_file_as_manifest[random.txt]\", \"lib/spack/spack/test/env.py::test_removing_spec_from_manifest_with_exact_duplicates[duplicate_specs1-3]\", \"lib/spack/spack/test/env.py::test_requires_on_virtual_and_potential_providers[zmpi-False]\", \"lib/spack/spack/test/env.py::test_error_message_when_using_too_new_lockfile\", \"lib/spack/spack/test/env.py::test_removing_spec_from_manifest_with_exact_duplicates[duplicate_specs2-4]\", \"lib/spack/spack/test/env.py::test_variant_propagation_with_unify_false\", \"lib/spack/spack/test/env.py::test_environment_concretizer_scheme_used[True-when_possible]\", \"lib/spack/spack/test/env.py::test_initialize_from_lockfile[m3ia54s.json]\", \"lib/spack/spack/test/env.py::test_environment_pickle\", \"lib/spack/spack/test/env.py::test_user_view_path_is_not_canonicalized_in_yaml\", \"lib/spack/spack/test/env.py::test_env_change_spec_in_definition\", \"lib/spack/spack/test/env.py::test_conflicts_with_packages_that_are_not_dependencies[vendorsb-False-vendorsb@=1.0]\", \"lib/spack/spack/test/env.py::test_cannot_initialize_in_dir_with_init_file[spack.lock]\", \"lib/spack/spack/test/env.py::test_update_default_view[./view-False]\", \"lib/spack/spack/test/env.py::test_removing_spec_from_manifest_with_exact_duplicates[duplicate_specs0-3]\", \"lib/spack/spack/test/env.py::test_update_default_complex_view[\\\\nspack:\\\\n specs:\\\\n - mpileaks\\\\n view:\\\\n default:\\\\n root: ./view-gcc\\\\n select: ['%gcc']\\\\n link_type: symlink\\\\n-./another-view-expected_view0]\", \"lib/spack/spack/test/env.py::TestDirectoryInitialization::test_environment_dir_from_name\", \"lib/spack/spack/test/env.py::test_cannot_initiliaze_if_dirname_exists_as_a_file\", \"lib/spack/spack/test/env.py::test_manifest_file_removal_works_if_spec_is_not_normalized[mpileaks +opt ~shared]\", \"lib/spack/spack/test/env.py::test_update_default_view[./view-True]\", \"lib/spack/spack/test/env.py::test_adding_anonymous_specs_to_env_fails\", \"lib/spack/spack/test/env.py::test_update_default_view[False-False]\"]"},"PASS_TO_FAIL":{"kind":"string","value":"[]"},"FAIL_TO_PASS":{"kind":"string","value":"[\"lib/spack/spack/test/env.py::test_env_view_on_non_empty_dir_errors\", \"lib/spack/spack/test/env.py::test_env_view_on_empty_dir_is_fine\", \"lib/spack/spack/test/env.py::test_root_version_weights_for_old_versions\"]"},"FAIL_TO_FAIL":{"kind":"string","value":"[]"},"install":{"kind":"string","value":"{\"install\": [\"uv pip install -e .\", \"spack -d bootstrap now --dev\"], \"pre_install\": [\"tee pytest.ini < 2 installed packages\r\n```\r\n\r\nI have built the nasm packages from environments, one for gcc@13, one for gcc@9.\r\nBut to avoid duplication, I specifically set `%gcc@9.4.0` for a lot of packages.\r\n\r\nI'l try to come up with a minimal example...\r\n\r\nSo in my understanding, if I compile nasm with gcc 9, it should depend on the gcc9-runtime.\r\nI had similar problems for header-only libraries like eigen getting rebuilt with different runtime (but same compiler).\r\nAnd I could not specifically set the runtime, e.g. requisting `%gcc@9.4.0 ^gcc-runtime@9.4.0` is not valid.\n"},"hints_text":{"kind":"string","value":"Minimal example:\r\n```shell\r\n> spack env create --without-view test_gcc9\r\n==> Created environment test_gcc9 in: /home/zoel_ml/spack_tmp/var/spack/environments/test_gcc9\r\n==> Activate with: spack env activate test_gcc9\r\n> spack -e test_gcc9 add boost%gcc@9.4.0\r\n==> Adding boost%gcc@9.4.0 to environment test_gcc9\r\n> spack -e test_gcc9 add nasm%gcc@9.4.0\r\n==> Adding nasm%gcc@9.4.0 to environment test_gcc9\r\n> spack env create --without-view test_gcc13\r\n==> Created environment test_gcc13 in: /home/zoel_ml/spack_tmp/var/spack/environments/test_gcc13\r\n==> Activate with: spack env activate test_gcc13\r\n> spack -e test_gcc13 add nasm%gcc@9.4.0\r\n==> Adding nasm%gcc@9.4.0 to environment test_gcc13\r\n> spack -e test_gcc13 add boost%gcc@13.3.0\r\n==> Adding boost%gcc@13.3.0 to environment test_gcc13\r\n> spack -e test_gcc9 find\r\n==> In environment test_gcc9\r\n==> 2 root specs\r\n-- no arch / gcc@9.4.0 ------------------------------------------\r\n - boost%gcc@9.4.0 - nasm%gcc@9.4.0\r\n\r\n==> 0 installed packages\r\n> spack -e test_gcc13 find\r\n==> In environment test_gcc13\r\n==> 2 root specs\r\n-- no arch / gcc@9.4.0 ------------------------------------------\r\n - nasm%gcc@9.4.0\r\n\r\n-- no arch / gcc@13.3.0 -----------------------------------------\r\n - boost%gcc@13.3.0\r\n\r\n==> 0 installed packages\r\nzoel_ml@fe-store02:~/spack-modulesystem/environments (master)> spack -e test_gcc9 concretize -U\r\n==> Concretized nasm%gcc@9.4.0\r\n - my3jlae nasm@2.15.05%gcc@9.4.0 build_system=autotools arch=linux-ubuntu20.04-x86_64_v3\r\n[+] uqd3qwv ^gcc-runtime@9.4.0%gcc@9.4.0 build_system=generic arch=linux-ubuntu20.04-x86_64_v3\r\n[e] 2p5wypf ^glibc@2.31%gcc@9.4.0 build_system=autotools arch=linux-ubuntu20.04-x86_64_v3\r\n[+] phta4ne ^gmake@4.4.1%gcc@9.4.0~guile build_system=generic arch=linux-ubuntu20.04-x86_64_v3\r\n\r\n==> Concretized boost%gcc@9.4.0\r\n - ekxxqum boost@1.85.0%gcc@9.4.0~atomic~chrono~clanglibcpp~container~context~contract~coroutine~date_time~debug~exception~fiber~filesystem~graph~graph_parallel~icu~iostreams~json~locale~log~math~mpi+multithreaded~nowide~numpy~pic~program_options~python~random~regex~serialization+shared~signals~singlethreaded~stacktrace~system~taggedlayout~test~thread~timer~type_erasure~versionedlayout~wave build_system=generic cxxstd=11 patches=a440f96 visibility=hidden arch=linux-ubuntu20.04-x86_64_v3\r\n[+] uqd3qwv ^gcc-runtime@9.4.0%gcc@9.4.0 build_system=generic arch=linux-ubuntu20.04-x86_64_v3\r\n[e] 2p5wypf ^glibc@2.31%gcc@9.4.0 build_system=autotools arch=linux-ubuntu20.04-x86_64_v3\r\n\r\nzoel_ml@fe-store02:~/spack-modulesystem/environments (master)> spack -e test_gcc13 concretize -U\r\n==> Concretized nasm%gcc@9.4.0\r\n - f53whrq nasm@2.15.05%gcc@9.4.0 build_system=autotools arch=linux-ubuntu20.04-x86_64_v3\r\n - q6zylmb ^gcc-runtime@13.3.0%gcc@13.3.0 build_system=generic arch=linux-ubuntu20.04-x86_64_v3\r\n[e] k2sbjqc ^glibc@2.31%gcc@13.3.0 build_system=autotools arch=linux-ubuntu20.04-x86_64_v3\r\n - 3odfxwk ^gmake@4.4.1%gcc@9.4.0~guile build_system=generic arch=linux-ubuntu20.04-x86_64_v3\r\n\r\n==> Concretized boost%gcc@13.3.0\r\n - st4cvnb boost@1.85.0%gcc@13.3.0~atomic~chrono~clanglibcpp~container~context~contract~coroutine~date_time~debug~exception~fiber~filesystem~graph~graph_parallel~icu~iostreams~json~locale~log~math~mpi+multithreaded~nowide~numpy~pic~program_options~python~random~regex~serialization+shared~signals~singlethreaded~stacktrace~system~taggedlayout~test~thread~timer~type_erasure~versionedlayout~wave build_system=generic cxxstd=11 patches=a440f96 visibility=hidden arch=linux-ubuntu20.04-x86_64_v3\r\n - q6zylmb ^gcc-runtime@13.3.0%gcc@13.3.0 build_system=generic arch=linux-ubuntu20.04-x86_64_v3\r\n[e] k2sbjqc ^glibc@2.31%gcc@13.3.0 build_system=autotools arch=linux-ubuntu20.04-x86_64_v3\r\n```\r\n\r\nSo again, the nasm package gets concretized to be built with `%gcc@9.4.0` but with the `gcc-runtime@13.3.0`.\nMultiple instances of `gcc-runtime` in the same dag is by design, also if `unify: true`.\r\n\r\n`%gcc@9.4.0` with a direct dependency on a newer `gcc-runtime@13.3.0` is a known and major bug in Spack 0.22.\r\n\r\nThe behavior we want is: `pkg%gcc@x` implies a direct dependency on `gcc-runtime@x`, and constrains transitive dependencies to `gcc-runtime@x` or lower.\r\n\nLooking forward to a bugfix - I actually looked at the code (e.g. asp.py) but I'm not familiar enough with the spack internals to do any useful modifications there ;).\r\n\r\nDo you have an idea for a workaround for the time beeing? Not critical though - otherwise I'll just wait.\r\nI tried different things (like trying to specify `require: '^gcc-runtime@...` in packages.yaml) but they didn't work.\r\nOnly viable workaround seems to be to extract the `%gcc@9.4.0` packages, build them first in another environment and add the concrete specs in the original environment...\nIt's not very beginner friendly ;p\r\n\r\nThere isn't a very convenient workaround for mixing compilers right now, other than concretizing iteratively (old compiler first, then newer compiler):\r\n\r\n```\r\nspack add x%gcc@old\r\nspack concretize\r\nspack add y%gcc@new\r\nspack concretize\r\n```\nI'm using a workaround now similar to the one discussed above:\r\nFirst I split my environments installing everything with the older compiler first and then I use the resulting hashes in a new environment.\r\n\r\nBut it would be nicer to avoid that additional complexity in the future!"},"created_at":{"kind":"string","value":"2024-06-24T08:07:16Z"},"merged_at":{"kind":"string","value":"2024-06-27T12:58:42Z"},"PASS_TO_PASS":{"kind":"string","value":"[\"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@:1]\", \"lib/spack/spack/test/concretize.py::TestConcretizeEdges::test_virtuals_provided_together_but_only_one_required_in_dag\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_custom_compiler_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_is_equivalent_to_specified_version[0.2.15]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3@1.0 ^python@3.5.1-expected4-unexpected4]\", \"lib/spack/spack/test/concretize.py::test_reuse_prefers_standard_over_git_versions[2.1.6]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants[conditional-variant-pkg@1.0-expected0-unexpected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_config[python@configured]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[0000000000000000000000000000000000000001=1.2.3-v_opts10-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_provider_must_meet_requirements\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_and_compiler_preferences[cmake %clang-expected2]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_match\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts0-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_select_lower_priority_package_from_repository_stack[builtin.mock.gmake-expected_namespaces0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[external-buildable-with-variant@0.9 +baz-True-@0.9]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inheritance[gcc]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretization_of_test_dependencies\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_with_restricted_virtual\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3@1.1 ^python@2.7.11-expected3-unexpected3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[quantum-espresso~veritas-expected4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_parents\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[externaltool@0.9-True-@0.9]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs0-1-1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize_preferences[specs2-libelf@0.8.13-3]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts14-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_regression_issue_7941\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagated_variant_is_not_passed_to_dependent\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_installed_packages_when_package_def_changes[context2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_specified_variant\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concrete_specs_are_not_modified_on_reuse[mpich-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[cannonlake-preference-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[develop-v_opts1-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_installed_version_is_selected_only_for_reuse\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts11-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@:1.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[fftw ^mpich-expected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_hash_assigned_version_is_preferred\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3 ^python@2.7.11-expected1-unexpected1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_is_equivalent_to_specified_version[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts3-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_succeeds_with_unknown_version[fbranch]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_with_unknown_namespace_dont_raise\", \"lib/spack/spack/test/concretize.py::test_reuse_prefers_standard_over_git_versions[2.1.5]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_delete_version_and_reuse\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_newer_dependency_adds_a_transitive_virtual\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts7-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[external-buildable-with-variant@1.0: ~baz-False-@1.0 ~baz]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_user_can_select_externals_with_require\", \"lib/spack/spack/test/concretize.py::TestConcretizeEdges::test_condition_triggered_by_edge_property[conditional-edge+foo-expected_satisfies2-expected_not_satisfies2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mv_variants_disjoint_sets_from_packages_yaml\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a foobar=bar-True-with_dep1-without_dep1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[externaltool@0_8-True-@0_8]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mv_variants_disjoint_sets_from_spec[mvapich2 file_systems=lustre,gpfs-file_systems-expected_values2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[skylake-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_detection\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_conflicts_in_package_py[bowtie@1.4.0-%gcc@10.2.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[True-dev-build-test-install-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[conflict-parent%gcc]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mv_variants_disjoint_sets_from_spec[mvapich2-file_systems-expected_values0]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_match_virtual\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant foo=foo-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[cannonlake-preference-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[True-dev-build-test-dependent ^dev-build-test-install-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[haswell-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_package_with_constraint_not_met_by_external\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3 ^python@2.7.11-expected1-unexpected1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_misleading_error_message_on_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflicts_show_cores[conflict-parent@0.9^conflict~foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_with_flags\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich debug=True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[cannonlake-preference-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-preference-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_select_lower_priority_package_from_repository_stack[hdf5 ^gmake-expected_namespaces2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_nobuild_package\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtual_is_fully_expanded_for_callpath\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[ascent~~shared +adios2 ^adios2+shared-expected_propagation3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[False-dev-build-test-install-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[libelf0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize_preferences[specs0-libelf@0.8.12-1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_conflicts_in_package_py[bowtie@1.2.2 os=redhat6-%gcc@11.1.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_noversion_pkg[noversion]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[False-dev-build-test-install-True]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_two_gmake[minimal]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich cppflags=\\\"-O3\\\"]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts13-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_conflicts_in_package_py[bowtie@1.3.0-%clang@15.0.0]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_different_spec\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[quantum-espresso-expected1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs6-4-1]\", \"lib/spack/spack/test/concretize.py::TestConcreteSpecsByHash::test_adding_specs[input_specs0]\", \"lib/spack/spack/test/concretize.py::TestConcretizeEdges::test_condition_triggered_by_edge_property[conditional-edge-expected_satisfies0-expected_not_satisfies0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_no_matching_compiler_specs\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_coconcretize_reuse_and_virtuals\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[ascent++shared +adios2 ^adios2~shared-expected_propagation4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_sticky_variant_in_external[sticky-variant@1.0-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_versions_in_virtual_dependencies\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[ascent~~shared +adios2-expected_propagation2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_target_granularity\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a foobar=bar-False-with_dep4-without_dep4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_compiler_flag_does_not_propagate\", \"lib/spack/spack/test/concretize.py::test_spec_filters[specs0-include0-exclude0-expected0]\", \"lib/spack/spack/test/concretize.py::test_concretization_version_order\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_dependent_with_singlevalued_variant_type\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich~debug]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3@1.0 ^python@3.5.1-expected4-unexpected4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_different_compilers_get_different_flags\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_specs_from_non_available_compilers\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concrete_specs_are_not_modified_on_reuse[mpich~debug-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_version_weight_and_provenance\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[external-buildable-with-variant ~baz-False-@1.0 ~baz]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_python_from_cli_and_extension_from_db\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[skylake-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_spec_with_build_dep_from_json\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_externals_with_platform_explicitly_set\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_no_multiple_solutions_with_different_edges_same_nodes\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concrete_specs_are_not_modified_on_reuse[mpich+debug-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[haswell-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant foo=bar-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs3-4-1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[True-dev-build-test-dependent ^dev-build-test-install-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mv_variants_disjoint_sets_from_spec[mvapich2 file_systems=lustre-file_systems-expected_values1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_version_badness_more_important_than_default_mv_variants\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a foobar=bar-tests_arg3-with_dep3-without_dep3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_is_equivalent_to_specified_version[main]\", \"lib/spack/spack/test/concretize.py::test_git_ref_version_can_be_reused\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_match_constraints_when_selected\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_non_default_provider_of_multiple_virtuals\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant@1.62.0 cxxstd=17-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_succeeds_with_unknown_version[0.2.15]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants[conditional-variant-pkg@2.0~version_based-expected2-unexpected2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inheritance[gcc@10.2.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_sticky_variant_in_package\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3 ^python@3.5.1-expected0-unexpected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_conditional_variant\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a foobar=bar-tests_arg2-with_dep2-without_dep2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_os_selection_when_multiple_choices_are_possible[mpileaks-os=debian6]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3@1.1 ^python@2.7.11-expected3-unexpected3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtual_is_fully_expanded_for_mpileaks\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_require_targets_are_allowed\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_two_setuptools[minimal]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[0000001=1.2.3-v_opts12-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[broadwell-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants[conditional-variant-pkg@2.0+version_based+variant_based-expected3-unexpected3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[libelf@0.8.13]\", \"lib/spack/spack/test/concretize.py::test_reuse_prefers_standard_over_git_versions[2.0.0]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts2-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_target_ranges_in_conflicts\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_dependency_conditional_on_another_dependency_state\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs4-3-1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[external-buildable-with-variant +baz-True-@1.1.special +baz]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_result_specs_is_not_empty[specs2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant@1.72.0 staging=flexpath-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_packages_have_consistent_hash\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_that_would_require_a_virtual_dependency\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies ^libelf@0.8.10-patched_deps3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_constraint_with_external_package[cmake %clang-%clang]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich+debug]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_annotated_on_edges[mpileaks]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_sibling\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_sticky_variant_in_external[sticky-variant@1.0+allow-gcc-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_regression_issue_7239\", \"lib/spack/spack/test/concretize.py::test_selecting_reused_sources[reuse_yaml1-0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[False-dev-build-test-dependent ^dev-build-test-install-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[quantum-espresso-expected3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_none\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3@1.0 ^python@2.7.11-expected2-unexpected2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants_fail[@1.0+version_based]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_installed_specs_disregard_conflicts\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_child\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals_with_one_bound\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_my_dep_depends_on_provider_of_my_virtual_dep\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[libelf1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_anonymous\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_cumulative_version_ranges_with_different_length\", \"lib/spack/spack/test/concretize.py::test_selecting_reused_sources[reuse_yaml0-17]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_enable_disable_compiler_existence_check\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts4-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_multivalue_variant\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[callpath]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_different_modules[None]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant@1.72.0 cxxstd=2a-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals_with_dual_provider\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies +foo-patched_deps4]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_different_prefix\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_installed\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_and_compiler_preferences[cmake-expected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_with_unknown_package_dont_raise\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_cannot_reuse_host_incompatible_libc\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs5-2-1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_succeeds_with_config_compatible_os\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_installed_externals_are_reused\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@2:]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize_preferences[specs3-mpich-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_solve_in_rounds_all_unsolved\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mixing_compilers_only_affects_subdag\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts15-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_all_patches_applied\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_specifying_different_versions_build_deps\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_version_matches_any_entry_in_compilers_yaml\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_deprecated_versions_not_selected[deprecated-versions-deprecated-versions@1.0.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_multivalued_variants_from_cli[multivalue-variant-expected_dict0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_dont_select_version_that_brings_more_variants_in\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_include_specs_from_externals_and_libcs[included_externals0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_unified_python\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_reconstructed_on_reuse[mpileaks ^zmpi-zmpi]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_target_compatibility\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@2.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@2.2_1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_multivalued_variants_from_cli[multivalue-variant libs=static-expected_dict1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_clear_error_when_unknown_compiler_requested\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies@1.0 ^libdwarf@20111030-patched_deps2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_provides_handles_multiple_providers_of_same_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflicts_in_spec[conflict-parent@0.9^conflict~foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[broadwell-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_error_message_for_inconsistent_variants[wrong-variant-in-conflicts]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-preference-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals_with_two_bound\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants_fail[@2.0+version_based~variant_based+two_whens]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_and_virtual\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[broadwell-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_deprecated_versions_not_selected[deprecated-versions@=1.1.0-deprecated-versions@1.1.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[hypre~~shared ^openblas-expected_propagation1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_simultaneous_concretization_of_specs[abstract_specs1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_regression_issue_7705\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_simultaneous_concretization_of_specs[abstract_specs2]\", \"lib/spack/spack/test/concretize.py::test_spec_filters[specs1-include1-exclude1-expected1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_match_is_preferred_to_newer_version\", \"lib/spack/spack/test/concretize.py::test_filtering_reused_specs[roots0-reuse_yaml0-expected0-not_expected0-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflicts_show_cores[conflict%clang+foo]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[git.branch=1.2.3-v_opts16-False]\", \"lib/spack/spack/test/concretize.py::TestConcreteSpecsByHash::test_adding_specs[input_specs1]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_pure_build_virtual_dependency[full]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_children\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_exclude_specs_from_reuse\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[False-dev-build-test-dependent ^dev-build-test-install-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a-True-with_dep0-without_dep0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies@1.0-patched_deps1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[haswell-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[conflict%clang~foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[externaltool@1.0-True-@1.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_spec_flags_maintain_order\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_add_microarchitectures_on_explicit_request\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_unsolved_specs_raises_error\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_constraint_with_external_package[cmake %gcc-%gcc]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_simultaneous_concretization_of_specs[abstract_specs3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_flags_from_user_are_grouped\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_dont_define_new_version_from_input_if_checksum_required\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[cannonlake-preference-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_include_specs_from_externals_and_libcs[included_externals1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_os_selection_when_multiple_choices_are_possible[mpileaks%gcc@10.2.1 platform=test os=debian6-os=debian6]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[quantum-espresso-expected2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_result_specs_is_not_empty[specs0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[skylake-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_config[python@configured target=core2]\", \"lib/spack/spack/test/concretize.py::test_filtering_reused_specs[roots1-reuse_yaml1-expected1-not_expected1-1]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_two_gmake[full]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_is_unique[mpileaks ^mpich%clang@15.0.0-%clang@15.0.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs7-2-1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_config[python@configured os=debian]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs8-1-1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@1.2:2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3 ^python@3.5.1-expected0-unexpected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich cppflags==\\\"-O3\\\"]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs1-2-1]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_different_modules[modules1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_module\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_noversion_pkg[noversion-bundle]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals_with_dual_provider_and_a_conflict\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[conflict]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[old-external-True-@1.0.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_preferred_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_provides_or_depends_on\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretization_with_compilers_supporting_target_any\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_variant_not_default\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_architecture_deep_inheritance\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-preference-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_anonymous_dep[mpileaks ^cflags=-g]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[skylake-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_reconstructed_on_reuse[mpileaks ^mpich2-mpich2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inheritance[clang@:15.0.0]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts9-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant@1.62.0 cxxstd=2a-False]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_solution_without_cycles\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_compiler_flag_not_passed_to_dependent\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_installed_packages_when_package_def_changes[context0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_regression_issue_4492\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inherited_upwards\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-preference-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[hypre~~shared ^openblas+shared-expected_propagation0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_succeeds_with_unknown_version[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@2.2_0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_do_not_invent_new_concrete_versions_unless_necessary\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_no_conflict_in_external_specs[conflict@10.0%clang+foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_select_lower_priority_package_from_repository_stack[hdf5 ^builtin.mock.gmake-expected_namespaces1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_no_compilers_for_arch\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflicts_in_spec[conflict%clang+foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_config[python@configured platform=test]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts5-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_mention_build_dep\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[True-dev-build-test-install-True]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_pure_build_virtual_dependency[minimal]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_with_custom_non_numeric_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inheritance[clang]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_result_specs_is_not_empty[specs1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_os_selection_when_multiple_choices_are_possible[mpileaks%gcc@10.2.1 platform=test os=redhat6-os=redhat6]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_is_unique[mpileaks-%gcc@10.2.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_can_reuse_concrete_externals_for_dependents\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[haswell-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_and_compiler_preferences[cmake %gcc-expected1]\", \"lib/spack/spack/test/concretize.py::TestConcretizeEdges::test_condition_triggered_by_edge_property[conditional-edge~foo-expected_satisfies1-expected_not_satisfies1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_reconstructed_on_reuse[mpileaks-mpich]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_anonymous_dep[mpileaks ^%gcc]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extensions_have_dependency\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_self\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_host_compatible_concretization\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_in_nonbuildable_external_package[gcc-external-common-python %clang-%clang ^external-common-openssl%gcc ^external-common-gdbm%clang-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants[conditional-variant-pkg@2.0-expected1-unexpected1]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts8-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants_fail[@2.0~version_based+variant_based]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[broadwell-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_installed_packages_when_package_def_changes[context1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_transitive_conditional_virtual_dependency\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_in_nonbuildable_external_package[clang-external-common-python-%clang ^external-common-openssl%clang ^external-common-gdbm%clang-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_no_reuse_when_variant_condition_does_not_hold\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_compiler_flag_propagate\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_annotated_on_edges[mpileaks ^mpich]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies-patched_deps0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize_preferences[specs1-libelf@0.8.12-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_with_provides_when\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_with_non_default_variant_as_dependency\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_simultaneous_concretization_of_specs[abstract_specs0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_flags_differ_identical_compilers\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflict_in_all_directives_true\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_sticky_variant_in_external[sticky-variant@1.0~allow-gcc-False]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_two_setuptools[full]\", \"lib/spack/spack/test/concretize.py::TestConcreteSpecsByHash::test_adding_specs[input_specs2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3@1.0 ^python@2.7.11-expected2-unexpected2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts6-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants_fail[@1.0~version_based]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_missing_compiler\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_error_message_for_inconsistent_variants[wrong-variant-in-depends-on]\"]"},"PASS_TO_FAIL":{"kind":"string","value":"[]"},"FAIL_TO_PASS":{"kind":"string","value":"[\"lib/spack/spack/test/concretize_compiler_runtimes.py::test_reusing_specs_with_gcc_runtime[a%gcc@10.2.1-b%gcc@9.4.0 target=x86_64-expected3-2]\", \"lib/spack/spack/test/concretize_compiler_runtimes.py::test_reusing_specs_with_gcc_runtime[a%gcc@9.4.0-b%gcc@10.2.1-expected1-1]\", \"lib/spack/spack/test/concretize_compiler_runtimes.py::test_views_can_handle_duplicate_runtime_nodes[a%gcc@10.2.1-b%gcc@9.4.0-expected0-not_expected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs2-3-2]\", \"lib/spack/spack/test/concretize_compiler_runtimes.py::test_external_nodes_do_not_have_runtimes\", \"lib/spack/spack/test/concretize_compiler_runtimes.py::test_correct_gcc_runtime_is_injected_as_dependency\", \"lib/spack/spack/test/concretize_compiler_runtimes.py::test_reusing_specs_with_gcc_runtime[a%gcc@10.2.1-b%gcc@9.4.0-expected0-2]\", \"lib/spack/spack/test/concretize_compiler_runtimes.py::test_reusing_specs_with_gcc_runtime[a%gcc@9.4.0-b%gcc@10.2.1 target=x86_64-expected2-1]\"]"},"FAIL_TO_FAIL":{"kind":"string","value":"[\"var/spack/repos/compiler_runtime.test/packages/gcc/package.py::test_part\"]"},"install":{"kind":"string","value":"{\"install\": [\"uv pip install -e .\", \"spack -d bootstrap now --dev\"], \"pre_install\": [\"tee pytest.ini < Iterable[Spec]:\n \"\"\"Returns a generator for all concrete specs\"\"\"\ndiff --git a/lib/spack/spack/installer.py b/lib/spack/spack/installer.py\nindex 09eeecaca553c..1686c653a5c8d 100644\n--- a/lib/spack/spack/installer.py\n+++ b/lib/spack/spack/installer.py\n@@ -761,12 +761,8 @@ def __init__(self, pkg: \"spack.package_base.PackageBase\", install_args: dict):\n if not self.pkg.spec.concrete:\n raise ValueError(f\"{self.pkg.name} must have a concrete spec\")\n \n- # Cache the package phase options with the explicit package,\n- # popping the options to ensure installation of associated\n- # dependencies is NOT affected by these options.\n-\n- self.pkg.stop_before_phase = install_args.pop(\"stop_before\", None) # type: ignore[attr-defined] # noqa: E501\n- self.pkg.last_phase = install_args.pop(\"stop_at\", None) # type: ignore[attr-defined]\n+ self.pkg.stop_before_phase = install_args.get(\"stop_before\") # type: ignore[attr-defined] # noqa: E501\n+ self.pkg.last_phase = install_args.get(\"stop_at\") # type: ignore[attr-defined]\n \n # Cache the package id for convenience\n self.pkg_id = package_id(pkg.spec)\n@@ -1076,19 +1072,17 @@ def flag_installed(self, installed: List[str]) -> None:\n \n @property\n def explicit(self) -> bool:\n- \"\"\"The package was explicitly requested by the user.\"\"\"\n- return self.is_root and self.request.install_args.get(\"explicit\", True)\n+ return self.pkg.spec.dag_hash() in self.request.install_args.get(\"explicit\", [])\n \n @property\n- def is_root(self) -> bool:\n- \"\"\"The package was requested directly, but may or may not be explicit\n- in an environment.\"\"\"\n+ def is_build_request(self) -> bool:\n+ \"\"\"The package was requested directly\"\"\"\n return self.pkg == self.request.pkg\n \n @property\n def use_cache(self) -> bool:\n _use_cache = True\n- if self.is_root:\n+ if self.is_build_request:\n return self.request.install_args.get(\"package_use_cache\", _use_cache)\n else:\n return self.request.install_args.get(\"dependencies_use_cache\", _use_cache)\n@@ -1096,7 +1090,7 @@ def use_cache(self) -> bool:\n @property\n def cache_only(self) -> bool:\n _cache_only = False\n- if self.is_root:\n+ if self.is_build_request:\n return self.request.install_args.get(\"package_cache_only\", _cache_only)\n else:\n return self.request.install_args.get(\"dependencies_cache_only\", _cache_only)\n@@ -1122,24 +1116,17 @@ def priority(self):\n \n class PackageInstaller:\n \"\"\"\n- Class for managing the install process for a Spack instance based on a\n- bottom-up DAG approach.\n+ Class for managing the install process for a Spack instance based on a bottom-up DAG approach.\n \n- This installer can coordinate concurrent batch and interactive, local\n- and distributed (on a shared file system) builds for the same Spack\n- instance.\n+ This installer can coordinate concurrent batch and interactive, local and distributed (on a\n+ shared file system) builds for the same Spack instance.\n \"\"\"\n \n- def __init__(self, installs: List[Tuple[\"spack.package_base.PackageBase\", dict]] = []) -> None:\n- \"\"\"Initialize the installer.\n-\n- Args:\n- installs (list): list of tuples, where each\n- tuple consists of a package (PackageBase) and its associated\n- install arguments (dict)\n- \"\"\"\n+ def __init__(\n+ self, packages: List[\"spack.package_base.PackageBase\"], install_args: dict\n+ ) -> None:\n # List of build requests\n- self.build_requests = [BuildRequest(pkg, install_args) for pkg, install_args in installs]\n+ self.build_requests = [BuildRequest(pkg, install_args) for pkg in packages]\n \n # Priority queue of build tasks\n self.build_pq: List[Tuple[Tuple[int, int], BuildTask]] = []\n@@ -1562,7 +1549,7 @@ def _add_tasks(self, request: BuildRequest, all_deps):\n #\n # External and upstream packages need to get flagged as installed to\n # ensure proper status tracking for environment build.\n- explicit = request.install_args.get(\"explicit\", True)\n+ explicit = request.pkg.spec.dag_hash() in request.install_args.get(\"explicit\", [])\n not_local = _handle_external_and_upstream(request.pkg, explicit)\n if not_local:\n self._flag_installed(request.pkg)\n@@ -1683,10 +1670,6 @@ def _install_task(self, task: BuildTask, install_status: InstallStatus) -> None:\n if not pkg.unit_test_check():\n return\n \n- # Injecting information to know if this installation request is the root one\n- # to determine in BuildProcessInstaller whether installation is explicit or not\n- install_args[\"is_root\"] = task.is_root\n-\n try:\n self._setup_install_dir(pkg)\n \n@@ -1998,8 +1981,8 @@ def install(self) -> None:\n \n self._init_queue()\n fail_fast_err = \"Terminating after first install failure\"\n- single_explicit_spec = len(self.build_requests) == 1\n- failed_explicits = []\n+ single_requested_spec = len(self.build_requests) == 1\n+ failed_build_requests = []\n \n install_status = InstallStatus(len(self.build_pq))\n \n@@ -2197,14 +2180,11 @@ def install(self) -> None:\n if self.fail_fast:\n raise InstallError(f\"{fail_fast_err}: {str(exc)}\", pkg=pkg)\n \n- # Terminate at this point if the single explicit spec has\n- # failed to install.\n- if single_explicit_spec and task.explicit:\n- raise\n-\n- # Track explicit spec id and error to summarize when done\n- if task.explicit:\n- failed_explicits.append((pkg, pkg_id, str(exc)))\n+ # Terminate when a single build request has failed, or summarize errors later.\n+ if task.is_build_request:\n+ if single_requested_spec:\n+ raise\n+ failed_build_requests.append((pkg, pkg_id, str(exc)))\n \n finally:\n # Remove the install prefix if anything went wrong during\n@@ -2227,16 +2207,16 @@ def install(self) -> None:\n if request.install_args.get(\"install_package\") and request.pkg_id not in self.installed\n ]\n \n- if failed_explicits or missing:\n- for _, pkg_id, err in failed_explicits:\n+ if failed_build_requests or missing:\n+ for _, pkg_id, err in failed_build_requests:\n tty.error(f\"{pkg_id}: {err}\")\n \n for _, pkg_id in missing:\n tty.error(f\"{pkg_id}: Package was not installed\")\n \n- if len(failed_explicits) > 0:\n- pkg = failed_explicits[0][0]\n- ids = [pkg_id for _, pkg_id, _ in failed_explicits]\n+ if len(failed_build_requests) > 0:\n+ pkg = failed_build_requests[0][0]\n+ ids = [pkg_id for _, pkg_id, _ in failed_build_requests]\n tty.debug(\n \"Associating installation failure with first failed \"\n f\"explicit package ({ids[0]}) from {', '.join(ids)}\"\n@@ -2295,7 +2275,7 @@ def __init__(self, pkg: \"spack.package_base.PackageBase\", install_args: dict):\n self.verbose = bool(install_args.get(\"verbose\", False))\n \n # whether installation was explicitly requested by the user\n- self.explicit = install_args.get(\"is_root\", False) and install_args.get(\"explicit\", True)\n+ self.explicit = pkg.spec.dag_hash() in install_args.get(\"explicit\", [])\n \n # env before starting installation\n self.unmodified_env = install_args.get(\"unmodified_env\", {})\ndiff --git a/lib/spack/spack/package_base.py b/lib/spack/spack/package_base.py\nindex 4726635750256..a2b3e16f286be 100644\n--- a/lib/spack/spack/package_base.py\n+++ b/lib/spack/spack/package_base.py\n@@ -1881,7 +1881,10 @@ def do_install(self, **kwargs):\n verbose (bool): Display verbose build output (by default,\n suppresses it)\n \"\"\"\n- PackageInstaller([(self, kwargs)]).install()\n+ explicit = kwargs.get(\"explicit\", True)\n+ if isinstance(explicit, bool):\n+ kwargs[\"explicit\"] = {self.spec.dag_hash()} if explicit else set()\n+ PackageInstaller([self], kwargs).install()\n \n # TODO (post-34236): Update tests and all packages that use this as a\n # TODO (post-34236): package method to the routine made available to\n"},"test_patch":{"kind":"string","value":"diff --git a/lib/spack/spack/test/buildtask.py b/lib/spack/spack/test/buildtask.py\nindex a571e1dccd1c6..569bfc56d888d 100644\n--- a/lib/spack/spack/test/buildtask.py\n+++ b/lib/spack/spack/test/buildtask.py\n@@ -12,21 +12,21 @@\n \n def test_build_task_errors(install_mockery):\n with pytest.raises(ValueError, match=\"must be a package\"):\n- inst.BuildTask(\"abc\", None, False, 0, 0, 0, [])\n+ inst.BuildTask(\"abc\", None, False, 0, 0, 0, set())\n \n spec = spack.spec.Spec(\"trivial-install-test-package\")\n pkg_cls = spack.repo.PATH.get_pkg_class(spec.name)\n with pytest.raises(ValueError, match=\"must have a concrete spec\"):\n- inst.BuildTask(pkg_cls(spec), None, False, 0, 0, 0, [])\n+ inst.BuildTask(pkg_cls(spec), None, False, 0, 0, 0, set())\n \n spec.concretize()\n assert spec.concrete\n with pytest.raises(ValueError, match=\"must have a build request\"):\n- inst.BuildTask(spec.package, None, False, 0, 0, 0, [])\n+ inst.BuildTask(spec.package, None, False, 0, 0, 0, set())\n \n request = inst.BuildRequest(spec.package, {})\n with pytest.raises(inst.InstallError, match=\"Cannot create a build task\"):\n- inst.BuildTask(spec.package, request, False, 0, 0, inst.STATUS_REMOVED, [])\n+ inst.BuildTask(spec.package, request, False, 0, 0, inst.STATUS_REMOVED, set())\n \n \n def test_build_task_basics(install_mockery):\n@@ -36,8 +36,8 @@ def test_build_task_basics(install_mockery):\n \n # Ensure key properties match expectations\n request = inst.BuildRequest(spec.package, {})\n- task = inst.BuildTask(spec.package, request, False, 0, 0, inst.STATUS_ADDED, [])\n- assert task.explicit # package was \"explicitly\" requested\n+ task = inst.BuildTask(spec.package, request, False, 0, 0, inst.STATUS_ADDED, set())\n+ assert not task.explicit\n assert task.priority == len(task.uninstalled_deps)\n assert task.key == (task.priority, task.sequence)\n \n@@ -58,7 +58,7 @@ def test_build_task_strings(install_mockery):\n \n # Ensure key properties match expectations\n request = inst.BuildRequest(spec.package, {})\n- task = inst.BuildTask(spec.package, request, False, 0, 0, inst.STATUS_ADDED, [])\n+ task = inst.BuildTask(spec.package, request, False, 0, 0, inst.STATUS_ADDED, set())\n \n # Cover __repr__\n irep = task.__repr__()\ndiff --git a/lib/spack/spack/test/installer.py b/lib/spack/spack/test/installer.py\nindex 97b95a487f465..53ce7314eb779 100644\n--- a/lib/spack/spack/test/installer.py\n+++ b/lib/spack/spack/test/installer.py\n@@ -7,6 +7,7 @@\n import os\n import shutil\n import sys\n+from typing import List, Optional, Union\n \n import py\n import pytest\n@@ -44,12 +45,10 @@ def _mock_repo(root, namespace):\n repodir.ensure(spack.repo.packages_dir_name, dir=True)\n yaml = repodir.join(\"repo.yaml\")\n yaml.write(\n- \"\"\"\n+ f\"\"\"\n repo:\n- namespace: {0}\n-\"\"\".format(\n- namespace\n- )\n+ namespace: {namespace}\n+\"\"\"\n )\n \n \n@@ -73,53 +72,21 @@ def _true(*args, **kwargs):\n return True\n \n \n-def create_build_task(pkg, install_args={}):\n- \"\"\"\n- Create a built task for the given (concretized) package\n-\n- Args:\n- pkg (spack.package_base.PackageBase): concretized package associated with\n- the task\n- install_args (dict): dictionary of kwargs (or install args)\n-\n- Return:\n- (BuildTask) A basic package build task\n- \"\"\"\n- request = inst.BuildRequest(pkg, install_args)\n- return inst.BuildTask(pkg, request, False, 0, 0, inst.STATUS_ADDED, [])\n-\n-\n-def create_installer(installer_args):\n- \"\"\"\n- Create an installer using the concretized spec for each arg\n-\n- Args:\n- installer_args (list): the list of (spec name, kwargs) tuples\n+def create_build_task(\n+ pkg: spack.package_base.PackageBase, install_args: Optional[dict] = None\n+) -> inst.BuildTask:\n+ request = inst.BuildRequest(pkg, {} if install_args is None else install_args)\n+ return inst.BuildTask(pkg, request, False, 0, 0, inst.STATUS_ADDED, set())\n \n- Return:\n- spack.installer.PackageInstaller: the associated package installer\n- \"\"\"\n- const_arg = [(spec.package, kwargs) for spec, kwargs in installer_args]\n- return inst.PackageInstaller(const_arg)\n \n-\n-def installer_args(spec_names, kwargs={}):\n- \"\"\"Return a the installer argument with each spec paired with kwargs\n-\n- Args:\n- spec_names (list): list of spec names\n- kwargs (dict or None): install arguments to apply to all of the specs\n-\n- Returns:\n- list: list of (spec, kwargs), the installer constructor argument\n- \"\"\"\n- arg = []\n- for name in spec_names:\n- spec = spack.spec.Spec(name)\n- spec.concretize()\n- assert spec.concrete\n- arg.append((spec, kwargs))\n- return arg\n+def create_installer(\n+ specs: Union[List[str], List[spack.spec.Spec]], install_args: Optional[dict] = None\n+) -> inst.PackageInstaller:\n+ \"\"\"Create an installer instance for a list of specs or package names that will be\n+ concretized.\"\"\"\n+ _specs = [spack.spec.Spec(s).concretized() if isinstance(s, str) else s for s in specs]\n+ _install_args = {} if install_args is None else install_args\n+ return inst.PackageInstaller([spec.package for spec in _specs], _install_args)\n \n \n @pytest.mark.parametrize(\n@@ -240,8 +207,7 @@ def test_try_install_from_binary_cache(install_mockery, mock_packages, monkeypat\n \n \n def test_installer_repr(install_mockery):\n- const_arg = installer_args([\"trivial-install-test-package\"], {})\n- installer = create_installer(const_arg)\n+ installer = create_installer([\"trivial-install-test-package\"])\n \n irep = installer.__repr__()\n assert irep.startswith(installer.__class__.__name__)\n@@ -250,8 +216,7 @@ def test_installer_repr(install_mockery):\n \n \n def test_installer_str(install_mockery):\n- const_arg = installer_args([\"trivial-install-test-package\"], {})\n- installer = create_installer(const_arg)\n+ installer = create_installer([\"trivial-install-test-package\"])\n \n istr = str(installer)\n assert \"#tasks=0\" in istr\n@@ -296,8 +261,7 @@ def _mock_installed(self):\n builder.add_package(\"f\")\n \n with spack.repo.use_repositories(builder.root):\n- const_arg = installer_args([\"a\"], {})\n- installer = create_installer(const_arg)\n+ installer = create_installer([\"a\"])\n \n installer._init_queue()\n \n@@ -331,8 +295,7 @@ def test_check_last_phase_error(install_mockery):\n \n \n def test_installer_ensure_ready_errors(install_mockery, monkeypatch):\n- const_arg = installer_args([\"trivial-install-test-package\"], {})\n- installer = create_installer(const_arg)\n+ installer = create_installer([\"trivial-install-test-package\"])\n spec = installer.build_requests[0].pkg.spec\n \n fmt = r\"cannot be installed locally.*{0}\"\n@@ -366,8 +329,7 @@ def test_ensure_locked_err(install_mockery, monkeypatch, tmpdir, capsys):\n def _raise(lock, timeout=None):\n raise RuntimeError(mock_err_msg)\n \n- const_arg = installer_args([\"trivial-install-test-package\"], {})\n- installer = create_installer(const_arg)\n+ installer = create_installer([\"trivial-install-test-package\"])\n spec = installer.build_requests[0].pkg.spec\n \n monkeypatch.setattr(ulk.Lock, \"acquire_read\", _raise)\n@@ -382,8 +344,7 @@ def _raise(lock, timeout=None):\n \n def test_ensure_locked_have(install_mockery, tmpdir, capsys):\n \"\"\"Test _ensure_locked when already have lock.\"\"\"\n- const_arg = installer_args([\"trivial-install-test-package\"], {})\n- installer = create_installer(const_arg)\n+ installer = create_installer([\"trivial-install-test-package\"], {})\n spec = installer.build_requests[0].pkg.spec\n pkg_id = inst.package_id(spec)\n \n@@ -419,8 +380,7 @@ def test_ensure_locked_have(install_mockery, tmpdir, capsys):\n @pytest.mark.parametrize(\"lock_type,reads,writes\", [(\"read\", 1, 0), (\"write\", 0, 1)])\n def test_ensure_locked_new_lock(install_mockery, tmpdir, lock_type, reads, writes):\n pkg_id = \"a\"\n- const_arg = installer_args([pkg_id], {})\n- installer = create_installer(const_arg)\n+ installer = create_installer([pkg_id], {})\n spec = installer.build_requests[0].pkg.spec\n with tmpdir.as_cwd():\n ltype, lock = installer._ensure_locked(lock_type, spec.package)\n@@ -439,8 +399,7 @@ def _pl(db, spec, timeout):\n return lock\n \n pkg_id = \"a\"\n- const_arg = installer_args([pkg_id], {})\n- installer = create_installer(const_arg)\n+ installer = create_installer([pkg_id], {})\n spec = installer.build_requests[0].pkg.spec\n \n monkeypatch.setattr(spack.database.SpecLocker, \"lock\", _pl)\n@@ -510,7 +469,7 @@ def _conc_spec(compiler):\n \n def test_update_tasks_for_compiler_packages_as_compiler(mock_packages, config, monkeypatch):\n spec = spack.spec.Spec(\"trivial-install-test-package\").concretized()\n- installer = inst.PackageInstaller([(spec.package, {})])\n+ installer = inst.PackageInstaller([spec.package], {})\n \n # Add a task to the queue\n installer._add_init_task(spec.package, installer.build_requests[0], False, {})\n@@ -694,8 +653,7 @@ def test_check_deps_status_install_failure(install_mockery):\n for dep in s.traverse(root=False):\n spack.store.STORE.failure_tracker.mark(dep)\n \n- const_arg = installer_args([\"a\"], {})\n- installer = create_installer(const_arg)\n+ installer = create_installer([\"a\"], {})\n request = installer.build_requests[0]\n \n with pytest.raises(inst.InstallError, match=\"install failure\"):\n@@ -703,8 +661,7 @@ def test_check_deps_status_install_failure(install_mockery):\n \n \n def test_check_deps_status_write_locked(install_mockery, monkeypatch):\n- const_arg = installer_args([\"a\"], {})\n- installer = create_installer(const_arg)\n+ installer = create_installer([\"a\"], {})\n request = installer.build_requests[0]\n \n # Ensure the lock is not acquired\n@@ -715,8 +672,7 @@ def test_check_deps_status_write_locked(install_mockery, monkeypatch):\n \n \n def test_check_deps_status_external(install_mockery, monkeypatch):\n- const_arg = installer_args([\"a\"], {})\n- installer = create_installer(const_arg)\n+ installer = create_installer([\"a\"], {})\n request = installer.build_requests[0]\n \n # Mock the dependencies as external so assumed to be installed\n@@ -728,8 +684,7 @@ def test_check_deps_status_external(install_mockery, monkeypatch):\n \n \n def test_check_deps_status_upstream(install_mockery, monkeypatch):\n- const_arg = installer_args([\"a\"], {})\n- installer = create_installer(const_arg)\n+ installer = create_installer([\"a\"], {})\n request = installer.build_requests[0]\n \n # Mock the known dependencies as installed upstream\n@@ -747,8 +702,7 @@ def _pkgs(compiler, architecture, pkgs):\n spec = spack.spec.Spec(\"mpi\").concretized()\n return [(spec.package, True)]\n \n- const_arg = installer_args([\"trivial-install-test-package\"], {})\n- installer = create_installer(const_arg)\n+ installer = create_installer([\"trivial-install-test-package\"], {})\n request = installer.build_requests[0]\n all_deps = defaultdict(set)\n \n@@ -763,8 +717,7 @@ def _pkgs(compiler, architecture, pkgs):\n \n def test_prepare_for_install_on_installed(install_mockery, monkeypatch):\n \"\"\"Test of _prepare_for_install's early return for installed task path.\"\"\"\n- const_arg = installer_args([\"dependent-install\"], {})\n- installer = create_installer(const_arg)\n+ installer = create_installer([\"dependent-install\"], {})\n request = installer.build_requests[0]\n \n install_args = {\"keep_prefix\": True, \"keep_stage\": True, \"restage\": False}\n@@ -779,8 +732,7 @@ def test_installer_init_requests(install_mockery):\n \"\"\"Test of installer initial requests.\"\"\"\n spec_name = \"dependent-install\"\n with spack.config.override(\"config:install_missing_compilers\", True):\n- const_arg = installer_args([spec_name], {})\n- installer = create_installer(const_arg)\n+ installer = create_installer([spec_name], {})\n \n # There is only one explicit request in this case\n assert len(installer.build_requests) == 1\n@@ -789,8 +741,7 @@ def test_installer_init_requests(install_mockery):\n \n \n def test_install_task_use_cache(install_mockery, monkeypatch):\n- const_arg = installer_args([\"trivial-install-test-package\"], {})\n- installer = create_installer(const_arg)\n+ installer = create_installer([\"trivial-install-test-package\"], {})\n request = installer.build_requests[0]\n task = create_build_task(request.pkg)\n \n@@ -805,8 +756,7 @@ def test_install_task_add_compiler(install_mockery, monkeypatch, capfd):\n def _add(_compilers):\n tty.msg(config_msg)\n \n- const_arg = installer_args([\"a\"], {})\n- installer = create_installer(const_arg)\n+ installer = create_installer([\"a\"], {})\n task = create_build_task(installer.build_requests[0].pkg)\n task.compiler = True\n \n@@ -825,8 +775,7 @@ def _add(_compilers):\n \n def test_release_lock_write_n_exception(install_mockery, tmpdir, capsys):\n \"\"\"Test _release_lock for supposed write lock with exception.\"\"\"\n- const_arg = installer_args([\"trivial-install-test-package\"], {})\n- installer = create_installer(const_arg)\n+ installer = create_installer([\"trivial-install-test-package\"], {})\n \n pkg_id = \"test\"\n with tmpdir.as_cwd():\n@@ -843,8 +792,7 @@ def test_release_lock_write_n_exception(install_mockery, tmpdir, capsys):\n @pytest.mark.parametrize(\"installed\", [True, False])\n def test_push_task_skip_processed(install_mockery, installed):\n \"\"\"Test to ensure skip re-queueing a processed package.\"\"\"\n- const_arg = installer_args([\"a\"], {})\n- installer = create_installer(const_arg)\n+ installer = create_installer([\"a\"], {})\n assert len(list(installer.build_tasks)) == 0\n \n # Mark the package as installed OR failed\n@@ -861,8 +809,7 @@ def test_push_task_skip_processed(install_mockery, installed):\n \n def test_requeue_task(install_mockery, capfd):\n \"\"\"Test to ensure cover _requeue_task.\"\"\"\n- const_arg = installer_args([\"a\"], {})\n- installer = create_installer(const_arg)\n+ installer = create_installer([\"a\"], {})\n task = create_build_task(installer.build_requests[0].pkg)\n \n # temporarily set tty debug messages on so we can test output\n@@ -892,8 +839,7 @@ def _mktask(pkg):\n def _rmtask(installer, pkg_id):\n raise RuntimeError(\"Raise an exception to test except path\")\n \n- const_arg = installer_args([\"a\"], {})\n- installer = create_installer(const_arg)\n+ installer = create_installer([\"a\"], {})\n spec = installer.build_requests[0].pkg.spec\n \n # Cover task removal happy path\n@@ -922,8 +868,7 @@ def _chgrp(path, group, follow_symlinks=True):\n monkeypatch.setattr(prefs, \"get_package_group\", _get_group)\n monkeypatch.setattr(fs, \"chgrp\", _chgrp)\n \n- const_arg = installer_args([\"trivial-install-test-package\"], {})\n- installer = create_installer(const_arg)\n+ installer = create_installer([\"trivial-install-test-package\"], {})\n spec = installer.build_requests[0].pkg.spec\n \n fs.touchp(spec.prefix)\n@@ -949,8 +894,7 @@ def test_cleanup_failed_err(install_mockery, tmpdir, monkeypatch, capsys):\n def _raise_except(lock):\n raise RuntimeError(msg)\n \n- const_arg = installer_args([\"trivial-install-test-package\"], {})\n- installer = create_installer(const_arg)\n+ installer = create_installer([\"trivial-install-test-package\"], {})\n \n monkeypatch.setattr(lk.Lock, \"release_write\", _raise_except)\n pkg_id = \"test\"\n@@ -966,8 +910,7 @@ def _raise_except(lock):\n \n def test_update_failed_no_dependent_task(install_mockery):\n \"\"\"Test _update_failed with missing dependent build tasks.\"\"\"\n- const_arg = installer_args([\"dependent-install\"], {})\n- installer = create_installer(const_arg)\n+ installer = create_installer([\"dependent-install\"], {})\n spec = installer.build_requests[0].pkg.spec\n \n for dep in spec.traverse(root=False):\n@@ -978,8 +921,7 @@ def test_update_failed_no_dependent_task(install_mockery):\n \n def test_install_uninstalled_deps(install_mockery, monkeypatch, capsys):\n \"\"\"Test install with uninstalled dependencies.\"\"\"\n- const_arg = installer_args([\"dependent-install\"], {})\n- installer = create_installer(const_arg)\n+ installer = create_installer([\"dependent-install\"], {})\n \n # Skip the actual installation and any status updates\n monkeypatch.setattr(inst.PackageInstaller, \"_install_task\", _noop)\n@@ -996,8 +938,7 @@ def test_install_uninstalled_deps(install_mockery, monkeypatch, capsys):\n \n def test_install_failed(install_mockery, monkeypatch, capsys):\n \"\"\"Test install with failed install.\"\"\"\n- const_arg = installer_args([\"b\"], {})\n- installer = create_installer(const_arg)\n+ installer = create_installer([\"b\"], {})\n \n # Make sure the package is identified as failed\n monkeypatch.setattr(spack.database.FailureTracker, \"has_failed\", _true)\n@@ -1012,8 +953,7 @@ def test_install_failed(install_mockery, monkeypatch, capsys):\n \n def test_install_failed_not_fast(install_mockery, monkeypatch, capsys):\n \"\"\"Test install with failed install.\"\"\"\n- const_arg = installer_args([\"a\"], {\"fail_fast\": False})\n- installer = create_installer(const_arg)\n+ installer = create_installer([\"a\"], {\"fail_fast\": False})\n \n # Make sure the package is identified as failed\n monkeypatch.setattr(spack.database.FailureTracker, \"has_failed\", _true)\n@@ -1037,8 +977,7 @@ def _interrupt(installer, task, install_status, **kwargs):\n else:\n installer.installed.add(task.pkg.name)\n \n- const_arg = installer_args([spec_name], {})\n- installer = create_installer(const_arg)\n+ installer = create_installer([spec_name], {})\n \n # Raise a KeyboardInterrupt error to trigger early termination\n monkeypatch.setattr(inst.PackageInstaller, \"_install_task\", _interrupt)\n@@ -1064,8 +1003,7 @@ def _install(installer, task, install_status, **kwargs):\n else:\n installer.installed.add(task.pkg.name)\n \n- const_arg = installer_args([spec_name], {})\n- installer = create_installer(const_arg)\n+ installer = create_installer([spec_name], {})\n \n # Raise a KeyboardInterrupt error to trigger early termination\n monkeypatch.setattr(inst.PackageInstaller, \"_install_task\", _install)\n@@ -1091,8 +1029,7 @@ def _install(installer, task, install_status, **kwargs):\n else:\n installer.installed.add(task.pkg.name)\n \n- const_arg = installer_args([spec_name, \"a\"], {})\n- installer = create_installer(const_arg)\n+ installer = create_installer([spec_name, \"a\"], {})\n \n # Raise a KeyboardInterrupt error to trigger early termination\n monkeypatch.setattr(inst.PackageInstaller, \"_install_task\", _install)\n@@ -1106,25 +1043,21 @@ def _install(installer, task, install_status, **kwargs):\n \n def test_install_fail_fast_on_detect(install_mockery, monkeypatch, capsys):\n \"\"\"Test fail_fast install when an install failure is detected.\"\"\"\n- const_arg = installer_args([\"b\"], {\"fail_fast\": False})\n- const_arg.extend(installer_args([\"c\"], {\"fail_fast\": True}))\n- installer = create_installer(const_arg)\n- pkg_ids = [inst.package_id(spec) for spec, _ in const_arg]\n+ b, c = spack.spec.Spec(\"b\").concretized(), spack.spec.Spec(\"c\").concretized()\n+ b_id, c_id = inst.package_id(b), inst.package_id(c)\n+\n+ installer = create_installer([b, c], {\"fail_fast\": True})\n \n # Make sure all packages are identified as failed\n- #\n- # This will prevent b from installing, which will cause the build of a\n- # to be skipped.\n+ # This will prevent b from installing, which will cause the build of c to be skipped.\n monkeypatch.setattr(spack.database.FailureTracker, \"has_failed\", _true)\n \n with pytest.raises(inst.InstallError, match=\"after first install failure\"):\n installer.install()\n \n- assert pkg_ids[0] in installer.failed, \"Expected b to be marked as failed\"\n- assert pkg_ids[1] not in installer.failed, \"Expected no attempt to install c\"\n-\n- out = capsys.readouterr()[1]\n- assert \"{0} failed to install\".format(pkg_ids[0]) in out\n+ assert b_id in installer.failed, \"Expected b to be marked as failed\"\n+ assert c_id not in installer.failed, \"Expected no attempt to install c\"\n+ assert f\"{b_id} failed to install\" in capsys.readouterr().err\n \n \n def _test_install_fail_fast_on_except_patch(installer, **kwargs):\n@@ -1137,8 +1070,7 @@ def _test_install_fail_fast_on_except_patch(installer, **kwargs):\n @pytest.mark.disable_clean_stage_check\n def test_install_fail_fast_on_except(install_mockery, monkeypatch, capsys):\n \"\"\"Test fail_fast install when an install failure results from an error.\"\"\"\n- const_arg = installer_args([\"a\"], {\"fail_fast\": True})\n- installer = create_installer(const_arg)\n+ installer = create_installer([\"a\"], {\"fail_fast\": True})\n \n # Raise a non-KeyboardInterrupt exception to trigger fast failure.\n #\n@@ -1161,8 +1093,7 @@ def test_install_lock_failures(install_mockery, monkeypatch, capfd):\n def _requeued(installer, task, install_status):\n tty.msg(\"requeued {0}\".format(task.pkg.spec.name))\n \n- const_arg = installer_args([\"b\"], {})\n- installer = create_installer(const_arg)\n+ installer = create_installer([\"b\"], {})\n \n # Ensure never acquire a lock\n monkeypatch.setattr(inst.PackageInstaller, \"_ensure_locked\", _not_locked)\n@@ -1181,20 +1112,19 @@ def _requeued(installer, task, install_status):\n \n def test_install_lock_installed_requeue(install_mockery, monkeypatch, capfd):\n \"\"\"Cover basic install handling for installed package.\"\"\"\n- const_arg = installer_args([\"b\"], {})\n- b, _ = const_arg[0]\n- installer = create_installer(const_arg)\n+ b = spack.spec.Spec(\"b\").concretized()\n b_pkg_id = inst.package_id(b)\n+ installer = create_installer([b])\n \n def _prep(installer, task):\n installer.installed.add(b_pkg_id)\n- tty.msg(\"{0} is installed\".format(b_pkg_id))\n+ tty.msg(f\"{b_pkg_id} is installed\")\n \n # also do not allow the package to be locked again\n monkeypatch.setattr(inst.PackageInstaller, \"_ensure_locked\", _not_locked)\n \n def _requeued(installer, task, install_status):\n- tty.msg(\"requeued {0}\".format(inst.package_id(task.pkg.spec)))\n+ tty.msg(f\"requeued {inst.package_id(task.pkg.spec)}\")\n \n # Flag the package as installed\n monkeypatch.setattr(inst.PackageInstaller, \"_prepare_for_install\", _prep)\n@@ -1207,9 +1137,8 @@ def _requeued(installer, task, install_status):\n \n assert b_pkg_id not in installer.installed\n \n- out = capfd.readouterr()[0]\n expected = [\"is installed\", \"read locked\", \"requeued\"]\n- for exp, ln in zip(expected, out.split(\"\\n\")):\n+ for exp, ln in zip(expected, capfd.readouterr().out.splitlines()):\n assert exp in ln\n \n \n@@ -1237,8 +1166,7 @@ def _requeued(installer, task, install_status):\n # Ensure don't continually requeue the task\n monkeypatch.setattr(inst.PackageInstaller, \"_requeue_task\", _requeued)\n \n- const_arg = installer_args([\"b\"], {})\n- installer = create_installer(const_arg)\n+ installer = create_installer([\"b\"], {})\n \n with pytest.raises(inst.InstallError, match=\"request failed\"):\n installer.install()\n@@ -1253,25 +1181,19 @@ def _requeued(installer, task, install_status):\n \n def test_install_skip_patch(install_mockery, mock_fetch):\n \"\"\"Test the path skip_patch install path.\"\"\"\n- spec_name = \"b\"\n- const_arg = installer_args([spec_name], {\"fake\": False, \"skip_patch\": True})\n- installer = create_installer(const_arg)\n-\n+ installer = create_installer([\"b\"], {\"fake\": False, \"skip_patch\": True})\n installer.install()\n-\n- spec, install_args = const_arg[0]\n- assert inst.package_id(spec) in installer.installed\n+ assert inst.package_id(installer.build_requests[0].pkg.spec) in installer.installed\n \n \n def test_install_implicit(install_mockery, mock_fetch):\n \"\"\"Test the path skip_patch install path.\"\"\"\n spec_name = \"trivial-install-test-package\"\n- const_arg = installer_args([spec_name], {\"fake\": False})\n- installer = create_installer(const_arg)\n+ installer = create_installer([spec_name], {\"fake\": False})\n pkg = installer.build_requests[0].pkg\n- assert not create_build_task(pkg, {\"explicit\": False}).explicit\n- assert create_build_task(pkg, {\"explicit\": True}).explicit\n- assert create_build_task(pkg).explicit\n+ assert not create_build_task(pkg, {\"explicit\": []}).explicit\n+ assert create_build_task(pkg, {\"explicit\": [pkg.spec.dag_hash()]}).explicit\n+ assert not create_build_task(pkg).explicit\n \n \n def test_overwrite_install_backup_success(temporary_store, config, mock_packages, tmpdir):\n@@ -1280,8 +1202,7 @@ def test_overwrite_install_backup_success(temporary_store, config, mock_packages\n of the original prefix, and leave the original spec marked installed.\n \"\"\"\n # Get a build task. TODO: refactor this to avoid calling internal methods\n- const_arg = installer_args([\"b\"])\n- installer = create_installer(const_arg)\n+ installer = create_installer([\"b\"])\n installer._init_queue()\n task = installer._pop_task()\n \n@@ -1341,8 +1262,7 @@ def remove(self, spec):\n self.called = True\n \n # Get a build task. TODO: refactor this to avoid calling internal methods\n- const_arg = installer_args([\"b\"])\n- installer = create_installer(const_arg)\n+ installer = create_installer([\"b\"])\n installer._init_queue()\n task = installer._pop_task()\n \n@@ -1375,22 +1295,20 @@ def test_term_status_line():\n x.clear()\n \n \n-@pytest.mark.parametrize(\n- \"explicit_args,is_explicit\",\n- [({\"explicit\": False}, False), ({\"explicit\": True}, True), ({}, True)],\n-)\n-def test_single_external_implicit_install(install_mockery, explicit_args, is_explicit):\n+@pytest.mark.parametrize(\"explicit\", [True, False])\n+def test_single_external_implicit_install(install_mockery, explicit):\n pkg = \"trivial-install-test-package\"\n s = spack.spec.Spec(pkg).concretized()\n s.external_path = \"/usr\"\n- create_installer([(s, explicit_args)]).install()\n- assert spack.store.STORE.db.get_record(pkg).explicit == is_explicit\n+ args = {\"explicit\": [s.dag_hash()] if explicit else []}\n+ create_installer([s], args).install()\n+ assert spack.store.STORE.db.get_record(pkg).explicit == explicit\n \n \n def test_overwrite_install_does_install_build_deps(install_mockery, mock_fetch):\n \"\"\"When overwrite installing something from sources, build deps should be installed.\"\"\"\n s = spack.spec.Spec(\"dtrun3\").concretized()\n- create_installer([(s, {})]).install()\n+ create_installer([s]).install()\n \n # Verify there is a pure build dep\n edge = s.edges_to_dependencies(name=\"dtbuild3\").pop()\n@@ -1401,7 +1319,7 @@ def test_overwrite_install_does_install_build_deps(install_mockery, mock_fetch):\n build_dep.package.do_uninstall()\n \n # Overwrite install the root dtrun3\n- create_installer([(s, {\"overwrite\": [s.dag_hash()]})]).install()\n+ create_installer([s], {\"overwrite\": [s.dag_hash()]}).install()\n \n # Verify that the build dep was also installed.\n assert build_dep.installed\n"},"problem_statement":{"kind":"string","value":"Spack does not generate modules for already installed, implicit packages\n### Steps to reproduce\n\nThis originated from https://spackpm.slack.com/archives/C5W7NKZJT/p1710254261915679.\r\n\r\nAssuming I have, exclude_implicits:true and two product A and B, with A that depends on B. I could use tcl or lmod (it does not matter).\r\n\r\nIf I do:\r\n- spack install B\r\n- spack install A\r\nI get a module for B, and one for A.\r\n\r\nIf I reset my spack installs and modules and do:\r\n- spack install A\r\n- spack install B\r\n\r\nI'll get a module for A, but *not* for B.\r\n\r\nNOTE: spec used in `spack install B` is strictly similar to the variant of B a `spack spec A` would output.\r\n\r\nA spack module lmod refresh --delete-tree will indeed generate the module for B, but shouldnt it be done in the explicit install of B.\r\nI feal this breaks expectations, and is brittle as I have to basically do the dependency installation manually.\r\n\r\nThe order of `spack install` should not matter in which modules end up being exposed (thats my expectation).\r\n\n\n### Error message\n\n_No response_\n\n### Information on your system\n\n$ spack debug report\r\n* **Spack:** 0.21.0\r\n* **Python:** 3.11.5\r\n* **Platform:** linux-rhel8-zen4\r\n* **Concretizer:** clingo\r\n\r\n\n\n### General information\n\n- [X] I have run `spack debug report` and reported the version of Spack/Python/Platform\n- [X] I have searched the issues of this repo and believe this is not a duplicate\n- [X] I have run the failing commands in debug mode and reported the output\n"},"hints_text":{"kind":"string","value":""},"created_at":{"kind":"string","value":"2024-05-24T14:08:32Z"},"merged_at":{"kind":"string","value":"2024-05-29T06:25:34Z"},"PASS_TO_PASS":{"kind":"string","value":"[\"lib/spack/spack/test/installer.py::test_dump_packages_deps_errs\", \"lib/spack/spack/test/installer.py::test_package_id_err\", \"lib/spack/spack/test/installer.py::test_try_install_from_binary_cache\", \"lib/spack/spack/test/installer.py::test_combine_phase_logs\", \"lib/spack/spack/test/installer.py::test_print_install_test_log_skipped[True]\", \"lib/spack/spack/test/installer.py::test_get_dependent_ids\", \"lib/spack/spack/test/installer.py::test_fake_install\", \"lib/spack/spack/test/installer.py::test_install_from_cache_ok\", \"lib/spack/spack/test/buildtask.py::test_build_task_strings\", \"lib/spack/spack/test/installer.py::test_install_msg\", \"lib/spack/spack/test/installer.py::test_print_install_test_log_failures\", \"lib/spack/spack/test/installer.py::test_combine_phase_logs_does_not_care_about_encoding\", \"lib/spack/spack/test/installer.py::test_clear_failures_success\", \"lib/spack/spack/test/installer.py::test_hms[86400-24h]\", \"lib/spack/spack/test/installer.py::test_hms[3600-1h]\", \"lib/spack/spack/test/installer.py::test_check_last_phase_error\", \"lib/spack/spack/test/installer.py::test_dump_packages_deps_ok\", \"lib/spack/spack/test/installer.py::test_process_binary_cache_tarball_tar\", \"lib/spack/spack/test/installer.py::test_term_status_line\", \"lib/spack/spack/test/installer.py::test_hms[60-1m]\", \"lib/spack/spack/test/installer.py::test_bootstrapping_compilers_with_different_names_from_spec[mock_archive0]\", \"lib/spack/spack/test/installer.py::test_check_before_phase_error\", \"lib/spack/spack/test/installer.py::test_hms[3723.456-1h 2m 3.46s]\", \"lib/spack/spack/test/installer.py::test_install_from_cache_errors\", \"lib/spack/spack/test/installer.py::test_process_external_package_module\", \"lib/spack/spack/test/buildtask.py::test_build_task_errors\", \"lib/spack/spack/test/installer.py::test_hms[1.802-1.80s]\", \"lib/spack/spack/test/installer.py::test_package_id_ok\", \"lib/spack/spack/test/installer.py::test_packages_needed_to_bootstrap_compiler_none\", \"lib/spack/spack/test/installer.py::test_print_install_test_log_skipped[False]\"]"},"PASS_TO_FAIL":{"kind":"string","value":"[]"},"FAIL_TO_PASS":{"kind":"string","value":"[\"lib/spack/spack/test/installer.py::test_setup_install_dir_grp\", \"lib/spack/spack/test/installer.py::test_install_fail_on_interrupt\", \"lib/spack/spack/test/installer.py::test_ensure_locked_err\", \"lib/spack/spack/test/installer.py::test_update_failed_no_dependent_task\", \"lib/spack/spack/test/installer.py::test_install_failed\", \"lib/spack/spack/test/installer.py::test_installer_prune_built_build_deps\", \"lib/spack/spack/test/installer.py::test_install_lock_installed_requeue\", \"lib/spack/spack/test/installer.py::test_single_external_implicit_install[False]\", \"lib/spack/spack/test/installer.py::test_overwrite_install_does_install_build_deps[mock_archive0]\", \"lib/spack/spack/test/installer.py::test_ensure_locked_new_lock[write-0-1]\", \"lib/spack/spack/test/installer.py::test_install_failed_not_fast\", \"lib/spack/spack/test/installer.py::test_release_lock_write_n_exception\", \"lib/spack/spack/test/installer.py::test_check_deps_status_install_failure\", \"lib/spack/spack/test/installer.py::test_single_external_implicit_install[True]\", \"lib/spack/spack/test/installer.py::test_add_bootstrap_compilers\", \"lib/spack/spack/test/installer.py::test_installer_str\", \"lib/spack/spack/test/installer.py::test_check_deps_status_external\", \"lib/spack/spack/test/installer.py::test_check_deps_status_upstream\", \"lib/spack/spack/test/installer.py::test_install_uninstalled_deps\", \"lib/spack/spack/test/installer.py::test_cleanup_all_tasks\", \"lib/spack/spack/test/installer.py::test_prepare_for_install_on_installed\", \"lib/spack/spack/test/installer.py::test_install_read_locked_requeue\", \"lib/spack/spack/test/installer.py::test_install_fail_single\", \"lib/spack/spack/test/installer.py::test_install_fail_fast_on_except\", \"lib/spack/spack/test/installer.py::test_install_implicit[mock_archive0]\", \"lib/spack/spack/test/installer.py::test_installer_init_requests\", \"lib/spack/spack/test/installer.py::test_install_lock_failures\", \"lib/spack/spack/test/installer.py::test_overwrite_install_backup_failure\", \"lib/spack/spack/test/buildtask.py::test_build_task_basics\", \"lib/spack/spack/test/installer.py::test_push_task_skip_processed[False]\", \"lib/spack/spack/test/installer.py::test_requeue_task\", \"lib/spack/spack/test/installer.py::test_install_skip_patch[mock_archive0]\", \"lib/spack/spack/test/installer.py::test_install_fail_multi\", \"lib/spack/spack/test/installer.py::test_ensure_locked_new_lock[read-1-0]\", \"lib/spack/spack/test/installer.py::test_install_fail_fast_on_detect\", \"lib/spack/spack/test/installer.py::test_check_deps_status_write_locked\", \"lib/spack/spack/test/installer.py::test_overwrite_install_backup_success\", \"lib/spack/spack/test/installer.py::test_cleanup_failed_err\", \"lib/spack/spack/test/installer.py::test_install_task_use_cache\", \"lib/spack/spack/test/installer.py::test_push_task_skip_processed[True]\", \"lib/spack/spack/test/installer.py::test_update_tasks_for_compiler_packages_as_compiler\", \"lib/spack/spack/test/installer.py::test_ensure_locked_new_warn\", \"lib/spack/spack/test/installer.py::test_installer_ensure_ready_errors\", \"lib/spack/spack/test/installer.py::test_ensure_locked_have\", \"lib/spack/spack/test/installer.py::test_install_task_add_compiler\", \"lib/spack/spack/test/installer.py::test_installer_repr\"]"},"FAIL_TO_FAIL":{"kind":"string","value":"[\"lib/spack/spack/test/installer.py::test_clear_failures_errs - Assertio...\"]"},"install":{"kind":"string","value":"{\"install\": [\"uv pip install -e .\", \"spack -d bootstrap now --dev\"], \"pre_install\": [\"tee pytest.ini <\r\nError message for hdf5\r\n\r\n```\r\n==> Error: Spack concretizer internal error. Please submit a bug report and include the command, environment if applicable and the following error message.\r\n hdf5@1.14.3%oneapi@2022.2.1+fortran+mpi ^intel-oneapi-mpi@=2021.7.1%oneapi@=2022.2.1~external-libfabric~generic-names~ilp64 build_system=generic arch=linux-rocky9-icelake is unsatisfiable, errors are:\r\n internal_error(\"must choose a single version to satisfy version constraints\")\r\n```\r\n\r\n\r\n\r\n
Error message for fftw\r\n\r\n```\r\n$ spack spec fftw@3.3.10 %oneapi@2022.2.1 ^intel-oneapi-mpi@2021.7.1/zfmfvyc\r\n==> Warning: config:terminal_title has been replaced by install_status and is ignored\r\n==> Error: Spack concretizer internal error. Please submit a bug report and include the command, environment if applicable and the following error message.\r\n fftw@3.3.10%oneapi@2022.2.1 ^intel-oneapi-mpi@=2021.7.1%oneapi@=2022.2.1~external-libfabric~generic-names~ilp64 build_system=generic arch=linux-rocky9-icelake is unsatisfiable, errors are:\r\n internal_error(\"must choose a single version to satisfy version constraints\")\r\n```\r\n\r\n
\r\n\r\n### Information on your system\r\n\r\n* **Spack:** 0.22.0.dev0\r\n* **Python:** 3.9.14\r\n* **Platform:** linux-rocky9-icelake\r\n* **Concretizer:** clingo\r\n\r\n
spack find intel-oneapi-mpi@2021.7.1 %oneapi@2022.2.1\r\n\r\n```\r\n==> Warning: config:terminal_title has been replaced by install_status and is ignored\r\n-- linux-rocky9-icelake / oneapi@2022.2.1 -----------------------\r\nintel-oneapi-mpi@2021.7.1\r\n==> 1 installed package\r\n```\r\n\r\n
\r\n
cat /apps/spack-managed/oneapi-2022.2.1/intel-oneapi-mpi-2021.7.1-zfmfvyc4a4wkhgxe2f34irg663e6dcoh/.spack/spack-build-env.txt | grep SPEC\r\n\r\n```\r\nexport SPACK_COMPILER_SPEC=oneapi@2022.2.1;\r\nexport SPACK_SHORT_SPEC='intel-oneapi-mpi@2021.7.1%oneapi@2022.2.1~external-libfabric~generic-names~ilp64 build_system=generic arch=linux-rocky9-icelake/zfmfvyc'\r\n```\r\n\r\n
\r\n\r\nSpecifying the exact spec of mpi returns a different concretized mpi:\r\n
\r\n\r\n```\r\nspack spec -I hdf5@1.14.3 +fortran +mpi %oneapi@2022.2.1 ^intel-oneapi-mpi@2021.7.1%oneapi@2022.2.1~external-libfabric~generic-names~ilp64\r\n\r\nInput spec\r\n--------------------------------\r\n - hdf5@1.14.3%oneapi@2022.2.1+fortran+mpi\r\n - ^intel-oneapi-mpi@2021.7.1%oneapi@2022.2.1~external-libfabric~generic-names~ilp64\r\n\r\nConcretized\r\n--------------------------------\r\n - hdf5@1.14.3%oneapi@2022.2.1~cxx+fortran~hl~ipo~java~map+mpi+shared~subfiling~szip~threadsafe+tools api=default build_system=cmake build_type=Release generator=make patches=82088c8 arch=linux-rocky9-icelake\r\n[+] ^cmake@3.27.9%gcc@11.3.1~doc+ncurses+ownlibs build_system=generic build_type=Release arch=linux-rocky9-icelake\r\n[+] ^curl@8.6.0%gcc@11.3.1~gssapi~ldap~libidn2~librtmp~libssh~libssh2+nghttp2 build_system=autotools libs=shared,static tls=openssl arch=linux-rocky9-icelake\r\n[+] ^nghttp2@1.57.0%gcc@11.3.1 build_system=autotools arch=linux-rocky9-icelake\r\n[+] ^openssl@3.2.1%gcc@11.3.1~docs+shared build_system=generic certs=mozilla arch=linux-rocky9-icelake\r\n[+] ^ca-certificates-mozilla@2023-05-30%gcc@11.3.1 build_system=generic arch=linux-rocky9-icelake\r\n[+] ^perl@5.38.0%gcc@11.3.1+cpanm+opcode+open+shared+threads build_system=generic patches=714e4d1 arch=linux-rocky9-icelake\r\n[+] ^berkeley-db@18.1.40%gcc@11.3.1+cxx~docs+stl build_system=autotools patches=26090f4,b231fcc arch=linux-rocky9-icelake\r\n[+] ^bzip2@1.0.8%gcc@11.3.1~debug~pic+shared build_system=generic arch=linux-rocky9-icelake\r\n[+] ^diffutils@3.10%gcc@11.3.1 build_system=autotools arch=linux-rocky9-icelake\r\n[+] ^libiconv@1.17%gcc@11.3.1 build_system=autotools libs=shared,static arch=linux-rocky9-icelake\r\n[+] ^gdbm@1.23%gcc@11.3.1 build_system=autotools arch=linux-rocky9-icelake\r\n[+] ^readline@8.2%gcc@11.3.1 build_system=autotools patches=bbf97f1 arch=linux-rocky9-icelake\r\n[+] ^ncurses@6.4%gcc@11.3.1~symlinks+termlib abi=none build_system=autotools patches=7a351bc arch=linux-rocky9-icelake\r\n[+] ^gcc-runtime@11.3.1%gcc@11.3.1 build_system=generic arch=linux-rocky9-icelake\r\n[e] ^glibc@2.34%gcc@11.3.1 build_system=autotools arch=linux-rocky9-icelake\r\n[+] ^gmake@4.4.1%gcc@11.3.1~guile build_system=generic arch=linux-rocky9-icelake\r\n - ^intel-oneapi-mpi@2021.7.1%oneapi@2022.2.1+envmods~external-libfabric~generic-names~ilp64 build_system=generic arch=linux-rocky9-icelake\r\n[+] ^intel-oneapi-runtime@2022.2.1%oneapi@2022.2.1 build_system=generic arch=linux-rocky9-icelake\r\n[+] ^pkgconf@1.9.5%gcc@11.3.1 build_system=autotools arch=linux-rocky9-icelake\r\n[+] ^zlib-ng@2.1.6%gcc@11.3.1+compat+new_strategies+opt+pic+shared build_system=autotools arch=linux-rocky9-icelake\r\n\r\n```\r\n
\r\n\r\n
Happens with fftw3 too\r\n\r\n```\r\n spack spec fftw@3.3.10 %oneapi@2022.2.1 ^intel-oneapi-mpi@2021.7.1%oneapi@2022.2.1~external-libfabric~generic-names~ilp64\r\n==> Warning: config:terminal_title has been replaced by install_status and is ignored\r\nInput spec\r\n--------------------------------\r\n - fftw@3.3.10%oneapi@2022.2.1\r\n - ^intel-oneapi-mpi@2021.7.1%oneapi@2022.2.1~external-libfabric~generic-names~ilp64\r\n\r\nConcretized\r\n--------------------------------\r\n - fftw@3.3.10%oneapi@2022.2.1+mpi~openmp~pfft_patches+shared build_system=autotools precision=double,float arch=linux-rocky9-icelake\r\n[e] ^glibc@2.34%gcc@11.3.1 build_system=autotools arch=linux-rocky9-icelake\r\n[+] ^gmake@4.4.1%gcc@11.3.1~guile build_system=generic arch=linux-rocky9-icelake\r\n[+] ^gcc-runtime@11.3.1%gcc@11.3.1 build_system=generic arch=linux-rocky9-icelake\r\n - ^intel-oneapi-mpi@2021.7.1%oneapi@2022.2.1+envmods~external-libfabric~generic-names~ilp64 build_system=generic arch=linux-rocky9-icelake\r\n[+] ^intel-oneapi-runtime@2022.2.1%oneapi@2022.2.1 build_system=generic arch=linux-rocky9-icelake\r\n```\r\n\r\n
\r\n\r\n\r\n\r\n### Additional information\r\n\r\nthe build didn't exactly fail, but this is most relevant to the build stage. May indicate a core spack issue, but I don't want to start with that conclusion. This is present in multiple build packages. For some reason, specifying the mpi to build against does not match any found mpi, even when pashed by hash. This occurs with openmpi and other intel-oneapi-mpi installations as well.\r\n\r\n@brtnfld @gheber @hyoklee @lkurz @lrknox \r\n\r\n### General information\r\n\r\n- [X] I have run `spack debug report` and reported the version of Spack/Python/Platform\r\n- [X] I have run `spack maintainers ` and **@mentioned** any maintainers\r\n- [X] I have uploaded the build log and environment files\r\n- [X] I have searched the issues of this repo and believe this is not a duplicate\n"},"hints_text":{"kind":"string","value":"Todd and Harmen have been working this issue from an alternative angle, just openmpi instead of intel compiler + intel mpi:\r\n```console\r\n$ spack spec openmpi@4.1.6~atomics~cuda~cxx~cxx_exceptions~gpfs~internal-hwloc~internal-libevent~internal-pmix~java~legacylaunchers~lustre~memchecker~openshmem~orterunprefix+pmi~romio+rsh~singularity~static+vt+wrapper-rpath schedulers=slurm\r\n```\r\n\r\n```\r\n$ spack spec gromacs@2024.1 +cuda ^openmpi@4.1.6~atomics~cuda~cxx~cxx_exceptions~gpfs~internal-hwloc~internal-libevent~internal-pmix~java~legacylaunchers~lustre~memchecker~openshmem~orterunprefix+pmi~romio+rsh~singularity~static+vt+wrapper-rpath\r\n==> Warning: config:terminal_title has been replaced by install_status and is ignored\r\nInput spec\r\n--------------------------------\r\n - gromacs@2024.1+cuda\r\n - ^openmpi@4.1.6~atomics~cuda~cxx~cxx_exceptions~gpfs~internal-hwloc~internal-libevent~internal-pmix~java~legacylaunchers~lustre~memchecker~openshmem~orterunprefix+pmi~romio+rsh~singularity~static+vt+wrapper-rpath\r\n\r\nConcretized\r\n--------------------------------\r\n - gromacs@2024.1%gcc@11.3.1~cp2k+cuda~cufftmp~cycle_subcounters~double+gmxapi+hwloc~intel_provided_gcc~ipo~mdrun_only+mpi+nblib~nosuffix~opencl+openmp~relaxed_double_precision+shared~sycl build_system=cmake build_type=Release cuda_arch=none generator=make openmp_max_threads=none arch=linux-rocky9-x86_64_v4\r\n[+] ^cmake@3.27.9%gcc@11.3.1~doc+ncurses+ownlibs build_system=generic build_type=Release arch=linux-rocky9-x86_64\r\n[+] ^curl@8.6.0%gcc@11.3.1~gssapi~ldap+libidn2~librtmp~libssh~libssh2+nghttp2 build_system=autotools libs=shared,static tls=openssl arch=linux-rocky9-x86_64\r\n[+] ^libidn2@2.3.4%gcc@11.3.1 build_system=autotools arch=linux-rocky9-x86_64\r\n[+] ^libunistring@1.1%gcc@11.3.1 build_system=autotools arch=linux-rocky9-x86_64\r\n[+] ^nghttp2@1.57.0%gcc@11.3.1 build_system=autotools arch=linux-rocky9-x86_64\r\n[+] ^openssl@3.2.1%gcc@11.3.1~docs+shared build_system=generic certs=mozilla arch=linux-rocky9-x86_64\r\n[+] ^ca-certificates-mozilla@2023-05-30%gcc@11.3.1 build_system=generic arch=linux-rocky9-x86_64\r\n[+] ^ncurses@6.4%gcc@11.3.1~symlinks+termlib abi=none build_system=autotools patches=7a351bc arch=linux-rocky9-x86_64\r\n[+] ^zlib@1.3.1%gcc@11.3.1+optimize+pic+shared build_system=makefile arch=linux-rocky9-x86_64\r\n[+] ^cuda@12.4.0%gcc@11.3.1~allow-unsupported-compilers~dev build_system=generic arch=linux-rocky9-x86_64\r\n[+] ^libxml2@2.10.3%gcc@11.3.1+pic~python+shared build_system=autotools arch=linux-rocky9-x86_64\r\n[+] ^libiconv@1.17%gcc@11.3.1 build_system=autotools libs=shared,static arch=linux-rocky9-x86_64\r\n[+] ^xz@5.4.6%gcc@11.3.1~pic build_system=autotools libs=shared,static arch=linux-rocky9-x86_64\r\n[+] ^gcc-runtime@11.3.1%gcc@11.3.1 build_system=generic arch=linux-rocky9-x86_64\r\n[e] ^glibc@2.34%gcc@11.3.1 build_system=autotools arch=linux-rocky9-x86_64\r\n[+] ^gmake@4.4.1%gcc@11.3.1~guile build_system=generic arch=linux-rocky9-x86_64\r\n[+] ^hwloc@2.9.1%gcc@11.3.1~cairo~cuda~gl~libudev+libxml2~netloc~nvml~oneapi-level-zero~opencl+pci~rocm build_system=autotools libs=shared,static arch=linux-rocky9-x86_64\r\n[+] ^libpciaccess@0.17%gcc@11.3.1 build_system=autotools arch=linux-rocky9-x86_64\r\n[+] ^libtool@2.4.7%gcc@11.3.1 build_system=autotools arch=linux-rocky9-x86_64\r\n[+] ^findutils@4.9.0%gcc@11.3.1 build_system=autotools patches=440b954 arch=linux-rocky9-x86_64\r\n[+] ^util-macros@1.19.3%gcc@11.3.1 build_system=autotools arch=linux-rocky9-x86_64\r\n[+] ^pkgconf@1.9.5%gcc@11.3.1 build_system=autotools arch=linux-rocky9-x86_64\r\n[+] ^intel-oneapi-mkl@2024.1.0%gcc@11.3.1~cluster+envmods~ilp64+shared build_system=generic mpi_family=none threads=none arch=linux-rocky9-x86_64_v4\r\n[+] ^intel-tbb@2021.9.0%gcc@11.3.1~ipo+shared+tm build_system=cmake build_type=Release cxxstd=default generator=make patches=91755c6 arch=linux-rocky9-x86_64\r\n[+] ^openblas@0.3.26%gcc@11.3.1~bignuma~consistent_fpcsr+dynamic_dispatch+fortran~ilp64+locking+pic+shared build_system=makefile symbol_suffix=none threads=none arch=linux-rocky9-x86_64\r\n[+] ^perl@5.38.0%gcc@11.3.1+cpanm+opcode+open+shared+threads build_system=generic arch=linux-rocky9-x86_64\r\n[+] ^berkeley-db@18.1.40%gcc@11.3.1+cxx~docs+stl build_system=autotools patches=26090f4,b231fcc arch=linux-rocky9-x86_64\r\n[+] ^bzip2@1.0.8%gcc@11.3.1~debug~pic+shared build_system=generic arch=linux-rocky9-x86_64\r\n[+] ^diffutils@3.10%gcc@11.3.1 build_system=autotools arch=linux-rocky9-x86_64\r\n[+] ^gdbm@1.23%gcc@11.3.1 build_system=autotools arch=linux-rocky9-x86_64\r\n[+] ^readline@8.2%gcc@11.3.1 build_system=autotools patches=bbf97f1 arch=linux-rocky9-x86_64\r\n - ^openmpi@4.1.6%gcc@11.3.1~atomics~cuda~cxx~cxx_exceptions~gpfs~internal-hwloc~internal-libevent~internal-pmix~java~legacylaunchers~lustre~memchecker~openshmem~orterunprefix+pmi~romio+rsh~singularity~static+vt+wrapper-rpath build_system=autotools fabrics=none romio-filesystem=none schedulers=slurm arch=linux-rocky9-x86_64_v4\r\n[+] ^libevent@2.1.12%gcc@11.3.1+openssl build_system=autotools arch=linux-rocky9-x86_64\r\n[+] ^numactl@2.0.14%gcc@11.3.1 build_system=autotools patches=4e1d78c,62fc8a8,ff37630 arch=linux-rocky9-x86_64\r\n[+] ^autoconf@2.72%gcc@11.3.1 build_system=autotools arch=linux-rocky9-x86_64\r\n[+] ^automake@1.16.5%gcc@11.3.1 build_system=autotools arch=linux-rocky9-x86_64\r\n[+] ^m4@1.4.19%gcc@11.3.1+sigsegv build_system=autotools patches=9dc5fbd,bfdffa7 arch=linux-rocky9-x86_64\r\n[+] ^libsigsegv@2.14%gcc@11.3.1 build_system=autotools arch=linux-rocky9-x86_64\r\n[+] ^openssh@9.7p1%gcc@11.3.1+gssapi build_system=autotools arch=linux-rocky9-x86_64\r\n[+] ^krb5@1.20.1%gcc@11.3.1+shared build_system=autotools arch=linux-rocky9-x86_64\r\n[+] ^bison@3.8.2%gcc@11.3.1~color build_system=autotools arch=linux-rocky9-x86_64\r\n[+] ^gettext@0.22.4%gcc@11.3.1+bzip2+curses+git~libunistring+libxml2+pic+shared+tar+xz build_system=autotools arch=linux-rocky9-x86_64\r\n[+] ^tar@1.34%gcc@11.3.1 build_system=autotools zip=pigz arch=linux-rocky9-x86_64\r\n[+] ^pigz@2.8%gcc@11.3.1 build_system=makefile arch=linux-rocky9-x86_64\r\n[+] ^zstd@1.5.6%gcc@11.3.1+programs build_system=makefile compression=none libs=shared,static arch=linux-rocky9-x86_64\r\n[+] ^libedit@3.1-20230828%gcc@11.3.1 build_system=autotools arch=linux-rocky9-x86_64\r\n[+] ^libxcrypt@4.4.35%gcc@11.3.1~obsolete_api build_system=autotools patches=4885da3 arch=linux-rocky9-x86_64\r\n[+] ^pmix@5.0.1%gcc@11.3.1~docs+pmi_backwards_compatibility~python~restful build_system=autotools arch=linux-rocky9-x86_64\r\n[e] ^slurm@hpc2%gcc@11.3.1~cgroup~gtk~hdf5~hwloc~mariadb~nvml~pam~pmix+readline~restd~rsmi build_system=autotools sysconfdir=PREFIX/etc arch=linux-rocky9-x86_64_v4\r\n[+] ^pkgconf@1.9.5%gcc@11.3.1 build_system=autotools arch=linux-rocky9-x86_64_v4\r\n[+] ^gcc-runtime@11.3.1%gcc@11.3.1 build_system=generic arch=linux-rocky9-x86_64_v4\r\n[e] ^glibc@2.34%gcc@11.3.1 build_system=autotools arch=linux-rocky9-x86_64_v4\r\n[+] ^gmake@4.4.1%gcc@11.3.1~guile build_system=generic arch=linux-rocky9-x86_64_v4\r\n```\r\nCommit info from the smaller environment where we've been working:\r\n```\r\ncommit a5c8111076e13b27f955d33b1a3b6b4236b98c38 (HEAD -> develop, origin/develop, origin/HEAD)\r\nAuthor: Jon Rood \r\nDate: Tue May 14 12:26:07 2024 -0600\r\n```\r\nAttached index.json from the system where we are examining the openmpi specifically.\r\n[index.json](https://github.com/spack/spack/files/15392776/index.json)\r\n\r\nTagging the dynamic duo who've been looking into this from slack.\r\n@haampie @tgamblin \nspack spec --json sombrero ^openmpi\r\n```\r\n{\"spec\":{\"_meta\":{\"version\":4},\"nodes\":[{\"name\":\"sombrero\",\"version\":\"2021-08-16\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64_v4\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"makefile\",\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"ou3cfutoc247nvz4vjqo5bawozqhu3rc3bwhs74tgdhab67czbaq====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"okobutgmbxcgxo7ecjdwdsfqm24b2rsv\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"openmpi\",\"hash\":\"7d4ne2737urvkmlritol4exx7o3vcxgv\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[\"mpi\"]}}],\"hash\":\"wrvwiukzki7yo3styapikuxzwe3guzjg\"},{\"name\":\"gcc-runtime\",\"version\":\"11.3.1\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"generic\",\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"sbry3aldasmsm7cxonkbjh26n4h67jsb7ylzmrtjvxhnecjirboq====\",\"dependencies\":[{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}}],\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\"},{\"name\":\"glibc\",\"version\":\"2.34\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"external\":{\"path\":\"/usr\",\"module\":null,\"extra_attributes\":{}},\"package_hash\":\"hzdain4vjuh3pvvxifp3pdz3k754z3lljjatbdifmm2ju3ljltaa====\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\"},{\"name\":\"gmake\",\"version\":\"4.4.1\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64_v4\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"generic\",\"guile\":false,\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"ghstvqlc3r7kgiikwx24xhcxdxcqdk5viinrzgm2mssqigfonika====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"ik2zmnslchnhz5i5nih3kyfuwyqmmbvj\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"7r3luxtrfar5asl3ghe5yyxgau3qmpl2\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}}],\"hash\":\"okobutgmbxcgxo7ecjdwdsfqm24b2rsv\"},{\"name\":\"gcc-runtime\",\"version\":\"11.3.1\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64_v4\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"generic\",\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"sbry3aldasmsm7cxonkbjh26n4h67jsb7ylzmrtjvxhnecjirboq====\",\"dependencies\":[{\"name\":\"glibc\",\"hash\":\"7r3luxtrfar5asl3ghe5yyxgau3qmpl2\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}}],\"hash\":\"ik2zmnslchnhz5i5nih3kyfuwyqmmbvj\"},{\"name\":\"glibc\",\"version\":\"2.34\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64_v4\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"external\":{\"path\":\"/usr\",\"module\":null,\"extra_attributes\":{}},\"package_hash\":\"hzdain4vjuh3pvvxifp3pdz3k754z3lljjatbdifmm2ju3ljltaa====\",\"hash\":\"7r3luxtrfar5asl3ghe5yyxgau3qmpl2\"},{\"name\":\"openmpi\",\"version\":\"5.0.3\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64_v4\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"atomics\":false,\"build_system\":\"autotools\",\"cuda\":false,\"fabrics\":[\"none\"],\"gpfs\":false,\"internal-hwloc\":false,\"internal-libevent\":false,\"internal-pmix\":false,\"java\":false,\"legacylaunchers\":false,\"lustre\":false,\"memchecker\":false,\"openshmem\":false,\"orterunprefix\":false,\"romio\":false,\"romio-filesystem\":[\"none\"],\"rsh\":true,\"schedulers\":[\"none\"],\"static\":false,\"vt\":true,\"wrapper-rpath\":true,\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"g5tdjfjlx67zlwmzoqrnw7ejv2wpp2ws5oo56p4gqlsxtl6hdy5q====\",\"dependencies\":[{\"name\":\"autoconf\",\"hash\":\"x5x2gfzirnsgzigwozxlk7g64qznupuv\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"automake\",\"hash\":\"iwukefi4aiaowiewxbk5q6ltiieokqwt\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"okobutgmbxcgxo7ecjdwdsfqm24b2rsv\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"hwloc\",\"hash\":\"lvpcx5mrbupmp7ks7dyii5sitlchglp4\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}},{\"name\":\"libevent\",\"hash\":\"75k2c5cvx3tejrfj6hvje75tyosnefag\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}},{\"name\":\"libtool\",\"hash\":\"a6qcon373kr5opxavipddh5bgb3n2dht\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"numactl\",\"hash\":\"n5syhpcr7tfwozy3q6nzs7w64m3xzpcw\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}},{\"name\":\"openssh\",\"hash\":\"7bmu7h7iyinccp6ttz4d3imb35luekir\",\"parameters\":{\"deptypes\":[\"run\"],\"virtuals\":[]}},{\"name\":\"perl\",\"hash\":\"tefzfi32owmoallxvbj6s6rjltjrlu4h\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"pkgconf\",\"hash\":\"rcyuhnxeauub5igbztezolqrrowxk5wg\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[\"pkgconfig\"]}},{\"name\":\"pmix\",\"hash\":\"mrf4ytu7yjpng4kcl7qf5p3g5v7isy3x\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}},{\"name\":\"zlib\",\"hash\":\"ghyahwq7hwqkrdzfqc2tvltjau66xlu2\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[\"zlib-api\"]}}],\"hash\":\"7d4ne2737urvkmlritol4exx7o3vcxgv\"},{\"name\":\"autoconf\",\"version\":\"2.72\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"o2p7sd2y7u3arqkk24aap54uarfgpxcdohyjbpcmw56nkbs27ueq====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"m4\",\"hash\":\"5lgfm2gzk6verj6y7xeumbnh3jvkomst\",\"parameters\":{\"deptypes\":[\"build\",\"run\"],\"virtuals\":[]}},{\"name\":\"perl\",\"hash\":\"tefzfi32owmoallxvbj6s6rjltjrlu4h\",\"parameters\":{\"deptypes\":[\"build\",\"run\"],\"virtuals\":[]}}],\"hash\":\"x5x2gfzirnsgzigwozxlk7g64qznupuv\"},{\"name\":\"gmake\",\"version\":\"4.4.1\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"generic\",\"guile\":false,\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"ghstvqlc3r7kgiikwx24xhcxdxcqdk5viinrzgm2mssqigfonika====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}}],\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\"},{\"name\":\"m4\",\"version\":\"1.4.19\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"patches\":[\"9dc5fbd0d5cb1037ab1e6d0ecc74a30df218d0a94bdd5a02759a97f62daca573\",\"bfdffa7c2eb01021d5849b36972c069693654ad826c1a20b53534009a4ec7a89\"],\"sigsegv\":true,\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"patches\":[\"bfdffa7c2eb01021d5849b36972c069693654ad826c1a20b53534009a4ec7a89\",\"9dc5fbd0d5cb1037ab1e6d0ecc74a30df218d0a94bdd5a02759a97f62daca573\"],\"package_hash\":\"npb7a53yz7wqx4nvnasxwgzxaoiks6sdjz2eugrgkjxs4ml24xea====\",\"dependencies\":[{\"name\":\"diffutils\",\"hash\":\"wv5v5egvtgk7i5o2z75aryqizhrj2tbx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"libsigsegv\",\"hash\":\"urr46ra7uipwfvsfwo6s5c5lelryb2nt\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}}],\"hash\":\"5lgfm2gzk6verj6y7xeumbnh3jvkomst\"},{\"name\":\"diffutils\",\"version\":\"3.10\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"kbmzdy7mgklc24qx55cvx7kq7hceby2yav4fnf64gfdo7epdghwa====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"libiconv\",\"hash\":\"eir5gjfhktyjqur5t6cvmr3qe7gthdw5\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[\"iconv\"]}}],\"hash\":\"wv5v5egvtgk7i5o2z75aryqizhrj2tbx\"},{\"name\":\"libiconv\",\"version\":\"1.17\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"libs\":[\"shared\",\"static\"],\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"hx2hgtfxuafavkaf2rp3hjq7ttx4zuoyareduhx25lb4a5b64sua====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}}],\"hash\":\"eir5gjfhktyjqur5t6cvmr3qe7gthdw5\"},{\"name\":\"libsigsegv\",\"version\":\"2.14\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"ypp3sciaprcyojozq2c5gqugtewmr5ytjbfpycyhu6wivtky7rja====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}}],\"hash\":\"urr46ra7uipwfvsfwo6s5c5lelryb2nt\"},{\"name\":\"perl\",\"version\":\"5.38.0\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"generic\",\"cpanm\":true,\"opcode\":true,\"open\":true,\"shared\":true,\"threads\":true,\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"dimeimdnsjchuincoea2kbiahand7rm452ivswxg2i4z77ovyd5a====\",\"dependencies\":[{\"name\":\"berkeley-db\",\"hash\":\"tred5wpplerymsh7t7igex4fnuutxlhr\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}},{\"name\":\"bzip2\",\"hash\":\"6jbb6sti377vgbxp7oojnq6vcmtohvfv\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}},{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"gdbm\",\"hash\":\"lnnh7diebrw72y4lyin5e7jzevoorlom\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"zlib\",\"hash\":\"ghyahwq7hwqkrdzfqc2tvltjau66xlu2\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[\"zlib-api\"]}}],\"hash\":\"tefzfi32owmoallxvbj6s6rjltjrlu4h\"},{\"name\":\"berkeley-db\",\"version\":\"18.1.40\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"cxx\":true,\"docs\":false,\"patches\":[\"26090f418891757af46ac3b89a9f43d6eb5989f7a3dce3d1cfc99fba547203b3\",\"b231fcc4d5cff05e5c3a4814f6a5af0e9a966428dc2176540d2c05aff41de522\"],\"stl\":true,\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"patches\":[\"b231fcc4d5cff05e5c3a4814f6a5af0e9a966428dc2176540d2c05aff41de522\",\"26090f418891757af46ac3b89a9f43d6eb5989f7a3dce3d1cfc99fba547203b3\"],\"package_hash\":\"h57ydfn33zevvzctzzioiiwjwe362izbbwncb6a26dfeno4y7tda====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}}],\"hash\":\"tred5wpplerymsh7t7igex4fnuutxlhr\"},{\"name\":\"bzip2\",\"version\":\"1.0.8\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"generic\",\"debug\":false,\"pic\":false,\"shared\":true,\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"wa33h4h2abj7tx5cndixz7bdwu5fspdaf2kjlqsinnearayw6fra====\",\"dependencies\":[{\"name\":\"diffutils\",\"hash\":\"wv5v5egvtgk7i5o2z75aryqizhrj2tbx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}}],\"hash\":\"6jbb6sti377vgbxp7oojnq6vcmtohvfv\"},{\"name\":\"gdbm\",\"version\":\"1.23\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"liepxl6phlcxbgfmibxafhewtihlgaa4x3hko37ckqlafhxkrgdq====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"readline\",\"hash\":\"ufpo4rfi2bjfd7resfecipprikpnqsea\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}}],\"hash\":\"lnnh7diebrw72y4lyin5e7jzevoorlom\"},{\"name\":\"readline\",\"version\":\"8.2\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"patches\":[\"bbf97f1ec40a929edab5aa81998c1e2ef435436c597754916e6a5868f273aff7\"],\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"patches\":[\"bbf97f1ec40a929edab5aa81998c1e2ef435436c597754916e6a5868f273aff7\"],\"package_hash\":\"oww6dmr7xqgg6j7iiluonxbcl4irqnnrip4vfkjdwujncwnuhwuq====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"ncurses\",\"hash\":\"jo7zzsdjsgxf4e3hmzblef2aobtdttdh\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}}],\"hash\":\"ufpo4rfi2bjfd7resfecipprikpnqsea\"},{\"name\":\"ncurses\",\"version\":\"6.4\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"abi\":\"none\",\"build_system\":\"autotools\",\"patches\":[\"7a351bc4953a4ab70dabdbea31c8db0c03d40ce505335f3b6687180dde24c535\"],\"symlinks\":false,\"termlib\":true,\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"patches\":[\"7a351bc4953a4ab70dabdbea31c8db0c03d40ce505335f3b6687180dde24c535\"],\"package_hash\":\"teiqf5a3joficvqvbs7y6m7yet7q5djmnqy27u2vy4jn265dcjrq====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"pkgconf\",\"hash\":\"p2yzqqpdyggztycl54m52cflilcwiyhj\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[\"pkgconfig\"]}}],\"hash\":\"jo7zzsdjsgxf4e3hmzblef2aobtdttdh\"},{\"name\":\"pkgconf\",\"version\":\"1.9.5\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"mwcvsiv3j27l74xz4dejqp54ushfxa36bj25mwwg4dciaphqzpca====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}}],\"hash\":\"p2yzqqpdyggztycl54m52cflilcwiyhj\"},{\"name\":\"zlib\",\"version\":\"1.3.1\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"makefile\",\"optimize\":true,\"pic\":true,\"shared\":true,\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"rhpngf66y63k7rkb7wfhea6ulhhc2w2nmtq6if7drcp3mvztf2uq====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}}],\"hash\":\"ghyahwq7hwqkrdzfqc2tvltjau66xlu2\"},{\"name\":\"automake\",\"version\":\"1.16.5\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"mwdviv4g6xu2ttfs6dnzmwbofpxa4vke3y5egbb6w4fesykvnbda====\",\"dependencies\":[{\"name\":\"autoconf\",\"hash\":\"x5x2gfzirnsgzigwozxlk7g64qznupuv\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"perl\",\"hash\":\"tefzfi32owmoallxvbj6s6rjltjrlu4h\",\"parameters\":{\"deptypes\":[\"build\",\"run\"],\"virtuals\":[]}}],\"hash\":\"iwukefi4aiaowiewxbk5q6ltiieokqwt\"},{\"name\":\"hwloc\",\"version\":\"2.9.1\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"cairo\":false,\"cuda\":false,\"gl\":false,\"libs\":[\"shared\",\"static\"],\"libudev\":false,\"libxml2\":true,\"netloc\":false,\"nvml\":false,\"oneapi-level-zero\":false,\"opencl\":false,\"pci\":true,\"rocm\":false,\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"hir47frlnqog35tswqx57f2ncq3ymdf6gvi6mxhben2mxer3p4lq====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"libpciaccess\",\"hash\":\"waxy44tlesgnd5bi2xdmg6nchhvztmzm\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}},{\"name\":\"libxml2\",\"hash\":\"klnmst2mj47bynyzfvlouu3yldhaqitz\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}},{\"name\":\"ncurses\",\"hash\":\"jo7zzsdjsgxf4e3hmzblef2aobtdttdh\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}},{\"name\":\"pkgconf\",\"hash\":\"p2yzqqpdyggztycl54m52cflilcwiyhj\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[\"pkgconfig\"]}}],\"hash\":\"lvpcx5mrbupmp7ks7dyii5sitlchglp4\"},{\"name\":\"libpciaccess\",\"version\":\"0.17\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"zjibztp7iq2h3hgdgjs2dvk75m5nhxd2fwjr4cmpwvkidwbwk2dq====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"libtool\",\"hash\":\"qrrxoyl2oumptu6vaqhtw5yp4xvtr4n6\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"pkgconf\",\"hash\":\"p2yzqqpdyggztycl54m52cflilcwiyhj\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[\"pkgconfig\"]}},{\"name\":\"util-macros\",\"hash\":\"6sibf3cdatpcom4mgqvuxfibt6xel5tx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}}],\"hash\":\"waxy44tlesgnd5bi2xdmg6nchhvztmzm\"},{\"name\":\"libtool\",\"version\":\"2.4.7\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"7lyavyiwpnrhw7tfv5vgri32at345gdegbixiskk63ext2f5rzza====\",\"dependencies\":[{\"name\":\"findutils\",\"hash\":\"jq647cucbvtjukndl4crqcnruwqhri75\",\"parameters\":{\"deptypes\":[\"run\"],\"virtuals\":[]}},{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"m4\",\"hash\":\"5lgfm2gzk6verj6y7xeumbnh3jvkomst\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}}],\"hash\":\"qrrxoyl2oumptu6vaqhtw5yp4xvtr4n6\"},{\"name\":\"findutils\",\"version\":\"4.9.0\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"patches\":[\"440b9543365b4692a2e6e0b5674809659846658d34d1dfc542c4397c8d668b92\"],\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"patches\":[\"440b9543365b4692a2e6e0b5674809659846658d34d1dfc542c4397c8d668b92\"],\"package_hash\":\"bo3pd5cjg27xg6plm5x6znimvxfa2rj4br754j67zlk363w2hxvq====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}}],\"hash\":\"jq647cucbvtjukndl4crqcnruwqhri75\"},{\"name\":\"util-macros\",\"version\":\"1.19.3\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"5atggv5uirdl2trmzmewkonyvzmzg6sg46zpvurdk43wi2gpr7pa====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}}],\"hash\":\"6sibf3cdatpcom4mgqvuxfibt6xel5tx\"},{\"name\":\"libxml2\",\"version\":\"2.10.3\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"pic\":true,\"python\":false,\"shared\":true,\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"vudnyovgegouqxyfiyf4x3alu7fuhlhuaqhapeah3fzhzz376ivq====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"libiconv\",\"hash\":\"eir5gjfhktyjqur5t6cvmr3qe7gthdw5\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[\"iconv\"]}},{\"name\":\"pkgconf\",\"hash\":\"p2yzqqpdyggztycl54m52cflilcwiyhj\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[\"pkgconfig\"]}},{\"name\":\"xz\",\"hash\":\"z573zw6fj3c32be5fvcwzzj3z6unnzdw\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}},{\"name\":\"zlib\",\"hash\":\"ghyahwq7hwqkrdzfqc2tvltjau66xlu2\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[\"zlib-api\"]}}],\"hash\":\"klnmst2mj47bynyzfvlouu3yldhaqitz\"},{\"name\":\"xz\",\"version\":\"5.4.6\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"libs\":[\"shared\",\"static\"],\"pic\":false,\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"zt5vu2vph2v2qjwgdbe7btgcz7axpyalorcsqiuxhrg5grwgrrvq====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}}],\"hash\":\"z573zw6fj3c32be5fvcwzzj3z6unnzdw\"},{\"name\":\"libevent\",\"version\":\"2.1.12\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"openssl\":true,\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"chtoynanib2eblvcdjcw7wxhpssxzovtbuewl3ygjqi56lhd3uka====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"openssl\",\"hash\":\"utn6hyzi67f4gprjccvirq27qncnt6ui\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}}],\"hash\":\"75k2c5cvx3tejrfj6hvje75tyosnefag\"},{\"name\":\"openssl\",\"version\":\"3.2.1\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"generic\",\"certs\":\"mozilla\",\"docs\":false,\"shared\":true,\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"du3lt3hxvqqt253xxxjwffdzf24tzw6czxerawyhyk4oghkx46hq====\",\"dependencies\":[{\"name\":\"ca-certificates-mozilla\",\"hash\":\"bga4cpqk7u564ytegzfwgvdcpktxjsvu\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"perl\",\"hash\":\"tefzfi32owmoallxvbj6s6rjltjrlu4h\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"zlib\",\"hash\":\"ghyahwq7hwqkrdzfqc2tvltjau66xlu2\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[\"zlib-api\"]}}],\"hash\":\"utn6hyzi67f4gprjccvirq27qncnt6ui\"},{\"name\":\"ca-certificates-mozilla\",\"version\":\"2023-05-30\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"generic\",\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"63npvwqwo2x7i6emvnklh4mhcn45gx2qzveorybh5h2inwr55sea====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}}],\"hash\":\"bga4cpqk7u564ytegzfwgvdcpktxjsvu\"},{\"name\":\"libtool\",\"version\":\"2.4.7\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64_v4\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"7lyavyiwpnrhw7tfv5vgri32at345gdegbixiskk63ext2f5rzza====\",\"dependencies\":[{\"name\":\"findutils\",\"hash\":\"jsqiz6fsxz6kdq5d5pfcgt2nbfgphodm\",\"parameters\":{\"deptypes\":[\"run\"],\"virtuals\":[]}},{\"name\":\"gcc-runtime\",\"hash\":\"ik2zmnslchnhz5i5nih3kyfuwyqmmbvj\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"7r3luxtrfar5asl3ghe5yyxgau3qmpl2\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"okobutgmbxcgxo7ecjdwdsfqm24b2rsv\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"m4\",\"hash\":\"23w4fobzofykmehfvpnvg74dfhnp5yw7\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}}],\"hash\":\"a6qcon373kr5opxavipddh5bgb3n2dht\"},{\"name\":\"findutils\",\"version\":\"4.9.0\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64_v4\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"patches\":[\"440b9543365b4692a2e6e0b5674809659846658d34d1dfc542c4397c8d668b92\"],\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"patches\":[\"440b9543365b4692a2e6e0b5674809659846658d34d1dfc542c4397c8d668b92\"],\"package_hash\":\"bo3pd5cjg27xg6plm5x6znimvxfa2rj4br754j67zlk363w2hxvq====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"ik2zmnslchnhz5i5nih3kyfuwyqmmbvj\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"7r3luxtrfar5asl3ghe5yyxgau3qmpl2\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"okobutgmbxcgxo7ecjdwdsfqm24b2rsv\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}}],\"hash\":\"jsqiz6fsxz6kdq5d5pfcgt2nbfgphodm\"},{\"name\":\"m4\",\"version\":\"1.4.19\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64_v4\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"patches\":[\"9dc5fbd0d5cb1037ab1e6d0ecc74a30df218d0a94bdd5a02759a97f62daca573\",\"bfdffa7c2eb01021d5849b36972c069693654ad826c1a20b53534009a4ec7a89\"],\"sigsegv\":true,\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"patches\":[\"bfdffa7c2eb01021d5849b36972c069693654ad826c1a20b53534009a4ec7a89\",\"9dc5fbd0d5cb1037ab1e6d0ecc74a30df218d0a94bdd5a02759a97f62daca573\"],\"package_hash\":\"npb7a53yz7wqx4nvnasxwgzxaoiks6sdjz2eugrgkjxs4ml24xea====\",\"dependencies\":[{\"name\":\"diffutils\",\"hash\":\"rd5y4en7ndabdsuozznat627mxat5ffg\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"gcc-runtime\",\"hash\":\"ik2zmnslchnhz5i5nih3kyfuwyqmmbvj\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"7r3luxtrfar5asl3ghe5yyxgau3qmpl2\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"okobutgmbxcgxo7ecjdwdsfqm24b2rsv\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"libsigsegv\",\"hash\":\"jwy3ecku4xxc34bx2bzmvqgphzr2f7qc\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}}],\"hash\":\"23w4fobzofykmehfvpnvg74dfhnp5yw7\"},{\"name\":\"diffutils\",\"version\":\"3.10\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64_v4\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"kbmzdy7mgklc24qx55cvx7kq7hceby2yav4fnf64gfdo7epdghwa====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"ik2zmnslchnhz5i5nih3kyfuwyqmmbvj\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"7r3luxtrfar5asl3ghe5yyxgau3qmpl2\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"okobutgmbxcgxo7ecjdwdsfqm24b2rsv\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"libiconv\",\"hash\":\"5rddgn4cstxez4iymwwyki7xqu6pnogc\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[\"iconv\"]}}],\"hash\":\"rd5y4en7ndabdsuozznat627mxat5ffg\"},{\"name\":\"libiconv\",\"version\":\"1.17\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64_v4\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"libs\":[\"shared\",\"static\"],\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"hx2hgtfxuafavkaf2rp3hjq7ttx4zuoyareduhx25lb4a5b64sua====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"ik2zmnslchnhz5i5nih3kyfuwyqmmbvj\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"7r3luxtrfar5asl3ghe5yyxgau3qmpl2\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"okobutgmbxcgxo7ecjdwdsfqm24b2rsv\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}}],\"hash\":\"5rddgn4cstxez4iymwwyki7xqu6pnogc\"},{\"name\":\"libsigsegv\",\"version\":\"2.14\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64_v4\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"ypp3sciaprcyojozq2c5gqugtewmr5ytjbfpycyhu6wivtky7rja====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"ik2zmnslchnhz5i5nih3kyfuwyqmmbvj\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"7r3luxtrfar5asl3ghe5yyxgau3qmpl2\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"okobutgmbxcgxo7ecjdwdsfqm24b2rsv\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}}],\"hash\":\"jwy3ecku4xxc34bx2bzmvqgphzr2f7qc\"},{\"name\":\"numactl\",\"version\":\"2.0.14\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"patches\":[\"4e1d78cbbb85de625bad28705e748856033eaafab92a66dffd383a3d7e00cc94\",\"62fc8a8bf7665a60e8f4c93ebbd535647cebf74198f7afafec4c085a8825c006\",\"ff37630df599cfabf0740518b91ec8daaf18e8f288b19adaae5364dc1f6b2296\"],\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"patches\":[\"4e1d78cbbb85de625bad28705e748856033eaafab92a66dffd383a3d7e00cc94\",\"62fc8a8bf7665a60e8f4c93ebbd535647cebf74198f7afafec4c085a8825c006\",\"ff37630df599cfabf0740518b91ec8daaf18e8f288b19adaae5364dc1f6b2296\"],\"package_hash\":\"yfrelh4vcagcl7wantudtwpccnburhkpgqyvhgmxrzeo3wdmck4q====\",\"dependencies\":[{\"name\":\"autoconf\",\"hash\":\"x5x2gfzirnsgzigwozxlk7g64qznupuv\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"automake\",\"hash\":\"iwukefi4aiaowiewxbk5q6ltiieokqwt\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"libtool\",\"hash\":\"qrrxoyl2oumptu6vaqhtw5yp4xvtr4n6\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"m4\",\"hash\":\"5lgfm2gzk6verj6y7xeumbnh3jvkomst\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}}],\"hash\":\"n5syhpcr7tfwozy3q6nzs7w64m3xzpcw\"},{\"name\":\"openssh\",\"version\":\"9.7p1\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"gssapi\":true,\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"kqq3i67lvcw7go2gzmo3z3glfbvwvehgqigvr3j7gb4plzxd7gzq====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"krb5\",\"hash\":\"morem4awo74qyiylnnfqwqb3674qm4uq\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}},{\"name\":\"libedit\",\"hash\":\"hl5eoiso5w5gw7wr2yeskyt2yjw6272e\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}},{\"name\":\"libxcrypt\",\"hash\":\"ewik2ycp22lc2r5wzvjozq3wwjddtnly\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"ncurses\",\"hash\":\"jo7zzsdjsgxf4e3hmzblef2aobtdttdh\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}},{\"name\":\"openssl\",\"hash\":\"utn6hyzi67f4gprjccvirq27qncnt6ui\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}},{\"name\":\"zlib\",\"hash\":\"ghyahwq7hwqkrdzfqc2tvltjau66xlu2\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[\"zlib-api\"]}}],\"hash\":\"7bmu7h7iyinccp6ttz4d3imb35luekir\"},{\"name\":\"krb5\",\"version\":\"1.20.1\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"shared\":true,\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"6dnh53v2vdwar4klwf7uq4bcr3qmw7ffdhnosxn2lvcde62el4ya====\",\"dependencies\":[{\"name\":\"bison\",\"hash\":\"ayu572meqxkigd4tlsk3mxsvrqivbsgz\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"diffutils\",\"hash\":\"wv5v5egvtgk7i5o2z75aryqizhrj2tbx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"findutils\",\"hash\":\"jq647cucbvtjukndl4crqcnruwqhri75\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"gettext\",\"hash\":\"73vxsmccc4bpx4xyfh7amamyve6b663w\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"openssl\",\"hash\":\"utn6hyzi67f4gprjccvirq27qncnt6ui\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}},{\"name\":\"perl\",\"hash\":\"tefzfi32owmoallxvbj6s6rjltjrlu4h\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}}],\"hash\":\"morem4awo74qyiylnnfqwqb3674qm4uq\"},{\"name\":\"bison\",\"version\":\"3.8.2\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"color\":false,\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"d4j62fwvuxqbiez32ltjnhu47ac425wjebsy6fhoptv6saxazcxq====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"m4\",\"hash\":\"5lgfm2gzk6verj6y7xeumbnh3jvkomst\",\"parameters\":{\"deptypes\":[\"build\",\"run\"],\"virtuals\":[]}}],\"hash\":\"ayu572meqxkigd4tlsk3mxsvrqivbsgz\"},{\"name\":\"gettext\",\"version\":\"0.22.4\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"bzip2\":true,\"curses\":true,\"git\":true,\"libunistring\":false,\"libxml2\":true,\"pic\":true,\"shared\":true,\"tar\":true,\"xz\":true,\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"qzysxfubq7fs2myf6smnxb3sej4gs7kfnquadzjbem6wyphedqwa====\",\"dependencies\":[{\"name\":\"bzip2\",\"hash\":\"6jbb6sti377vgbxp7oojnq6vcmtohvfv\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}},{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"libiconv\",\"hash\":\"eir5gjfhktyjqur5t6cvmr3qe7gthdw5\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[\"iconv\"]}},{\"name\":\"libxml2\",\"hash\":\"klnmst2mj47bynyzfvlouu3yldhaqitz\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}},{\"name\":\"ncurses\",\"hash\":\"jo7zzsdjsgxf4e3hmzblef2aobtdttdh\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}},{\"name\":\"tar\",\"hash\":\"cejava7vbdt7c4i7ybrkmiebvapnpxbr\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}},{\"name\":\"xz\",\"hash\":\"z573zw6fj3c32be5fvcwzzj3z6unnzdw\",\"parameters\":{\"deptypes\":[\"build\",\"link\",\"run\"],\"virtuals\":[]}}],\"hash\":\"73vxsmccc4bpx4xyfh7amamyve6b663w\"},{\"name\":\"tar\",\"version\":\"1.34\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"zip\":\"pigz\",\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"lenbnsjf43v4emz5uiadpdganwxydlkzcci4cue7qwyx7cfuz2jq====\",\"dependencies\":[{\"name\":\"bzip2\",\"hash\":\"6jbb6sti377vgbxp7oojnq6vcmtohvfv\",\"parameters\":{\"deptypes\":[\"run\"],\"virtuals\":[]}},{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"libiconv\",\"hash\":\"eir5gjfhktyjqur5t6cvmr3qe7gthdw5\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[\"iconv\"]}},{\"name\":\"pigz\",\"hash\":\"atjfmyrlylolukltmrhmqomoq3l3wrom\",\"parameters\":{\"deptypes\":[\"run\"],\"virtuals\":[]}},{\"name\":\"xz\",\"hash\":\"z573zw6fj3c32be5fvcwzzj3z6unnzdw\",\"parameters\":{\"deptypes\":[\"run\"],\"virtuals\":[]}},{\"name\":\"zstd\",\"hash\":\"htbfs5asbmqzt7tckgeuo4y775pcsu3w\",\"parameters\":{\"deptypes\":[\"run\"],\"virtuals\":[]}}],\"hash\":\"cejava7vbdt7c4i7ybrkmiebvapnpxbr\"},{\"name\":\"pigz\",\"version\":\"2.8\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"makefile\",\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"4w67lflje4giekjg4ie2vpyuiunjcumo6geofykvon3hodllp42q====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"zlib\",\"hash\":\"ghyahwq7hwqkrdzfqc2tvltjau66xlu2\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[\"zlib-api\"]}}],\"hash\":\"atjfmyrlylolukltmrhmqomoq3l3wrom\"},{\"name\":\"zstd\",\"version\":\"1.5.6\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"makefile\",\"compression\":[\"none\"],\"libs\":[\"shared\",\"static\"],\"programs\":true,\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"uvmrov4c6unft6o4yd3jk3uqvweua3uhwdli4sw7h5wvklaf5t3q====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}}],\"hash\":\"htbfs5asbmqzt7tckgeuo4y775pcsu3w\"},{\"name\":\"libedit\",\"version\":\"3.1-20230828\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"2ichxco2wqnr7e7veujbrhypqotk2de2qagezcgx62uq6v7jbhoa====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"ncurses\",\"hash\":\"jo7zzsdjsgxf4e3hmzblef2aobtdttdh\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}},{\"name\":\"pkgconf\",\"hash\":\"p2yzqqpdyggztycl54m52cflilcwiyhj\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[\"pkgconfig\"]}}],\"hash\":\"hl5eoiso5w5gw7wr2yeskyt2yjw6272e\"},{\"name\":\"libxcrypt\",\"version\":\"4.4.35\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"obsolete_api\":false,\"patches\":[\"4885da3afc027999d7cc3c231de7fc6f3c8b119847536e0fc106bc846c617b9b\"],\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"patches\":[\"4885da3afc027999d7cc3c231de7fc6f3c8b119847536e0fc106bc846c617b9b\"],\"package_hash\":\"dam6cqot2l4nfh6nk3jidk7u2pr2p534tw7446ejqwttqitr4zea====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"perl\",\"hash\":\"tefzfi32owmoallxvbj6s6rjltjrlu4h\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}}],\"hash\":\"ewik2ycp22lc2r5wzvjozq3wwjddtnly\"},{\"name\":\"pkgconf\",\"version\":\"1.9.5\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64_v4\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"mwcvsiv3j27l74xz4dejqp54ushfxa36bj25mwwg4dciaphqzpca====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"ik2zmnslchnhz5i5nih3kyfuwyqmmbvj\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"7r3luxtrfar5asl3ghe5yyxgau3qmpl2\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"okobutgmbxcgxo7ecjdwdsfqm24b2rsv\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}}],\"hash\":\"rcyuhnxeauub5igbztezolqrrowxk5wg\"},{\"name\":\"pmix\",\"version\":\"5.0.1\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"docs\":false,\"pmi_backwards_compatibility\":true,\"python\":false,\"restful\":false,\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"cscwabesbiokragt3qr6y3qeokebhkru3o3pdq7xknkfpyooqpva====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"hwloc\",\"hash\":\"lvpcx5mrbupmp7ks7dyii5sitlchglp4\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}},{\"name\":\"libevent\",\"hash\":\"75k2c5cvx3tejrfj6hvje75tyosnefag\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}},{\"name\":\"pkgconf\",\"hash\":\"p2yzqqpdyggztycl54m52cflilcwiyhj\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[\"pkgconfig\"]}}],\"hash\":\"mrf4ytu7yjpng4kcl7qf5p3g5v7isy3x\"}]}}\r\n```\r\n\r\nspack spec --json gromacs@2024.1 ^openmpi\r\n```\r\n\r\n\r\n{\"spec\":{\"_meta\":{\"version\":4},\"nodes\":[{\"name\":\"gromacs\",\"version\":\"2024.1\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64_v4\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"cmake\",\"build_type\":\"Release\",\"cp2k\":false,\"cuda\":false,\"cycle_subcounters\":false,\"double\":false,\"generator\":\"make\",\"gmxapi\":true,\"hwloc\":true,\"intel_provided_gcc\":false,\"ipo\":false,\"mdrun_only\":false,\"mpi\":true,\"nblib\":true,\"nosuffix\":false,\"opencl\":false,\"openmp\":true,\"openmp_max_threads\":\"none\",\"relaxed_double_precision\":false,\"shared\":true,\"sycl\":false,\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"dm2ahf75fqchd6fraswx7hpzvgjxfmy2v5phfgtzbkgtui27mgta====\",\"dependencies\":[{\"name\":\"cmake\",\"hash\":\"cwyitaixw45sxr3be2t6btrh63yfcy7j\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"hwloc\",\"hash\":\"lvpcx5mrbupmp7ks7dyii5sitlchglp4\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}},{\"name\":\"intel-oneapi-mkl\",\"hash\":\"w2gwddaj66tnymnzp6e45fw6e7a2lepl\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[\"fftw-api\"]}},{\"name\":\"openblas\",\"hash\":\"j4pmgt7fqbofpzhmdzuilwytppaikkfj\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[\"blas\",\"lapack\"]}},{\"name\":\"openmpi\",\"hash\":\"6hzlp7blfs2ll6ovdciozgo6kt5wrvvy\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[\"mpi\"]}},{\"name\":\"pkgconf\",\"hash\":\"rcyuhnxeauub5igbztezolqrrowxk5wg\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[\"pkgconfig\"]}}],\"hash\":\"zvei7rbl5vexb6aa4f3rp5lavkrw35mq\"},{\"name\":\"cmake\",\"version\":\"3.27.9\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"generic\",\"build_type\":\"Release\",\"doc\":false,\"ncurses\":true,\"ownlibs\":true,\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"4nfzzuirvovagbkvkxjvtkvwyokgaekv3iyo3emo7h2ai42uofmq====\",\"dependencies\":[{\"name\":\"curl\",\"hash\":\"x3ewqvc4ooemxvkypflypgtomz2fxc5m\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}},{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}},{\"name\":\"ncurses\",\"hash\":\"jo7zzsdjsgxf4e3hmzblef2aobtdttdh\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}},{\"name\":\"zlib\",\"hash\":\"ghyahwq7hwqkrdzfqc2tvltjau66xlu2\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[\"zlib-api\"]}}],\"hash\":\"cwyitaixw45sxr3be2t6btrh63yfcy7j\"},{\"name\":\"curl\",\"version\":\"8.6.0\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"gssapi\":false,\"ldap\":false,\"libidn2\":true,\"librtmp\":false,\"libs\":[\"shared\",\"static\"],\"libssh\":false,\"libssh2\":false,\"nghttp2\":true,\"tls\":[\"openssl\"],\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"pnrnxi25vp63zdpaf2uyua3647cabp2nlsvwshbaen7meqjdnqxq====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"libidn2\",\"hash\":\"ajedsxwboxggl6aqoozcw7zmf5vqrsoq\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}},{\"name\":\"nghttp2\",\"hash\":\"ebaysjw5npofh4juzd7zp3dn36xez5rg\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}},{\"name\":\"openssl\",\"hash\":\"utn6hyzi67f4gprjccvirq27qncnt6ui\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}},{\"name\":\"pkgconf\",\"hash\":\"p2yzqqpdyggztycl54m52cflilcwiyhj\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[\"pkgconfig\"]}},{\"name\":\"zlib\",\"hash\":\"ghyahwq7hwqkrdzfqc2tvltjau66xlu2\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[\"zlib-api\"]}}],\"hash\":\"x3ewqvc4ooemxvkypflypgtomz2fxc5m\"},{\"name\":\"gcc-runtime\",\"version\":\"11.3.1\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"generic\",\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"sbry3aldasmsm7cxonkbjh26n4h67jsb7ylzmrtjvxhnecjirboq====\",\"dependencies\":[{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}}],\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\"},{\"name\":\"glibc\",\"version\":\"2.34\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"external\":{\"path\":\"/usr\",\"module\":null,\"extra_attributes\":{}},\"package_hash\":\"hzdain4vjuh3pvvxifp3pdz3k754z3lljjatbdifmm2ju3ljltaa====\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\"},{\"name\":\"gmake\",\"version\":\"4.4.1\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"generic\",\"guile\":false,\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"ghstvqlc3r7kgiikwx24xhcxdxcqdk5viinrzgm2mssqigfonika====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}}],\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\"},{\"name\":\"libidn2\",\"version\":\"2.3.4\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"taptc6r6zwx3ew6gy3vbcjbq45woaacvb3e2xjcjwx2aitsfblvq====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"libunistring\",\"hash\":\"d6scsneotvwq3zbstprqardjtvmj5ldp\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}}],\"hash\":\"ajedsxwboxggl6aqoozcw7zmf5vqrsoq\"},{\"name\":\"libunistring\",\"version\":\"1.1\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"...\r\n```\r\n\nspack spec --json openmpi/boemme\r\n```\r\n{\"spec\":{\"_meta\":{\"version\":4},\"nodes\":[{\"name\":\"openmpi\",\"version\":\"4.1.6\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64_v4\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"atomics\":false,\"build_system\":\"autotools\",\"cuda\":false,\"cxx\":false,\"cxx_exceptions\":false,\"fabrics\":[\"none\"],\"gpfs\":false,\"internal-hwloc\":false,\"internal-libevent\":false,\"internal-pmix\":false,\"java\":false,\"legacylaunchers\":false,\"lustre\":false,\"memchecker\":false,\"openshmem\":false,\"orterunprefix\":false,\"pmi\":true,\"romio\":false,\"romio-filesystem\":[\"none\"],\"rsh\":true,\"schedulers\":[\"slurm\"],\"singularity\":false,\"static\":false,\"vt\":true,\"wrapper-rpath\":true,\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"2aibrjwid32dfd2t2cxwq3clnllh7c75j4jxqlvt5znkk7vr2zbq====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"okobutgmbxcgxo7ecjdwdsfqm24b2rsv\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"hwloc\",\"hash\":\"lvpcx5mrbupmp7ks7dyii5sitlchglp4\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}},{\"name\":\"libevent\",\"hash\":\"75k2c5cvx3tejrfj6hvje75tyosnefag\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}},{\"name\":\"numactl\",\"hash\":\"n5syhpcr7tfwozy3q6nzs7w64m3xzpcw\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}},{\"name\":\"openssh\",\"hash\":\"7bmu7h7iyinccp6ttz4d3imb35luekir\",\"parameters\":{\"deptypes\":[\"run\"],\"virtuals\":[]}},{\"name\":\"perl\",\"hash\":\"tefzfi32owmoallxvbj6s6rjltjrlu4h\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"pkgconf\",\"hash\":\"rcyuhnxeauub5igbztezolqrrowxk5wg\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[\"pkgconfig\"]}},{\"name\":\"pmix\",\"hash\":\"mrf4ytu7yjpng4kcl7qf5p3g5v7isy3x\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}},{\"name\":\"slurm\",\"hash\":\"75xnned7c5kziiniw6bastmg5okbxxbb\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}},{\"name\":\"zlib\",\"hash\":\"ghyahwq7hwqkrdzfqc2tvltjau66xlu2\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[\"zlib-api\"]}}],\"hash\":\"boemme3rube26svzrpvwcsdqgcasfx46\"},{\"name\":\"gcc-runtime\",\"version\":\"11.3.1\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"generic\",\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"sbry3aldasmsm7cxonkbjh26n4h67jsb7ylzmrtjvxhnecjirboq====\",\"dependencies\":[{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}}],\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\"},{\"name\":\"glibc\",\"version\":\"2.34\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"external\":{\"path\":\"/usr\",\"module\":null,\"extra_attributes\":{}},\"package_hash\":\"hzdain4vjuh3pvvxifp3pdz3k754z3lljjatbdifmm2ju3ljltaa====\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\"},{\"name\":\"gmake\",\"version\":\"4.4.1\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64_v4\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"generic\",\"guile\":false,\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"ghstvqlc3r7kgiikwx24xhcxdxcqdk5viinrzgm2mssqigfonika====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"ik2zmnslchnhz5i5nih3kyfuwyqmmbvj\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"7r3luxtrfar5asl3ghe5yyxgau3qmpl2\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}}],\"hash\":\"okobutgmbxcgxo7ecjdwdsfqm24b2rsv\"},{\"name\":\"gcc-runtime\",\"version\":\"11.3.1\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64_v4\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"generic\",\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"sbry3aldasmsm7cxonkbjh26n4h67jsb7ylzmrtjvxhnecjirboq====\",\"dependencies\":[{\"name\":\"glibc\",\"hash\":\"7r3luxtrfar5asl3ghe5yyxgau3qmpl2\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}}],\"hash\":\"ik2zmnslchnhz5i5nih3kyfuwyqmmbvj\"},{\"name\":\"glibc\",\"version\":\"2.34\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64_v4\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"external\":{\"path\":\"/usr\",\"module\":null,\"extra_attributes\":{}},\"package_hash\":\"hzdain4vjuh3pvvxifp3pdz3k754z3lljjatbdifmm2ju3ljltaa====\",\"hash\":\"7r3luxtrfar5asl3ghe5yyxgau3qmpl2\"},{\"name\":\"hwloc\",\"version\":\"2.9.1\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"cairo\":false,\"cuda\":false,\"gl\":false,\"libs\":[\"shared\",\"static\"],\"libudev\":false,\"libxml2\":true,\"netloc\":false,\"nvml\":false,\"oneapi-level-zero\":false,\"opencl\":false,\"pci\":true,\"rocm\":false,\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"hir47frlnqog35tswqx57f2ncq3ymdf6gvi6mxhben2mxer3p4lq====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"libpciaccess\",\"hash\":\"waxy44tlesgnd5bi2xdmg6nchhvztmzm\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}},{\"name\":\"libxml2\",\"hash\":\"klnmst2mj47bynyzfvlouu3yldhaqitz\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}},{\"name\":\"ncurses\",\"hash\":\"jo7zzsdjsgxf4e3hmzblef2aobtdttdh\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}},{\"name\":\"pkgconf\",\"hash\":\"p2yzqqpdyggztycl54m52cflilcwiyhj\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[\"pkgconfig\"]}}],\"hash\":\"lvpcx5mrbupmp7ks7dyii5sitlchglp4\"},{\"name\":\"gmake\",\"version\":\"4.4.1\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"generic\",\"guile\":false,\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"ghstvqlc3r7kgiikwx24xhcxdxcqdk5viinrzgm2mssqigfonika====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}}],\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\"},{\"name\":\"libpciaccess\",\"version\":\"0.17\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"zjibztp7iq2h3hgdgjs2dvk75m5nhxd2fwjr4cmpwvkidwbwk2dq====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"libtool\",\"hash\":\"qrrxoyl2oumptu6vaqhtw5yp4xvtr4n6\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"pkgconf\",\"hash\":\"p2yzqqpdyggztycl54m52cflilcwiyhj\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[\"pkgconfig\"]}},{\"name\":\"util-macros\",\"hash\":\"6sibf3cdatpcom4mgqvuxfibt6xel5tx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}}],\"hash\":\"waxy44tlesgnd5bi2xdmg6nchhvztmzm\"},{\"name\":\"libtool\",\"version\":\"2.4.7\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"7lyavyiwpnrhw7tfv5vgri32at345gdegbixiskk63ext2f5rzza====\",\"dependencies\":[{\"name\":\"findutils\",\"hash\":\"jq647cucbvtjukndl4crqcnruwqhri75\",\"parameters\":{\"deptypes\":[\"run\"],\"virtuals\":[]}},{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"m4\",\"hash\":\"5lgfm2gzk6verj6y7xeumbnh3jvkomst\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}}],\"hash\":\"qrrxoyl2oumptu6vaqhtw5yp4xvtr4n6\"},{\"name\":\"findutils\",\"version\":\"4.9.0\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"patches\":[\"440b9543365b4692a2e6e0b5674809659846658d34d1dfc542c4397c8d668b92\"],\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"patches\":[\"440b9543365b4692a2e6e0b5674809659846658d34d1dfc542c4397c8d668b92\"],\"package_hash\":\"bo3pd5cjg27xg6plm5x6znimvxfa2rj4br754j67zlk363w2hxvq====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}}],\"hash\":\"jq647cucbvtjukndl4crqcnruwqhri75\"},{\"name\":\"m4\",\"version\":\"1.4.19\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"patches\":[\"9dc5fbd0d5cb1037ab1e6d0ecc74a30df218d0a94bdd5a02759a97f62daca573\",\"bfdffa7c2eb01021d5849b36972c069693654ad826c1a20b53534009a4ec7a89\"],\"sigsegv\":true,\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"patches\":[\"bfdffa7c2eb01021d5849b36972c069693654ad826c1a20b53534009a4ec7a89\",\"9dc5fbd0d5cb1037ab1e6d0ecc74a30df218d0a94bdd5a02759a97f62daca573\"],\"package_hash\":\"npb7a53yz7wqx4nvnasxwgzxaoiks6sdjz2eugrgkjxs4ml24xea====\",\"dependencies\":[{\"name\":\"diffutils\",\"hash\":\"wv5v5egvtgk7i5o2z75aryqizhrj2tbx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"libsigsegv\",\"hash\":\"urr46ra7uipwfvsfwo6s5c5lelryb2nt\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}}],\"hash\":\"5lgfm2gzk6verj6y7xeumbnh3jvkomst\"},{\"name\":\"diffutils\",\"version\":\"3.10\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"kbmzdy7mgklc24qx55cvx7kq7hceby2yav4fnf64gfdo7epdghwa====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"libiconv\",\"hash\":\"eir5gjfhktyjqur5t6cvmr3qe7gthdw5\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[\"iconv\"]}}],\"hash\":\"wv5v5egvtgk7i5o2z75aryqizhrj2tbx\"},{\"name\":\"libiconv\",\"version\":\"1.17\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"libs\":[\"shared\",\"static\"],\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"hx2hgtfxuafavkaf2rp3hjq7ttx4zuoyareduhx25lb4a5b64sua====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}}],\"hash\":\"eir5gjfhktyjqur5t6cvmr3qe7gthdw5\"},{\"name\":\"libsigsegv\",\"version\":\"2.14\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"ypp3sciaprcyojozq2c5gqugtewmr5ytjbfpycyhu6wivtky7rja====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}}],\"hash\":\"urr46ra7uipwfvsfwo6s5c5lelryb2nt\"},{\"name\":\"pkgconf\",\"version\":\"1.9.5\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"mwcvsiv3j27l74xz4dejqp54ushfxa36bj25mwwg4dciaphqzpca====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}}],\"hash\":\"p2yzqqpdyggztycl54m52cflilcwiyhj\"},{\"name\":\"util-macros\",\"version\":\"1.19.3\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"5atggv5uirdl2trmzmewkonyvzmzg6sg46zpvurdk43wi2gpr7pa====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}}],\"hash\":\"6sibf3cdatpcom4mgqvuxfibt6xel5tx\"},{\"name\":\"libxml2\",\"version\":\"2.10.3\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"pic\":true,\"python\":false,\"shared\":true,\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"vudnyovgegouqxyfiyf4x3alu7fuhlhuaqhapeah3fzhzz376ivq====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"libiconv\",\"hash\":\"eir5gjfhktyjqur5t6cvmr3qe7gthdw5\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[\"iconv\"]}},{\"name\":\"pkgconf\",\"hash\":\"p2yzqqpdyggztycl54m52cflilcwiyhj\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[\"pkgconfig\"]}},{\"name\":\"xz\",\"hash\":\"z573zw6fj3c32be5fvcwzzj3z6unnzdw\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}},{\"name\":\"zlib\",\"hash\":\"ghyahwq7hwqkrdzfqc2tvltjau66xlu2\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[\"zlib-api\"]}}],\"hash\":\"klnmst2mj47bynyzfvlouu3yldhaqitz\"},{\"name\":\"xz\",\"version\":\"5.4.6\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"libs\":[\"shared\",\"static\"],\"pic\":false,\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"zt5vu2vph2v2qjwgdbe7btgcz7axpyalorcsqiuxhrg5grwgrrvq====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}}],\"hash\":\"z573zw6fj3c32be5fvcwzzj3z6unnzdw\"},{\"name\":\"zlib\",\"version\":\"1.3.1\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"makefile\",\"optimize\":true,\"pic\":true,\"shared\":true,\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"rhpngf66y63k7rkb7wfhea6ulhhc2w2nmtq6if7drcp3mvztf2uq====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}}],\"hash\":\"ghyahwq7hwqkrdzfqc2tvltjau66xlu2\"},{\"name\":\"ncurses\",\"version\":\"6.4\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"abi\":\"none\",\"build_system\":\"autotools\",\"patches\":[\"7a351bc4953a4ab70dabdbea31c8db0c03d40ce505335f3b6687180dde24c535\"],\"symlinks\":false,\"termlib\":true,\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"patches\":[\"7a351bc4953a4ab70dabdbea31c8db0c03d40ce505335f3b6687180dde24c535\"],\"package_hash\":\"teiqf5a3joficvqvbs7y6m7yet7q5djmnqy27u2vy4jn265dcjrq====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"pkgconf\",\"hash\":\"p2yzqqpdyggztycl54m52cflilcwiyhj\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[\"pkgconfig\"]}}],\"hash\":\"jo7zzsdjsgxf4e3hmzblef2aobtdttdh\"},{\"name\":\"libevent\",\"version\":\"2.1.12\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"openssl\":true,\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"chtoynanib2eblvcdjcw7wxhpssxzovtbuewl3ygjqi56lhd3uka====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"openssl\",\"hash\":\"utn6hyzi67f4gprjccvirq27qncnt6ui\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}}],\"hash\":\"75k2c5cvx3tejrfj6hvje75tyosnefag\"},{\"name\":\"openssl\",\"version\":\"3.2.1\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"generic\",\"certs\":\"mozilla\",\"docs\":false,\"shared\":true,\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"du3lt3hxvqqt253xxxjwffdzf24tzw6czxerawyhyk4oghkx46hq====\",\"dependencies\":[{\"name\":\"ca-certificates-mozilla\",\"hash\":\"bga4cpqk7u564ytegzfwgvdcpktxjsvu\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"perl\",\"hash\":\"tefzfi32owmoallxvbj6s6rjltjrlu4h\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"zlib\",\"hash\":\"ghyahwq7hwqkrdzfqc2tvltjau66xlu2\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[\"zlib-api\"]}}],\"hash\":\"utn6hyzi67f4gprjccvirq27qncnt6ui\"},{\"name\":\"ca-certificates-mozilla\",\"version\":\"2023-05-30\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"generic\",\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"63npvwqwo2x7i6emvnklh4mhcn45gx2qzveorybh5h2inwr55sea====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}}],\"hash\":\"bga4cpqk7u564ytegzfwgvdcpktxjsvu\"},{\"name\":\"perl\",\"version\":\"5.38.0\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"generic\",\"cpanm\":true,\"opcode\":true,\"open\":true,\"shared\":true,\"threads\":true,\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"dimeimdnsjchuincoea2kbiahand7rm452ivswxg2i4z77ovyd5a====\",\"dependencies\":[{\"name\":\"berkeley-db\",\"hash\":\"tred5wpplerymsh7t7igex4fnuutxlhr\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}},{\"name\":\"bzip2\",\"hash\":\"6jbb6sti377vgbxp7oojnq6vcmtohvfv\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}},{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"gdbm\",\"hash\":\"lnnh7diebrw72y4lyin5e7jzevoorlom\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"zlib\",\"hash\":\"ghyahwq7hwqkrdzfqc2tvltjau66xlu2\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[\"zlib-api\"]}}],\"hash\":\"tefzfi32owmoallxvbj6s6rjltjrlu4h\"},{\"name\":\"berkeley-db\",\"version\":\"18.1.40\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"cxx\":true,\"docs\":false,\"patches\":[\"26090f418891757af46ac3b89a9f43d6eb5989f7a3dce3d1cfc99fba547203b3\",\"b231fcc4d5cff05e5c3a4814f6a5af0e9a966428dc2176540d2c05aff41de522\"],\"stl\":true,\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"patches\":[\"b231fcc4d5cff05e5c3a4814f6a5af0e9a966428dc2176540d2c05aff41de522\",\"26090f418891757af46ac3b89a9f43d6eb5989f7a3dce3d1cfc99fba547203b3\"],\"package_hash\":\"h57ydfn33zevvzctzzioiiwjwe362izbbwncb6a26dfeno4y7tda====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}}],\"hash\":\"tred5wpplerymsh7t7igex4fnuutxlhr\"},{\"name\":\"bzip2\",\"version\":\"1.0.8\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"generic\",\"debug\":false,\"pic\":false,\"shared\":true,\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"wa33h4h2abj7tx5cndixz7bdwu5fspdaf2kjlqsinnearayw6fra====\",\"dependencies\":[{\"name\":\"diffutils\",\"hash\":\"wv5v5egvtgk7i5o2z75aryqizhrj2tbx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}}],\"hash\":\"6jbb6sti377vgbxp7oojnq6vcmtohvfv\"},{\"name\":\"gdbm\",\"version\":\"1.23\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"liepxl6phlcxbgfmibxafhewtihlgaa4x3hko37ckqlafhxkrgdq====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"readline\",\"hash\":\"ufpo4rfi2bjfd7resfecipprikpnqsea\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}}],\"hash\":\"lnnh7diebrw72y4lyin5e7jzevoorlom\"},{\"name\":\"readline\",\"version\":\"8.2\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"patches\":[\"bbf97f1ec40a929edab5aa81998c1e2ef435436c597754916e6a5868f273aff7\"],\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"patches\":[\"bbf97f1ec40a929edab5aa81998c1e2ef435436c597754916e6a5868f273aff7\"],\"package_hash\":\"oww6dmr7xqgg6j7iiluonxbcl4irqnnrip4vfkjdwujncwnuhwuq====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"ncurses\",\"hash\":\"jo7zzsdjsgxf4e3hmzblef2aobtdttdh\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}}],\"hash\":\"ufpo4rfi2bjfd7resfecipprikpnqsea\"},{\"name\":\"numactl\",\"version\":\"2.0.14\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"patches\":[\"4e1d78cbbb85de625bad28705e748856033eaafab92a66dffd383a3d7e00cc94\",\"62fc8a8bf7665a60e8f4c93ebbd535647cebf74198f7afafec4c085a8825c006\",\"ff37630df599cfabf0740518b91ec8daaf18e8f288b19adaae5364dc1f6b2296\"],\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"patches\":[\"4e1d78cbbb85de625bad28705e748856033eaafab92a66dffd383a3d7e00cc94\",\"62fc8a8bf7665a60e8f4c93ebbd535647cebf74198f7afafec4c085a8825c006\",\"ff37630df599cfabf0740518b91ec8daaf18e8f288b19adaae5364dc1f6b2296\"],\"package_hash\":\"yfrelh4vcagcl7wantudtwpccnburhkpgqyvhgmxrzeo3wdmck4q====\",\"dependencies\":[{\"name\":\"autoconf\",\"hash\":\"x5x2gfzirnsgzigwozxlk7g64qznupuv\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"automake\",\"hash\":\"iwukefi4aiaowiewxbk5q6ltiieokqwt\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"libtool\",\"hash\":\"qrrxoyl2oumptu6vaqhtw5yp4xvtr4n6\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"m4\",\"hash\":\"5lgfm2gzk6verj6y7xeumbnh3jvkomst\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}}],\"hash\":\"n5syhpcr7tfwozy3q6nzs7w64m3xzpcw\"},{\"name\":\"autoconf\",\"version\":\"2.72\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"o2p7sd2y7u3arqkk24aap54uarfgpxcdohyjbpcmw56nkbs27ueq====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"m4\",\"hash\":\"5lgfm2gzk6verj6y7xeumbnh3jvkomst\",\"parameters\":{\"deptypes\":[\"build\",\"run\"],\"virtuals\":[]}},{\"name\":\"perl\",\"hash\":\"tefzfi32owmoallxvbj6s6rjltjrlu4h\",\"parameters\":{\"deptypes\":[\"build\",\"run\"],\"virtuals\":[]}}],\"hash\":\"x5x2gfzirnsgzigwozxlk7g64qznupuv\"},{\"name\":\"automake\",\"version\":\"1.16.5\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"mwdviv4g6xu2ttfs6dnzmwbofpxa4vke3y5egbb6w4fesykvnbda====\",\"dependencies\":[{\"name\":\"autoconf\",\"hash\":\"x5x2gfzirnsgzigwozxlk7g64qznupuv\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"perl\",\"hash\":\"tefzfi32owmoallxvbj6s6rjltjrlu4h\",\"parameters\":{\"deptypes\":[\"build\",\"run\"],\"virtuals\":[]}}],\"hash\":\"iwukefi4aiaowiewxbk5q6ltiieokqwt\"},{\"name\":\"openssh\",\"version\":\"9.7p1\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"gssapi\":true,\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"kqq3i67lvcw7go2gzmo3z3glfbvwvehgqigvr3j7gb4plzxd7gzq====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"krb5\",\"hash\":\"morem4awo74qyiylnnfqwqb3674qm4uq\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}},{\"name\":\"libedit\",\"hash\":\"hl5eoiso5w5gw7wr2yeskyt2yjw6272e\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}},{\"name\":\"libxcrypt\",\"hash\":\"ewik2ycp22lc2r5wzvjozq3wwjddtnly\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"ncurses\",\"hash\":\"jo7zzsdjsgxf4e3hmzblef2aobtdttdh\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}},{\"name\":\"openssl\",\"hash\":\"utn6hyzi67f4gprjccvirq27qncnt6ui\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}},{\"name\":\"zlib\",\"hash\":\"ghyahwq7hwqkrdzfqc2tvltjau66xlu2\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[\"zlib-api\"]}}],\"hash\":\"7bmu7h7iyinccp6ttz4d3imb35luekir\"},{\"name\":\"krb5\",\"version\":\"1.20.1\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"shared\":true,\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"6dnh53v2vdwar4klwf7uq4bcr3qmw7ffdhnosxn2lvcde62el4ya====\",\"dependencies\":[{\"name\":\"bison\",\"hash\":\"ayu572meqxkigd4tlsk3mxsvrqivbsgz\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"diffutils\",\"hash\":\"wv5v5egvtgk7i5o2z75aryqizhrj2tbx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"findutils\",\"hash\":\"jq647cucbvtjukndl4crqcnruwqhri75\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"gettext\",\"hash\":\"73vxsmccc4bpx4xyfh7amamyve6b663w\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"openssl\",\"hash\":\"utn6hyzi67f4gprjccvirq27qncnt6ui\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}},{\"name\":\"perl\",\"hash\":\"tefzfi32owmoallxvbj6s6rjltjrlu4h\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}}],\"hash\":\"morem4awo74qyiylnnfqwqb3674qm4uq\"},{\"name\":\"bison\",\"version\":\"3.8.2\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"color\":false,\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"d4j62fwvuxqbiez32ltjnhu47ac425wjebsy6fhoptv6saxazcxq====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"m4\",\"hash\":\"5lgfm2gzk6verj6y7xeumbnh3jvkomst\",\"parameters\":{\"deptypes\":[\"build\",\"run\"],\"virtuals\":[]}}],\"hash\":\"ayu572meqxkigd4tlsk3mxsvrqivbsgz\"},{\"name\":\"gettext\",\"version\":\"0.22.4\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"bzip2\":true,\"curses\":true,\"git\":true,\"libunistring\":false,\"libxml2\":true,\"pic\":true,\"shared\":true,\"tar\":true,\"xz\":true,\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"qzysxfubq7fs2myf6smnxb3sej4gs7kfnquadzjbem6wyphedqwa====\",\"dependencies\":[{\"name\":\"bzip2\",\"hash\":\"6jbb6sti377vgbxp7oojnq6vcmtohvfv\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}},{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"libiconv\",\"hash\":\"eir5gjfhktyjqur5t6cvmr3qe7gthdw5\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[\"iconv\"]}},{\"name\":\"libxml2\",\"hash\":\"klnmst2mj47bynyzfvlouu3yldhaqitz\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}},{\"name\":\"ncurses\",\"hash\":\"jo7zzsdjsgxf4e3hmzblef2aobtdttdh\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}},{\"name\":\"tar\",\"hash\":\"cejava7vbdt7c4i7ybrkmiebvapnpxbr\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}},{\"name\":\"xz\",\"hash\":\"z573zw6fj3c32be5fvcwzzj3z6unnzdw\",\"parameters\":{\"deptypes\":[\"build\",\"link\",\"run\"],\"virtuals\":[]}}],\"hash\":\"73vxsmccc4bpx4xyfh7amamyve6b663w\"},{\"name\":\"tar\",\"version\":\"1.34\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"zip\":\"pigz\",\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"lenbnsjf43v4emz5uiadpdganwxydlkzcci4cue7qwyx7cfuz2jq====\",\"dependencies\":[{\"name\":\"bzip2\",\"hash\":\"6jbb6sti377vgbxp7oojnq6vcmtohvfv\",\"parameters\":{\"deptypes\":[\"run\"],\"virtuals\":[]}},{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"libiconv\",\"hash\":\"eir5gjfhktyjqur5t6cvmr3qe7gthdw5\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[\"iconv\"]}},{\"name\":\"pigz\",\"hash\":\"atjfmyrlylolukltmrhmqomoq3l3wrom\",\"parameters\":{\"deptypes\":[\"run\"],\"virtuals\":[]}},{\"name\":\"xz\",\"hash\":\"z573zw6fj3c32be5fvcwzzj3z6unnzdw\",\"parameters\":{\"deptypes\":[\"run\"],\"virtuals\":[]}},{\"name\":\"zstd\",\"hash\":\"htbfs5asbmqzt7tckgeuo4y775pcsu3w\",\"parameters\":{\"deptypes\":[\"run\"],\"virtuals\":[]}}],\"hash\":\"cejava7vbdt7c4i7ybrkmiebvapnpxbr\"},{\"name\":\"pigz\",\"version\":\"2.8\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"makefile\",\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"4w67lflje4giekjg4ie2vpyuiunjcumo6geofykvon3hodllp42q====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"zlib\",\"hash\":\"ghyahwq7hwqkrdzfqc2tvltjau66xlu2\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[\"zlib-api\"]}}],\"hash\":\"atjfmyrlylolukltmrhmqomoq3l3wrom\"},{\"name\":\"zstd\",\"version\":\"1.5.6\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"makefile\",\"compression\":[\"none\"],\"libs\":[\"shared\",\"static\"],\"programs\":true,\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"uvmrov4c6unft6o4yd3jk3uqvweua3uhwdli4sw7h5wvklaf5t3q====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}}],\"hash\":\"htbfs5asbmqzt7tckgeuo4y775pcsu3w\"},{\"name\":\"libedit\",\"version\":\"3.1-20230828\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"2ichxco2wqnr7e7veujbrhypqotk2de2qagezcgx62uq6v7jbhoa====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"ncurses\",\"hash\":\"jo7zzsdjsgxf4e3hmzblef2aobtdttdh\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}},{\"name\":\"pkgconf\",\"hash\":\"p2yzqqpdyggztycl54m52cflilcwiyhj\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[\"pkgconfig\"]}}],\"hash\":\"hl5eoiso5w5gw7wr2yeskyt2yjw6272e\"},{\"name\":\"libxcrypt\",\"version\":\"4.4.35\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"obsolete_api\":false,\"patches\":[\"4885da3afc027999d7cc3c231de7fc6f3c8b119847536e0fc106bc846c617b9b\"],\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"patches\":[\"4885da3afc027999d7cc3c231de7fc6f3c8b119847536e0fc106bc846c617b9b\"],\"package_hash\":\"dam6cqot2l4nfh6nk3jidk7u2pr2p534tw7446ejqwttqitr4zea====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"perl\",\"hash\":\"tefzfi32owmoallxvbj6s6rjltjrlu4h\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}}],\"hash\":\"ewik2ycp22lc2r5wzvjozq3wwjddtnly\"},{\"name\":\"pkgconf\",\"version\":\"1.9.5\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64_v4\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"mwcvsiv3j27l74xz4dejqp54ushfxa36bj25mwwg4dciaphqzpca====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"ik2zmnslchnhz5i5nih3kyfuwyqmmbvj\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"7r3luxtrfar5asl3ghe5yyxgau3qmpl2\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"okobutgmbxcgxo7ecjdwdsfqm24b2rsv\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}}],\"hash\":\"rcyuhnxeauub5igbztezolqrrowxk5wg\"},{\"name\":\"pmix\",\"version\":\"5.0.1\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"docs\":false,\"pmi_backwards_compatibility\":true,\"python\":false,\"restful\":false,\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"cscwabesbiokragt3qr6y3qeokebhkru3o3pdq7xknkfpyooqpva====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"cwqmlcmvqm3gvkh4bm347ex2rprelabu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"3t3jkbv5unk3qyk63t3bbpcv5bhgxz2q\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"qcfxmqafieujpv7b53jh2tbxdk7fmanx\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"hwloc\",\"hash\":\"lvpcx5mrbupmp7ks7dyii5sitlchglp4\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}},{\"name\":\"libevent\",\"hash\":\"75k2c5cvx3tejrfj6hvje75tyosnefag\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}},{\"name\":\"pkgconf\",\"hash\":\"p2yzqqpdyggztycl54m52cflilcwiyhj\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[\"pkgconfig\"]}}],\"hash\":\"mrf4ytu7yjpng4kcl7qf5p3g5v7isy3x\"},{\"name\":\"slurm\",\"version\":\"hpc2\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":\"x86_64_v4\"},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"cgroup\":false,\"gtk\":false,\"hdf5\":false,\"hwloc\":false,\"mariadb\":false,\"nvml\":false,\"pam\":false,\"pmix\":false,\"readline\":true,\"restd\":false,\"rsmi\":false,\"sysconfdir\":\"PREFIX/etc\",\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"external\":{\"path\":\"/opt/slurm/\",\"module\":null,\"extra_attributes\":{}},\"package_hash\":\"hbujddttmvfajqee433mwhmpawqn4j7s4clrgxhdcmiubbuxjhea====\",\"hash\":\"75xnned7c5kziiniw6bastmg5okbxxbb\"}]}}\r\n```\nLooking into this. It seems the issue is that we do not emit a `compatible_libc` fact in the ASP logic program for the external `slurm` in the `openmpi`. That causes a cascade of incompatibilities, for any concrete spec using that `slurm`.\nI'll submit a PR asap, but this diff:\r\n```diff\r\ndiff --git a/lib/spack/spack/solver/libc_compatibility.lp b/lib/spack/spack/solver/libc_compatibility.lp\r\nindex 28c7c57fda..5efbcd8667 100644\r\n--- a/lib/spack/spack/solver/libc_compatibility.lp\r\n+++ b/lib/spack/spack/solver/libc_compatibility.lp\r\n@@ -10,12 +10,13 @@\r\n %=============================================================================\r\n \r\n % A package cannot be reused if the libc is not compatible with it\r\n-:- provider(node(X, LibcPackage), node(0, \"libc\")),\r\n- attr(\"version\", node(X, LibcPackage), LibcVersion),\r\n- attr(\"hash\", node(R, ReusedPackage), Hash),\r\n- % Libc packages can be reused without the \"compatible_libc\" attribute\r\n- ReusedPackage != LibcPackage,\r\n- not attr(\"compatible_libc\", node(R, ReusedPackage), LibcPackage, LibcVersion).\r\n+error(100, \"Cannot reuse {0} since we cannot determine libc compatibility\", ReusedPackage)\r\n+ :- provider(node(X, LibcPackage), node(0, \"libc\")),\r\n+ attr(\"version\", node(X, LibcPackage), LibcVersion),\r\n+ attr(\"hash\", node(R, ReusedPackage), Hash),\r\n+ % Libc packages can be reused without the \"compatible_libc\" attribute\r\n+ ReusedPackage != LibcPackage,\r\n+ not attr(\"compatible_libc\", node(R, ReusedPackage), LibcPackage, LibcVersion).\r\n \r\n % Check whether the DAG has any built package\r\n has_built_packages() :- build(X), not external(X).\r\n\r\n```\r\nshould be sufficient to give a better error message:\r\n```console\r\n# spack solve sombrero ^/boemme\r\n==> Error: concretization failed for the following reasons:\r\n\r\n 1. Cannot reuse slurm since we cannot determine libc compatibility\r\n\r\n```\n@snowbird294 This other diff should hopefully fix your issue:\r\n```diff\r\ndiff --git a/lib/spack/spack/solver/asp.py b/lib/spack/spack/solver/asp.py\r\nindex 0083dbc070..10b9b2b66b 100644\r\n--- a/lib/spack/spack/solver/asp.py\r\n+++ b/lib/spack/spack/solver/asp.py\r\n@@ -1939,6 +1939,13 @@ def _spec_clauses(\r\n for virtual in virtuals:\r\n clauses.append(fn.attr(\"virtual_on_incoming_edges\", spec.name, virtual))\r\n \r\n+ # If the spec is external and concrete, we allow all the libcs on the system\r\n+ if spec.external and spec.concrete and using_libc_compatibility():\r\n+ for libc in self.libcs:\r\n+ clauses.append(\r\n+ fn.attr(\"compatible_libc\", spec.name, libc.name, libc.version)\r\n+ )\r\n+\r\n # add all clauses from dependencies\r\n if transitive:\r\n # TODO: Eventually distinguish 2 deps on the same pkg (build and link)\r\n\r\n```\nI super appreciate the error message update and the patch. I can confirm that the solver change worked like a charm:\r\n\r\nAbbreviated:\r\n```\r\n[+] /apps/spack-managed/gcc-11.3.1/openmpi-4.1.6-boemme3rube26svzrpvwcsdqgcasfx46\r\n==> Installing gromacs-2024.1-mvbmugeif5x27jzbvjhc2v52tokp2dwb [36/36]\r\n```\nThe patch worked for openmpi and my most recent intel-oneapi-compiler+mpi, but I'm getting the bug when I move to building against some older compiler+mpis. Do i need to specify them differently for stuff that was built with previous versions of spack?\r\n\r\n$ spack spec hdf5@1.14.3 +fortran +mpi %oneapi@2022.2.1 ^intel-oneapi-mpi/zfmfvyc\r\n```\r\n==> Warning: config:terminal_title has been replaced by install_status and is ignored\r\n==> Error: concretization failed for the following reasons:\r\n\r\n 1. Cannot reuse intel-oneapi-mpi since we cannot determine libc compatibility\r\n```\r\nspack spec --json hdf5@1.14.3 +fortran +mpi %oneapi@2022.2.1 ^intel-oneapi-mpi@2021.7.1%oneapi@2022.2.1\r\n```\r\n{\"spec\":{\"_meta\":{\"version\":4},\"nodes\":[{\"name\":\"hdf5\",\"version\":\"1.14.3\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":{\"name\":\"icelake\",\"vendor\":\"GenuineIntel\",\"features\":[\"adx\",\"aes\",\"avx\",\"avx2\",\"avx512_bitalg\",\"avx512_vbmi2\",\"avx512_vnni\",\"avx512_vpopcntdq\",\"avx512bw\",\"avx512cd\",\"avx512dq\",\"avx512f\",\"avx512ifma\",\"avx512vbmi\",\"avx512vl\",\"bmi1\",\"bmi2\",\"clflushopt\",\"clwb\",\"f16c\",\"fma\",\"gfni\",\"mmx\",\"movbe\",\"pclmulqdq\",\"popcnt\",\"rdpid\",\"rdrand\",\"rdseed\",\"sha_ni\",\"sse\",\"sse2\",\"sse4_1\",\"sse4_2\",\"ssse3\",\"vaes\",\"vpclmulqdq\",\"xsavec\",\"xsaveopt\"],\"generation\":0,\"parents\":[\"cascadelake\",\"cannonlake\"]}},\"compiler\":{\"name\":\"oneapi\",\"version\":\"2022.2.1\"},\"namespace\":\"builtin\",\"parameters\":{\"api\":\"default\",\"build_system\":\"cmake\",\"build_type\":\"Release\",\"cxx\":false,\"fortran\":true,\"generator\":\"make\",\"hl\":false,\"ipo\":false,\"java\":false,\"map\":false,\"mpi\":true,\"patches\":[\"82088c8da2dcd8d138e60a1bb23f9fc203ea5f7bb40c698ca1d549b82dd40bc0\"],\"shared\":true,\"subfiling\":false,\"szip\":false,\"threadsafe\":false,\"tools\":true,\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"patches\":[\"82088c8da2dcd8d138e60a1bb23f9fc203ea5f7bb40c698ca1d549b82dd40bc0\"],\"package_hash\":\"agy4xm555oj33ediefaytqwk3fbihnnb6r3nfkzeph3p7qtnr5ua====\",\"dependencies\":[{\"name\":\"cmake\",\"hash\":\"4iht4jyvbaw2e3pqag4zsspd7u7g2ydu\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"gcc-runtime\",\"hash\":\"nipcc5q7zllmdtc5xiemoag5wnhcwylu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"fortran-rt\"]}},{\"name\":\"glibc\",\"hash\":\"djgafiw5e2chlxsdulqlu7cx53xxkerl\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"efjw6dn4g55pcbdxg46ysegcya73bvvq\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"intel-oneapi-mpi\",\"hash\":\"x5sasm44ih5jk2t62eazc54cc2ns6wuv\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[\"mpi\"]}},{\"name\":\"intel-oneapi-runtime\",\"hash\":\"guqivuoq2pdsvluoen4gwyll5fwpv5xv\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libifcore\"]}},{\"name\":\"pkgconf\",\"hash\":\"etqnqr6sdbdtq7mulz2gg3dsy4ot6sg2\",\"parameters\":{\"deptypes\":[\"run\"],\"virtuals\":[\"pkgconfig\"]}},{\"name\":\"zlib-ng\",\"hash\":\"v4qazgb6srkvkw7e5r4tsvuc2mrut2mk\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[\"zlib-api\"]}}],\"hash\":\"siuozvf46bnyzv6l2pcx2qvdqnz4yrhq\"},{\"name\":\"cmake\",\"version\":\"3.27.9\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":{\"name\":\"icelake\",\"vendor\":\"GenuineIntel\",\"features\":[\"adx\",\"aes\",\"avx\",\"avx2\",\"avx512_bitalg\",\"avx512_vbmi2\",\"avx512_vnni\",\"avx512_vpopcntdq\",\"avx512bw\",\"avx512cd\",\"avx512dq\",\"avx512f\",\"avx512ifma\",\"avx512vbmi\",\"avx512vl\",\"bmi1\",\"bmi2\",\"clflushopt\",\"clwb\",\"f16c\",\"fma\",\"gfni\",\"mmx\",\"movbe\",\"pclmulqdq\",\"popcnt\",\"rdpid\",\"rdrand\",\"rdseed\",\"sha_ni\",\"sse\",\"sse2\",\"sse4_1\",\"sse4_2\",\"ssse3\",\"vaes\",\"vpclmulqdq\",\"xsavec\",\"xsaveopt\"],\"generation\":0,\"parents\":[\"cascadelake\",\"cannonlake\"]}},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"generic\",\"build_type\":\"Release\",\"doc\":false,\"ncurses\":true,\"ownlibs\":true,\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"4nfzzuirvovagbkvkxjvtkvwyokgaekv3iyo3emo7h2ai42uofmq====\",\"dependencies\":[{\"name\":\"curl\",\"hash\":\"aafls2q7mhhdrppw6ovrrnn5mkqbcrcx\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}},{\"name\":\"gcc-runtime\",\"hash\":\"nipcc5q7zllmdtc5xiemoag5wnhcwylu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"djgafiw5e2chlxsdulqlu7cx53xxkerl\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"efjw6dn4g55pcbdxg46ysegcya73bvvq\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}},{\"name\":\"ncurses\",\"hash\":\"kzin2ufubqk4xaksvidv3hnz6ygevuca\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}},{\"name\":\"zlib-ng\",\"hash\":\"v4qazgb6srkvkw7e5r4tsvuc2mrut2mk\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[\"zlib-api\"]}}],\"hash\":\"4iht4jyvbaw2e3pqag4zsspd7u7g2ydu\"},{\"name\":\"curl\",\"version\":\"8.6.0\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":{\"name\":\"icelake\",\"vendor\":\"GenuineIntel\",\"features\":[\"adx\",\"aes\",\"avx\",\"avx2\",\"avx512_bitalg\",\"avx512_vbmi2\",\"avx512_vnni\",\"avx512_vpopcntdq\",\"avx512bw\",\"avx512cd\",\"avx512dq\",\"avx512f\",\"avx512ifma\",\"avx512vbmi\",\"avx512vl\",\"bmi1\",\"bmi2\",\"clflushopt\",\"clwb\",\"f16c\",\"fma\",\"gfni\",\"mmx\",\"movbe\",\"pclmulqdq\",\"popcnt\",\"rdpid\",\"rdrand\",\"rdseed\",\"sha_ni\",\"sse\",\"sse2\",\"sse4_1\",\"sse4_2\",\"ssse3\",\"vaes\",\"vpclmulqdq\",\"xsavec\",\"xsaveopt\"],\"generation\":0,\"parents\":[\"cascadelake\",\"cannonlake\"]}},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"gssapi\":false,\"ldap\":false,\"libidn2\":false,\"librtmp\":false,\"libs\":[\"shared\",\"static\"],\"libssh\":false,\"libssh2\":false,\"nghttp2\":true,\"tls\":[\"openssl\"],\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"pnrnxi25vp63zdpaf2uyua3647cabp2nlsvwshbaen7meqjdnqxq====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"nipcc5q7zllmdtc5xiemoag5wnhcwylu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"djgafiw5e2chlxsdulqlu7cx53xxkerl\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"efjw6dn4g55pcbdxg46ysegcya73bvvq\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"nghttp2\",\"hash\":\"7pb3p76ue5n46nyianfpxqbaopwhxhyt\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}},{\"name\":\"openssl\",\"hash\":\"czc6yjm4v62ixic66w4lla765bnyz2xa\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}},{\"name\":\"pkgconf\",\"hash\":\"etqnqr6sdbdtq7mulz2gg3dsy4ot6sg2\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[\"pkgconfig\"]}},{\"name\":\"zlib-ng\",\"hash\":\"v4qazgb6srkvkw7e5r4tsvuc2mrut2mk\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[\"zlib-api\"]}}],\"hash\":\"aafls2q7mhhdrppw6ovrrnn5mkqbcrcx\"},{\"name\":\"gcc-runtime\",\"version\":\"11.3.1\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":{\"name\":\"icelake\",\"vendor\":\"GenuineIntel\",\"features\":[\"adx\",\"aes\",\"avx\",\"avx2\",\"avx512_bitalg\",\"avx512_vbmi2\",\"avx512_vnni\",\"avx512_vpopcntdq\",\"avx512bw\",\"avx512cd\",\"avx512dq\",\"avx512f\",\"avx512ifma\",\"avx512vbmi\",\"avx512vl\",\"bmi1\",\"bmi2\",\"clflushopt\",\"clwb\",\"f16c\",\"fma\",\"gfni\",\"mmx\",\"movbe\",\"pclmulqdq\",\"popcnt\",\"rdpid\",\"rdrand\",\"rdseed\",\"sha_ni\",\"sse\",\"sse2\",\"sse4_1\",\"sse4_2\",\"ssse3\",\"vaes\",\"vpclmulqdq\",\"xsavec\",\"xsaveopt\"],\"generation\":0,\"parents\":[\"cascadelake\",\"cannonlake\"]}},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"generic\",\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"krijaq53a64rpa6awsdsvv7be2somkctk4mopff6pcpyj6sr7diq====\",\"dependencies\":[{\"name\":\"glibc\",\"hash\":\"djgafiw5e2chlxsdulqlu7cx53xxkerl\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}}],\"hash\":\"nipcc5q7zllmdtc5xiemoag5wnhcwylu\"},{\"name\":\"glibc\",\"version\":\"2.34\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":{\"name\":\"icelake\",\"vendor\":\"GenuineIntel\",\"features\":[\"adx\",\"aes\",\"avx\",\"avx2\",\"avx512_bitalg\",\"avx512_vbmi2\",\"avx512_vnni\",\"avx512_vpopcntdq\",\"avx512bw\",\"avx512cd\",\"avx512dq\",\"avx512f\",\"avx512ifma\",\"avx512vbmi\",\"avx512vl\",\"bmi1\",\"bmi2\",\"clflushopt\",\"clwb\",\"f16c\",\"fma\",\"gfni\",\"mmx\",\"movbe\",\"pclmulqdq\",\"popcnt\",\"rdpid\",\"rdrand\",\"rdseed\",\"sha_ni\",\"sse\",\"sse2\",\"sse4_1\",\"sse4_2\",\"ssse3\",\"vaes\",\"vpclmulqdq\",\"xsavec\",\"xsaveopt\"],\"generation\":0,\"parents\":[\"cascadelake\",\"cannonlake\"]}},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"external\":{\"path\":\"/usr\",\"module\":null,\"extra_attributes\":{}},\"package_hash\":\"rs42wjizh5ictyrhppkb7m7volfqcdvjk5pe35kuo7qyqjy2ucpq====\",\"hash\":\"djgafiw5e2chlxsdulqlu7cx53xxkerl\"},{\"name\":\"gmake\",\"version\":\"4.4.1\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":{\"name\":\"icelake\",\"vendor\":\"GenuineIntel\",\"features\":[\"adx\",\"aes\",\"avx\",\"avx2\",\"avx512_bitalg\",\"avx512_vbmi2\",\"avx512_vnni\",\"avx512_vpopcntdq\",\"avx512bw\",\"avx512cd\",\"avx512dq\",\"avx512f\",\"avx512ifma\",\"avx512vbmi\",\"avx512vl\",\"bmi1\",\"bmi2\",\"clflushopt\",\"clwb\",\"f16c\",\"fma\",\"gfni\",\"mmx\",\"movbe\",\"pclmulqdq\",\"popcnt\",\"rdpid\",\"rdrand\",\"rdseed\",\"sha_ni\",\"sse\",\"sse2\",\"sse4_1\",\"sse4_2\",\"ssse3\",\"vaes\",\"vpclmulqdq\",\"xsavec\",\"xsaveopt\"],\"generation\":0,\"parents\":[\"cascadelake\",\"cannonlake\"]}},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"generic\",\"guile\":false,\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"ghstvqlc3r7kgiikwx24xhcxdxcqdk5viinrzgm2mssqigfonika====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"nipcc5q7zllmdtc5xiemoag5wnhcwylu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"djgafiw5e2chlxsdulqlu7cx53xxkerl\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}}],\"hash\":\"efjw6dn4g55pcbdxg46ysegcya73bvvq\"},{\"name\":\"nghttp2\",\"version\":\"1.57.0\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":{\"name\":\"icelake\",\"vendor\":\"GenuineIntel\",\"features\":[\"adx\",\"aes\",\"avx\",\"avx2\",\"avx512_bitalg\",\"avx512_vbmi2\",\"avx512_vnni\",\"avx512_vpopcntdq\",\"avx512bw\",\"avx512cd\",\"avx512dq\",\"avx512f\",\"avx512ifma\",\"avx512vbmi\",\"avx512vl\",\"bmi1\",\"bmi2\",\"clflushopt\",\"clwb\",\"f16c\",\"fma\",\"gfni\",\"mmx\",\"movbe\",\"pclmulqdq\",\"popcnt\",\"rdpid\",\"rdrand\",\"rdseed\",\"sha_ni\",\"sse\",\"sse2\",\"sse4_1\",\"sse4_2\",\"ssse3\",\"vaes\",\"vpclmulqdq\",\"xsavec\",\"xsaveopt\"],\"generation\":0,\"parents\":[\"cascadelake\",\"cannonlake\"]}},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"an6j5vcr2fqzbz5rhpat55twtjz2zg63emluqnh2znach4lpivna====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"nipcc5q7zllmdtc5xiemoag5wnhcwylu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"djgafiw5e2chlxsdulqlu7cx53xxkerl\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"efjw6dn4g55pcbdxg46ysegcya73bvvq\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"pkgconf\",\"hash\":\"etqnqr6sdbdtq7mulz2gg3dsy4ot6sg2\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[\"pkgconfig\"]}}],\"hash\":\"7pb3p76ue5n46nyianfpxqbaopwhxhyt\"},{\"name\":\"pkgconf\",\"version\":\"1.9.5\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":{\"name\":\"icelake\",\"vendor\":\"GenuineIntel\",\"features\":[\"adx\",\"aes\",\"avx\",\"avx2\",\"avx512_bitalg\",\"avx512_vbmi2\",\"avx512_vnni\",\"avx512_vpopcntdq\",\"avx512bw\",\"avx512cd\",\"avx512dq\",\"avx512f\",\"avx512ifma\",\"avx512vbmi\",\"avx512vl\",\"bmi1\",\"bmi2\",\"clflushopt\",\"clwb\",\"f16c\",\"fma\",\"gfni\",\"mmx\",\"movbe\",\"pclmulqdq\",\"popcnt\",\"rdpid\",\"rdrand\",\"rdseed\",\"sha_ni\",\"sse\",\"sse2\",\"sse4_1\",\"sse4_2\",\"ssse3\",\"vaes\",\"vpclmulqdq\",\"xsavec\",\"xsaveopt\"],\"generation\":0,\"parents\":[\"cascadelake\",\"cannonlake\"]}},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"mwcvsiv3j27l74xz4dejqp54ushfxa36bj25mwwg4dciaphqzpca====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"nipcc5q7zllmdtc5xiemoag5wnhcwylu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"djgafiw5e2chlxsdulqlu7cx53xxkerl\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"efjw6dn4g55pcbdxg46ysegcya73bvvq\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}}],\"hash\":\"etqnqr6sdbdtq7mulz2gg3dsy4ot6sg2\"},{\"name\":\"openssl\",\"version\":\"3.2.1\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":{\"name\":\"icelake\",\"vendor\":\"GenuineIntel\",\"features\":[\"adx\",\"aes\",\"avx\",\"avx2\",\"avx512_bitalg\",\"avx512_vbmi2\",\"avx512_vnni\",\"avx512_vpopcntdq\",\"avx512bw\",\"avx512cd\",\"avx512dq\",\"avx512f\",\"avx512ifma\",\"avx512vbmi\",\"avx512vl\",\"bmi1\",\"bmi2\",\"clflushopt\",\"clwb\",\"f16c\",\"fma\",\"gfni\",\"mmx\",\"movbe\",\"pclmulqdq\",\"popcnt\",\"rdpid\",\"rdrand\",\"rdseed\",\"sha_ni\",\"sse\",\"sse2\",\"sse4_1\",\"sse4_2\",\"ssse3\",\"vaes\",\"vpclmulqdq\",\"xsavec\",\"xsaveopt\"],\"generation\":0,\"parents\":[\"cascadelake\",\"cannonlake\"]}},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"generic\",\"certs\":\"mozilla\",\"docs\":false,\"shared\":true,\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"du3lt3hxvqqt253xxxjwffdzf24tzw6czxerawyhyk4oghkx46hq====\",\"dependencies\":[{\"name\":\"ca-certificates-mozilla\",\"hash\":\"hcovmqwhpt4swx3hcydvjmtrnooan6no\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"gcc-runtime\",\"hash\":\"nipcc5q7zllmdtc5xiemoag5wnhcwylu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"djgafiw5e2chlxsdulqlu7cx53xxkerl\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"efjw6dn4g55pcbdxg46ysegcya73bvvq\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"perl\",\"hash\":\"k3lta4eblnk6uuaznu7fossrlc3fv3g5\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"zlib-ng\",\"hash\":\"v4qazgb6srkvkw7e5r4tsvuc2mrut2mk\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[\"zlib-api\"]}}],\"hash\":\"czc6yjm4v62ixic66w4lla765bnyz2xa\"},{\"name\":\"ca-certificates-mozilla\",\"version\":\"2023-05-30\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":{\"name\":\"icelake\",\"vendor\":\"GenuineIntel\",\"features\":[\"adx\",\"aes\",\"avx\",\"avx2\",\"avx512_bitalg\",\"avx512_vbmi2\",\"avx512_vnni\",\"avx512_vpopcntdq\",\"avx512bw\",\"avx512cd\",\"avx512dq\",\"avx512f\",\"avx512ifma\",\"avx512vbmi\",\"avx512vl\",\"bmi1\",\"bmi2\",\"clflushopt\",\"clwb\",\"f16c\",\"fma\",\"gfni\",\"mmx\",\"movbe\",\"pclmulqdq\",\"popcnt\",\"rdpid\",\"rdrand\",\"rdseed\",\"sha_ni\",\"sse\",\"sse2\",\"sse4_1\",\"sse4_2\",\"ssse3\",\"vaes\",\"vpclmulqdq\",\"xsavec\",\"xsaveopt\"],\"generation\":0,\"parents\":[\"cascadelake\",\"cannonlake\"]}},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"generic\",\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"63npvwqwo2x7i6emvnklh4mhcn45gx2qzveorybh5h2inwr55sea====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"nipcc5q7zllmdtc5xiemoag5wnhcwylu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"djgafiw5e2chlxsdulqlu7cx53xxkerl\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}}],\"hash\":\"hcovmqwhpt4swx3hcydvjmtrnooan6no\"},{\"name\":\"perl\",\"version\":\"5.38.0\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":{\"name\":\"icelake\",\"vendor\":\"GenuineIntel\",\"features\":[\"adx\",\"aes\",\"avx\",\"avx2\",\"avx512_bitalg\",\"avx512_vbmi2\",\"avx512_vnni\",\"avx512_vpopcntdq\",\"avx512bw\",\"avx512cd\",\"avx512dq\",\"avx512f\",\"avx512ifma\",\"avx512vbmi\",\"avx512vl\",\"bmi1\",\"bmi2\",\"clflushopt\",\"clwb\",\"f16c\",\"fma\",\"gfni\",\"mmx\",\"movbe\",\"pclmulqdq\",\"popcnt\",\"rdpid\",\"rdrand\",\"rdseed\",\"sha_ni\",\"sse\",\"sse2\",\"sse4_1\",\"sse4_2\",\"ssse3\",\"vaes\",\"vpclmulqdq\",\"xsavec\",\"xsaveopt\"],\"generation\":0,\"parents\":[\"cascadelake\",\"cannonlake\"]}},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"generic\",\"cpanm\":true,\"opcode\":true,\"open\":true,\"patches\":[\"714e4d1c7496e6b23834e7c88da3d69139418860fbc488fe82fd226b450a4be7\"],\"shared\":true,\"threads\":true,\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"patches\":[\"714e4d1c7496e6b23834e7c88da3d69139418860fbc488fe82fd226b450a4be7\"],\"package_hash\":\"ta4gjmwr42nirckhlozeuijm5sx4pvf76ydo7ee5ixwwcttrhxha====\",\"dependencies\":[{\"name\":\"berkeley-db\",\"hash\":\"dnrg2h55nojiuoforoslnpuxxihodzst\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}},{\"name\":\"bzip2\",\"hash\":\"zgky63h2v2tfu4endmajspy43r4befmv\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}},{\"name\":\"gcc-runtime\",\"hash\":\"nipcc5q7zllmdtc5xiemoag5wnhcwylu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"gdbm\",\"hash\":\"zjihhrvvbv4k3vtbcd34gzwdknue2c77\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"djgafiw5e2chlxsdulqlu7cx53xxkerl\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"efjw6dn4g55pcbdxg46ysegcya73bvvq\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"zlib-ng\",\"hash\":\"v4qazgb6srkvkw7e5r4tsvuc2mrut2mk\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[\"zlib-api\"]}}],\"hash\":\"k3lta4eblnk6uuaznu7fossrlc3fv3g5\"},{\"name\":\"berkeley-db\",\"version\":\"18.1.40\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":{\"name\":\"icelake\",\"vendor\":\"GenuineIntel\",\"features\":[\"adx\",\"aes\",\"avx\",\"avx2\",\"avx512_bitalg\",\"avx512_vbmi2\",\"avx512_vnni\",\"avx512_vpopcntdq\",\"avx512bw\",\"avx512cd\",\"avx512dq\",\"avx512f\",\"avx512ifma\",\"avx512vbmi\",\"avx512vl\",\"bmi1\",\"bmi2\",\"clflushopt\",\"clwb\",\"f16c\",\"fma\",\"gfni\",\"mmx\",\"movbe\",\"pclmulqdq\",\"popcnt\",\"rdpid\",\"rdrand\",\"rdseed\",\"sha_ni\",\"sse\",\"sse2\",\"sse4_1\",\"sse4_2\",\"ssse3\",\"vaes\",\"vpclmulqdq\",\"xsavec\",\"xsaveopt\"],\"generation\":0,\"parents\":[\"cascadelake\",\"cannonlake\"]}},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"cxx\":true,\"docs\":false,\"patches\":[\"26090f418891757af46ac3b89a9f43d6eb5989f7a3dce3d1cfc99fba547203b3\",\"b231fcc4d5cff05e5c3a4814f6a5af0e9a966428dc2176540d2c05aff41de522\"],\"stl\":true,\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"patches\":[\"b231fcc4d5cff05e5c3a4814f6a5af0e9a966428dc2176540d2c05aff41de522\",\"26090f418891757af46ac3b89a9f43d6eb5989f7a3dce3d1cfc99fba547203b3\"],\"package_hash\":\"h57ydfn33zevvzctzzioiiwjwe362izbbwncb6a26dfeno4y7tda====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"nipcc5q7zllmdtc5xiemoag5wnhcwylu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"djgafiw5e2chlxsdulqlu7cx53xxkerl\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"efjw6dn4g55pcbdxg46ysegcya73bvvq\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}}],\"hash\":\"dnrg2h55nojiuoforoslnpuxxihodzst\"},{\"name\":\"bzip2\",\"version\":\"1.0.8\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":{\"name\":\"icelake\",\"vendor\":\"GenuineIntel\",\"features\":[\"adx\",\"aes\",\"avx\",\"avx2\",\"avx512_bitalg\",\"avx512_vbmi2\",\"avx512_vnni\",\"avx512_vpopcntdq\",\"avx512bw\",\"avx512cd\",\"avx512dq\",\"avx512f\",\"avx512ifma\",\"avx512vbmi\",\"avx512vl\",\"bmi1\",\"bmi2\",\"clflushopt\",\"clwb\",\"f16c\",\"fma\",\"gfni\",\"mmx\",\"movbe\",\"pclmulqdq\",\"popcnt\",\"rdpid\",\"rdrand\",\"rdseed\",\"sha_ni\",\"sse\",\"sse2\",\"sse4_1\",\"sse4_2\",\"ssse3\",\"vaes\",\"vpclmulqdq\",\"xsavec\",\"xsaveopt\"],\"generation\":0,\"parents\":[\"cascadelake\",\"cannonlake\"]}},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"generic\",\"debug\":false,\"pic\":false,\"shared\":true,\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"wa33h4h2abj7tx5cndixz7bdwu5fspdaf2kjlqsinnearayw6fra====\",\"dependencies\":[{\"name\":\"diffutils\",\"hash\":\"qfywa4r7olxsjep7uxg57am3xlfbdy4q\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"gcc-runtime\",\"hash\":\"nipcc5q7zllmdtc5xiemoag5wnhcwylu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"djgafiw5e2chlxsdulqlu7cx53xxkerl\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"efjw6dn4g55pcbdxg46ysegcya73bvvq\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}}],\"hash\":\"zgky63h2v2tfu4endmajspy43r4befmv\"},{\"name\":\"diffutils\",\"version\":\"3.10\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":{\"name\":\"icelake\",\"vendor\":\"GenuineIntel\",\"features\":[\"adx\",\"aes\",\"avx\",\"avx2\",\"avx512_bitalg\",\"avx512_vbmi2\",\"avx512_vnni\",\"avx512_vpopcntdq\",\"avx512bw\",\"avx512cd\",\"avx512dq\",\"avx512f\",\"avx512ifma\",\"avx512vbmi\",\"avx512vl\",\"bmi1\",\"bmi2\",\"clflushopt\",\"clwb\",\"f16c\",\"fma\",\"gfni\",\"mmx\",\"movbe\",\"pclmulqdq\",\"popcnt\",\"rdpid\",\"rdrand\",\"rdseed\",\"sha_ni\",\"sse\",\"sse2\",\"sse4_1\",\"sse4_2\",\"ssse3\",\"vaes\",\"vpclmulqdq\",\"xsavec\",\"xsaveopt\"],\"generation\":0,\"parents\":[\"cascadelake\",\"cannonlake\"]}},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"kbmzdy7mgklc24qx55cvx7kq7hceby2yav4fnf64gfdo7epdghwa====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"nipcc5q7zllmdtc5xiemoag5wnhcwylu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"djgafiw5e2chlxsdulqlu7cx53xxkerl\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"efjw6dn4g55pcbdxg46ysegcya73bvvq\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"libiconv\",\"hash\":\"pzx6rum67abeomw7yaw7tuqrqby2iyaa\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[\"iconv\"]}}],\"hash\":\"qfywa4r7olxsjep7uxg57am3xlfbdy4q\"},{\"name\":\"libiconv\",\"version\":\"1.17\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":{\"name\":\"icelake\",\"vendor\":\"GenuineIntel\",\"features\":[\"adx\",\"aes\",\"avx\",\"avx2\",\"avx512_bitalg\",\"avx512_vbmi2\",\"avx512_vnni\",\"avx512_vpopcntdq\",\"avx512bw\",\"avx512cd\",\"avx512dq\",\"avx512f\",\"avx512ifma\",\"avx512vbmi\",\"avx512vl\",\"bmi1\",\"bmi2\",\"clflushopt\",\"clwb\",\"f16c\",\"fma\",\"gfni\",\"mmx\",\"movbe\",\"pclmulqdq\",\"popcnt\",\"rdpid\",\"rdrand\",\"rdseed\",\"sha_ni\",\"sse\",\"sse2\",\"sse4_1\",\"sse4_2\",\"ssse3\",\"vaes\",\"vpclmulqdq\",\"xsavec\",\"xsaveopt\"],\"generation\":0,\"parents\":[\"cascadelake\",\"cannonlake\"]}},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"libs\":[\"shared\",\"static\"],\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"hx2hgtfxuafavkaf2rp3hjq7ttx4zuoyareduhx25lb4a5b64sua====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"nipcc5q7zllmdtc5xiemoag5wnhcwylu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"djgafiw5e2chlxsdulqlu7cx53xxkerl\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"efjw6dn4g55pcbdxg46ysegcya73bvvq\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}}],\"hash\":\"pzx6rum67abeomw7yaw7tuqrqby2iyaa\"},{\"name\":\"gdbm\",\"version\":\"1.23\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":{\"name\":\"icelake\",\"vendor\":\"GenuineIntel\",\"features\":[\"adx\",\"aes\",\"avx\",\"avx2\",\"avx512_bitalg\",\"avx512_vbmi2\",\"avx512_vnni\",\"avx512_vpopcntdq\",\"avx512bw\",\"avx512cd\",\"avx512dq\",\"avx512f\",\"avx512ifma\",\"avx512vbmi\",\"avx512vl\",\"bmi1\",\"bmi2\",\"clflushopt\",\"clwb\",\"f16c\",\"fma\",\"gfni\",\"mmx\",\"movbe\",\"pclmulqdq\",\"popcnt\",\"rdpid\",\"rdrand\",\"rdseed\",\"sha_ni\",\"sse\",\"sse2\",\"sse4_1\",\"sse4_2\",\"ssse3\",\"vaes\",\"vpclmulqdq\",\"xsavec\",\"xsaveopt\"],\"generation\":0,\"parents\":[\"cascadelake\",\"cannonlake\"]}},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"liepxl6phlcxbgfmibxafhewtihlgaa4x3hko37ckqlafhxkrgdq====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"nipcc5q7zllmdtc5xiemoag5wnhcwylu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"djgafiw5e2chlxsdulqlu7cx53xxkerl\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"efjw6dn4g55pcbdxg46ysegcya73bvvq\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"readline\",\"hash\":\"hh7rqxyubffuyfquah53iurwhlhhmlew\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}}],\"hash\":\"zjihhrvvbv4k3vtbcd34gzwdknue2c77\"},{\"name\":\"readline\",\"version\":\"8.2\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":{\"name\":\"icelake\",\"vendor\":\"GenuineIntel\",\"features\":[\"adx\",\"aes\",\"avx\",\"avx2\",\"avx512_bitalg\",\"avx512_vbmi2\",\"avx512_vnni\",\"avx512_vpopcntdq\",\"avx512bw\",\"avx512cd\",\"avx512dq\",\"avx512f\",\"avx512ifma\",\"avx512vbmi\",\"avx512vl\",\"bmi1\",\"bmi2\",\"clflushopt\",\"clwb\",\"f16c\",\"fma\",\"gfni\",\"mmx\",\"movbe\",\"pclmulqdq\",\"popcnt\",\"rdpid\",\"rdrand\",\"rdseed\",\"sha_ni\",\"sse\",\"sse2\",\"sse4_1\",\"sse4_2\",\"ssse3\",\"vaes\",\"vpclmulqdq\",\"xsavec\",\"xsaveopt\"],\"generation\":0,\"parents\":[\"cascadelake\",\"cannonlake\"]}},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"patches\":[\"bbf97f1ec40a929edab5aa81998c1e2ef435436c597754916e6a5868f273aff7\"],\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"patches\":[\"bbf97f1ec40a929edab5aa81998c1e2ef435436c597754916e6a5868f273aff7\"],\"package_hash\":\"oww6dmr7xqgg6j7iiluonxbcl4irqnnrip4vfkjdwujncwnuhwuq====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"nipcc5q7zllmdtc5xiemoag5wnhcwylu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"djgafiw5e2chlxsdulqlu7cx53xxkerl\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"efjw6dn4g55pcbdxg46ysegcya73bvvq\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"ncurses\",\"hash\":\"kzin2ufubqk4xaksvidv3hnz6ygevuca\",\"parameters\":{\"deptypes\":[\"build\",\"link\"],\"virtuals\":[]}}],\"hash\":\"hh7rqxyubffuyfquah53iurwhlhhmlew\"},{\"name\":\"ncurses\",\"version\":\"6.4\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":{\"name\":\"icelake\",\"vendor\":\"GenuineIntel\",\"features\":[\"adx\",\"aes\",\"avx\",\"avx2\",\"avx512_bitalg\",\"avx512_vbmi2\",\"avx512_vnni\",\"avx512_vpopcntdq\",\"avx512bw\",\"avx512cd\",\"avx512dq\",\"avx512f\",\"avx512ifma\",\"avx512vbmi\",\"avx512vl\",\"bmi1\",\"bmi2\",\"clflushopt\",\"clwb\",\"f16c\",\"fma\",\"gfni\",\"mmx\",\"movbe\",\"pclmulqdq\",\"popcnt\",\"rdpid\",\"rdrand\",\"rdseed\",\"sha_ni\",\"sse\",\"sse2\",\"sse4_1\",\"sse4_2\",\"ssse3\",\"vaes\",\"vpclmulqdq\",\"xsavec\",\"xsaveopt\"],\"generation\":0,\"parents\":[\"cascadelake\",\"cannonlake\"]}},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"abi\":\"none\",\"build_system\":\"autotools\",\"patches\":[\"7a351bc4953a4ab70dabdbea31c8db0c03d40ce505335f3b6687180dde24c535\"],\"symlinks\":false,\"termlib\":true,\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"patches\":[\"7a351bc4953a4ab70dabdbea31c8db0c03d40ce505335f3b6687180dde24c535\"],\"package_hash\":\"teiqf5a3joficvqvbs7y6m7yet7q5djmnqy27u2vy4jn265dcjrq====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"nipcc5q7zllmdtc5xiemoag5wnhcwylu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"djgafiw5e2chlxsdulqlu7cx53xxkerl\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"efjw6dn4g55pcbdxg46ysegcya73bvvq\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}},{\"name\":\"pkgconf\",\"hash\":\"etqnqr6sdbdtq7mulz2gg3dsy4ot6sg2\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[\"pkgconfig\"]}}],\"hash\":\"kzin2ufubqk4xaksvidv3hnz6ygevuca\"},{\"name\":\"zlib-ng\",\"version\":\"2.1.6\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":{\"name\":\"icelake\",\"vendor\":\"GenuineIntel\",\"features\":[\"adx\",\"aes\",\"avx\",\"avx2\",\"avx512_bitalg\",\"avx512_vbmi2\",\"avx512_vnni\",\"avx512_vpopcntdq\",\"avx512bw\",\"avx512cd\",\"avx512dq\",\"avx512f\",\"avx512ifma\",\"avx512vbmi\",\"avx512vl\",\"bmi1\",\"bmi2\",\"clflushopt\",\"clwb\",\"f16c\",\"fma\",\"gfni\",\"mmx\",\"movbe\",\"pclmulqdq\",\"popcnt\",\"rdpid\",\"rdrand\",\"rdseed\",\"sha_ni\",\"sse\",\"sse2\",\"sse4_1\",\"sse4_2\",\"ssse3\",\"vaes\",\"vpclmulqdq\",\"xsavec\",\"xsaveopt\"],\"generation\":0,\"parents\":[\"cascadelake\",\"cannonlake\"]}},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"compat\":true,\"new_strategies\":true,\"opt\":true,\"pic\":true,\"shared\":true,\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"mulfc7ykutrxflhqn3h6pqypexmggje35ldj6ekqxn53zdhrkpuq====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"nipcc5q7zllmdtc5xiemoag5wnhcwylu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"djgafiw5e2chlxsdulqlu7cx53xxkerl\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"gmake\",\"hash\":\"efjw6dn4g55pcbdxg46ysegcya73bvvq\",\"parameters\":{\"deptypes\":[\"build\"],\"virtuals\":[]}}],\"hash\":\"v4qazgb6srkvkw7e5r4tsvuc2mrut2mk\"},{\"name\":\"intel-oneapi-mpi\",\"version\":\"2021.7.1\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":{\"name\":\"icelake\",\"vendor\":\"GenuineIntel\",\"features\":[\"adx\",\"aes\",\"avx\",\"avx2\",\"avx512_bitalg\",\"avx512_vbmi2\",\"avx512_vnni\",\"avx512_vpopcntdq\",\"avx512bw\",\"avx512cd\",\"avx512dq\",\"avx512f\",\"avx512ifma\",\"avx512vbmi\",\"avx512vl\",\"bmi1\",\"bmi2\",\"clflushopt\",\"clwb\",\"f16c\",\"fma\",\"gfni\",\"mmx\",\"movbe\",\"pclmulqdq\",\"popcnt\",\"rdpid\",\"rdrand\",\"rdseed\",\"sha_ni\",\"sse\",\"sse2\",\"sse4_1\",\"sse4_2\",\"ssse3\",\"vaes\",\"vpclmulqdq\",\"xsavec\",\"xsaveopt\"],\"generation\":0,\"parents\":[\"cascadelake\",\"cannonlake\"]}},\"compiler\":{\"name\":\"oneapi\",\"version\":\"2022.2.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"generic\",\"envmods\":true,\"external-libfabric\":false,\"generic-names\":false,\"ilp64\":false,\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"bwh6tkwnf52ongidakktsvf2ofvn6lw4yulgckkox6ukgnu4rfra====\",\"dependencies\":[{\"name\":\"glibc\",\"hash\":\"djgafiw5e2chlxsdulqlu7cx53xxkerl\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"intel-oneapi-runtime\",\"hash\":\"guqivuoq2pdsvluoen4gwyll5fwpv5xv\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}}],\"hash\":\"x5sasm44ih5jk2t62eazc54cc2ns6wuv\"},{\"name\":\"intel-oneapi-runtime\",\"version\":\"2022.2.1\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":{\"name\":\"icelake\",\"vendor\":\"GenuineIntel\",\"features\":[\"adx\",\"aes\",\"avx\",\"avx2\",\"avx512_bitalg\",\"avx512_vbmi2\",\"avx512_vnni\",\"avx512_vpopcntdq\",\"avx512bw\",\"avx512cd\",\"avx512dq\",\"avx512f\",\"avx512ifma\",\"avx512vbmi\",\"avx512vl\",\"bmi1\",\"bmi2\",\"clflushopt\",\"clwb\",\"f16c\",\"fma\",\"gfni\",\"mmx\",\"movbe\",\"pclmulqdq\",\"popcnt\",\"rdpid\",\"rdrand\",\"rdseed\",\"sha_ni\",\"sse\",\"sse2\",\"sse4_1\",\"sse4_2\",\"ssse3\",\"vaes\",\"vpclmulqdq\",\"xsavec\",\"xsaveopt\"],\"generation\":0,\"parents\":[\"cascadelake\",\"cannonlake\"]}},\"compiler\":{\"name\":\"oneapi\",\"version\":\"2022.2.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"generic\",\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"2ab3k5g3lpmnlr52qdnhzenipvxk2vnefywdij5upjdsie7x3p7q====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"nipcc5q7zllmdtc5xiemoag5wnhcwylu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"djgafiw5e2chlxsdulqlu7cx53xxkerl\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}}],\"hash\":\"guqivuoq2pdsvluoen4gwyll5fwpv5xv\"}]}}\r\n```\r\nspack spec --json intel-oneapi-mpi@2021.7.1%oneapi@2022.2.1\r\n```\r\n{\"spec\":{\"_meta\":{\"version\":4},\"nodes\":[{\"name\":\"intel-oneapi-mpi\",\"version\":\"2021.7.1\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":{\"name\":\"icelake\",\"vendor\":\"GenuineIntel\",\"features\":[\"adx\",\"aes\",\"avx\",\"avx2\",\"avx512_bitalg\",\"avx512_vbmi2\",\"avx512_vnni\",\"avx512_vpopcntdq\",\"avx512bw\",\"avx512cd\",\"avx512dq\",\"avx512f\",\"avx512ifma\",\"avx512vbmi\",\"avx512vl\",\"bmi1\",\"bmi2\",\"clflushopt\",\"clwb\",\"f16c\",\"fma\",\"gfni\",\"mmx\",\"movbe\",\"pclmulqdq\",\"popcnt\",\"rdpid\",\"rdrand\",\"rdseed\",\"sha_ni\",\"sse\",\"sse2\",\"sse4_1\",\"sse4_2\",\"ssse3\",\"vaes\",\"vpclmulqdq\",\"xsavec\",\"xsaveopt\"],\"generation\":0,\"parents\":[\"cascadelake\",\"cannonlake\"]}},\"compiler\":{\"name\":\"oneapi\",\"version\":\"2022.2.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"generic\",\"envmods\":true,\"external-libfabric\":false,\"generic-names\":false,\"ilp64\":false,\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"bwh6tkwnf52ongidakktsvf2ofvn6lw4yulgckkox6ukgnu4rfra====\",\"dependencies\":[{\"name\":\"glibc\",\"hash\":\"djgafiw5e2chlxsdulqlu7cx53xxkerl\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}},{\"name\":\"intel-oneapi-runtime\",\"hash\":\"guqivuoq2pdsvluoen4gwyll5fwpv5xv\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}}],\"hash\":\"x5sasm44ih5jk2t62eazc54cc2ns6wuv\"},{\"name\":\"glibc\",\"version\":\"2.34\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":{\"name\":\"icelake\",\"vendor\":\"GenuineIntel\",\"features\":[\"adx\",\"aes\",\"avx\",\"avx2\",\"avx512_bitalg\",\"avx512_vbmi2\",\"avx512_vnni\",\"avx512_vpopcntdq\",\"avx512bw\",\"avx512cd\",\"avx512dq\",\"avx512f\",\"avx512ifma\",\"avx512vbmi\",\"avx512vl\",\"bmi1\",\"bmi2\",\"clflushopt\",\"clwb\",\"f16c\",\"fma\",\"gfni\",\"mmx\",\"movbe\",\"pclmulqdq\",\"popcnt\",\"rdpid\",\"rdrand\",\"rdseed\",\"sha_ni\",\"sse\",\"sse2\",\"sse4_1\",\"sse4_2\",\"ssse3\",\"vaes\",\"vpclmulqdq\",\"xsavec\",\"xsaveopt\"],\"generation\":0,\"parents\":[\"cascadelake\",\"cannonlake\"]}},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"autotools\",\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"external\":{\"path\":\"/usr\",\"module\":null,\"extra_attributes\":{}},\"package_hash\":\"rs42wjizh5ictyrhppkb7m7volfqcdvjk5pe35kuo7qyqjy2ucpq====\",\"hash\":\"djgafiw5e2chlxsdulqlu7cx53xxkerl\"},{\"name\":\"intel-oneapi-runtime\",\"version\":\"2022.2.1\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":{\"name\":\"icelake\",\"vendor\":\"GenuineIntel\",\"features\":[\"adx\",\"aes\",\"avx\",\"avx2\",\"avx512_bitalg\",\"avx512_vbmi2\",\"avx512_vnni\",\"avx512_vpopcntdq\",\"avx512bw\",\"avx512cd\",\"avx512dq\",\"avx512f\",\"avx512ifma\",\"avx512vbmi\",\"avx512vl\",\"bmi1\",\"bmi2\",\"clflushopt\",\"clwb\",\"f16c\",\"fma\",\"gfni\",\"mmx\",\"movbe\",\"pclmulqdq\",\"popcnt\",\"rdpid\",\"rdrand\",\"rdseed\",\"sha_ni\",\"sse\",\"sse2\",\"sse4_1\",\"sse4_2\",\"ssse3\",\"vaes\",\"vpclmulqdq\",\"xsavec\",\"xsaveopt\"],\"generation\":0,\"parents\":[\"cascadelake\",\"cannonlake\"]}},\"compiler\":{\"name\":\"oneapi\",\"version\":\"2022.2.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"generic\",\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"2ab3k5g3lpmnlr52qdnhzenipvxk2vnefywdij5upjdsie7x3p7q====\",\"dependencies\":[{\"name\":\"gcc-runtime\",\"hash\":\"nipcc5q7zllmdtc5xiemoag5wnhcwylu\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[]}},{\"name\":\"glibc\",\"hash\":\"djgafiw5e2chlxsdulqlu7cx53xxkerl\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}}],\"hash\":\"guqivuoq2pdsvluoen4gwyll5fwpv5xv\"},{\"name\":\"gcc-runtime\",\"version\":\"11.3.1\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":{\"name\":\"icelake\",\"vendor\":\"GenuineIntel\",\"features\":[\"adx\",\"aes\",\"avx\",\"avx2\",\"avx512_bitalg\",\"avx512_vbmi2\",\"avx512_vnni\",\"avx512_vpopcntdq\",\"avx512bw\",\"avx512cd\",\"avx512dq\",\"avx512f\",\"avx512ifma\",\"avx512vbmi\",\"avx512vl\",\"bmi1\",\"bmi2\",\"clflushopt\",\"clwb\",\"f16c\",\"fma\",\"gfni\",\"mmx\",\"movbe\",\"pclmulqdq\",\"popcnt\",\"rdpid\",\"rdrand\",\"rdseed\",\"sha_ni\",\"sse\",\"sse2\",\"sse4_1\",\"sse4_2\",\"ssse3\",\"vaes\",\"vpclmulqdq\",\"xsavec\",\"xsaveopt\"],\"generation\":0,\"parents\":[\"cascadelake\",\"cannonlake\"]}},\"compiler\":{\"name\":\"gcc\",\"version\":\"11.3.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"generic\",\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"krijaq53a64rpa6awsdsvv7be2somkctk4mopff6pcpyj6sr7diq====\",\"dependencies\":[{\"name\":\"glibc\",\"hash\":\"djgafiw5e2chlxsdulqlu7cx53xxkerl\",\"parameters\":{\"deptypes\":[\"link\"],\"virtuals\":[\"libc\"]}}],\"hash\":\"nipcc5q7zllmdtc5xiemoag5wnhcwylu\"}]}}\r\n```\r\nspack spec --json /zfmfvy\r\n```\r\n{\"spec\":{\"_meta\":{\"version\":4},\"nodes\":[{\"name\":\"intel-oneapi-mpi\",\"version\":\"2021.7.1\",\"arch\":{\"platform\":\"linux\",\"platform_os\":\"rocky9\",\"target\":{\"name\":\"icelake\",\"vendor\":\"GenuineIntel\",\"features\":[\"adx\",\"aes\",\"avx\",\"avx2\",\"avx512_bitalg\",\"avx512_vbmi2\",\"avx512_vnni\",\"avx512_vpopcntdq\",\"avx512bw\",\"avx512cd\",\"avx512dq\",\"avx512f\",\"avx512ifma\",\"avx512vbmi\",\"avx512vl\",\"bmi1\",\"bmi2\",\"clflushopt\",\"clwb\",\"f16c\",\"fma\",\"gfni\",\"mmx\",\"movbe\",\"pclmulqdq\",\"popcnt\",\"rdpid\",\"rdrand\",\"rdseed\",\"sha_ni\",\"sse\",\"sse2\",\"sse4_1\",\"sse4_2\",\"ssse3\",\"vaes\",\"vpclmulqdq\",\"xsavec\",\"xsaveopt\"],\"generation\":0,\"parents\":[\"cascadelake\",\"cannonlake\"]}},\"compiler\":{\"name\":\"oneapi\",\"version\":\"2022.2.1\"},\"namespace\":\"builtin\",\"parameters\":{\"build_system\":\"generic\",\"external-libfabric\":false,\"generic-names\":false,\"ilp64\":false,\"cflags\":[],\"cppflags\":[],\"cxxflags\":[],\"fflags\":[],\"ldflags\":[],\"ldlibs\":[]},\"package_hash\":\"sxqjbskqeor3rlrohmuddsgeucki6vejasj3hea4fzuqmkktx7ta====\",\"hash\":\"zfmfvyc4a4wkhgxe2f34irg663e6dcoh\"}]}}\r\n```\r\nspack spec hdf5@1.14.3 +fortran +mpi %oneapi@2024.1 ^intel-oneapi-mpi@2021.12.0\r\n```\r\n[+] /apps/spack-managed/oneapi-2024.1.0/intel-oneapi-mpi-2021.12.0-ehon7g4v724zl5ks5ihv53suriijlbpk\r\n==> Installing hdf5-1.14.3-3m4yqe6li6xzxopqufhyeo6r4npfcjb6 [13/13]\r\n```\n> Do i need to specify them differently for stuff that was built with previous versions of spack?\r\n\r\nIf those specs don't have any runtime, and they are not external, then this is expected. The general issue is that specs without a runtime may rely on some compiler being installed in specific places. To avoid installing something broken, we exclude those specs from reuse."},"created_at":{"kind":"string","value":"2024-05-22T14:47:08Z"},"merged_at":{"kind":"string","value":"2024-05-23T12:37:48Z"},"PASS_TO_PASS":{"kind":"string","value":"[\"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@:1]\", \"lib/spack/spack/test/concretize.py::TestConcretizeEdges::test_virtuals_provided_together_but_only_one_required_in_dag\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_custom_compiler_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_is_equivalent_to_specified_version[0.2.15]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3@1.0 ^python@3.5.1-expected4-unexpected4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants[conditional-variant-pkg@1.0-expected0-unexpected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_config[python@configured]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[0000000000000000000000000000000000000001=1.2.3-v_opts10-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_provider_must_meet_requirements\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_and_compiler_preferences[cmake %clang-expected2]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_match\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts0-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_select_lower_priority_package_from_repository_stack[builtin.mock.gmake-expected_namespaces0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[external-buildable-with-variant@0.9 +baz-True-@0.9]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inheritance[gcc]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretization_of_test_dependencies\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_with_restricted_virtual\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3@1.1 ^python@2.7.11-expected3-unexpected3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[quantum-espresso~veritas-expected4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_parents\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[externaltool@0.9-True-@0.9]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize_preferences[specs2-libelf@0.8.13-3]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts14-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_regression_issue_7941\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagated_variant_is_not_passed_to_dependent\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_installed_packages_when_package_def_changes[context2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_specified_variant\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concrete_specs_are_not_modified_on_reuse[mpich-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[cannonlake-preference-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[develop-v_opts1-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_installed_version_is_selected_only_for_reuse\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts11-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@:1.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[fftw ^mpich-expected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_hash_assigned_version_is_preferred\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3 ^python@2.7.11-expected1-unexpected1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_is_equivalent_to_specified_version[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts3-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_succeeds_with_unknown_version[fbranch]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_with_unknown_namespace_dont_raise\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_delete_version_and_reuse\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_newer_dependency_adds_a_transitive_virtual\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts7-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[external-buildable-with-variant@1.0: ~baz-False-@1.0 ~baz]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_user_can_select_externals_with_require\", \"lib/spack/spack/test/concretize.py::TestConcretizeEdges::test_condition_triggered_by_edge_property[conditional-edge+foo-expected_satisfies2-expected_not_satisfies2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mv_variants_disjoint_sets_from_packages_yaml\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a foobar=bar-True-with_dep1-without_dep1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[externaltool@0_8-True-@0_8]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mv_variants_disjoint_sets_from_spec[mvapich2 file_systems=lustre,gpfs-file_systems-expected_values2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[skylake-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_detection\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_conflicts_in_package_py[bowtie@1.4.0-%gcc@10.2.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[True-dev-build-test-install-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[conflict-parent%gcc]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mv_variants_disjoint_sets_from_spec[mvapich2-file_systems-expected_values0]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_match_virtual\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant foo=foo-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[cannonlake-preference-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[True-dev-build-test-dependent ^dev-build-test-install-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[haswell-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_package_with_constraint_not_met_by_external\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3 ^python@2.7.11-expected1-unexpected1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_misleading_error_message_on_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflicts_show_cores[conflict-parent@0.9^conflict~foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_with_flags\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich debug=True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[cannonlake-preference-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-preference-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_select_lower_priority_package_from_repository_stack[hdf5 ^gmake-expected_namespaces2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_nobuild_package\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtual_is_fully_expanded_for_callpath\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[ascent~~shared +adios2 ^adios2+shared-expected_propagation3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[False-dev-build-test-install-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[libelf0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize_preferences[specs0-libelf@0.8.12-1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_conflicts_in_package_py[bowtie@1.2.2 os=redhat6-%gcc@11.1.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_noversion_pkg[noversion]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[False-dev-build-test-install-True]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_two_gmake[minimal]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich cppflags=\\\"-O3\\\"]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts13-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_conflicts_in_package_py[bowtie@1.3.0-%clang@15.0.0]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_different_spec\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs5-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[quantum-espresso-expected1]\", \"lib/spack/spack/test/concretize.py::TestConcreteSpecsByHash::test_adding_specs[input_specs0]\", \"lib/spack/spack/test/concretize.py::TestConcretizeEdges::test_condition_triggered_by_edge_property[conditional-edge-expected_satisfies0-expected_not_satisfies0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_no_matching_compiler_specs\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_coconcretize_reuse_and_virtuals\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[ascent++shared +adios2 ^adios2~shared-expected_propagation4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_sticky_variant_in_external[sticky-variant@1.0-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_versions_in_virtual_dependencies\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[ascent~~shared +adios2-expected_propagation2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_target_granularity\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a foobar=bar-False-with_dep4-without_dep4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_compiler_flag_does_not_propagate\", \"lib/spack/spack/test/concretize.py::test_spec_filters[specs0-include0-exclude0-expected0]\", \"lib/spack/spack/test/concretize.py::test_concretization_version_order\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_dependent_with_singlevalued_variant_type\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich~debug]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3@1.0 ^python@3.5.1-expected4-unexpected4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_different_compilers_get_different_flags\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_specs_from_non_available_compilers\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concrete_specs_are_not_modified_on_reuse[mpich~debug-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_version_weight_and_provenance\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[external-buildable-with-variant ~baz-False-@1.0 ~baz]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_python_from_cli_and_extension_from_db\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[skylake-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_spec_with_build_dep_from_json\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_externals_with_platform_explicitly_set\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_no_multiple_solutions_with_different_edges_same_nodes\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concrete_specs_are_not_modified_on_reuse[mpich+debug-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[haswell-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant foo=bar-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[True-dev-build-test-dependent ^dev-build-test-install-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mv_variants_disjoint_sets_from_spec[mvapich2 file_systems=lustre-file_systems-expected_values1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs6-4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_version_badness_more_important_than_default_mv_variants\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a foobar=bar-tests_arg3-with_dep3-without_dep3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_is_equivalent_to_specified_version[main]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_match_constraints_when_selected\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_non_default_provider_of_multiple_virtuals\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant@1.62.0 cxxstd=17-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_succeeds_with_unknown_version[0.2.15]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants[conditional-variant-pkg@2.0~version_based-expected2-unexpected2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inheritance[gcc@10.2.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_sticky_variant_in_package\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3 ^python@3.5.1-expected0-unexpected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_conditional_variant\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a foobar=bar-tests_arg2-with_dep2-without_dep2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_os_selection_when_multiple_choices_are_possible[mpileaks-os=debian6]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3@1.1 ^python@2.7.11-expected3-unexpected3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtual_is_fully_expanded_for_mpileaks\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_require_targets_are_allowed\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_two_setuptools[minimal]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[0000001=1.2.3-v_opts12-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[broadwell-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants[conditional-variant-pkg@2.0+version_based+variant_based-expected3-unexpected3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[libelf@0.8.13]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts2-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_target_ranges_in_conflicts\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_dependency_conditional_on_another_dependency_state\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_result_specs_is_not_empty[specs2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[external-buildable-with-variant +baz-True-@1.1.special +baz]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant@1.72.0 staging=flexpath-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_packages_have_consistent_hash\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_that_would_require_a_virtual_dependency\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies ^libelf@0.8.10-patched_deps3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_constraint_with_external_package[cmake %clang-%clang]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich+debug]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_annotated_on_edges[mpileaks]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_sibling\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_sticky_variant_in_external[sticky-variant@1.0+allow-gcc-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_regression_issue_7239\", \"lib/spack/spack/test/concretize.py::test_selecting_reused_sources[reuse_yaml1-0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[False-dev-build-test-dependent ^dev-build-test-install-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[quantum-espresso-expected3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_none\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3@1.0 ^python@2.7.11-expected2-unexpected2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants_fail[@1.0+version_based]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_installed_specs_disregard_conflicts\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_child\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals_with_one_bound\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_my_dep_depends_on_provider_of_my_virtual_dep\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[libelf1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_anonymous\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_cumulative_version_ranges_with_different_length\", \"lib/spack/spack/test/concretize.py::test_selecting_reused_sources[reuse_yaml0-17]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_enable_disable_compiler_existence_check\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts4-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_multivalue_variant\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[callpath]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_different_modules[None]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant@1.72.0 cxxstd=2a-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals_with_dual_provider\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies +foo-patched_deps4]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_different_prefix\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_installed\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_and_compiler_preferences[cmake-expected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_with_unknown_package_dont_raise\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs7-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_succeeds_with_config_compatible_os\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_installed_externals_are_reused\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@2:]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize_preferences[specs3-mpich-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_solve_in_rounds_all_unsolved\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mixing_compilers_only_affects_subdag\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts15-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_all_patches_applied\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_specifying_different_versions_build_deps\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_version_matches_any_entry_in_compilers_yaml\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_deprecated_versions_not_selected[deprecated-versions-deprecated-versions@1.0.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_multivalued_variants_from_cli[multivalue-variant-expected_dict0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_dont_select_version_that_brings_more_variants_in\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_include_specs_from_externals_and_libcs[included_externals0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_unified_python\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_reconstructed_on_reuse[mpileaks ^zmpi-zmpi]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_target_compatibility\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@2.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@2.2_1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_multivalued_variants_from_cli[multivalue-variant libs=static-expected_dict1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_clear_error_when_unknown_compiler_requested\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies@1.0 ^libdwarf@20111030-patched_deps2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_provides_handles_multiple_providers_of_same_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflicts_in_spec[conflict-parent@0.9^conflict~foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[broadwell-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_error_message_for_inconsistent_variants[wrong-variant-in-conflicts]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-preference-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals_with_two_bound\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants_fail[@2.0+version_based~variant_based+two_whens]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_and_virtual\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[broadwell-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_deprecated_versions_not_selected[deprecated-versions@=1.1.0-deprecated-versions@1.1.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[hypre~~shared ^openblas-expected_propagation1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_simultaneous_concretization_of_specs[abstract_specs1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_regression_issue_7705\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_simultaneous_concretization_of_specs[abstract_specs2]\", \"lib/spack/spack/test/concretize.py::test_spec_filters[specs1-include1-exclude1-expected1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_match_is_preferred_to_newer_version\", \"lib/spack/spack/test/concretize.py::test_filtering_reused_specs[roots0-reuse_yaml0-expected0-not_expected0-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs4-3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflicts_show_cores[conflict%clang+foo]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[git.branch=1.2.3-v_opts16-False]\", \"lib/spack/spack/test/concretize.py::TestConcreteSpecsByHash::test_adding_specs[input_specs1]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_pure_build_virtual_dependency[full]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_children\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_exclude_specs_from_reuse\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[False-dev-build-test-dependent ^dev-build-test-install-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a-True-with_dep0-without_dep0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies@1.0-patched_deps1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[haswell-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[conflict%clang~foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[externaltool@1.0-True-@1.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_spec_flags_maintain_order\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_add_microarchitectures_on_explicit_request\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_unsolved_specs_raises_error\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_constraint_with_external_package[cmake %gcc-%gcc]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs8-1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_simultaneous_concretization_of_specs[abstract_specs3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_flags_from_user_are_grouped\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_dont_define_new_version_from_input_if_checksum_required\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[cannonlake-preference-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs3-4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_include_specs_from_externals_and_libcs[included_externals1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_os_selection_when_multiple_choices_are_possible[mpileaks%gcc@10.2.1 platform=test os=debian6-os=debian6]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[quantum-espresso-expected2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_result_specs_is_not_empty[specs0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[skylake-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_config[python@configured target=core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs0-1]\", \"lib/spack/spack/test/concretize.py::test_filtering_reused_specs[roots1-reuse_yaml1-expected1-not_expected1-1]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_two_gmake[full]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_is_unique[mpileaks ^mpich%clang@15.0.0-%clang@15.0.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_config[python@configured os=debian]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@1.2:2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3 ^python@3.5.1-expected0-unexpected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs2-3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich cppflags==\\\"-O3\\\"]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_different_modules[modules1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_module\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_noversion_pkg[noversion-bundle]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals_with_dual_provider_and_a_conflict\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[conflict]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[old-external-True-@1.0.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_preferred_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_provides_or_depends_on\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretization_with_compilers_supporting_target_any\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_variant_not_default\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_architecture_deep_inheritance\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-preference-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_anonymous_dep[mpileaks ^cflags=-g]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[skylake-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_reconstructed_on_reuse[mpileaks ^mpich2-mpich2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inheritance[clang@:15.0.0]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts9-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant@1.62.0 cxxstd=2a-False]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_solution_without_cycles\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_compiler_flag_not_passed_to_dependent\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_installed_packages_when_package_def_changes[context0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_regression_issue_4492\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inherited_upwards\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-preference-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[hypre~~shared ^openblas+shared-expected_propagation0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_succeeds_with_unknown_version[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@2.2_0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_do_not_invent_new_concrete_versions_unless_necessary\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_no_conflict_in_external_specs[conflict@10.0%clang+foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_select_lower_priority_package_from_repository_stack[hdf5 ^builtin.mock.gmake-expected_namespaces1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_no_compilers_for_arch\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflicts_in_spec[conflict%clang+foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_config[python@configured platform=test]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts5-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_mention_build_dep\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[True-dev-build-test-install-True]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_pure_build_virtual_dependency[minimal]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_with_custom_non_numeric_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inheritance[clang]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_result_specs_is_not_empty[specs1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_os_selection_when_multiple_choices_are_possible[mpileaks%gcc@10.2.1 platform=test os=redhat6-os=redhat6]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_is_unique[mpileaks-%gcc@10.2.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[haswell-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_and_compiler_preferences[cmake %gcc-expected1]\", \"lib/spack/spack/test/concretize.py::TestConcretizeEdges::test_condition_triggered_by_edge_property[conditional-edge~foo-expected_satisfies1-expected_not_satisfies1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_reconstructed_on_reuse[mpileaks-mpich]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_anonymous_dep[mpileaks ^%gcc]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extensions_have_dependency\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_self\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_host_compatible_concretization\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_in_nonbuildable_external_package[gcc-external-common-python %clang-%clang ^external-common-openssl%gcc ^external-common-gdbm%clang-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants[conditional-variant-pkg@2.0-expected1-unexpected1]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts8-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants_fail[@2.0~version_based+variant_based]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[broadwell-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_installed_packages_when_package_def_changes[context1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_transitive_conditional_virtual_dependency\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_in_nonbuildable_external_package[clang-external-common-python-%clang ^external-common-openssl%clang ^external-common-gdbm%clang-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_no_reuse_when_variant_condition_does_not_hold\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_compiler_flag_propagate\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_annotated_on_edges[mpileaks ^mpich]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies-patched_deps0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize_preferences[specs1-libelf@0.8.12-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_with_provides_when\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_with_non_default_variant_as_dependency\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_simultaneous_concretization_of_specs[abstract_specs0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_flags_differ_identical_compilers\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflict_in_all_directives_true\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_sticky_variant_in_external[sticky-variant@1.0~allow-gcc-False]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_two_setuptools[full]\", \"lib/spack/spack/test/concretize.py::TestConcreteSpecsByHash::test_adding_specs[input_specs2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3@1.0 ^python@2.7.11-expected2-unexpected2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts6-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants_fail[@1.0~version_based]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_missing_compiler\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs1-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_error_message_for_inconsistent_variants[wrong-variant-in-depends-on]\"]"},"PASS_TO_FAIL":{"kind":"string","value":"[]"},"FAIL_TO_PASS":{"kind":"string","value":"[\"lib/spack/spack/test/concretize.py::TestConcretize::test_can_reuse_concrete_externals_for_dependents\"]"},"FAIL_TO_FAIL":{"kind":"string","value":"[]"},"install":{"kind":"string","value":"{\"install\": [\"uv pip install -e .\", \"spack -d bootstrap now --dev\"], \"pre_install\": [\"tee pytest.ini < Concretized lcov@1\r\n - quvdpkx lcov@1.15%gcc@4.8.5 build_system=makefile arch=linux-centos7-haswell\r\n - crat2yd ^gcc-runtime@4.8.5%gcc@4.8.5 build_system=generic arch=linux-centos7-haswell\r\n[e] 5iblaop ^glibc@2.17%gcc@4.8.5 build_system=autotools patches=be65fec,e179c43 arch=linux-centos7-haswell\r\n - qxwvnt4 ^gmake@4.4.1%gcc@4.8.5~guile build_system=generic arch=linux-centos7-haswell\r\n - kxuukvy ^perl@5.38.0%gcc@4.8.5+cpanm+opcode+open+shared+threads build_system=generic patches=714e4d1 arch=linux-centos7-haswell\r\n - biblila ^berkeley-db@18.1.40%gcc@4.8.5+cxx~docs+stl build_system=autotools patches=26090f4,b231fcc arch=linux-centos7-haswell\r\n - wgdwsud ^bzip2@1.0.8%gcc@4.8.5~debug~pic+shared build_system=generic arch=linux-centos7-haswell\r\n - dbcgyfj ^diffutils@3.10%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - lvejmvi ^gdbm@1.23%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - xpycboo ^readline@8.2%gcc@4.8.5 build_system=autotools patches=bbf97f1 arch=linux-centos7-haswell\r\n - 4gyl5nt ^ncurses@6.5%gcc@4.8.5~symlinks+termlib abi=none build_system=autotools patches=7a351bc arch=linux-centos7-haswell\r\n - cqndkwd ^pkgconf@2.2.0%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - 2uvtapu ^zlib-ng@2.1.6%gcc@4.8.5+compat+new_strategies+opt+pic+shared build_system=autotools arch=linux-centos7-haswell\r\n - hm3enx5 ^perl-b-hooks-endofscope@0.26%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - btgdwyb ^perl-sub-exporter-progressive@0.001013%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - qbsvk36 ^perl-capture-tiny@0.48%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - dephsmm ^perl-class-inspector@1.36%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - qboen4h ^perl-class-singleton@1.6%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - gtq7fuo ^perl-datetime@1.65%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - 2d5jec2 ^perl-cpan-meta-check@0.017%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - s2alodu ^perl-test-deep@1.204%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - qdx67uo ^perl-dist-checkconflicts@0.11%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - hbyqbpi ^perl-namespace-autoclean@0.29%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - lomk24d ^perl-test-fatal@0.017%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - iauu4h2 ^perl-test-warnings@0.031%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - 5ezrtfr ^perl-test-without-module@0.21%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - wwxgsv3 ^perl-try-tiny@0.31%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - tnyhq4a ^perl-datetime-locale@1.40%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - pkfzzl5 ^perl-file-sharedir-install@0.14%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - za34vfz ^perl-module-build@0.4232%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - urn7w4j ^perl-ipc-system-simple@1.30%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - am4nkxy ^perl-path-tiny@0.144%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - bmay2dw ^perl-test-file-sharedir@1.001002%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - cn5fx4v ^perl-class-tiny@1.008%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - fg6fsbx ^perl-file-copy-recursive@0.45%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - w2xvaug ^perl-scope-guard@0.21%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - y46rumo ^perl-test2-plugin-nowarnings@0.09%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - z2ja6rr ^perl-ipc-run3@0.048%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - iskdj5a ^perl-test2-suite@0.000159%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - iy75iyn ^perl-term-table@0.018%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - eez7opy ^perl-datetime-timezone@2.60%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - f5wlng6 ^perl-module-runtime@0.016%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - kl2hxtv ^perl-test-requires@0.11%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - alz4xgk ^perl-devel-cover@1.40%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - zzyrjkg ^perl-devel-stacktrace@2.04%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - 6khoen5 ^perl-digest-md5@2.55%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - zkszejk ^perl-eval-closure@0.14%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - e4t2f5d ^perl-exception-class@1.45%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - jodxequ ^perl-class-data-inheritable@0.08%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - zqfindh ^perl-file-sharedir@1.118%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - fwhim6b ^perl-file-spec@0.90%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - f2zbybf ^perl-json@4.10%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - z326l5c ^perl-memory-process@0.06%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - 2ddlyn2 ^perl-module-implementation@0.09%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - k3sfc5b ^perl-mro-compat@0.15%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - f7uzd46 ^perl-namespace-clean@0.27%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - tzvqjp5 ^perl-package-stash@0.37%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - fst2ife ^perl-params-validationcompiler@0.31%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - vofdfrw ^perl-role-tiny@2.002004%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - uo7i35c ^perl-exporter-tiny@1.006002%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - g4nhcqc ^perl-specio@0.48%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - vhko7pt ^perl-sub-quote@2.006008%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - ruvgcjy ^perl-scalar-list-utils@1.63%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - hxneccl ^perl-test-needs@0.002010%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - bgigm3b ^perl-sub-identify@0.14%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - 4zvc65g ^perl-time-hires@1.9758%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n\r\n==> Concretized vtk@9.1\r\n - bher5da vtk@9.1.0%gcc@4.8.5~examples~ffmpeg~ipo+mpi+opengl2~osmesa~python~qt~xdmf build_system=cmake build_type=Release generator=make patches=c446a90 arch=linux-centos7-haswell\r\n - clqqc4f ^cgns@4.4.0%gcc@4.8.5~base_scope~fortran+hdf5~int64~ipo~legacy~mem_debug+mpi~pic+scoping+shared~static~testing~tools build_system=cmake build_type=Release generator=make arch=linux-centos7-haswell\r\n - 2p5m6q4 ^cmake@3.27.9%gcc@4.8.5~doc+ncurses+ownlibs build_system=generic build_type=Release arch=linux-centos7-haswell\r\n - n2lasn6 ^curl@8.7.1%gcc@4.8.5~gssapi~ldap~libidn2~librtmp~libssh~libssh2+nghttp2 build_system=autotools libs=shared,static tls=openssl arch=linux-centos7-haswell\r\n - czln4pt ^nghttp2@1.57.0%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - zardory ^openssl@3.3.0%gcc@4.8.5~docs+shared build_system=generic certs=mozilla arch=linux-centos7-haswell\r\n - ul7pntz ^ca-certificates-mozilla@2023-05-30%gcc@4.8.5 build_system=generic arch=linux-centos7-haswell\r\n - 4gyl5nt ^ncurses@6.5%gcc@4.8.5~symlinks+termlib abi=none build_system=autotools patches=7a351bc arch=linux-centos7-haswell\r\n - i7dhebz ^double-conversion@3.3.0%gcc@4.8.5~ipo build_system=cmake build_type=Release generator=make arch=linux-centos7-haswell\r\n - cbsizqf ^eigen@3.4.0%gcc@4.8.5~ipo build_system=cmake build_type=RelWithDebInfo generator=make arch=linux-centos7-haswell\r\n - lg4xeuz ^expat@2.6.2%gcc@4.8.5+libbsd build_system=autotools arch=linux-centos7-haswell\r\n - iplqxsq ^libbsd@0.12.1%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - nvcc6ty ^libmd@1.0.4%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - n2lcmlm ^freetype@2.13.2%gcc@4.8.5+pic+shared build_system=autotools arch=linux-centos7-haswell\r\n - wgdwsud ^bzip2@1.0.8%gcc@4.8.5~debug~pic+shared build_system=generic arch=linux-centos7-haswell\r\n - dbcgyfj ^diffutils@3.10%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - cqndkwd ^pkgconf@2.2.0%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - crat2yd ^gcc-runtime@4.8.5%gcc@4.8.5 build_system=generic arch=linux-centos7-haswell\r\n - qifxnj2 ^gl2ps@1.4.2%gcc@4.8.5~doc~ipo+png+zlib build_system=cmake build_type=Release generator=make arch=linux-centos7-haswell\r\n - 5yukwrg ^glew@2.2.0%gcc@4.8.5~ipo build_system=cmake build_type=Release generator=make gl=glx patches=7992e52 arch=linux-centos7-haswell\r\n - uaqoe2a ^libx11@1.8.7%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - ssylgsx ^inputproto@2.3.2%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - qopzmyl ^libxcb@1.16%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - 7ytgxea ^libpthread-stubs@0.5%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - x32oaar ^libxau@1.0.11%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - g2ka66p ^libxdmcp@1.1.4%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - gwwgbsj ^xcb-proto@1.16.0%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - qvpimpa ^xextproto@7.3.0%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - udqvcu2 ^xtrans@1.5.0%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - 2toqega ^xproto@7.0.31%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n[e] 5iblaop ^glibc@2.17%gcc@4.8.5 build_system=autotools patches=be65fec,e179c43 arch=linux-centos7-haswell\r\n - aldcypw ^glx@1.4%gcc@4.8.5 build_system=bundle arch=linux-centos7-haswell\r\n - fi6zeim ^mesa@23.3.6%gcc@4.8.5+glx+llvm+opengl~opengles+osmesa~strip build_system=meson buildtype=release default_library=shared arch=linux-centos7-haswell\r\n - jp36swj ^bison@3.8.2%gcc@4.8.5~color build_system=autotools arch=linux-centos7-haswell\r\n - hihc5ix ^flex@2.6.3%gcc@4.8.5+lex~nls build_system=autotools arch=linux-centos7-haswell\r\n - 3kbpvev ^gettext@0.22.5%gcc@4.8.5+bzip2+curses+git~libunistring+libxml2+pic+shared+tar+xz build_system=autotools arch=linux-centos7-haswell\r\n - fmldsrz ^tar@1.34%gcc@4.8.5 build_system=autotools zip=pigz arch=linux-centos7-haswell\r\n - okjognj ^pigz@2.8%gcc@4.8.5 build_system=makefile arch=linux-centos7-haswell\r\n - fooh6ar ^glproto@1.4.17%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - rfw5tfh ^libunwind@1.6.2%gcc@4.8.5~block_signals~conservative_checks~cxx_exceptions~debug~debug_frame+docs~pic+tests+weak_backtrace~xz~zlib build_system=autotools components=none libs=shared,static arch=linux-centos7-haswell\r\n - ryxzzsh ^libxext@1.3.5%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - i7xn4bp ^llvm-amdgpu@6.0.2%gcc@4.8.5~ipo~link_llvm_dylib~llvm_dylib+rocm-device-libs build_system=cmake build_type=Release generator=ninja patches=53f9500,b4774ca arch=linux-centos7-haswell\r\n - ac4lq7j ^z3@4.12.4%gcc@4.8.5~gmp~ipo~python build_system=cmake build_type=Release generator=make arch=linux-centos7-haswell\r\n - gi5elwm ^meson@1.3.2%gcc@4.8.5 build_system=python_pip patches=0f0b1bd arch=linux-centos7-haswell\r\n - zgltimy ^py-pip@23.1.2%gcc@4.8.5 build_system=generic arch=linux-centos7-haswell\r\n - 4xdzvj5 ^py-setuptools@69.2.0%gcc@4.8.5 build_system=generic arch=linux-centos7-haswell\r\n - z37s7f3 ^py-wheel@0.41.2%gcc@4.8.5 build_system=generic arch=linux-centos7-haswell\r\n - b6hksep ^python-venv@1.0%gcc@4.8.5 build_system=generic arch=linux-centos7-haswell\r\n - eyl2e3u ^ninja@1.11.1%gcc@4.8.5+re2c build_system=generic arch=linux-centos7-haswell\r\n - 6bvedvg ^re2c@2.2%gcc@4.8.5 build_system=generic arch=linux-centos7-haswell\r\n - fao76gh ^py-mako@1.2.4%gcc@4.8.5 build_system=python_pip arch=linux-centos7-haswell\r\n - dhsbyxo ^py-markupsafe@2.1.3%gcc@4.8.5 build_system=python_pip arch=linux-centos7-haswell\r\n - ayvno46 ^python@3.11.7%gcc@4.8.5+bz2+crypt+ctypes+dbm~debug+libxml2+lzma~nis~optimizations+pic+pyexpat+pythoncmd+readline+shared+sqlite3+ssl~tkinter+uuid+zlib build_system=generic patches=13fa8bf,b0615b2,ebdca64,f2fd060 arch=linux-centos7-haswell\r\n - qt2beyl ^libffi@3.4.6%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - eplqa3l ^xrandr@1.5.2%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - adp32lw ^libxrandr@1.5.4%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - rq6nnzv ^renderproto@0.11.1%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - hjqz55r ^libxrender@0.9.11%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - 22xg7g6 ^randrproto@1.5.0%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - qxwvnt4 ^gmake@4.4.1%gcc@4.8.5~guile build_system=generic arch=linux-centos7-haswell\r\n - 6eaimzo ^hdf5@1.14.3%gcc@4.8.5~cxx~fortran+hl~ipo~java~map+mpi+shared~subfiling~szip~threadsafe+tools api=default build_system=cmake build_type=Release generator=make patches=82088c8 arch=linux-centos7-haswell\r\n - qf5uod2 ^jsoncpp@1.9.5%gcc@4.8.5~ipo build_system=cmake build_type=Release generator=make arch=linux-centos7-haswell\r\n - wyyfhpv ^libjpeg-turbo@3.0.0%gcc@4.8.5~ipo~jpeg8~partial_decoder+pic build_system=cmake build_type=Release generator=make libs=shared,static arch=linux-centos7-haswell\r\n - et6dxli ^nasm@2.15.05%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - 4q27knh ^libogg@1.3.5%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - 4hp2mxw ^libpng@1.6.39%gcc@4.8.5~ipo~pic build_system=cmake build_type=Release generator=make libs=shared,static arch=linux-centos7-haswell\r\n - zxuba3t ^libtheora@1.1.1%gcc@4.8.5~doc build_system=autotools patches=d9bb5a9,e01511a,e01ef71,ff8478d arch=linux-centos7-haswell\r\n - aji3c6m ^autoconf@2.72%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - kmbxfoo ^automake@1.16.5%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - qybucwo ^libtool@2.4.7%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - 4x4lox4 ^findutils@4.9.0%gcc@4.8.5 build_system=autotools patches=440b954 arch=linux-centos7-haswell\r\n - 3b3ek3j ^m4@1.4.19%gcc@4.8.5+sigsegv build_system=autotools patches=9dc5fbd,bfdffa7 arch=linux-centos7-haswell\r\n - nrpah3n ^libsigsegv@2.14%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - 3g4xhw6 ^libtiff@4.5.1%gcc@4.8.5+ccitt~ipo~jbig+jpeg~jpeg12~lerc~libdeflate+logluv~lzma+lzw+next~old-jpeg+packbits~pic~pixarlog+shared+thunder~webp+zlib~zstd build_system=cmake build_type=Release generator=make arch=linux-centos7-haswell\r\n - qk5obz6 ^libxml2@2.10.3%gcc@4.8.5+pic~python+shared build_system=autotools arch=linux-centos7-haswell\r\n - 3uceuxe ^libxt@1.3.0%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - w2j354w ^kbproto@1.0.7%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - baz2vor ^libice@1.1.1%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - w3we2m2 ^libsm@1.2.4%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - egpexp7 ^util-linux-uuid@2.36.2%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - lvyrnxh ^util-macros@1.19.3%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - qf7yjzi ^lz4@1.9.4%gcc@4.8.5+pic build_system=makefile libs=shared,static arch=linux-centos7-haswell\r\n - pismd5w ^netcdf-c@4.9.2%gcc@4.8.5+blosc~byterange~dap~fsync~hdf4~jna+mpi~nczarr_zip+optimize+parallel-netcdf+pic+shared+szip+zstd build_system=autotools patches=0161eb8 arch=linux-centos7-haswell\r\n - jbnvrs7 ^c-blosc@1.21.5%gcc@4.8.5+avx2~ipo build_system=cmake build_type=Release generator=make arch=linux-centos7-haswell\r\n - dq6iwg4 ^snappy@1.1.10%gcc@4.8.5~ipo+pic+shared build_system=cmake build_type=Release generator=make arch=linux-centos7-haswell\r\n - p7okusi ^libaec@1.0.6%gcc@4.8.5~ipo+shared build_system=cmake build_type=Release generator=make arch=linux-centos7-haswell\r\n - v66qsdq ^parallel-netcdf@1.12.3%gcc@4.8.5~burstbuffer+cxx+fortran+pic+shared build_system=autotools arch=linux-centos7-haswell\r\n - wwsnver ^zstd@1.5.6%gcc@4.8.5+programs build_system=makefile compression=none libs=shared,static arch=linux-centos7-haswell\r\n - 5tn7gka ^openmpi@5.0.3%gcc@4.8.5~atomics~cuda~gpfs~internal-hwloc~internal-libevent~internal-pmix~java~legacylaunchers~lustre~memchecker~openshmem~orterunprefix~romio+rsh~static+vt+wrapper-rpath build_system=autotools fabrics=none romio-filesystem=none schedulers=none arch=linux-centos7-haswell\r\n - ghcqjwe ^hwloc@2.9.1%gcc@4.8.5~cairo~cuda~gl~libudev+libxml2~netloc~nvml~oneapi-level-zero~opencl+pci~rocm build_system=autotools libs=shared,static arch=linux-centos7-haswell\r\n - mhry57g ^libpciaccess@0.17%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - 6hn3fer ^libevent@2.1.12%gcc@4.8.5+openssl build_system=autotools arch=linux-centos7-haswell\r\n - acktmvn ^numactl@2.0.14%gcc@4.8.5 build_system=autotools patches=4e1d78c,62fc8a8,ff37630 arch=linux-centos7-haswell\r\n - fbp5nvl ^openssh@9.7p1%gcc@4.8.5+gssapi build_system=autotools arch=linux-centos7-haswell\r\n - egkl74v ^krb5@1.20.1%gcc@4.8.5+shared build_system=autotools arch=linux-centos7-haswell\r\n - fwjmngo ^libedit@3.1-20230828%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - uguj4de ^libxcrypt@4.4.35%gcc@4.8.5~obsolete_api build_system=autotools patches=4885da3 arch=linux-centos7-haswell\r\n - kxuukvy ^perl@5.38.0%gcc@4.8.5+cpanm+opcode+open+shared+threads build_system=generic patches=714e4d1 arch=linux-centos7-haswell\r\n - biblila ^berkeley-db@18.1.40%gcc@4.8.5+cxx~docs+stl build_system=autotools patches=26090f4,b231fcc arch=linux-centos7-haswell\r\n - lvejmvi ^gdbm@1.23%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - vwuqxn6 ^pmix@5.0.1%gcc@4.8.5~docs+pmi_backwards_compatibility~python~restful build_system=autotools arch=linux-centos7-haswell\r\n - wxqwuu7 ^proj@9.2.1%gcc@4.8.5+curl~ipo~pic+shared+tiff build_system=cmake build_type=Release generator=make arch=linux-centos7-haswell\r\n - rkftxzn ^pugixml@1.13%gcc@4.8.5~ipo+pic+shared build_system=cmake build_type=Release generator=make arch=linux-centos7-haswell\r\n - okoxvu5 ^seacas@2024-04-03%gcc@4.8.5~adios2+applications+cgns~faodel+fortran~ipo+legacy+matio~metis+mpi~pamgen+shared+tests~thread_safe+x11~zlib build_system=cmake build_type=Release generator=make arch=linux-centos7-haswell\r\n - xbeluyv ^catch2@3.4.0%gcc@4.8.5~ipo+pic~shared build_system=cmake build_type=Release cxxstd=17 generator=make arch=linux-centos7-haswell\r\n - fboaj3a ^fmt@10.2.1%gcc@4.8.5~ipo+pic~shared build_system=cmake build_type=Release cxxstd=11 generator=make arch=linux-centos7-haswell\r\n - yxmibe2 ^matio@1.5.26%gcc@4.8.5+hdf5+shared+zlib build_system=autotools arch=linux-centos7-haswell\r\n - 3s3u5e7 ^sqlite@3.43.2%gcc@4.8.5+column_metadata+dynamic_extensions+fts~functions+rtree build_system=autotools arch=linux-centos7-haswell\r\n - xpycboo ^readline@8.2%gcc@4.8.5 build_system=autotools patches=bbf97f1 arch=linux-centos7-haswell\r\n - zkldrzi ^utf8cpp@2.3.4%gcc@4.8.5 build_system=generic arch=linux-centos7-haswell\r\n - tdiyku6 ^xz@5.4.6%gcc@4.8.5~pic build_system=autotools libs=shared,static arch=linux-centos7-haswell\r\n - 2uvtapu ^zlib-ng@2.1.6%gcc@4.8.5+compat+new_strategies+opt+pic+shared build_system=autotools arch=linux-centos7-haswell\r\n```\r\n\r\nOne must use a more specific constraint to actually get `lcov@=1.16`:\r\n```yaml\r\nspack:\r\n specs:\r\n - lcov@1.16:1\r\n - vtk@9.1\r\n```\r\n\r\n```console\r\n$ spack -e test concretize --fresh --force\r\n==> Concretized lcov@1.16:1\r\n - rci3mgk lcov@1.16%gcc@4.8.5 build_system=makefile arch=linux-centos7-haswell\r\n - crat2yd ^gcc-runtime@4.8.5%gcc@4.8.5 build_system=generic arch=linux-centos7-haswell\r\n[e] 5iblaop ^glibc@2.17%gcc@4.8.5 build_system=autotools patches=be65fec,e179c43 arch=linux-centos7-haswell\r\n - qxwvnt4 ^gmake@4.4.1%gcc@4.8.5~guile build_system=generic arch=linux-centos7-haswell\r\n - kxuukvy ^perl@5.38.0%gcc@4.8.5+cpanm+opcode+open+shared+threads build_system=generic patches=714e4d1 arch=linux-centos7-haswell\r\n - biblila ^berkeley-db@18.1.40%gcc@4.8.5+cxx~docs+stl build_system=autotools patches=26090f4,b231fcc arch=linux-centos7-haswell\r\n - wgdwsud ^bzip2@1.0.8%gcc@4.8.5~debug~pic+shared build_system=generic arch=linux-centos7-haswell\r\n - dbcgyfj ^diffutils@3.10%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - lvejmvi ^gdbm@1.23%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - xpycboo ^readline@8.2%gcc@4.8.5 build_system=autotools patches=bbf97f1 arch=linux-centos7-haswell\r\n - 4gyl5nt ^ncurses@6.5%gcc@4.8.5~symlinks+termlib abi=none build_system=autotools patches=7a351bc arch=linux-centos7-haswell\r\n - cqndkwd ^pkgconf@2.2.0%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - 2uvtapu ^zlib-ng@2.1.6%gcc@4.8.5+compat+new_strategies+opt+pic+shared build_system=autotools arch=linux-centos7-haswell\r\n - hm3enx5 ^perl-b-hooks-endofscope@0.26%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - btgdwyb ^perl-sub-exporter-progressive@0.001013%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - qbsvk36 ^perl-capture-tiny@0.48%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - dephsmm ^perl-class-inspector@1.36%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - qboen4h ^perl-class-singleton@1.6%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - gtq7fuo ^perl-datetime@1.65%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - 2d5jec2 ^perl-cpan-meta-check@0.017%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - s2alodu ^perl-test-deep@1.204%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - qdx67uo ^perl-dist-checkconflicts@0.11%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - hbyqbpi ^perl-namespace-autoclean@0.29%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - lomk24d ^perl-test-fatal@0.017%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - iauu4h2 ^perl-test-warnings@0.031%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - 5ezrtfr ^perl-test-without-module@0.21%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - wwxgsv3 ^perl-try-tiny@0.31%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - tnyhq4a ^perl-datetime-locale@1.40%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - pkfzzl5 ^perl-file-sharedir-install@0.14%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - za34vfz ^perl-module-build@0.4232%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - urn7w4j ^perl-ipc-system-simple@1.30%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - am4nkxy ^perl-path-tiny@0.144%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - bmay2dw ^perl-test-file-sharedir@1.001002%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - cn5fx4v ^perl-class-tiny@1.008%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - fg6fsbx ^perl-file-copy-recursive@0.45%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - w2xvaug ^perl-scope-guard@0.21%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - y46rumo ^perl-test2-plugin-nowarnings@0.09%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - z2ja6rr ^perl-ipc-run3@0.048%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - iskdj5a ^perl-test2-suite@0.000159%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - iy75iyn ^perl-term-table@0.018%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - eez7opy ^perl-datetime-timezone@2.60%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - f5wlng6 ^perl-module-runtime@0.016%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - kl2hxtv ^perl-test-requires@0.11%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - alz4xgk ^perl-devel-cover@1.40%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - zzyrjkg ^perl-devel-stacktrace@2.04%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - 6khoen5 ^perl-digest-md5@2.55%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - zkszejk ^perl-eval-closure@0.14%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - e4t2f5d ^perl-exception-class@1.45%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - jodxequ ^perl-class-data-inheritable@0.08%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - zqfindh ^perl-file-sharedir@1.118%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - fwhim6b ^perl-file-spec@0.90%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - f2zbybf ^perl-json@4.10%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - z326l5c ^perl-memory-process@0.06%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - 2ddlyn2 ^perl-module-implementation@0.09%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - k3sfc5b ^perl-mro-compat@0.15%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - f7uzd46 ^perl-namespace-clean@0.27%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - tzvqjp5 ^perl-package-stash@0.37%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - fst2ife ^perl-params-validationcompiler@0.31%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - vofdfrw ^perl-role-tiny@2.002004%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - uo7i35c ^perl-exporter-tiny@1.006002%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - g4nhcqc ^perl-specio@0.48%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - vhko7pt ^perl-sub-quote@2.006008%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - ruvgcjy ^perl-scalar-list-utils@1.63%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - hxneccl ^perl-test-needs@0.002010%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - bgigm3b ^perl-sub-identify@0.14%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n - 4zvc65g ^perl-time-hires@1.9758%gcc@4.8.5 build_system=perl arch=linux-centos7-haswell\r\n\r\n==> Concretized vtk@9.1\r\n - bher5da vtk@9.1.0%gcc@4.8.5~examples~ffmpeg~ipo+mpi+opengl2~osmesa~python~qt~xdmf build_system=cmake build_type=Release generator=make patches=c446a90 arch=linux-centos7-haswell\r\n - clqqc4f ^cgns@4.4.0%gcc@4.8.5~base_scope~fortran+hdf5~int64~ipo~legacy~mem_debug+mpi~pic+scoping+shared~static~testing~tools build_system=cmake build_type=Release generator=make arch=linux-centos7-haswell\r\n - 2p5m6q4 ^cmake@3.27.9%gcc@4.8.5~doc+ncurses+ownlibs build_system=generic build_type=Release arch=linux-centos7-haswell\r\n - n2lasn6 ^curl@8.7.1%gcc@4.8.5~gssapi~ldap~libidn2~librtmp~libssh~libssh2+nghttp2 build_system=autotools libs=shared,static tls=openssl arch=linux-centos7-haswell\r\n - czln4pt ^nghttp2@1.57.0%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - zardory ^openssl@3.3.0%gcc@4.8.5~docs+shared build_system=generic certs=mozilla arch=linux-centos7-haswell\r\n - ul7pntz ^ca-certificates-mozilla@2023-05-30%gcc@4.8.5 build_system=generic arch=linux-centos7-haswell\r\n - 4gyl5nt ^ncurses@6.5%gcc@4.8.5~symlinks+termlib abi=none build_system=autotools patches=7a351bc arch=linux-centos7-haswell\r\n - i7dhebz ^double-conversion@3.3.0%gcc@4.8.5~ipo build_system=cmake build_type=Release generator=make arch=linux-centos7-haswell\r\n - cbsizqf ^eigen@3.4.0%gcc@4.8.5~ipo build_system=cmake build_type=RelWithDebInfo generator=make arch=linux-centos7-haswell\r\n - lg4xeuz ^expat@2.6.2%gcc@4.8.5+libbsd build_system=autotools arch=linux-centos7-haswell\r\n - iplqxsq ^libbsd@0.12.1%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - nvcc6ty ^libmd@1.0.4%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - n2lcmlm ^freetype@2.13.2%gcc@4.8.5+pic+shared build_system=autotools arch=linux-centos7-haswell\r\n - wgdwsud ^bzip2@1.0.8%gcc@4.8.5~debug~pic+shared build_system=generic arch=linux-centos7-haswell\r\n - dbcgyfj ^diffutils@3.10%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - cqndkwd ^pkgconf@2.2.0%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - crat2yd ^gcc-runtime@4.8.5%gcc@4.8.5 build_system=generic arch=linux-centos7-haswell\r\n - qifxnj2 ^gl2ps@1.4.2%gcc@4.8.5~doc~ipo+png+zlib build_system=cmake build_type=Release generator=make arch=linux-centos7-haswell\r\n - 5yukwrg ^glew@2.2.0%gcc@4.8.5~ipo build_system=cmake build_type=Release generator=make gl=glx patches=7992e52 arch=linux-centos7-haswell\r\n - uaqoe2a ^libx11@1.8.7%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - ssylgsx ^inputproto@2.3.2%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - qopzmyl ^libxcb@1.16%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - 7ytgxea ^libpthread-stubs@0.5%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - x32oaar ^libxau@1.0.11%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - g2ka66p ^libxdmcp@1.1.4%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - gwwgbsj ^xcb-proto@1.16.0%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - qvpimpa ^xextproto@7.3.0%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - udqvcu2 ^xtrans@1.5.0%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - 2toqega ^xproto@7.0.31%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n[e] 5iblaop ^glibc@2.17%gcc@4.8.5 build_system=autotools patches=be65fec,e179c43 arch=linux-centos7-haswell\r\n - aldcypw ^glx@1.4%gcc@4.8.5 build_system=bundle arch=linux-centos7-haswell\r\n - fi6zeim ^mesa@23.3.6%gcc@4.8.5+glx+llvm+opengl~opengles+osmesa~strip build_system=meson buildtype=release default_library=shared arch=linux-centos7-haswell\r\n - jp36swj ^bison@3.8.2%gcc@4.8.5~color build_system=autotools arch=linux-centos7-haswell\r\n - hihc5ix ^flex@2.6.3%gcc@4.8.5+lex~nls build_system=autotools arch=linux-centos7-haswell\r\n - 3kbpvev ^gettext@0.22.5%gcc@4.8.5+bzip2+curses+git~libunistring+libxml2+pic+shared+tar+xz build_system=autotools arch=linux-centos7-haswell\r\n - fmldsrz ^tar@1.34%gcc@4.8.5 build_system=autotools zip=pigz arch=linux-centos7-haswell\r\n - okjognj ^pigz@2.8%gcc@4.8.5 build_system=makefile arch=linux-centos7-haswell\r\n - fooh6ar ^glproto@1.4.17%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - rfw5tfh ^libunwind@1.6.2%gcc@4.8.5~block_signals~conservative_checks~cxx_exceptions~debug~debug_frame+docs~pic+tests+weak_backtrace~xz~zlib build_system=autotools components=none libs=shared,static arch=linux-centos7-haswell\r\n - ryxzzsh ^libxext@1.3.5%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - i7xn4bp ^llvm-amdgpu@6.0.2%gcc@4.8.5~ipo~link_llvm_dylib~llvm_dylib+rocm-device-libs build_system=cmake build_type=Release generator=ninja patches=53f9500,b4774ca arch=linux-centos7-haswell\r\n - ac4lq7j ^z3@4.12.4%gcc@4.8.5~gmp~ipo~python build_system=cmake build_type=Release generator=make arch=linux-centos7-haswell\r\n - gi5elwm ^meson@1.3.2%gcc@4.8.5 build_system=python_pip patches=0f0b1bd arch=linux-centos7-haswell\r\n - zgltimy ^py-pip@23.1.2%gcc@4.8.5 build_system=generic arch=linux-centos7-haswell\r\n - 4xdzvj5 ^py-setuptools@69.2.0%gcc@4.8.5 build_system=generic arch=linux-centos7-haswell\r\n - z37s7f3 ^py-wheel@0.41.2%gcc@4.8.5 build_system=generic arch=linux-centos7-haswell\r\n - b6hksep ^python-venv@1.0%gcc@4.8.5 build_system=generic arch=linux-centos7-haswell\r\n - eyl2e3u ^ninja@1.11.1%gcc@4.8.5+re2c build_system=generic arch=linux-centos7-haswell\r\n - 6bvedvg ^re2c@2.2%gcc@4.8.5 build_system=generic arch=linux-centos7-haswell\r\n - fao76gh ^py-mako@1.2.4%gcc@4.8.5 build_system=python_pip arch=linux-centos7-haswell\r\n - dhsbyxo ^py-markupsafe@2.1.3%gcc@4.8.5 build_system=python_pip arch=linux-centos7-haswell\r\n - ayvno46 ^python@3.11.7%gcc@4.8.5+bz2+crypt+ctypes+dbm~debug+libxml2+lzma~nis~optimizations+pic+pyexpat+pythoncmd+readline+shared+sqlite3+ssl~tkinter+uuid+zlib build_system=generic patches=13fa8bf,b0615b2,ebdca64,f2fd060 arch=linux-centos7-haswell\r\n - qt2beyl ^libffi@3.4.6%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - eplqa3l ^xrandr@1.5.2%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - adp32lw ^libxrandr@1.5.4%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - rq6nnzv ^renderproto@0.11.1%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - hjqz55r ^libxrender@0.9.11%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - 22xg7g6 ^randrproto@1.5.0%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - qxwvnt4 ^gmake@4.4.1%gcc@4.8.5~guile build_system=generic arch=linux-centos7-haswell\r\n - 6eaimzo ^hdf5@1.14.3%gcc@4.8.5~cxx~fortran+hl~ipo~java~map+mpi+shared~subfiling~szip~threadsafe+tools api=default build_system=cmake build_type=Release generator=make patches=82088c8 arch=linux-centos7-haswell\r\n - qf5uod2 ^jsoncpp@1.9.5%gcc@4.8.5~ipo build_system=cmake build_type=Release generator=make arch=linux-centos7-haswell\r\n - wyyfhpv ^libjpeg-turbo@3.0.0%gcc@4.8.5~ipo~jpeg8~partial_decoder+pic build_system=cmake build_type=Release generator=make libs=shared,static arch=linux-centos7-haswell\r\n - et6dxli ^nasm@2.15.05%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - 4q27knh ^libogg@1.3.5%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - 4hp2mxw ^libpng@1.6.39%gcc@4.8.5~ipo~pic build_system=cmake build_type=Release generator=make libs=shared,static arch=linux-centos7-haswell\r\n - zxuba3t ^libtheora@1.1.1%gcc@4.8.5~doc build_system=autotools patches=d9bb5a9,e01511a,e01ef71,ff8478d arch=linux-centos7-haswell\r\n - aji3c6m ^autoconf@2.72%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - kmbxfoo ^automake@1.16.5%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - qybucwo ^libtool@2.4.7%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - 4x4lox4 ^findutils@4.9.0%gcc@4.8.5 build_system=autotools patches=440b954 arch=linux-centos7-haswell\r\n - 3b3ek3j ^m4@1.4.19%gcc@4.8.5+sigsegv build_system=autotools patches=9dc5fbd,bfdffa7 arch=linux-centos7-haswell\r\n - nrpah3n ^libsigsegv@2.14%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - 3g4xhw6 ^libtiff@4.5.1%gcc@4.8.5+ccitt~ipo~jbig+jpeg~jpeg12~lerc~libdeflate+logluv~lzma+lzw+next~old-jpeg+packbits~pic~pixarlog+shared+thunder~webp+zlib~zstd build_system=cmake build_type=Release generator=make arch=linux-centos7-haswell\r\n - qk5obz6 ^libxml2@2.10.3%gcc@4.8.5+pic~python+shared build_system=autotools arch=linux-centos7-haswell\r\n - 3uceuxe ^libxt@1.3.0%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - w2j354w ^kbproto@1.0.7%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - baz2vor ^libice@1.1.1%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - w3we2m2 ^libsm@1.2.4%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - egpexp7 ^util-linux-uuid@2.36.2%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - lvyrnxh ^util-macros@1.19.3%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - qf7yjzi ^lz4@1.9.4%gcc@4.8.5+pic build_system=makefile libs=shared,static arch=linux-centos7-haswell\r\n - pismd5w ^netcdf-c@4.9.2%gcc@4.8.5+blosc~byterange~dap~fsync~hdf4~jna+mpi~nczarr_zip+optimize+parallel-netcdf+pic+shared+szip+zstd build_system=autotools patches=0161eb8 arch=linux-centos7-haswell\r\n - jbnvrs7 ^c-blosc@1.21.5%gcc@4.8.5+avx2~ipo build_system=cmake build_type=Release generator=make arch=linux-centos7-haswell\r\n - dq6iwg4 ^snappy@1.1.10%gcc@4.8.5~ipo+pic+shared build_system=cmake build_type=Release generator=make arch=linux-centos7-haswell\r\n - p7okusi ^libaec@1.0.6%gcc@4.8.5~ipo+shared build_system=cmake build_type=Release generator=make arch=linux-centos7-haswell\r\n - v66qsdq ^parallel-netcdf@1.12.3%gcc@4.8.5~burstbuffer+cxx+fortran+pic+shared build_system=autotools arch=linux-centos7-haswell\r\n - wwsnver ^zstd@1.5.6%gcc@4.8.5+programs build_system=makefile compression=none libs=shared,static arch=linux-centos7-haswell\r\n - 5tn7gka ^openmpi@5.0.3%gcc@4.8.5~atomics~cuda~gpfs~internal-hwloc~internal-libevent~internal-pmix~java~legacylaunchers~lustre~memchecker~openshmem~orterunprefix~romio+rsh~static+vt+wrapper-rpath build_system=autotools fabrics=none romio-filesystem=none schedulers=none arch=linux-centos7-haswell\r\n - ghcqjwe ^hwloc@2.9.1%gcc@4.8.5~cairo~cuda~gl~libudev+libxml2~netloc~nvml~oneapi-level-zero~opencl+pci~rocm build_system=autotools libs=shared,static arch=linux-centos7-haswell\r\n - mhry57g ^libpciaccess@0.17%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - 6hn3fer ^libevent@2.1.12%gcc@4.8.5+openssl build_system=autotools arch=linux-centos7-haswell\r\n - acktmvn ^numactl@2.0.14%gcc@4.8.5 build_system=autotools patches=4e1d78c,62fc8a8,ff37630 arch=linux-centos7-haswell\r\n - fbp5nvl ^openssh@9.7p1%gcc@4.8.5+gssapi build_system=autotools arch=linux-centos7-haswell\r\n - egkl74v ^krb5@1.20.1%gcc@4.8.5+shared build_system=autotools arch=linux-centos7-haswell\r\n - fwjmngo ^libedit@3.1-20230828%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - uguj4de ^libxcrypt@4.4.35%gcc@4.8.5~obsolete_api build_system=autotools patches=4885da3 arch=linux-centos7-haswell\r\n - kxuukvy ^perl@5.38.0%gcc@4.8.5+cpanm+opcode+open+shared+threads build_system=generic patches=714e4d1 arch=linux-centos7-haswell\r\n - biblila ^berkeley-db@18.1.40%gcc@4.8.5+cxx~docs+stl build_system=autotools patches=26090f4,b231fcc arch=linux-centos7-haswell\r\n - lvejmvi ^gdbm@1.23%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - vwuqxn6 ^pmix@5.0.1%gcc@4.8.5~docs+pmi_backwards_compatibility~python~restful build_system=autotools arch=linux-centos7-haswell\r\n - wxqwuu7 ^proj@9.2.1%gcc@4.8.5+curl~ipo~pic+shared+tiff build_system=cmake build_type=Release generator=make arch=linux-centos7-haswell\r\n - rkftxzn ^pugixml@1.13%gcc@4.8.5~ipo+pic+shared build_system=cmake build_type=Release generator=make arch=linux-centos7-haswell\r\n - okoxvu5 ^seacas@2024-04-03%gcc@4.8.5~adios2+applications+cgns~faodel+fortran~ipo+legacy+matio~metis+mpi~pamgen+shared+tests~thread_safe+x11~zlib build_system=cmake build_type=Release generator=make arch=linux-centos7-haswell\r\n - xbeluyv ^catch2@3.4.0%gcc@4.8.5~ipo+pic~shared build_system=cmake build_type=Release cxxstd=17 generator=make arch=linux-centos7-haswell\r\n - fboaj3a ^fmt@10.2.1%gcc@4.8.5~ipo+pic~shared build_system=cmake build_type=Release cxxstd=11 generator=make arch=linux-centos7-haswell\r\n - yxmibe2 ^matio@1.5.26%gcc@4.8.5+hdf5+shared+zlib build_system=autotools arch=linux-centos7-haswell\r\n - 3s3u5e7 ^sqlite@3.43.2%gcc@4.8.5+column_metadata+dynamic_extensions+fts~functions+rtree build_system=autotools arch=linux-centos7-haswell\r\n - xpycboo ^readline@8.2%gcc@4.8.5 build_system=autotools patches=bbf97f1 arch=linux-centos7-haswell\r\n - zkldrzi ^utf8cpp@2.3.4%gcc@4.8.5 build_system=generic arch=linux-centos7-haswell\r\n - tdiyku6 ^xz@5.4.6%gcc@4.8.5~pic build_system=autotools libs=shared,static arch=linux-centos7-haswell\r\n - 2uvtapu ^zlib-ng@2.1.6%gcc@4.8.5+compat+new_strategies+opt+pic+shared build_system=autotools arch=linux-centos7-haswell\r\n```\r\nNote that in both cases the concrete specs for `vtk@9.1` are the same (hash `bher5da`). Hence it seems fair to conclude that the concretizer did not pick the \"best\" solution in the first case.\r\n\r\nThe above case is only a minimal example that shows the issue. For larger cases, I have observed many suboptimal choices, for seemingly random packages, for instance `py-cython`, `pmix`, `openmpi`, and so on.\r\n\r\nThat behavior did not occur using spack v0.21. For instance, using again the less constrained`spack.yaml` file for the environment `test`:\r\n```yaml\r\nspack:\r\n specs:\r\n - lcov@1\r\n - vtk@9.1\r\n```\r\nthen the v0.21 concretizer selects the version 1.16 of `lcov`:\r\n```console\r\n==> Concretized lcov@1\r\n - zls7s2k lcov@1.16%gcc@4.8.5 build_system=makefile arch=linux-centos7-haswell\r\n - dqngc5g ^gmake@4.4.1%gcc@4.8.5~guile build_system=generic arch=linux-centos7-haswell\r\n - hue2kvc ^perl@5.38.0%gcc@4.8.5+cpanm+opcode+open+shared+threads build_system=generic patches=714e4d1 arch=linux-centos7-haswell\r\n - zjxiexw ^berkeley-db@18.1.40%gcc@4.8.5+cxx~docs+stl build_system=autotools patches=26090f4,b231fcc arch=linux-centos7-haswell\r\n - ndfjfxq ^bzip2@1.0.8%gcc@4.8.5~debug~pic+shared build_system=generic arch=linux-centos7-haswell\r\n - p45tlf4 ^diffutils@3.9%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - 3a5lmmb ^libiconv@1.17%gcc@4.8.5 build_system=autotools libs=shared,static arch=linux-centos7-haswell\r\n - gltmkvw ^gdbm@1.23%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - liitlpz ^readline@8.2%gcc@4.8.5 build_system=autotools patches=bbf97f1 arch=linux-centos7-haswell\r\n - zgmokxc ^ncurses@6.4%gcc@4.8.5~symlinks+termlib abi=none build_system=autotools arch=linux-centos7-haswell\r\n - lt2wyf3 ^pkgconf@1.9.5%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - a2ywqkl ^zlib-ng@2.1.4%gcc@4.8.5+compat+opt build_system=autotools arch=linux-centos7-haswell\r\n\r\n==> Concretized vtk@9.1\r\n - eno7qju vtk@9.1.0%gcc@4.8.5~ffmpeg~ipo+mpi+opengl2~osmesa~python~qt~xdmf build_system=cmake build_type=Release generator=make patches=c446a90 arch=linux-centos7-haswell\r\n - cg7soq3 ^cgns@4.4.0%gcc@4.8.5~base_scope~fortran+hdf5~int64~ipo~legacy~mem_debug+mpi~pic+scoping+shared~static~testing~tools build_system=cmake build_type=Release generator=make arch=linux-centos7-haswell\r\n - 2qozugi ^cmake@3.27.7%gcc@4.8.5~doc+ncurses+ownlibs build_system=generic build_type=Release arch=linux-centos7-haswell\r\n - eoyphxu ^curl@8.4.0%gcc@4.8.5~gssapi~ldap~libidn2~librtmp~libssh~libssh2+nghttp2 build_system=autotools libs=shared,static tls=openssl arch=linux-centos7-haswell\r\n - isk67na ^nghttp2@1.57.0%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - j4wbgjw ^openssl@3.1.3%gcc@4.8.5~docs+shared build_system=generic certs=mozilla arch=linux-centos7-haswell\r\n - 2z5iwao ^ca-certificates-mozilla@2023-05-30%gcc@4.8.5 build_system=generic arch=linux-centos7-haswell\r\n - zgmokxc ^ncurses@6.4%gcc@4.8.5~symlinks+termlib abi=none build_system=autotools arch=linux-centos7-haswell\r\n - 7gnolxy ^double-conversion@3.3.0%gcc@4.8.5~ipo build_system=cmake build_type=Release generator=make arch=linux-centos7-haswell\r\n - jb3ltnq ^eigen@3.4.0%gcc@4.8.5~ipo build_system=cmake build_type=RelWithDebInfo generator=make arch=linux-centos7-haswell\r\n - h7ho4ln ^expat@2.5.0%gcc@4.8.5+libbsd build_system=autotools arch=linux-centos7-haswell\r\n - i4qqavx ^libbsd@0.11.7%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - wgmumbw ^libmd@1.0.4%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - c7breyp ^freetype@2.11.1%gcc@4.8.5+pic+shared build_system=autotools arch=linux-centos7-haswell\r\n - ndfjfxq ^bzip2@1.0.8%gcc@4.8.5~debug~pic+shared build_system=generic arch=linux-centos7-haswell\r\n - p45tlf4 ^diffutils@3.9%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - lt2wyf3 ^pkgconf@1.9.5%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - grd2u42 ^gl2ps@1.4.2%gcc@4.8.5~doc~ipo+png+zlib build_system=cmake build_type=Release generator=make arch=linux-centos7-haswell\r\n - ocjjstr ^glew@2.2.0%gcc@4.8.5~ipo build_system=cmake build_type=Release generator=make gl=glx patches=7992e52 arch=linux-centos7-haswell\r\n - yzglgrx ^libx11@1.8.4%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - wflgsqk ^inputproto@2.3.2%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - r5qlbyr ^libxcb@1.14%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - 7zuoa4b ^libpthread-stubs@0.4%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - 6thq3in ^libxau@1.0.8%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - bqshp75 ^libxdmcp@1.1.4%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - ss5isjc ^xcb-proto@1.15.2%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - jy7qebk ^xextproto@7.3.0%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - pi7brsj ^xtrans@1.4.0%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - qxqaxmu ^xproto@7.0.31%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - xmaykf7 ^glx@1.4%gcc@4.8.5 build_system=bundle arch=linux-centos7-haswell\r\n - e7dhbvs ^mesa@23.0.3%gcc@4.8.5+glx+llvm+opengl~opengles+osmesa~strip build_system=meson buildtype=release default_library=shared arch=linux-centos7-haswell\r\n - zgo7spf ^bison@3.8.2%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - tj6v3jw ^flex@2.6.3%gcc@4.8.5+lex~nls build_system=autotools arch=linux-centos7-haswell\r\n - 45eclhr ^findutils@4.9.0%gcc@4.8.5 build_system=autotools patches=440b954 arch=linux-centos7-haswell\r\n - 2ej3dqt ^gettext@0.22.3%gcc@4.8.5+bzip2+curses+git~libunistring+libxml2+pic+shared+tar+xz build_system=autotools arch=linux-centos7-haswell\r\n - w53vjtw ^tar@1.34%gcc@4.8.5 build_system=autotools zip=pigz arch=linux-centos7-haswell\r\n - alo2o3o ^pigz@2.7%gcc@4.8.5 build_system=makefile arch=linux-centos7-haswell\r\n - fck5fft ^glproto@1.4.17%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - 42ubbot ^libunwind@1.6.2%gcc@4.8.5~block_signals~conservative_checks~cxx_exceptions~debug~debug_frame+docs~pic+tests+weak_backtrace~xz~zlib build_system=autotools components=none libs=shared,static arch=linux-centos7-haswell\r\n - f5ocqh4 ^libxext@1.3.3%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - 5x7ycj6 ^llvm-amdgpu@5.6.1%gcc@4.8.5~ipo~link_llvm_dylib~llvm_dylib~openmp+rocm-device-libs build_system=cmake build_type=Release generator=ninja patches=a08bbe1,b66529f,d35aec9 arch=linux-centos7-haswell\r\n - nl4xln4 ^z3@4.11.2%gcc@4.8.5~gmp~ipo~python build_system=cmake build_type=Release generator=make arch=linux-centos7-haswell\r\n - dkuvfmh ^meson@1.2.2%gcc@4.8.5 build_system=python_pip patches=0f0b1bd,ae59765 arch=linux-centos7-haswell\r\n - qc6zpkn ^py-pip@23.1.2%gcc@4.8.5 build_system=generic arch=linux-centos7-haswell\r\n - zc5hhbt ^py-setuptools@68.0.0%gcc@4.8.5 build_system=generic arch=linux-centos7-haswell\r\n - 4qig6oa ^py-wheel@0.41.2%gcc@4.8.5 build_system=generic arch=linux-centos7-haswell\r\n - evod6lf ^ninja@1.11.1%gcc@4.8.5+re2c build_system=generic arch=linux-centos7-haswell\r\n - bj4rhxj ^re2c@2.2%gcc@4.8.5 build_system=generic arch=linux-centos7-haswell\r\n - 7ntp6tz ^py-mako@1.2.4%gcc@4.8.5 build_system=python_pip arch=linux-centos7-haswell\r\n - nugviz4 ^py-markupsafe@2.1.3%gcc@4.8.5 build_system=python_pip arch=linux-centos7-haswell\r\n - unw3cks ^python@3.11.6%gcc@4.8.5+bz2+crypt+ctypes+dbm~debug+libxml2+lzma~nis~optimizations+pic+pyexpat+pythoncmd+readline+shared+sqlite3+ssl~tkinter+uuid+zlib build_system=generic patches=13fa8bf,b0615b2,ebdca64,f2fd060 arch=linux-centos7-haswell\r\n - 263ymkj ^libffi@3.4.4%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - 3h3v4qr ^xrandr@1.5.0%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - lozw67b ^libxrandr@1.5.3%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - li3vv6s ^renderproto@0.11.1%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - 4oulidx ^libxrender@0.9.10%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - 4rli3lb ^randrproto@1.5.0%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - dqngc5g ^gmake@4.4.1%gcc@4.8.5~guile build_system=generic arch=linux-centos7-haswell\r\n - pl2rbnx ^hdf5@1.14.3%gcc@4.8.5~cxx~fortran+hl~ipo~java~map+mpi+shared~szip~threadsafe+tools api=default build_system=cmake build_type=Release generator=make arch=linux-centos7-haswell\r\n - 2ecljrv ^jsoncpp@1.9.5%gcc@4.8.5~ipo build_system=cmake build_type=Release generator=make arch=linux-centos7-haswell\r\n - qpo226m ^libjpeg-turbo@3.0.0%gcc@4.8.5~ipo~jpeg8+shared+static build_system=cmake build_type=Release generator=make arch=linux-centos7-haswell\r\n - yblwbkx ^nasm@2.15.05%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - uqb7zth ^libogg@1.3.5%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - ekkunv4 ^libpng@1.6.39%gcc@4.8.5~ipo~pic build_system=cmake build_type=Release generator=make libs=shared,static arch=linux-centos7-haswell\r\n - 67b5lzg ^libtheora@1.1.1%gcc@4.8.5~doc build_system=autotools patches=d9bb5a9,e01511a,e01ef71,ff8478d arch=linux-centos7-haswell\r\n - jlwdcie ^autoconf@2.69%gcc@4.8.5 build_system=autotools patches=35c4492,7793209,a49dd5b arch=linux-centos7-haswell\r\n - y5q3o2m ^automake@1.16.5%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - 7aixs44 ^libtool@2.4.7%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - i3fuvtz ^m4@1.4.19%gcc@4.8.5+sigsegv build_system=autotools patches=9dc5fbd,bfdffa7 arch=linux-centos7-haswell\r\n - 7fovklt ^libsigsegv@2.14%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - pdnsbmg ^libtiff@4.5.1%gcc@4.8.5+ccitt~ipo~jbig+jpeg~jpeg12~lerc~libdeflate+logluv~lzma+lzw+next~old-jpeg+packbits~pic~pixarlog+shared+thunder~webp+zlib~zstd build_system=cmake build_type=Release generator=make arch=linux-centos7-haswell\r\n - chzesie ^libxml2@2.10.3%gcc@4.8.5+pic~python+shared build_system=autotools arch=linux-centos7-haswell\r\n - 3a5lmmb ^libiconv@1.17%gcc@4.8.5 build_system=autotools libs=shared,static arch=linux-centos7-haswell\r\n - npplqel ^xz@5.4.1%gcc@4.8.5~pic build_system=autotools libs=shared,static arch=linux-centos7-haswell\r\n - qgr7bgz ^libxt@1.1.5%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - av4hbxy ^kbproto@1.0.7%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - vosyihs ^libice@1.0.9%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - y7rpib4 ^libsm@1.2.3%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - lc4la5w ^util-linux-uuid@2.36.2%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - hnrv2o4 ^util-macros@1.19.3%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - jmi73ab ^lz4@1.9.4%gcc@4.8.5+pic build_system=makefile libs=shared,static arch=linux-centos7-haswell\r\n - tugji5t ^netcdf-c@4.9.2%gcc@4.8.5+blosc~byterange~dap~fsync~hdf4~jna+mpi~nczarr_zip+optimize+parallel-netcdf+pic+shared+szip+zstd build_system=autotools patches=0161eb8 arch=linux-centos7-haswell\r\n - l7rczrn ^c-blosc@1.21.5%gcc@4.8.5+avx2~ipo build_system=cmake build_type=Release generator=make arch=linux-centos7-haswell\r\n - jqx6izz ^snappy@1.1.10%gcc@4.8.5~ipo+pic+shared build_system=cmake build_type=Release generator=make arch=linux-centos7-haswell\r\n - 7wfmzbb ^libaec@1.0.6%gcc@4.8.5~ipo+shared build_system=cmake build_type=Release generator=make arch=linux-centos7-haswell\r\n - 5ldjzjw ^parallel-netcdf@1.12.3%gcc@4.8.5~burstbuffer+cxx+fortran+pic+shared build_system=autotools arch=linux-centos7-haswell\r\n - mx5ni7y ^zstd@1.5.5%gcc@4.8.5+programs build_system=makefile compression=none libs=shared,static arch=linux-centos7-haswell\r\n - bvbscqi ^netcdf-cxx@4.2%gcc@4.8.5+netcdf4 build_system=autotools patches=8892291 arch=linux-centos7-haswell\r\n - 52pzigf ^openmpi@4.1.6%gcc@4.8.5~atomics~cuda~cxx~cxx_exceptions~gpfs~internal-hwloc~internal-pmix~java~legacylaunchers~lustre~memchecker~openshmem~orterunprefix+romio+rsh~singularity+static+vt+wrapper-rpath build_system=autotools fabrics=none schedulers=none arch=linux-centos7-haswell\r\n - pl3f7vq ^hwloc@2.9.1%gcc@4.8.5~cairo~cuda~gl~libudev+libxml2~netloc~nvml~oneapi-level-zero~opencl+pci~rocm build_system=autotools libs=shared,static arch=linux-centos7-haswell\r\n - ncdgjio ^libpciaccess@0.17%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - bmhhfpf ^numactl@2.0.14%gcc@4.8.5 build_system=autotools patches=4e1d78c,62fc8a8,ff37630 arch=linux-centos7-haswell\r\n - 24f7ktm ^openssh@9.5p1%gcc@4.8.5+gssapi build_system=autotools arch=linux-centos7-haswell\r\n - lic2oku ^krb5@1.20.1%gcc@4.8.5+shared build_system=autotools arch=linux-centos7-haswell\r\n - q5dazat ^libedit@3.1-20210216%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - 4cegi5g ^libxcrypt@4.4.35%gcc@4.8.5~obsolete_api build_system=autotools patches=4885da3 arch=linux-centos7-haswell\r\n - hue2kvc ^perl@5.38.0%gcc@4.8.5+cpanm+opcode+open+shared+threads build_system=generic patches=714e4d1 arch=linux-centos7-haswell\r\n - zjxiexw ^berkeley-db@18.1.40%gcc@4.8.5+cxx~docs+stl build_system=autotools patches=26090f4,b231fcc arch=linux-centos7-haswell\r\n - gltmkvw ^gdbm@1.23%gcc@4.8.5 build_system=autotools arch=linux-centos7-haswell\r\n - g3rgcab ^pmix@5.0.1%gcc@4.8.5~docs+pmi_backwards_compatibility~python~restful build_system=autotools arch=linux-centos7-haswell\r\n - er3atc6 ^libevent@2.1.12%gcc@4.8.5+openssl build_system=autotools arch=linux-centos7-haswell\r\n - cjilirj ^proj@7.2.1%gcc@4.8.5+curl~ipo~pic+shared+tiff build_system=cmake build_type=Release generator=make patches=dc620ff arch=linux-centos7-haswell\r\n - fttdcvi ^pugixml@1.13%gcc@4.8.5~ipo+pic+shared build_system=cmake build_type=Release generator=make arch=linux-centos7-haswell\r\n - yq6aad6 ^seacas@2023-10-24%gcc@4.8.5~adios2+applications+cgns~faodel+fortran~ipo+legacy+matio~metis+mpi+shared~thread_safe+x11 build_system=cmake build_type=Release generator=make arch=linux-centos7-haswell\r\n - ygtuo2e ^fmt@10.1.0%gcc@4.8.5~ipo+pic~shared build_system=cmake build_type=Release cxxstd=11 generator=make arch=linux-centos7-haswell\r\n - b7rnuei ^matio@1.5.17%gcc@4.8.5+hdf5+shared+zlib build_system=autotools arch=linux-centos7-haswell\r\n - jmpsqfc ^sqlite@3.43.2%gcc@4.8.5+column_metadata+dynamic_extensions+fts~functions+rtree build_system=autotools arch=linux-centos7-haswell\r\n - liitlpz ^readline@8.2%gcc@4.8.5 build_system=autotools patches=bbf97f1 arch=linux-centos7-haswell\r\n - lzwhtvl ^utf8cpp@2.3.4%gcc@4.8.5 build_system=generic arch=linux-centos7-haswell\r\n - a2ywqkl ^zlib-ng@2.1.4%gcc@4.8.5+compat+opt build_system=autotools arch=linux-centos7-haswell\r\n```\r\n\n\n### Error message\n\n_No response_\n\n### Information on your system\n\n* **Spack:** 0.22.0\r\n* **Python:** 3.10.12\r\n* **Platform:** linux-centos7-cascadelake\r\n* **Concretizer:** clingo\n\n### General information\n\n- [X] I have run `spack debug report` and reported the version of Spack/Python/Platform\n- [X] I have searched the issues of this repo and believe this is not a duplicate\n- [X] I have run the failing commands in debug mode and reported the output\n"},"hints_text":{"kind":"string","value":"Bisected to 89fc9a9d47108c5d34f3f5180eb10d5253689c29, which just adds new versions and deps, not immediately useful.\r\n\r\nedit: just removing version 2.0 from lcov is sufficient to have it pick up 1.16 on `@1`.\nI can reproduce too. The optimization weights when `@1.16` is forced say:\r\n```\r\n==> Best of 7 considered solutions.\r\n==> Optimization Criteria:\r\n Priority Criterion Installed ToBuild\r\n 1 number of packages to build (vs. reuse) - 0\r\n 2 number of nodes from the same package - 0\r\n 3 requirement weight 0 0\r\n 4 deprecated versions used 0 0\r\n 5 version weight 0 3\r\n 6 number of non-default variants (roots) 0 0\r\n 7 preferred providers for roots 0 0\r\n 8 default values of variants not being used (roots) 0 0\r\n 9 number of non-default variants (non-roots) 0 0\r\n 10 preferred providers (non-roots) 0 0\r\n 11 compiler mismatches that are not from CLI 0 0\r\n 12 compiler mismatches that are not from CLI 0 0\r\n 13 non-preferred OS's 0 0\r\n 14 version badness 0 15\r\n 15 default values of variants not being used (non-roots) 0 6\r\n 16 non-preferred compilers 0 0\r\n 17 target mismatches 0 0\r\n 18 non-preferred targets 0 0\r\n 19 compiler mismatches (runtimes) 0 0\r\n 20 version badness (runtimes) 0 0\r\n 21 non-preferred targets (runtimes) 0 0\r\n 22 edge wiring 12 0\r\n```\r\nversus this output when `@1` is given:\r\n```\r\n==> Best of 8 considered solutions.\r\n==> Optimization Criteria:\r\n Priority Criterion Installed ToBuild\r\n 1 number of packages to build (vs. reuse) - 0\r\n 2 number of nodes from the same package - 0\r\n 3 requirement weight 0 0\r\n 4 deprecated versions used 0 0\r\n 5 version weight 0 2\r\n 6 number of non-default variants (roots) 0 0\r\n 7 preferred providers for roots 0 0\r\n 8 default values of variants not being used (roots) 0 0\r\n 9 number of non-default variants (non-roots) 0 0\r\n 10 preferred providers (non-roots) 0 0\r\n 11 compiler mismatches that are not from CLI 0 0\r\n 12 compiler mismatches that are not from CLI 0 0\r\n 13 non-preferred OS's 0 0\r\n 14 version badness 0 16\r\n 15 default values of variants not being used (non-roots) 0 6\r\n 16 non-preferred compilers 0 0\r\n 17 target mismatches 0 0\r\n 18 non-preferred targets 0 0\r\n 19 compiler mismatches (runtimes) 0 0\r\n 20 version badness (runtimes) 0 0\r\n 21 non-preferred targets (runtimes) 0 0\r\n 22 edge wiring 12 0\r\n```\nLooking into it\nWow, I found a trivial typo in the root optimisation weight that apparently has been there since ever. I'm submitting a bugfix, but this bug is kind of rare to hit, since there must be two sub-optimal versions used in the environment and they must have the same penalty score.\n> Bisected to https://github.com/spack/spack/commit/89fc9a9d47108c5d34f3f5180eb10d5253689c29, which just adds new versions and deps, not immediately useful.\r\n\r\nThat was indeed the trigger in this case, cause it caused the old version of `vtk` and the old version of `lcov` to have both a penalty of `2`. \r\n\r\n@jcortial-safran Thank you very much for the reproducer, that was super helpful. Can you confirm that this:\r\n```diff\r\ndiff --git a/lib/spack/spack/solver/concretize.lp b/lib/spack/spack/solver/concretize.lp\r\nindex 60165338c6..4d8a202ce3 100644\r\n--- a/lib/spack/spack/solver/concretize.lp\r\n+++ b/lib/spack/spack/solver/concretize.lp\r\n@@ -1432,11 +1432,11 @@ opt_criterion(73, \"deprecated versions used\").\r\n % 1. Version weight\r\n % 2. Number of variants with a non default value, if not set\r\n % for the root package.\r\n-opt_criterion(70, \"version weight\").\r\n+opt_criterion(70, \"version badness (roots)\").\r\n #minimize{ 0@270: #true }.\r\n #minimize{ 0@70: #true }.\r\n #minimize {\r\n- Weight@70+Priority\r\n+ Weight@70+Priority,PackageNode\r\n : attr(\"root\", PackageNode),\r\n version_weight(PackageNode, Weight),\r\n build_priority(PackageNode, Priority)\r\n@@ -1526,13 +1526,14 @@ opt_criterion(30, \"non-preferred OS's\").\r\n }.\r\n \r\n % Choose more recent versions for nodes\r\n-opt_criterion(25, \"version badness\").\r\n+opt_criterion(25, \"version badness (non roots)\").\r\n #minimize{ 0@225: #true }.\r\n #minimize{ 0@25: #true }.\r\n #minimize{\r\n Weight@25+Priority,node(X, Package)\r\n : version_weight(node(X, Package), Weight),\r\n build_priority(node(X, Package), Priority),\r\n+ not attr(\"root\", node(X, Package)),\r\n not runtime(Package)\r\n }.\r\n\r\n```\r\nsolves the issue for you?"},"created_at":{"kind":"string","value":"2024-05-20T14:14:02Z"},"merged_at":{"kind":"string","value":"2024-05-21T06:41:10Z"},"PASS_TO_PASS":{"kind":"string","value":"[\"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@:1]\", \"lib/spack/spack/test/concretize.py::TestConcretizeEdges::test_virtuals_provided_together_but_only_one_required_in_dag\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_custom_compiler_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_is_equivalent_to_specified_version[0.2.15]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3@1.0 ^python@3.5.1-expected4-unexpected4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants[conditional-variant-pkg@1.0-expected0-unexpected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_config[python@configured]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[0000000000000000000000000000000000000001=1.2.3-v_opts10-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_provider_must_meet_requirements\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_and_compiler_preferences[cmake %clang-expected2]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_match\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts0-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_select_lower_priority_package_from_repository_stack[builtin.mock.gmake-expected_namespaces0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[external-buildable-with-variant@0.9 +baz-True-@0.9]\", \"lib/spack/spack/test/env.py::test_conflicts_with_packages_that_are_not_dependencies[vendorsb@=1.1-True-None]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inheritance[gcc]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretization_of_test_dependencies\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_with_restricted_virtual\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3@1.1 ^python@2.7.11-expected3-unexpected3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[quantum-espresso~veritas-expected4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_parents\", \"lib/spack/spack/test/env.py::test_env_with_include_defs\", \"lib/spack/spack/test/env.py::test_update_default_view[True-./view]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[externaltool@0.9-True-@0.9]\", \"lib/spack/spack/test/env.py::test_activate_should_require_an_env\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize_preferences[specs2-libelf@0.8.13-3]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts14-False]\", \"lib/spack/spack/test/env.py::test_update_default_view[True-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_regression_issue_7941\", \"lib/spack/spack/test/env.py::test_user_view_path_is_not_canonicalized_in_yaml\", \"lib/spack/spack/test/env.py::test_removing_spec_from_manifest_with_exact_duplicates[duplicate_specs1-3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagated_variant_is_not_passed_to_dependent\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_installed_packages_when_package_def_changes[context2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_specified_variant\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concrete_specs_are_not_modified_on_reuse[mpich-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[cannonlake-preference-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[develop-v_opts1-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_installed_version_is_selected_only_for_reuse\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@:1.1]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts11-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[fftw ^mpich-expected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_hash_assigned_version_is_preferred\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3 ^python@2.7.11-expected1-unexpected1]\", \"lib/spack/spack/test/env.py::test_environment_concretizer_scheme_used[False-when_possible]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_is_equivalent_to_specified_version[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts3-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_succeeds_with_unknown_version[fbranch]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_with_unknown_namespace_dont_raise\", \"lib/spack/spack/test/env.py::test_environment_concretizer_scheme_used[True-when_possible]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_delete_version_and_reuse\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts7-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_newer_dependency_adds_a_transitive_virtual\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[external-buildable-with-variant@1.0: ~baz-False-@1.0 ~baz]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_user_can_select_externals_with_require\", \"lib/spack/spack/test/concretize.py::TestConcretizeEdges::test_condition_triggered_by_edge_property[conditional-edge+foo-expected_satisfies2-expected_not_satisfies2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mv_variants_disjoint_sets_from_packages_yaml\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a foobar=bar-True-with_dep1-without_dep1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[externaltool@0_8-True-@0_8]\", \"lib/spack/spack/test/env.py::test_cannot_initialize_in_dir_with_init_file[spack.yaml]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mv_variants_disjoint_sets_from_spec[mvapich2 file_systems=lustre,gpfs-file_systems-expected_values2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[skylake-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_detection\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_conflicts_in_package_py[bowtie@1.4.0-%gcc@10.2.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[True-dev-build-test-install-False]\", \"lib/spack/spack/test/env.py::test_initialize_from_random_file_as_manifest[random.yaml]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[conflict-parent%gcc]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mv_variants_disjoint_sets_from_spec[mvapich2-file_systems-expected_values0]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_match_virtual\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant foo=foo-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[cannonlake-preference-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[True-dev-build-test-dependent ^dev-build-test-install-False]\", \"lib/spack/spack/test/env.py::test_environment_config_scheme_used[when_possible]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[haswell-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_package_with_constraint_not_met_by_external\", \"lib/spack/spack/test/env.py::test_environment_concretizer_scheme_used[when_possible-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3 ^python@2.7.11-expected1-unexpected1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_misleading_error_message_on_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflicts_show_cores[conflict-parent@0.9^conflict~foo]\", \"lib/spack/spack/test/env.py::test_update_default_view[False-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_with_flags\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich debug=True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[cannonlake-preference-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/env.py::test_removing_from_non_existing_list_fails\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-preference-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_select_lower_priority_package_from_repository_stack[hdf5 ^gmake-expected_namespaces2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_nobuild_package\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtual_is_fully_expanded_for_callpath\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[ascent~~shared +adios2 ^adios2+shared-expected_propagation3]\", \"lib/spack/spack/test/env.py::test_conflicts_with_packages_that_are_not_dependencies[vendorsb-False-vendorsb@=1.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[False-dev-build-test-install-False]\", \"lib/spack/spack/test/env.py::test_roundtrip_spack_yaml_with_comments[spack:\\\\n specs:\\\\n - matrix:\\\\n # test\\\\n - - a\\\\n concretizer:\\\\n unify: false]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[libelf0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize_preferences[specs0-libelf@0.8.12-1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_conflicts_in_package_py[bowtie@1.2.2 os=redhat6-%gcc@11.1.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_noversion_pkg[noversion]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[False-dev-build-test-install-True]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_two_gmake[minimal]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich cppflags=\\\"-O3\\\"]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts13-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_conflicts_in_package_py[bowtie@1.3.0-%clang@15.0.0]\", \"lib/spack/spack/test/env.py::test_requires_on_virtual_and_potential_providers[zmpi-False]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_different_spec\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs5-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[quantum-espresso-expected1]\", \"lib/spack/spack/test/env.py::test_manifest_file_removal_works_if_spec_is_not_normalized[mpileaks +opt ~shared]\", \"lib/spack/spack/test/concretize.py::TestConcreteSpecsByHash::test_adding_specs[input_specs0]\", \"lib/spack/spack/test/concretize.py::TestConcretizeEdges::test_condition_triggered_by_edge_property[conditional-edge-expected_satisfies0-expected_not_satisfies0]\", \"lib/spack/spack/test/env.py::test_update_default_complex_view[\\\\nspack:\\\\n specs:\\\\n - mpileaks\\\\n view:\\\\n default:\\\\n root: ./view-gcc\\\\n select: ['%gcc']\\\\n link_type: symlink\\\\n-True-expected_view1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_no_matching_compiler_specs\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_coconcretize_reuse_and_virtuals\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[ascent++shared +adios2 ^adios2~shared-expected_propagation4]\", \"lib/spack/spack/test/env.py::test_removing_spec_from_manifest_with_exact_duplicates[duplicate_specs2-4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_sticky_variant_in_external[sticky-variant@1.0-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_versions_in_virtual_dependencies\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[ascent~~shared +adios2-expected_propagation2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_target_granularity\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a foobar=bar-False-with_dep4-without_dep4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_compiler_flag_does_not_propagate\", \"lib/spack/spack/test/concretize.py::test_spec_filters[specs0-include0-exclude0-expected0]\", \"lib/spack/spack/test/concretize.py::test_concretization_version_order\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_dependent_with_singlevalued_variant_type\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich~debug]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3@1.0 ^python@3.5.1-expected4-unexpected4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_different_compilers_get_different_flags\", \"lib/spack/spack/test/env.py::test_can_add_specs_to_environment_without_specs_attribute\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_specs_from_non_available_compilers\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concrete_specs_are_not_modified_on_reuse[mpich~debug-True]\", \"lib/spack/spack/test/env.py::test_environment_concretizer_scheme_used[True-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[external-buildable-with-variant ~baz-False-@1.0 ~baz]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_python_from_cli_and_extension_from_db\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[skylake-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_spec_with_build_dep_from_json\", \"lib/spack/spack/test/env.py::test_env_change_spec\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_externals_with_platform_explicitly_set\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_no_multiple_solutions_with_different_edges_same_nodes\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concrete_specs_are_not_modified_on_reuse[mpich+debug-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[haswell-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant foo=bar-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[True-dev-build-test-dependent ^dev-build-test-install-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mv_variants_disjoint_sets_from_spec[mvapich2 file_systems=lustre-file_systems-expected_values1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs6-4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_version_badness_more_important_than_default_mv_variants\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a foobar=bar-tests_arg3-with_dep3-without_dep3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_is_equivalent_to_specified_version[main]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_match_constraints_when_selected\", \"lib/spack/spack/test/env.py::test_error_message_when_using_too_new_lockfile\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_non_default_provider_of_multiple_virtuals\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant@1.62.0 cxxstd=17-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_succeeds_with_unknown_version[0.2.15]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants[conditional-variant-pkg@2.0~version_based-expected2-unexpected2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inheritance[gcc@10.2.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_sticky_variant_in_package\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3 ^python@3.5.1-expected0-unexpected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_conditional_variant\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a foobar=bar-tests_arg2-with_dep2-without_dep2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_os_selection_when_multiple_choices_are_possible[mpileaks-os=debian6]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3@1.1 ^python@2.7.11-expected3-unexpected3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtual_is_fully_expanded_for_mpileaks\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_require_targets_are_allowed\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_two_setuptools[minimal]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[0000001=1.2.3-v_opts12-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[broadwell-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants[conditional-variant-pkg@2.0+version_based+variant_based-expected3-unexpected3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[libelf@0.8.13]\", \"lib/spack/spack/test/env.py::test_cannot_initialize_from_bad_lockfile\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts2-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_target_ranges_in_conflicts\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_dependency_conditional_on_another_dependency_state\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_result_specs_is_not_empty[specs2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[external-buildable-with-variant +baz-True-@1.1.special +baz]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant@1.72.0 staging=flexpath-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_packages_have_consistent_hash\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_that_would_require_a_virtual_dependency\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies ^libelf@0.8.10-patched_deps3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_constraint_with_external_package[cmake %clang-%clang]\", \"lib/spack/spack/test/env.py::test_environment_concretizer_scheme_used[when_possible-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich+debug]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_annotated_on_edges[mpileaks]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_sibling\", \"lib/spack/spack/test/env.py::test_initialize_from_lockfile[spack.lock]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_regression_issue_7239\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_sticky_variant_in_external[sticky-variant@1.0+allow-gcc-True]\", \"lib/spack/spack/test/concretize.py::test_selecting_reused_sources[reuse_yaml1-0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[False-dev-build-test-dependent ^dev-build-test-install-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[quantum-espresso-expected3]\", \"lib/spack/spack/test/env.py::test_cannot_initialize_if_init_file_does_not_exist\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_none\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3@1.0 ^python@2.7.11-expected2-unexpected2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants_fail[@1.0+version_based]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_installed_specs_disregard_conflicts\", \"lib/spack/spack/test/env.py::test_env_change_spec_in_definition\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_child\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals_with_one_bound\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_my_dep_depends_on_provider_of_my_virtual_dep\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[libelf1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_anonymous\", \"lib/spack/spack/test/env.py::test_removing_spec_from_manifest_with_exact_duplicates[duplicate_specs0-3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_cumulative_version_ranges_with_different_length\", \"lib/spack/spack/test/concretize.py::test_selecting_reused_sources[reuse_yaml0-17]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_enable_disable_compiler_existence_check\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts4-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_multivalue_variant\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[callpath]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_different_modules[None]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant@1.72.0 cxxstd=2a-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals_with_dual_provider\", \"lib/spack/spack/test/env.py::test_initialize_from_lockfile[m3ia54s.json]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies +foo-patched_deps4]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_different_prefix\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_installed\", \"lib/spack/spack/test/env.py::test_environment_concretizer_scheme_used[False-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_and_compiler_preferences[cmake-expected0]\", \"lib/spack/spack/test/env.py::test_env_with_include_def_missing\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_with_unknown_package_dont_raise\", \"lib/spack/spack/test/env.py::test_preserving_comments_when_adding_specs[spack:\\\\n specs:\\\\n # baz\\\\n - zlib\\\\n-libpng-spack:\\\\n specs:\\\\n # baz\\\\n - zlib\\\\n - libpng\\\\n]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs7-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_succeeds_with_config_compatible_os\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_installed_externals_are_reused\", \"lib/spack/spack/test/env.py::test_update_default_view[./view-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@2:]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize_preferences[specs3-mpich-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_solve_in_rounds_all_unsolved\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mixing_compilers_only_affects_subdag\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts15-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_all_patches_applied\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_specifying_different_versions_build_deps\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_version_matches_any_entry_in_compilers_yaml\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_deprecated_versions_not_selected[deprecated-versions-deprecated-versions@1.0.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_multivalued_variants_from_cli[multivalue-variant-expected_dict0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_dont_select_version_that_brings_more_variants_in\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_include_specs_from_externals_and_libcs[included_externals0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_unified_python\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_reconstructed_on_reuse[mpileaks ^zmpi-zmpi]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_target_compatibility\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@2.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@2.2_1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_multivalued_variants_from_cli[multivalue-variant libs=static-expected_dict1]\", \"lib/spack/spack/test/env.py::test_env_change_spec_in_matrix_raises_error\", \"lib/spack/spack/test/env.py::TestDirectoryInitialization::test_environment_dir_from_name\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_clear_error_when_unknown_compiler_requested\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies@1.0 ^libdwarf@20111030-patched_deps2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_provides_handles_multiple_providers_of_same_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflicts_in_spec[conflict-parent@0.9^conflict~foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[broadwell-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_error_message_for_inconsistent_variants[wrong-variant-in-conflicts]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-preference-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals_with_two_bound\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants_fail[@2.0+version_based~variant_based+two_whens]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_and_virtual\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[broadwell-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/env.py::test_environment_config_scheme_used[True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_deprecated_versions_not_selected[deprecated-versions@=1.1.0-deprecated-versions@1.1.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[hypre~~shared ^openblas-expected_propagation1]\", \"lib/spack/spack/test/env.py::test_requires_on_virtual_and_potential_providers[mpich-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_simultaneous_concretization_of_specs[abstract_specs1]\", \"lib/spack/spack/test/env.py::test_cannot_initialize_in_dir_with_init_file[spack.lock]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_regression_issue_7705\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_simultaneous_concretization_of_specs[abstract_specs2]\", \"lib/spack/spack/test/concretize.py::test_spec_filters[specs1-include1-exclude1-expected1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_match_is_preferred_to_newer_version\", \"lib/spack/spack/test/concretize.py::test_filtering_reused_specs[roots0-reuse_yaml0-expected0-not_expected0-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs4-3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflicts_show_cores[conflict%clang+foo]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[git.branch=1.2.3-v_opts16-False]\", \"lib/spack/spack/test/concretize.py::TestConcreteSpecsByHash::test_adding_specs[input_specs1]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_pure_build_virtual_dependency[full]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_children\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_exclude_specs_from_reuse\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[False-dev-build-test-dependent ^dev-build-test-install-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a-True-with_dep0-without_dep0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies@1.0-patched_deps1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[haswell-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[conflict%clang~foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[externaltool@1.0-True-@1.0]\", \"lib/spack/spack/test/env.py::test_environment_cant_modify_environments_root\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_spec_flags_maintain_order\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_add_microarchitectures_on_explicit_request\", \"lib/spack/spack/test/env.py::test_manifest_file_removal_works_if_spec_is_not_normalized[mpileaks +opt]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_unsolved_specs_raises_error\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_constraint_with_external_package[cmake %gcc-%gcc]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs8-1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_simultaneous_concretization_of_specs[abstract_specs3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_flags_from_user_are_grouped\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_dont_define_new_version_from_input_if_checksum_required\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[cannonlake-preference-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs3-4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_include_specs_from_externals_and_libcs[included_externals1]\", \"lib/spack/spack/test/env.py::test_environment_pickle\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_os_selection_when_multiple_choices_are_possible[mpileaks%gcc@10.2.1 platform=test os=debian6-os=debian6]\", \"lib/spack/spack/test/env.py::test_deconcretize_then_concretize_does_not_error\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[quantum-espresso-expected2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_result_specs_is_not_empty[specs0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[skylake-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_config[python@configured target=core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs0-1]\", \"lib/spack/spack/test/concretize.py::test_filtering_reused_specs[roots1-reuse_yaml1-expected1-not_expected1-1]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_two_gmake[full]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_is_unique[mpileaks ^mpich%clang@15.0.0-%clang@15.0.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_config[python@configured os=debian]\", \"lib/spack/spack/test/env.py::test_update_default_view[False-True]\", \"lib/spack/spack/test/env.py::test_hash_change_no_rehash_concrete\", \"lib/spack/spack/test/env.py::test_initialize_from_random_file_as_manifest[spack.yaml]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/env.py::test_environment_config_scheme_used[False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@1.2:2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3 ^python@3.5.1-expected0-unexpected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs2-3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich cppflags==\\\"-O3\\\"]\", \"lib/spack/spack/test/env.py::test_update_default_complex_view[\\\\nspack:\\\\n specs:\\\\n - mpileaks\\\\n view:\\\\n default:\\\\n root: ./view-gcc\\\\n select: ['%gcc']\\\\n link_type: symlink\\\\n-./another-view-expected_view0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_module\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_noversion_pkg[noversion-bundle]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals_with_dual_provider_and_a_conflict\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_different_modules[modules1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[conflict]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[old-external-True-@1.0.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_preferred_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_provides_or_depends_on\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretization_with_compilers_supporting_target_any\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_variant_not_default\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_architecture_deep_inheritance\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-preference-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_anonymous_dep[mpileaks ^cflags=-g]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[skylake-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_reconstructed_on_reuse[mpileaks ^mpich2-mpich2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inheritance[clang@:15.0.0]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts9-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant@1.62.0 cxxstd=2a-False]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_solution_without_cycles\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_compiler_flag_not_passed_to_dependent\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_installed_packages_when_package_def_changes[context0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_regression_issue_4492\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inherited_upwards\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-preference-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[hypre~~shared ^openblas+shared-expected_propagation0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_succeeds_with_unknown_version[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@2.2_0]\", \"lib/spack/spack/test/env.py::test_error_on_nonempty_view_dir\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_do_not_invent_new_concrete_versions_unless_necessary\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_no_conflict_in_external_specs[conflict@10.0%clang+foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_select_lower_priority_package_from_repository_stack[hdf5 ^builtin.mock.gmake-expected_namespaces1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_no_compilers_for_arch\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflicts_in_spec[conflict%clang+foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_config[python@configured platform=test]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts5-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_mention_build_dep\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[True-dev-build-test-install-True]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_pure_build_virtual_dependency[minimal]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_with_custom_non_numeric_version\", \"lib/spack/spack/test/env.py::test_update_default_view[./view-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inheritance[clang]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_result_specs_is_not_empty[specs1]\", \"lib/spack/spack/test/env.py::test_variant_propagation_with_unify_false\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_os_selection_when_multiple_choices_are_possible[mpileaks%gcc@10.2.1 platform=test os=redhat6-os=redhat6]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_is_unique[mpileaks-%gcc@10.2.1]\", \"lib/spack/spack/test/env.py::test_requires_on_virtual_and_potential_providers[zmpi-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[haswell-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_and_compiler_preferences[cmake %gcc-expected1]\", \"lib/spack/spack/test/env.py::test_adding_anonymous_specs_to_env_fails\", \"lib/spack/spack/test/concretize.py::TestConcretizeEdges::test_condition_triggered_by_edge_property[conditional-edge~foo-expected_satisfies1-expected_not_satisfies1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_reconstructed_on_reuse[mpileaks-mpich]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_anonymous_dep[mpileaks ^%gcc]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extensions_have_dependency\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_self\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_host_compatible_concretization\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_in_nonbuildable_external_package[gcc-external-common-python %clang-%clang ^external-common-openssl%gcc ^external-common-gdbm%clang-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants[conditional-variant-pkg@2.0-expected1-unexpected1]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts8-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants_fail[@2.0~version_based+variant_based]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[broadwell-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_installed_packages_when_package_def_changes[context1]\", \"lib/spack/spack/test/env.py::test_manifest_file_removal_works_if_spec_is_not_normalized[mpileaks ~shared +opt]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_transitive_conditional_virtual_dependency\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_in_nonbuildable_external_package[clang-external-common-python-%clang ^external-common-openssl%clang ^external-common-gdbm%clang-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_no_reuse_when_variant_condition_does_not_hold\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_compiler_flag_propagate\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_annotated_on_edges[mpileaks ^mpich]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies-patched_deps0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize_preferences[specs1-libelf@0.8.12-2]\", \"lib/spack/spack/test/env.py::test_initialize_from_random_file_as_manifest[random.txt]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_with_provides_when\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_with_non_default_variant_as_dependency\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_simultaneous_concretization_of_specs[abstract_specs0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_flags_differ_identical_compilers\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflict_in_all_directives_true\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_sticky_variant_in_external[sticky-variant@1.0~allow-gcc-False]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_two_setuptools[full]\", \"lib/spack/spack/test/env.py::test_update_default_view[True-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3@1.0 ^python@2.7.11-expected2-unexpected2]\", \"lib/spack/spack/test/concretize.py::TestConcreteSpecsByHash::test_adding_specs[input_specs2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts6-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals\", \"lib/spack/spack/test/env.py::test_requires_on_virtual_and_potential_providers[mpich-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants_fail[@1.0~version_based]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_missing_compiler\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs1-2]\", \"lib/spack/spack/test/env.py::test_cannot_initiliaze_if_dirname_exists_as_a_file\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_error_message_for_inconsistent_variants[wrong-variant-in-depends-on]\", \"lib/spack/spack/test/env.py::test_initialize_from_lockfile[as9582g54.lock]\"]"},"PASS_TO_FAIL":{"kind":"string","value":"[]"},"FAIL_TO_PASS":{"kind":"string","value":"[\"lib/spack/spack/test/concretize.py::TestConcretize::test_version_weight_and_provenance\", \"lib/spack/spack/test/env.py::test_root_version_weights_for_old_versions\"]"},"FAIL_TO_FAIL":{"kind":"string","value":"[]"},"install":{"kind":"string","value":"{\"install\": [\"uv pip install -e .\", \"spack -d bootstrap now --dev\"], \"pre_install\": [\"tee pytest.ini < Error: Spack concretizer internal error. Please submit a bug report and include the command, environment if applicable and the following error message.\r\n flap is unsatisfiable\r\n```\n\n### Information on your system\n\n* **Spack:** 0.22.0.dev0 (05c1e7ecc22b873c3e534aef45774c88521fe7b3)\r\n* **Python:** 3.11.5\r\n* **Platform:** linux-ubuntu20.04-icelake\r\n* **Concretizer:** clingo\r\n\r\nThe error is due to a logical merge conflict between the reuse PR and the `libc` PR. `libc` providers are not implicitly included in the reuse filter, but they are implicitly added to the external configuration.\n\n### General information\n\n- [X] I have run `spack debug report` and reported the version of Spack/Python/Platform\n- [X] I have searched the issues of this repo and believe this is not a duplicate\n- [X] I have run the failing commands in debug mode and reported the output\n"},"hints_text":{"kind":"string","value":"This diff fixes the issue, and makes the external selected by default even if deprecated:\r\n```diff\r\ndiff --git a/lib/spack/spack/solver/asp.py b/lib/spack/spack/solver/asp.py\r\nindex 0d84c53970..3c8f385a29 100644\r\n--- a/lib/spack/spack/solver/asp.py\r\n+++ b/lib/spack/spack/solver/asp.py\r\n@@ -1649,11 +1649,13 @@ def external_packages(self):\r\n if isinstance(reuse_yaml, typing.Mapping):\r\n default_include = reuse_yaml.get(\"include\", [])\r\n default_exclude = reuse_yaml.get(\"exclude\", [])\r\n+ libc_externals = list(all_libcs())\r\n for source in reuse_yaml.get(\"from\", []):\r\n if source[\"type\"] != \"external\":\r\n continue\r\n \r\n- include = source.get(\"include\", default_include)\r\n+ # Since libcs are implicit externals, we need to implicitly include them\r\n+ include = source.get(\"include\", default_include) + libc_externals\r\n exclude = source.get(\"exclude\", default_exclude)\r\n spec_filters.append(\r\n SpecFilter(\r\ndiff --git a/lib/spack/spack/solver/concretize.lp b/lib/spack/spack/solver/concretize.lp\r\nindex 85cc697a2d..60165338c6 100644\r\n--- a/lib/spack/spack/solver/concretize.lp\r\n+++ b/lib/spack/spack/solver/concretize.lp\r\n@@ -1424,6 +1424,7 @@ opt_criterion(73, \"deprecated versions used\").\r\n #minimize{\r\n 1@73+Priority,PackageNode\r\n : attr(\"deprecated\", PackageNode, _),\r\n+ not external(PackageNode),\r\n build_priority(PackageNode, Priority)\r\n }.\r\n```\r\n"},"created_at":{"kind":"string","value":"2024-05-09T08:17:58Z"},"merged_at":{"kind":"string","value":"2024-05-09T16:50:15Z"},"PASS_TO_PASS":{"kind":"string","value":"[\"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@:1]\", \"lib/spack/spack/test/concretize.py::TestConcretizeEdges::test_virtuals_provided_together_but_only_one_required_in_dag\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_custom_compiler_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_is_equivalent_to_specified_version[0.2.15]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3@1.0 ^python@3.5.1-expected4-unexpected4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants[conditional-variant-pkg@1.0-expected0-unexpected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_config[python@configured]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[0000000000000000000000000000000000000001=1.2.3-v_opts10-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_provider_must_meet_requirements\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_and_compiler_preferences[cmake %clang-expected2]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_match\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts0-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_select_lower_priority_package_from_repository_stack[builtin.mock.gmake-expected_namespaces0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[external-buildable-with-variant@0.9 +baz-True-@0.9]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inheritance[gcc]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretization_of_test_dependencies\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_with_restricted_virtual\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3@1.1 ^python@2.7.11-expected3-unexpected3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[quantum-espresso~veritas-expected4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_parents\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[externaltool@0.9-True-@0.9]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize_preferences[specs2-libelf@0.8.13-3]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts14-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_regression_issue_7941\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagated_variant_is_not_passed_to_dependent\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_installed_packages_when_package_def_changes[context2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_specified_variant\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concrete_specs_are_not_modified_on_reuse[mpich-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[cannonlake-preference-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[develop-v_opts1-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_installed_version_is_selected_only_for_reuse\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts11-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@:1.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[fftw ^mpich-expected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_hash_assigned_version_is_preferred\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3 ^python@2.7.11-expected1-unexpected1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_is_equivalent_to_specified_version[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts3-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_succeeds_with_unknown_version[fbranch]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_with_unknown_namespace_dont_raise\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_delete_version_and_reuse\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_newer_dependency_adds_a_transitive_virtual\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts7-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[external-buildable-with-variant@1.0: ~baz-False-@1.0 ~baz]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_user_can_select_externals_with_require\", \"lib/spack/spack/test/concretize.py::TestConcretizeEdges::test_condition_triggered_by_edge_property[conditional-edge+foo-expected_satisfies2-expected_not_satisfies2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mv_variants_disjoint_sets_from_packages_yaml\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a foobar=bar-True-with_dep1-without_dep1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[externaltool@0_8-True-@0_8]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mv_variants_disjoint_sets_from_spec[mvapich2 file_systems=lustre,gpfs-file_systems-expected_values2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[skylake-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_detection\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_conflicts_in_package_py[bowtie@1.4.0-%gcc@10.2.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[True-dev-build-test-install-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[conflict-parent%gcc]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mv_variants_disjoint_sets_from_spec[mvapich2-file_systems-expected_values0]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_match_virtual\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant foo=foo-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[cannonlake-preference-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[True-dev-build-test-dependent ^dev-build-test-install-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[haswell-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_package_with_constraint_not_met_by_external\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3 ^python@2.7.11-expected1-unexpected1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_misleading_error_message_on_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflicts_show_cores[conflict-parent@0.9^conflict~foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_with_flags\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich debug=True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[cannonlake-preference-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-preference-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_select_lower_priority_package_from_repository_stack[hdf5 ^gmake-expected_namespaces2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_nobuild_package\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtual_is_fully_expanded_for_callpath\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[ascent~~shared +adios2 ^adios2+shared-expected_propagation3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[False-dev-build-test-install-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[libelf0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize_preferences[specs0-libelf@0.8.12-1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_conflicts_in_package_py[bowtie@1.2.2 os=redhat6-%gcc@11.1.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_noversion_pkg[noversion]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[False-dev-build-test-install-True]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_two_gmake[minimal]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich cppflags=\\\"-O3\\\"]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts13-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_conflicts_in_package_py[bowtie@1.3.0-%clang@15.0.0]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_different_spec\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs5-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[quantum-espresso-expected1]\", \"lib/spack/spack/test/concretize.py::TestConcreteSpecsByHash::test_adding_specs[input_specs0]\", \"lib/spack/spack/test/concretize.py::TestConcretizeEdges::test_condition_triggered_by_edge_property[conditional-edge-expected_satisfies0-expected_not_satisfies0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_no_matching_compiler_specs\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_coconcretize_reuse_and_virtuals\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[ascent++shared +adios2 ^adios2~shared-expected_propagation4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_sticky_variant_in_external[sticky-variant@1.0-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_versions_in_virtual_dependencies\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[ascent~~shared +adios2-expected_propagation2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_target_granularity\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a foobar=bar-False-with_dep4-without_dep4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_compiler_flag_does_not_propagate\", \"lib/spack/spack/test/concretize.py::test_spec_filters[specs0-include0-exclude0-expected0]\", \"lib/spack/spack/test/concretize.py::test_concretization_version_order\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_dependent_with_singlevalued_variant_type\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich~debug]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3@1.0 ^python@3.5.1-expected4-unexpected4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_different_compilers_get_different_flags\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_specs_from_non_available_compilers\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concrete_specs_are_not_modified_on_reuse[mpich~debug-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_version_weight_and_provenance\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[external-buildable-with-variant ~baz-False-@1.0 ~baz]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_python_from_cli_and_extension_from_db\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[skylake-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_spec_with_build_dep_from_json\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_externals_with_platform_explicitly_set\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_no_multiple_solutions_with_different_edges_same_nodes\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concrete_specs_are_not_modified_on_reuse[mpich+debug-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[haswell-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant foo=bar-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[True-dev-build-test-dependent ^dev-build-test-install-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mv_variants_disjoint_sets_from_spec[mvapich2 file_systems=lustre-file_systems-expected_values1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs6-4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_version_badness_more_important_than_default_mv_variants\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a foobar=bar-tests_arg3-with_dep3-without_dep3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_is_equivalent_to_specified_version[main]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_match_constraints_when_selected\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_non_default_provider_of_multiple_virtuals\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant@1.62.0 cxxstd=17-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_succeeds_with_unknown_version[0.2.15]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants[conditional-variant-pkg@2.0~version_based-expected2-unexpected2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inheritance[gcc@10.2.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_sticky_variant_in_package\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3 ^python@3.5.1-expected0-unexpected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_conditional_variant\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a foobar=bar-tests_arg2-with_dep2-without_dep2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_os_selection_when_multiple_choices_are_possible[mpileaks-os=debian6]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3@1.1 ^python@2.7.11-expected3-unexpected3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtual_is_fully_expanded_for_mpileaks\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_require_targets_are_allowed\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_two_setuptools[minimal]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[0000001=1.2.3-v_opts12-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[broadwell-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants[conditional-variant-pkg@2.0+version_based+variant_based-expected3-unexpected3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[libelf@0.8.13]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts2-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_target_ranges_in_conflicts\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_dependency_conditional_on_another_dependency_state\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_result_specs_is_not_empty[specs2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[external-buildable-with-variant +baz-True-@1.1.special +baz]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant@1.72.0 staging=flexpath-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_packages_have_consistent_hash\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_that_would_require_a_virtual_dependency\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies ^libelf@0.8.10-patched_deps3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_constraint_with_external_package[cmake %clang-%clang]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich+debug]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_annotated_on_edges[mpileaks]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_sibling\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_sticky_variant_in_external[sticky-variant@1.0+allow-gcc-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_regression_issue_7239\", \"lib/spack/spack/test/concretize.py::test_selecting_reused_sources[reuse_yaml1-0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[False-dev-build-test-dependent ^dev-build-test-install-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[quantum-espresso-expected3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_none\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3@1.0 ^python@2.7.11-expected2-unexpected2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants_fail[@1.0+version_based]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_installed_specs_disregard_conflicts\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_child\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals_with_one_bound\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_my_dep_depends_on_provider_of_my_virtual_dep\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[libelf1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_anonymous\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_cumulative_version_ranges_with_different_length\", \"lib/spack/spack/test/concretize.py::test_selecting_reused_sources[reuse_yaml0-17]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_enable_disable_compiler_existence_check\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts4-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_multivalue_variant\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[callpath]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_different_modules[None]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant@1.72.0 cxxstd=2a-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals_with_dual_provider\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies +foo-patched_deps4]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_different_prefix\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_installed\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_and_compiler_preferences[cmake-expected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_with_unknown_package_dont_raise\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs7-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_succeeds_with_config_compatible_os\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_installed_externals_are_reused\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@2:]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize_preferences[specs3-mpich-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_solve_in_rounds_all_unsolved\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mixing_compilers_only_affects_subdag\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts15-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_all_patches_applied\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_specifying_different_versions_build_deps\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_version_matches_any_entry_in_compilers_yaml\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_deprecated_versions_not_selected[deprecated-versions-deprecated-versions@1.0.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_multivalued_variants_from_cli[multivalue-variant-expected_dict0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_dont_select_version_that_brings_more_variants_in\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_unified_python\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_reconstructed_on_reuse[mpileaks ^zmpi-zmpi]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_target_compatibility\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@2.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@2.2_1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_multivalued_variants_from_cli[multivalue-variant libs=static-expected_dict1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_clear_error_when_unknown_compiler_requested\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies@1.0 ^libdwarf@20111030-patched_deps2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_provides_handles_multiple_providers_of_same_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflicts_in_spec[conflict-parent@0.9^conflict~foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[broadwell-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_error_message_for_inconsistent_variants[wrong-variant-in-conflicts]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-preference-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals_with_two_bound\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants_fail[@2.0+version_based~variant_based+two_whens]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_and_virtual\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[broadwell-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_deprecated_versions_not_selected[deprecated-versions@=1.1.0-deprecated-versions@1.1.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[hypre~~shared ^openblas-expected_propagation1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_simultaneous_concretization_of_specs[abstract_specs1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_regression_issue_7705\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_simultaneous_concretization_of_specs[abstract_specs2]\", \"lib/spack/spack/test/concretize.py::test_spec_filters[specs1-include1-exclude1-expected1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_match_is_preferred_to_newer_version\", \"lib/spack/spack/test/concretize.py::test_filtering_reused_specs[roots0-reuse_yaml0-expected0-not_expected0-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs4-3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflicts_show_cores[conflict%clang+foo]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[git.branch=1.2.3-v_opts16-False]\", \"lib/spack/spack/test/concretize.py::TestConcreteSpecsByHash::test_adding_specs[input_specs1]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_pure_build_virtual_dependency[full]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_children\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_exclude_specs_from_reuse\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[False-dev-build-test-dependent ^dev-build-test-install-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a-True-with_dep0-without_dep0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies@1.0-patched_deps1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[haswell-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[conflict%clang~foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[externaltool@1.0-True-@1.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_spec_flags_maintain_order\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_add_microarchitectures_on_explicit_request\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_unsolved_specs_raises_error\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_constraint_with_external_package[cmake %gcc-%gcc]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs8-1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_simultaneous_concretization_of_specs[abstract_specs3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_flags_from_user_are_grouped\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_dont_define_new_version_from_input_if_checksum_required\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[cannonlake-preference-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs3-4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_os_selection_when_multiple_choices_are_possible[mpileaks%gcc@10.2.1 platform=test os=debian6-os=debian6]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[quantum-espresso-expected2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_result_specs_is_not_empty[specs0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[skylake-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_config[python@configured target=core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs0-1]\", \"lib/spack/spack/test/concretize.py::test_filtering_reused_specs[roots1-reuse_yaml1-expected1-not_expected1-1]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_two_gmake[full]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_is_unique[mpileaks ^mpich%clang@15.0.0-%clang@15.0.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_config[python@configured os=debian]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@1.2:2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3 ^python@3.5.1-expected0-unexpected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs2-3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich cppflags==\\\"-O3\\\"]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_different_modules[modules1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_module\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_noversion_pkg[noversion-bundle]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals_with_dual_provider_and_a_conflict\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[conflict]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[old-external-True-@1.0.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_preferred_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_provides_or_depends_on\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretization_with_compilers_supporting_target_any\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_variant_not_default\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_architecture_deep_inheritance\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-preference-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_anonymous_dep[mpileaks ^cflags=-g]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[skylake-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_reconstructed_on_reuse[mpileaks ^mpich2-mpich2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inheritance[clang@:15.0.0]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts9-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant@1.62.0 cxxstd=2a-False]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_solution_without_cycles\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_compiler_flag_not_passed_to_dependent\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_installed_packages_when_package_def_changes[context0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_regression_issue_4492\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inherited_upwards\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-preference-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[hypre~~shared ^openblas+shared-expected_propagation0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_succeeds_with_unknown_version[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@2.2_0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_do_not_invent_new_concrete_versions_unless_necessary\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_no_conflict_in_external_specs[conflict@10.0%clang+foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_select_lower_priority_package_from_repository_stack[hdf5 ^builtin.mock.gmake-expected_namespaces1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_no_compilers_for_arch\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflicts_in_spec[conflict%clang+foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_config[python@configured platform=test]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts5-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_mention_build_dep\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[True-dev-build-test-install-True]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_pure_build_virtual_dependency[minimal]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_with_custom_non_numeric_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inheritance[clang]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_result_specs_is_not_empty[specs1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_os_selection_when_multiple_choices_are_possible[mpileaks%gcc@10.2.1 platform=test os=redhat6-os=redhat6]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_is_unique[mpileaks-%gcc@10.2.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[haswell-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_and_compiler_preferences[cmake %gcc-expected1]\", \"lib/spack/spack/test/concretize.py::TestConcretizeEdges::test_condition_triggered_by_edge_property[conditional-edge~foo-expected_satisfies1-expected_not_satisfies1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_reconstructed_on_reuse[mpileaks-mpich]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_anonymous_dep[mpileaks ^%gcc]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extensions_have_dependency\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_self\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_host_compatible_concretization\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_in_nonbuildable_external_package[gcc-external-common-python %clang-%clang ^external-common-openssl%gcc ^external-common-gdbm%clang-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants[conditional-variant-pkg@2.0-expected1-unexpected1]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts8-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants_fail[@2.0~version_based+variant_based]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[broadwell-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_installed_packages_when_package_def_changes[context1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_transitive_conditional_virtual_dependency\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_in_nonbuildable_external_package[clang-external-common-python-%clang ^external-common-openssl%clang ^external-common-gdbm%clang-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_no_reuse_when_variant_condition_does_not_hold\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_compiler_flag_propagate\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_annotated_on_edges[mpileaks ^mpich]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies-patched_deps0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize_preferences[specs1-libelf@0.8.12-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_with_provides_when\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_with_non_default_variant_as_dependency\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_simultaneous_concretization_of_specs[abstract_specs0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_flags_differ_identical_compilers\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflict_in_all_directives_true\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_sticky_variant_in_external[sticky-variant@1.0~allow-gcc-False]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_two_setuptools[full]\", \"lib/spack/spack/test/concretize.py::TestConcreteSpecsByHash::test_adding_specs[input_specs2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3@1.0 ^python@2.7.11-expected2-unexpected2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts6-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants_fail[@1.0~version_based]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_missing_compiler\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs1-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_error_message_for_inconsistent_variants[wrong-variant-in-depends-on]\"]"},"PASS_TO_FAIL":{"kind":"string","value":"[]"},"FAIL_TO_PASS":{"kind":"string","value":"[\"lib/spack/spack/test/concretize.py::TestConcretize::test_include_specs_from_externals_and_libcs[included_externals1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_include_specs_from_externals_and_libcs[included_externals0]\"]"},"FAIL_TO_FAIL":{"kind":"string","value":"[]"},"install":{"kind":"string","value":"{\"install\": [\"uv pip install -e .\", \"spack -d bootstrap now --dev\"], \"pre_install\": [\"tee pytest.ini < None:\n self.data: Dict[str, spack.spec.Spec] = {}\n+ self.explicit: Set[str] = set()\n \n def __getitem__(self, dag_hash: str) -> spack.spec.Spec:\n return self.data[dag_hash]\n \n+ def explicit_items(self) -> Iterator[Tuple[str, spack.spec.Spec]]:\n+ \"\"\"Iterate on items that have been added explicitly, and not just as a dependency\n+ of other nodes.\n+ \"\"\"\n+ for h, s in self.items():\n+ # We need to make an exception for gcc-runtime, until we can splice it.\n+ if h in self.explicit or s.name == \"gcc-runtime\":\n+ yield h, s\n+\n def add(self, spec: spack.spec.Spec) -> bool:\n \"\"\"Adds a new concrete spec to the mapping. Returns True if the spec was just added,\n False if the spec was already in the mapping.\n \n+ Calling this function marks the spec as added explicitly.\n+\n Args:\n spec: spec to be added\n \n@@ -966,6 +978,7 @@ def add(self, spec: spack.spec.Spec) -> bool:\n raise ValueError(msg)\n \n dag_hash = spec.dag_hash()\n+ self.explicit.add(dag_hash)\n if dag_hash in self.data:\n return False\n \n@@ -2349,7 +2362,7 @@ def register_concrete_spec(self, spec, possible):\n \n def concrete_specs(self):\n \"\"\"Emit facts for reusable specs\"\"\"\n- for h, spec in self.reusable_and_possible.items():\n+ for h, spec in self.reusable_and_possible.explicit_items():\n # this indicates that there is a spec like this installed\n self.gen.fact(fn.installed_hash(spec.name, h))\n # this describes what constraints it imposes on the solve\n"},"test_patch":{"kind":"string","value":"diff --git a/lib/spack/spack/test/concretize.py b/lib/spack/spack/test/concretize.py\nindex 009d9b6a3676f..f0b92c98f58a2 100644\n--- a/lib/spack/spack/test/concretize.py\n+++ b/lib/spack/spack/test/concretize.py\n@@ -2463,6 +2463,46 @@ def test_spec_with_build_dep_from_json(self, tmp_path):\n s = Spec(f\"dtuse ^{str(json_file)}\").concretized()\n assert s[\"dttop\"].dag_hash() == build_dep.dag_hash()\n \n+ @pytest.mark.regression(\"44040\")\n+ def test_exclude_specs_from_reuse(self, monkeypatch):\n+ \"\"\"Tests that we can exclude a spec from reuse when concretizing, and that the spec\n+ is not added back to the solve as a dependency of another reusable spec.\n+\n+ The expected spec is:\n+\n+ o callpath@1.0\n+ |\\\n+ | |\\\n+ o | | mpich@3.0.4\n+ |/ /\n+ | o dyninst@8.2\n+ |/|\n+ | |\\\n+ | | o libdwarf@20130729\n+ | |/|\n+ |/|/\n+ | o libelf@0.8.13\n+ |/\n+ o glibc@2.31\n+ \"\"\"\n+ # Prepare a mock mirror that returns an old version of dyninst\n+ request_str = \"callpath ^mpich\"\n+ reused = Spec(f\"{request_str} ^dyninst@8.1.1\").concretized()\n+ monkeypatch.setattr(spack.solver.asp, \"_specs_from_mirror\", lambda: [reused])\n+\n+ # Exclude dyninst from reuse, so we expect that the old version is not taken into account\n+ with spack.config.override(\n+ \"concretizer:reuse\", {\"from\": [{\"type\": \"buildcache\", \"exclude\": [\"dyninst\"]}]}\n+ ):\n+ result = Spec(request_str).concretized()\n+\n+ assert result.dag_hash() != reused.dag_hash()\n+ assert result[\"mpich\"].dag_hash() == reused[\"mpich\"].dag_hash()\n+ assert result[\"dyninst\"].dag_hash() != reused[\"dyninst\"].dag_hash()\n+ assert result[\"dyninst\"].satisfies(\"@=8.2\")\n+ for dep in result[\"dyninst\"].traverse(root=False):\n+ assert dep.dag_hash() == reused[dep.name].dag_hash()\n+\n \n @pytest.fixture()\n def duplicates_test_repository():\n"},"problem_statement":{"kind":"string","value":"Exclude/include rules are not always applied when filtering reused specs\n### Steps to reproduce\n\nWhen concretizing the following environment\r\n```yaml\r\nspack:\r\n specs:\r\n - libvterm\r\n view: true\r\n concretizer:\r\n unify: true\r\n reuse:\r\n from:\r\n - type: buildcache\r\n exclude:\r\n - libtool\r\n mirrors:\r\n develop-ml-linux-x86_64-cpu: https://binaries.spack.io/develop/ml-linux-x86_64-cpu\r\n```\r\nusing the following command:\r\n```console\r\n$ spack concretize\r\n```\r\n`libtool` gets reused from the buildcache, even if it is explicitly excluded from the configuration.\n\n### Error message\n\nNo error message, but a configuration entry is not respected. The issue is with the way we handle reuse, which traverses dependencies and adds back the excluded spec _iff_ it is a dependency of something not excluded.\n\n### Information on your system\n\n* **Spack:** 0.22.0.dev0 (fd3cd3a1c6a7147c1a84d6a8415800c8f079c5c6)\r\n* **Python:** 3.11.5\r\n* **Platform:** linux-ubuntu20.04-icelake\r\n* **Concretizer:** clingo\r\n\n\n### General information\n\n- [X] I have run `spack debug report` and reported the version of Spack/Python/Platform\n- [X] I have searched the issues of this repo and believe this is not a duplicate\n- [X] I have run the failing commands in debug mode and reported the output\n"},"hints_text":{"kind":"string","value":""},"created_at":{"kind":"string","value":"2024-05-06T21:32:30Z"},"merged_at":{"kind":"string","value":"2024-05-07T07:06:51Z"},"PASS_TO_PASS":{"kind":"string","value":"[\"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@:1]\", \"lib/spack/spack/test/concretize.py::TestConcretizeEdges::test_virtuals_provided_together_but_only_one_required_in_dag\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_custom_compiler_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_is_equivalent_to_specified_version[0.2.15]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3@1.0 ^python@3.5.1-expected4-unexpected4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants[conditional-variant-pkg@1.0-expected0-unexpected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_config[python@configured]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[0000000000000000000000000000000000000001=1.2.3-v_opts10-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_provider_must_meet_requirements\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_and_compiler_preferences[cmake %clang-expected2]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_match\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts0-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_select_lower_priority_package_from_repository_stack[builtin.mock.gmake-expected_namespaces0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[external-buildable-with-variant@0.9 +baz-True-@0.9]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inheritance[gcc]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretization_of_test_dependencies\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_with_restricted_virtual\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3@1.1 ^python@2.7.11-expected3-unexpected3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[quantum-espresso~veritas-expected4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_parents\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[externaltool@0.9-True-@0.9]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize_preferences[specs2-libelf@0.8.13-3]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts14-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_regression_issue_7941\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagated_variant_is_not_passed_to_dependent\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_installed_packages_when_package_def_changes[context2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_specified_variant\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concrete_specs_are_not_modified_on_reuse[mpich-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[cannonlake-preference-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[develop-v_opts1-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_installed_version_is_selected_only_for_reuse\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts11-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@:1.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[fftw ^mpich-expected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_hash_assigned_version_is_preferred\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3 ^python@2.7.11-expected1-unexpected1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_is_equivalent_to_specified_version[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts3-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_succeeds_with_unknown_version[fbranch]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_with_unknown_namespace_dont_raise\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_delete_version_and_reuse\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_newer_dependency_adds_a_transitive_virtual\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts7-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[external-buildable-with-variant@1.0: ~baz-False-@1.0 ~baz]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_user_can_select_externals_with_require\", \"lib/spack/spack/test/concretize.py::TestConcretizeEdges::test_condition_triggered_by_edge_property[conditional-edge+foo-expected_satisfies2-expected_not_satisfies2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mv_variants_disjoint_sets_from_packages_yaml\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a foobar=bar-True-with_dep1-without_dep1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[externaltool@0_8-True-@0_8]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mv_variants_disjoint_sets_from_spec[mvapich2 file_systems=lustre,gpfs-file_systems-expected_values2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[skylake-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_detection\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_conflicts_in_package_py[bowtie@1.4.0-%gcc@10.2.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[True-dev-build-test-install-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[conflict-parent%gcc]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mv_variants_disjoint_sets_from_spec[mvapich2-file_systems-expected_values0]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_match_virtual\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant foo=foo-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[cannonlake-preference-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[True-dev-build-test-dependent ^dev-build-test-install-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[haswell-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_package_with_constraint_not_met_by_external\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3 ^python@2.7.11-expected1-unexpected1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_misleading_error_message_on_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflicts_show_cores[conflict-parent@0.9^conflict~foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_with_flags\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich debug=True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[cannonlake-preference-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-preference-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_select_lower_priority_package_from_repository_stack[hdf5 ^gmake-expected_namespaces2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_nobuild_package\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtual_is_fully_expanded_for_callpath\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[ascent~~shared +adios2 ^adios2+shared-expected_propagation3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[False-dev-build-test-install-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[libelf0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize_preferences[specs0-libelf@0.8.12-1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_conflicts_in_package_py[bowtie@1.2.2 os=redhat6-%gcc@11.1.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_noversion_pkg[noversion]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[False-dev-build-test-install-True]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_two_gmake[minimal]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich cppflags=\\\"-O3\\\"]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts13-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_conflicts_in_package_py[bowtie@1.3.0-%clang@15.0.0]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_different_spec\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs5-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[quantum-espresso-expected1]\", \"lib/spack/spack/test/concretize.py::TestConcreteSpecsByHash::test_adding_specs[input_specs0]\", \"lib/spack/spack/test/concretize.py::TestConcretizeEdges::test_condition_triggered_by_edge_property[conditional-edge-expected_satisfies0-expected_not_satisfies0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_no_matching_compiler_specs\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_coconcretize_reuse_and_virtuals\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[ascent++shared +adios2 ^adios2~shared-expected_propagation4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_sticky_variant_in_external[sticky-variant@1.0-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_versions_in_virtual_dependencies\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[ascent~~shared +adios2-expected_propagation2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_target_granularity\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a foobar=bar-False-with_dep4-without_dep4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_compiler_flag_does_not_propagate\", \"lib/spack/spack/test/concretize.py::test_spec_filters[specs0-include0-exclude0-expected0]\", \"lib/spack/spack/test/concretize.py::test_concretization_version_order\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_dependent_with_singlevalued_variant_type\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich~debug]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3@1.0 ^python@3.5.1-expected4-unexpected4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_different_compilers_get_different_flags\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_specs_from_non_available_compilers\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concrete_specs_are_not_modified_on_reuse[mpich~debug-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_version_weight_and_provenance\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[external-buildable-with-variant ~baz-False-@1.0 ~baz]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_python_from_cli_and_extension_from_db\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[skylake-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_spec_with_build_dep_from_json\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_externals_with_platform_explicitly_set\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_no_multiple_solutions_with_different_edges_same_nodes\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concrete_specs_are_not_modified_on_reuse[mpich+debug-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[haswell-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant foo=bar-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[True-dev-build-test-dependent ^dev-build-test-install-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mv_variants_disjoint_sets_from_spec[mvapich2 file_systems=lustre-file_systems-expected_values1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs6-4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_version_badness_more_important_than_default_mv_variants\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a foobar=bar-tests_arg3-with_dep3-without_dep3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_is_equivalent_to_specified_version[main]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_match_constraints_when_selected\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_non_default_provider_of_multiple_virtuals\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant@1.62.0 cxxstd=17-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_succeeds_with_unknown_version[0.2.15]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants[conditional-variant-pkg@2.0~version_based-expected2-unexpected2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inheritance[gcc@10.2.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_sticky_variant_in_package\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3 ^python@3.5.1-expected0-unexpected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_conditional_variant\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a foobar=bar-tests_arg2-with_dep2-without_dep2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_os_selection_when_multiple_choices_are_possible[mpileaks-os=debian6]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3@1.1 ^python@2.7.11-expected3-unexpected3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtual_is_fully_expanded_for_mpileaks\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_require_targets_are_allowed\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_two_setuptools[minimal]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[0000001=1.2.3-v_opts12-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[broadwell-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants[conditional-variant-pkg@2.0+version_based+variant_based-expected3-unexpected3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[libelf@0.8.13]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts2-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_target_ranges_in_conflicts\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_dependency_conditional_on_another_dependency_state\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_result_specs_is_not_empty[specs2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[external-buildable-with-variant +baz-True-@1.1.special +baz]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant@1.72.0 staging=flexpath-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_packages_have_consistent_hash\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_that_would_require_a_virtual_dependency\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies ^libelf@0.8.10-patched_deps3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_constraint_with_external_package[cmake %clang-%clang]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich+debug]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_annotated_on_edges[mpileaks]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_sibling\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_sticky_variant_in_external[sticky-variant@1.0+allow-gcc-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_regression_issue_7239\", \"lib/spack/spack/test/concretize.py::test_selecting_reused_sources[reuse_yaml1-0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[False-dev-build-test-dependent ^dev-build-test-install-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[quantum-espresso-expected3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_none\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3@1.0 ^python@2.7.11-expected2-unexpected2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants_fail[@1.0+version_based]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_installed_specs_disregard_conflicts\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_child\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals_with_one_bound\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_my_dep_depends_on_provider_of_my_virtual_dep\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[libelf1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_anonymous\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_cumulative_version_ranges_with_different_length\", \"lib/spack/spack/test/concretize.py::test_selecting_reused_sources[reuse_yaml0-17]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_enable_disable_compiler_existence_check\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts4-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_multivalue_variant\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[callpath]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_different_modules[None]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant@1.72.0 cxxstd=2a-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals_with_dual_provider\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies +foo-patched_deps4]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_different_prefix\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_installed\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_and_compiler_preferences[cmake-expected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_with_unknown_package_dont_raise\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs7-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_succeeds_with_config_compatible_os\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_installed_externals_are_reused\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@2:]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize_preferences[specs3-mpich-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_solve_in_rounds_all_unsolved\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mixing_compilers_only_affects_subdag\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts15-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_all_patches_applied\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_specifying_different_versions_build_deps\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_version_matches_any_entry_in_compilers_yaml\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_deprecated_versions_not_selected[deprecated-versions-deprecated-versions@1.0.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_multivalued_variants_from_cli[multivalue-variant-expected_dict0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_dont_select_version_that_brings_more_variants_in\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_unified_python\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_reconstructed_on_reuse[mpileaks ^zmpi-zmpi]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_target_compatibility\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@2.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@2.2_1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_multivalued_variants_from_cli[multivalue-variant libs=static-expected_dict1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_clear_error_when_unknown_compiler_requested\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies@1.0 ^libdwarf@20111030-patched_deps2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_provides_handles_multiple_providers_of_same_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflicts_in_spec[conflict-parent@0.9^conflict~foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[broadwell-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_error_message_for_inconsistent_variants[wrong-variant-in-conflicts]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-preference-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals_with_two_bound\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants_fail[@2.0+version_based~variant_based+two_whens]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_and_virtual\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[broadwell-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_deprecated_versions_not_selected[deprecated-versions@=1.1.0-deprecated-versions@1.1.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[hypre~~shared ^openblas-expected_propagation1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_simultaneous_concretization_of_specs[abstract_specs1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_regression_issue_7705\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_simultaneous_concretization_of_specs[abstract_specs2]\", \"lib/spack/spack/test/concretize.py::test_spec_filters[specs1-include1-exclude1-expected1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_match_is_preferred_to_newer_version\", \"lib/spack/spack/test/concretize.py::test_filtering_reused_specs[roots0-reuse_yaml0-expected0-not_expected0-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs4-3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflicts_show_cores[conflict%clang+foo]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[git.branch=1.2.3-v_opts16-False]\", \"lib/spack/spack/test/concretize.py::TestConcreteSpecsByHash::test_adding_specs[input_specs1]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_pure_build_virtual_dependency[full]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_children\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[False-dev-build-test-dependent ^dev-build-test-install-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a-True-with_dep0-without_dep0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies@1.0-patched_deps1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[haswell-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[conflict%clang~foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[externaltool@1.0-True-@1.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_spec_flags_maintain_order\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_add_microarchitectures_on_explicit_request\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_unsolved_specs_raises_error\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_constraint_with_external_package[cmake %gcc-%gcc]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs8-1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_simultaneous_concretization_of_specs[abstract_specs3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_flags_from_user_are_grouped\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_dont_define_new_version_from_input_if_checksum_required\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[cannonlake-preference-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs3-4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_os_selection_when_multiple_choices_are_possible[mpileaks%gcc@10.2.1 platform=test os=debian6-os=debian6]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[quantum-espresso-expected2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_result_specs_is_not_empty[specs0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[skylake-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_config[python@configured target=core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs0-1]\", \"lib/spack/spack/test/concretize.py::test_filtering_reused_specs[roots1-reuse_yaml1-expected1-not_expected1-1]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_two_gmake[full]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_is_unique[mpileaks ^mpich%clang@15.0.0-%clang@15.0.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_config[python@configured os=debian]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@1.2:2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3 ^python@3.5.1-expected0-unexpected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs2-3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich cppflags==\\\"-O3\\\"]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_different_modules[modules1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_module\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_noversion_pkg[noversion-bundle]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals_with_dual_provider_and_a_conflict\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[conflict]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[old-external-True-@1.0.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_preferred_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_provides_or_depends_on\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretization_with_compilers_supporting_target_any\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_variant_not_default\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_architecture_deep_inheritance\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-preference-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_anonymous_dep[mpileaks ^cflags=-g]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[skylake-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_reconstructed_on_reuse[mpileaks ^mpich2-mpich2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inheritance[clang@:15.0.0]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts9-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant@1.62.0 cxxstd=2a-False]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_solution_without_cycles\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_compiler_flag_not_passed_to_dependent\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_installed_packages_when_package_def_changes[context0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_regression_issue_4492\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inherited_upwards\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-preference-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[hypre~~shared ^openblas+shared-expected_propagation0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_succeeds_with_unknown_version[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@2.2_0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_do_not_invent_new_concrete_versions_unless_necessary\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_no_conflict_in_external_specs[conflict@10.0%clang+foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_select_lower_priority_package_from_repository_stack[hdf5 ^builtin.mock.gmake-expected_namespaces1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_no_compilers_for_arch\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflicts_in_spec[conflict%clang+foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_config[python@configured platform=test]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts5-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_mention_build_dep\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[True-dev-build-test-install-True]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_pure_build_virtual_dependency[minimal]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_with_custom_non_numeric_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inheritance[clang]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_result_specs_is_not_empty[specs1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_os_selection_when_multiple_choices_are_possible[mpileaks%gcc@10.2.1 platform=test os=redhat6-os=redhat6]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_is_unique[mpileaks-%gcc@10.2.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[haswell-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_and_compiler_preferences[cmake %gcc-expected1]\", \"lib/spack/spack/test/concretize.py::TestConcretizeEdges::test_condition_triggered_by_edge_property[conditional-edge~foo-expected_satisfies1-expected_not_satisfies1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_reconstructed_on_reuse[mpileaks-mpich]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_anonymous_dep[mpileaks ^%gcc]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extensions_have_dependency\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_self\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_host_compatible_concretization\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_in_nonbuildable_external_package[gcc-external-common-python %clang-%clang ^external-common-openssl%gcc ^external-common-gdbm%clang-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants[conditional-variant-pkg@2.0-expected1-unexpected1]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts8-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants_fail[@2.0~version_based+variant_based]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[broadwell-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_installed_packages_when_package_def_changes[context1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_transitive_conditional_virtual_dependency\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_in_nonbuildable_external_package[clang-external-common-python-%clang ^external-common-openssl%clang ^external-common-gdbm%clang-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_no_reuse_when_variant_condition_does_not_hold\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_compiler_flag_propagate\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_annotated_on_edges[mpileaks ^mpich]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies-patched_deps0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize_preferences[specs1-libelf@0.8.12-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_with_provides_when\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_with_non_default_variant_as_dependency\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_simultaneous_concretization_of_specs[abstract_specs0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_flags_differ_identical_compilers\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflict_in_all_directives_true\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_sticky_variant_in_external[sticky-variant@1.0~allow-gcc-False]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_two_setuptools[full]\", \"lib/spack/spack/test/concretize.py::TestConcreteSpecsByHash::test_adding_specs[input_specs2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3@1.0 ^python@2.7.11-expected2-unexpected2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts6-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants_fail[@1.0~version_based]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_missing_compiler\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs1-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_error_message_for_inconsistent_variants[wrong-variant-in-depends-on]\"]"},"PASS_TO_FAIL":{"kind":"string","value":"[]"},"FAIL_TO_PASS":{"kind":"string","value":"[\"lib/spack/spack/test/concretize.py::TestConcretize::test_exclude_specs_from_reuse\"]"},"FAIL_TO_FAIL":{"kind":"string","value":"[]"},"install":{"kind":"string","value":"{\"install\": [\"uv pip install -e .\", \"spack -d bootstrap now --dev\"], \"pre_install\": [\"tee pytest.ini <`, which is\n-described in the next section.\n+described in this section.\n \n Some more advanced ways to use Spack packages include:\n \n@@ -959,7 +959,86 @@ use ``spack find --loaded``.\n You can also use ``spack load --list`` to get the same output, but it\n does not have the full set of query options that ``spack find`` offers.\n \n-We'll learn more about Spack's spec syntax in the next section.\n+We'll learn more about Spack's spec syntax in :ref:`a later section `.\n+\n+\n+.. _extensions:\n+\n+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n+Python packages and virtual environments\n+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n+\n+Spack can install a large number of Python packages. Their names are\n+typically prefixed with ``py-``. Installing and using them is no\n+different from any other package:\n+\n+.. code-block:: console\n+\n+ $ spack install py-numpy\n+ $ spack load py-numpy\n+ $ python3\n+ >>> import numpy\n+\n+The ``spack load`` command sets the ``PATH`` variable so that the right Python\n+executable is used, and makes sure that ``numpy`` and its dependencies can be\n+located in the ``PYTHONPATH``.\n+\n+Spack is different from other Python package managers in that it installs\n+every package into its *own* prefix. This is in contrast to ``pip``, which\n+installs all packages into the same prefix, be it in a virtual environment\n+or not.\n+\n+For many users, **virtual environments** are more convenient than repeated\n+``spack load`` commands, particularly when working with multiple Python\n+packages. Fortunately Spack supports environments itself, which together\n+with a view are no different from Python virtual environments.\n+\n+The recommended way of working with Python extensions such as ``py-numpy``\n+is through :ref:`Environments `. The following example creates\n+a Spack environment with ``numpy`` in the current working directory. It also\n+puts a filesystem view in ``./view``, which is a more traditional combined\n+prefix for all packages in the environment.\n+\n+.. code-block:: console\n+\n+ $ spack env create --with-view view --dir .\n+ $ spack -e . add py-numpy\n+ $ spack -e . concretize\n+ $ spack -e . install\n+\n+Now you can activate the environment and start using the packages:\n+\n+.. code-block:: console\n+\n+ $ spack env activate .\n+ $ python3\n+ >>> import numpy\n+\n+The environment view is also a virtual environment, which is useful if you are\n+sharing the environment with others who are unfamiliar with Spack. They can\n+either use the Python executable directly:\n+\n+.. code-block:: console\n+\n+ $ ./view/bin/python3\n+ >>> import numpy\n+\n+or use the activation script:\n+\n+.. code-block:: console\n+\n+ $ source ./view/bin/activate\n+ $ python3\n+ >>> import numpy\n+\n+In general, there should not be much difference between ``spack env activate``\n+and using the virtual environment. The main advantage of ``spack env activate``\n+is that it knows about more packages than just Python packages, and it may set\n+additional runtime variables that are not covered by the virtual environment\n+activation script.\n+\n+See :ref:`environments` for a more in-depth description of Spack\n+environments and customizations to views.\n \n \n .. _sec-specs:\n@@ -1705,165 +1784,6 @@ check only local packages (as opposed to those used transparently from\n ``upstream`` spack instances) and the ``-j,--json`` option to output\n machine-readable json data for any errors.\n \n-\n-.. _extensions:\n-\n----------------------------\n-Extensions & Python support\n----------------------------\n-\n-Spack's installation model assumes that each package will live in its\n-own install prefix. However, certain packages are typically installed\n-*within* the directory hierarchy of other packages. For example,\n-`Python `_ packages are typically installed in the\n-``$prefix/lib/python-2.7/site-packages`` directory.\n-\n-In Spack, installation prefixes are immutable, so this type of installation\n-is not directly supported. However, it is possible to create views that\n-allow you to merge install prefixes of multiple packages into a single new prefix.\n-Views are a convenient way to get a more traditional filesystem structure.\n-Using *extensions*, you can ensure that Python packages always share the\n-same prefix in the view as Python itself. Suppose you have\n-Python installed like so:\n-\n-.. code-block:: console\n-\n- $ spack find python\n- ==> 1 installed packages.\n- -- linux-debian7-x86_64 / gcc@4.4.7 --------------------------------\n- python@2.7.8\n-\n-.. _cmd-spack-extensions:\n-\n-^^^^^^^^^^^^^^^^^^^^\n-``spack extensions``\n-^^^^^^^^^^^^^^^^^^^^\n-\n-You can find extensions for your Python installation like this:\n-\n-.. code-block:: console\n-\n- $ spack extensions python\n- ==> python@2.7.8%gcc@4.4.7 arch=linux-debian7-x86_64-703c7a96\n- ==> 36 extensions:\n- geos py-ipython py-pexpect py-pyside py-sip\n- py-basemap py-libxml2 py-pil py-pytz py-six\n- py-biopython py-mako py-pmw py-rpy2 py-sympy\n- py-cython py-matplotlib py-pychecker py-scientificpython py-virtualenv\n- py-dateutil py-mpi4py py-pygments py-scikit-learn\n- py-epydoc py-mx py-pylint py-scipy\n- py-gnuplot py-nose py-pyparsing py-setuptools\n- py-h5py py-numpy py-pyqt py-shiboken\n-\n- ==> 12 installed:\n- -- linux-debian7-x86_64 / gcc@4.4.7 --------------------------------\n- py-dateutil@2.4.0 py-nose@1.3.4 py-pyside@1.2.2\n- py-dateutil@2.4.0 py-numpy@1.9.1 py-pytz@2014.10\n- py-ipython@2.3.1 py-pygments@2.0.1 py-setuptools@11.3.1\n- py-matplotlib@1.4.2 py-pyparsing@2.0.3 py-six@1.9.0\n-\n-The extensions are a subset of what's returned by ``spack list``, and\n-they are packages like any other. They are installed into their own\n-prefixes, and you can see this with ``spack find --paths``:\n-\n-.. code-block:: console\n-\n- $ spack find --paths py-numpy\n- ==> 1 installed packages.\n- -- linux-debian7-x86_64 / gcc@4.4.7 --------------------------------\n- py-numpy@1.9.1 ~/spack/opt/linux-debian7-x86_64/gcc@4.4.7/py-numpy@1.9.1-66733244\n-\n-However, even though this package is installed, you cannot use it\n-directly when you run ``python``:\n-\n-.. code-block:: console\n-\n- $ spack load python\n- $ python\n- Python 2.7.8 (default, Feb 17 2015, 01:35:25)\n- [GCC 4.4.7 20120313 (Red Hat 4.4.7-11)] on linux2\n- Type \"help\", \"copyright\", \"credits\" or \"license\" for more information.\n- >>> import numpy\n- Traceback (most recent call last):\n- File \"\", line 1, in \n- ImportError: No module named numpy\n- >>>\n-\n-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n-Using Extensions in Environments\n-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n-\n-The recommended way of working with extensions such as ``py-numpy``\n-above is through :ref:`Environments `. For example,\n-the following creates an environment in the current working directory\n-with a filesystem view in the ``./view`` directory:\n-\n-.. code-block:: console\n-\n- $ spack env create --with-view view --dir .\n- $ spack -e . add py-numpy\n- $ spack -e . concretize\n- $ spack -e . install\n-\n-We recommend environments for two reasons. Firstly, environments\n-can be activated (requires :ref:`shell-support`):\n-\n-.. code-block:: console\n-\n- $ spack env activate .\n-\n-which sets all the right environment variables such as ``PATH`` and\n-``PYTHONPATH``. This ensures that\n-\n-.. code-block:: console\n-\n- $ python\n- >>> import numpy\n-\n-works. Secondly, even without shell support, the view ensures\n-that Python can locate its extensions:\n-\n-.. code-block:: console\n-\n- $ ./view/bin/python\n- >>> import numpy\n-\n-See :ref:`environments` for a more in-depth description of Spack\n-environments and customizations to views.\n-\n-^^^^^^^^^^^^^^^^^^^^\n-Using ``spack load``\n-^^^^^^^^^^^^^^^^^^^^\n-\n-A more traditional way of using Spack and extensions is ``spack load``\n-(requires :ref:`shell-support`). This will add the extension to ``PYTHONPATH``\n-in your current shell, and Python itself will be available in the ``PATH``:\n-\n-.. code-block:: console\n-\n- $ spack load py-numpy\n- $ python\n- >>> import numpy\n-\n-The loaded packages can be checked using ``spack find --loaded``\n-\n-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n-Loading Extensions via Modules\n-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n-\n-Apart from ``spack env activate`` and ``spack load``, you can load numpy\n-through your environment modules (using ``environment-modules`` or\n-``lmod``). This will also add the extension to the ``PYTHONPATH`` in\n-your current shell.\n-\n-.. code-block:: console\n-\n- $ module load \n-\n-If you do not know the name of the specific numpy module you wish to\n-load, you can use the ``spack module tcl|lmod loads`` command to get\n-the name of the module from the Spack spec.\n-\n -----------------------\n Filesystem requirements\n -----------------------\ndiff --git a/lib/spack/docs/build_systems/pythonpackage.rst b/lib/spack/docs/build_systems/pythonpackage.rst\nindex 372d4ad47c5ce..9512b08885dc1 100644\n--- a/lib/spack/docs/build_systems/pythonpackage.rst\n+++ b/lib/spack/docs/build_systems/pythonpackage.rst\n@@ -718,23 +718,45 @@ command-line tool, or C/C++/Fortran program with optional Python\n modules? The former should be prepended with ``py-``, while the\n latter should not.\n \n-\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\n-extends vs. depends_on\n-\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\n+\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\n+``extends`` vs. ``depends_on``\n+\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\n \n-This is very similar to the naming dilemma above, with a slight twist.\n As mentioned in the :ref:`Packaging Guide `,\n ``extends`` and ``depends_on`` are very similar, but ``extends`` ensures\n that the extension and extendee share the same prefix in views.\n This allows the user to import a Python module without\n having to add that module to ``PYTHONPATH``.\n \n-When deciding between ``extends`` and ``depends_on``, the best rule of\n-thumb is to check the installation prefix. If Python libraries are\n-installed to ``/lib/pythonX.Y/site-packages``, then you\n-should use ``extends``. If Python libraries are installed elsewhere\n-or the only files that get installed reside in ``/bin``, then\n-don't use ``extends``.\n+Additionally, ``extends(\"python\")`` adds a dependency on the package\n+``python-venv``. This improves isolation from the system, whether\n+it's during the build or at runtime: user and system site packages\n+cannot accidentally be used by any package that ``extends(\"python\")``.\n+\n+As a rule of thumb: if a package does not install any Python modules\n+of its own, and merely puts a Python script in the ``bin`` directory,\n+then there is no need for ``extends``. If the package installs modules\n+in the ``site-packages`` directory, it requires ``extends``.\n+\n+\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\n+Executing ``python`` during the build\n+\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\n+\n+Whenever you need to execute a Python command or pass the path of the\n+Python interpreter to the build system, it is best to use the global\n+variable ``python`` directly. For example:\n+\n+.. code-block:: python\n+\n+ @run_before(\"install\")\n+ def recythonize(self):\n+ python(\"setup.py\", \"clean\") # use the `python` global\n+\n+As mentioned in the previous section, ``extends(\"python\")`` adds an\n+automatic dependency on ``python-venv``, which is a virtual environment\n+that guarantees build isolation. The ``python`` global always refers to\n+the correct Python interpreter, whether the package uses ``extends(\"python\")``\n+or ``depends_on(\"python\")``.\n \n ^^^^^^^^^^^^^^^^^^^^^\n Alternatives to Spack\ndiff --git a/lib/spack/spack/bootstrap/_common.py b/lib/spack/spack/bootstrap/_common.py\nindex 2ce53d3165244..5c3ca93e94711 100644\n--- a/lib/spack/spack/bootstrap/_common.py\n+++ b/lib/spack/spack/bootstrap/_common.py\n@@ -54,10 +54,14 @@ def _try_import_from_store(\n installed_specs = spack.store.STORE.db.query(query_spec, installed=True)\n \n for candidate_spec in installed_specs:\n- pkg = candidate_spec[\"python\"].package\n+ # previously bootstrapped specs may not have a python-venv dependency.\n+ if candidate_spec.dependencies(\"python-venv\"):\n+ python, *_ = candidate_spec.dependencies(\"python-venv\")\n+ else:\n+ python, *_ = candidate_spec.dependencies(\"python\")\n module_paths = [\n- os.path.join(candidate_spec.prefix, pkg.purelib),\n- os.path.join(candidate_spec.prefix, pkg.platlib),\n+ os.path.join(candidate_spec.prefix, python.package.purelib),\n+ os.path.join(candidate_spec.prefix, python.package.platlib),\n ]\n path_before = list(sys.path)\n \ndiff --git a/lib/spack/spack/bootstrap/environment.py b/lib/spack/spack/bootstrap/environment.py\nindex f1af8990e80e8..13942ba86f469 100644\n--- a/lib/spack/spack/bootstrap/environment.py\n+++ b/lib/spack/spack/bootstrap/environment.py\n@@ -3,13 +3,11 @@\n #\n # SPDX-License-Identifier: (Apache-2.0 OR MIT)\n \"\"\"Bootstrap non-core Spack dependencies from an environment.\"\"\"\n-import glob\n import hashlib\n import os\n import pathlib\n import sys\n-import warnings\n-from typing import List\n+from typing import Iterable, List\n \n import archspec.cpu\n \n@@ -28,6 +26,16 @@\n class BootstrapEnvironment(spack.environment.Environment):\n \"\"\"Environment to install dependencies of Spack for a given interpreter and architecture\"\"\"\n \n+ def __init__(self) -> None:\n+ if not self.spack_yaml().exists():\n+ self._write_spack_yaml_file()\n+ super().__init__(self.environment_root())\n+\n+ # Remove python package roots created before python-venv was introduced\n+ for s in self.concrete_roots():\n+ if \"python\" in s.package.extendees and not s.dependencies(\"python-venv\"):\n+ self.deconcretize(s)\n+\n @classmethod\n def spack_dev_requirements(cls) -> List[str]:\n \"\"\"Spack development requirements\"\"\"\n@@ -59,31 +67,19 @@ def view_root(cls) -> pathlib.Path:\n return cls.environment_root().joinpath(\"view\")\n \n @classmethod\n- def pythonpaths(cls) -> List[str]:\n- \"\"\"Paths to be added to sys.path or PYTHONPATH\"\"\"\n- python_dir_part = f\"python{'.'.join(str(x) for x in sys.version_info[:2])}\"\n- glob_expr = str(cls.view_root().joinpath(\"**\", python_dir_part, \"**\"))\n- result = glob.glob(glob_expr)\n- if not result:\n- msg = f\"Cannot find any Python path in {cls.view_root()}\"\n- warnings.warn(msg)\n- return result\n-\n- @classmethod\n- def bin_dirs(cls) -> List[pathlib.Path]:\n+ def bin_dir(cls) -> pathlib.Path:\n \"\"\"Paths to be added to PATH\"\"\"\n- return [cls.view_root().joinpath(\"bin\")]\n+ return cls.view_root().joinpath(\"bin\")\n+\n+ def python_dirs(self) -> Iterable[pathlib.Path]:\n+ python = next(s for s in self.all_specs_generator() if s.name == \"python-venv\").package\n+ return {self.view_root().joinpath(p) for p in (python.platlib, python.purelib)}\n \n @classmethod\n def spack_yaml(cls) -> pathlib.Path:\n \"\"\"Environment spack.yaml file\"\"\"\n return cls.environment_root().joinpath(\"spack.yaml\")\n \n- def __init__(self) -> None:\n- if not self.spack_yaml().exists():\n- self._write_spack_yaml_file()\n- super().__init__(self.environment_root())\n-\n def update_installations(self) -> None:\n \"\"\"Update the installations of this environment.\"\"\"\n log_enabled = tty.is_debug() or tty.is_verbose()\n@@ -100,21 +96,13 @@ def update_installations(self) -> None:\n self.install_all()\n self.write(regenerate=True)\n \n- def update_syspath_and_environ(self) -> None:\n- \"\"\"Update ``sys.path`` and the PATH, PYTHONPATH environment variables to point to\n- the environment view.\n- \"\"\"\n- # Do minimal modifications to sys.path and environment variables. In particular, pay\n- # attention to have the smallest PYTHONPATH / sys.path possible, since that may impact\n- # the performance of the current interpreter\n- sys.path.extend(self.pythonpaths())\n- os.environ[\"PATH\"] = os.pathsep.join(\n- [str(x) for x in self.bin_dirs()] + os.environ.get(\"PATH\", \"\").split(os.pathsep)\n- )\n- os.environ[\"PYTHONPATH\"] = os.pathsep.join(\n- os.environ.get(\"PYTHONPATH\", \"\").split(os.pathsep)\n- + [str(x) for x in self.pythonpaths()]\n- )\n+ def load(self) -> None:\n+ \"\"\"Update PATH and sys.path.\"\"\"\n+ # Make executables available (shouldn't need PYTHONPATH)\n+ os.environ[\"PATH\"] = f\"{self.bin_dir()}{os.pathsep}{os.environ.get('PATH', '')}\"\n+\n+ # Spack itself imports pytest\n+ sys.path.extend(str(p) for p in self.python_dirs())\n \n def _write_spack_yaml_file(self) -> None:\n tty.msg(\n@@ -164,4 +152,4 @@ def ensure_environment_dependencies() -> None:\n _add_externals_if_missing()\n with BootstrapEnvironment() as env:\n env.update_installations()\n- env.update_syspath_and_environ()\n+ env.load()\ndiff --git a/lib/spack/spack/build_systems/cmake.py b/lib/spack/spack/build_systems/cmake.py\nindex b6e66e136cd23..a64904715e002 100644\n--- a/lib/spack/spack/build_systems/cmake.py\n+++ b/lib/spack/spack/build_systems/cmake.py\n@@ -39,16 +39,11 @@ def _maybe_set_python_hints(pkg: spack.package_base.PackageBase, args: List[str]\n \"\"\"Set the PYTHON_EXECUTABLE, Python_EXECUTABLE, and Python3_EXECUTABLE CMake variables\n if the package has Python as build or link dep and ``find_python_hints`` is set to True. See\n ``find_python_hints`` for context.\"\"\"\n- if not getattr(pkg, \"find_python_hints\", False):\n+ if not getattr(pkg, \"find_python_hints\", False) or not pkg.spec.dependencies(\n+ \"python\", dt.BUILD | dt.LINK\n+ ):\n return\n- pythons = pkg.spec.dependencies(\"python\", dt.BUILD | dt.LINK)\n- if len(pythons) != 1:\n- return\n- try:\n- python_executable = pythons[0].package.command.path\n- except RuntimeError:\n- return\n-\n+ python_executable = pkg.spec[\"python\"].command.path\n args.extend(\n [\n CMakeBuilder.define(\"PYTHON_EXECUTABLE\", python_executable),\ndiff --git a/lib/spack/spack/build_systems/python.py b/lib/spack/spack/build_systems/python.py\nindex 1f650be98a475..c94e2db700ee4 100644\n--- a/lib/spack/spack/build_systems/python.py\n+++ b/lib/spack/spack/build_systems/python.py\n@@ -120,6 +120,12 @@ def skip_modules(self) -> Iterable[str]:\n \"\"\"\n return []\n \n+ @property\n+ def python_spec(self):\n+ \"\"\"Get python-venv if it exists or python otherwise.\"\"\"\n+ python, *_ = self.spec.dependencies(\"python-venv\") or self.spec.dependencies(\"python\")\n+ return python\n+\n def view_file_conflicts(self, view, merge_map):\n \"\"\"Report all file conflicts, excepting special cases for python.\n Specifically, this does not report errors for duplicate\n@@ -138,16 +144,17 @@ def view_file_conflicts(self, view, merge_map):\n return conflicts\n \n def add_files_to_view(self, view, merge_map, skip_if_exists=True):\n- # Patch up shebangs to the python linked in the view only if python is built by Spack.\n- if not self.extendee_spec or self.extendee_spec.external:\n+ # Patch up shebangs if the package extends Python and we put a Python interpreter in the\n+ # view.\n+ python = self.python_spec\n+ if not self.extendee_spec or python.external:\n return super().add_files_to_view(view, merge_map, skip_if_exists)\n \n # We only patch shebangs in the bin directory.\n copied_files: Dict[Tuple[int, int], str] = {} # File identifier -> source\n delayed_links: List[Tuple[str, str]] = [] # List of symlinks from merge map\n-\n bin_dir = self.spec.prefix.bin\n- python_prefix = self.extendee_spec.prefix\n+\n for src, dst in merge_map.items():\n if skip_if_exists and os.path.lexists(dst):\n continue\n@@ -168,7 +175,7 @@ def add_files_to_view(self, view, merge_map, skip_if_exists=True):\n copied_files[(s.st_dev, s.st_ino)] = dst\n shutil.copy2(src, dst)\n fs.filter_file(\n- python_prefix, os.path.abspath(view.get_projection_for_spec(self.spec)), dst\n+ python.prefix, os.path.abspath(view.get_projection_for_spec(self.spec)), dst\n )\n else:\n view.link(src, dst)\n@@ -199,14 +206,13 @@ def remove_files_from_view(self, view, merge_map):\n ignore_namespace = True\n \n bin_dir = self.spec.prefix.bin\n- global_view = self.extendee_spec.prefix == view.get_projection_for_spec(self.spec)\n \n to_remove = []\n for src, dst in merge_map.items():\n if ignore_namespace and namespace_init(dst):\n continue\n \n- if global_view or not fs.path_contains_subdirectory(src, bin_dir):\n+ if not fs.path_contains_subdirectory(src, bin_dir):\n to_remove.append(dst)\n else:\n os.remove(dst)\n@@ -371,8 +377,9 @@ def headers(self) -> HeaderList:\n \n # Headers should only be in include or platlib, but no harm in checking purelib too\n include = self.prefix.join(self.spec[\"python\"].package.include).join(name)\n- platlib = self.prefix.join(self.spec[\"python\"].package.platlib).join(name)\n- purelib = self.prefix.join(self.spec[\"python\"].package.purelib).join(name)\n+ python = self.python_spec\n+ platlib = self.prefix.join(python.package.platlib).join(name)\n+ purelib = self.prefix.join(python.package.purelib).join(name)\n \n headers_list = map(fs.find_all_headers, [include, platlib, purelib])\n headers = functools.reduce(operator.add, headers_list)\n@@ -391,8 +398,9 @@ def libs(self) -> LibraryList:\n name = self.spec.name[3:]\n \n # Libraries should only be in platlib, but no harm in checking purelib too\n- platlib = self.prefix.join(self.spec[\"python\"].package.platlib).join(name)\n- purelib = self.prefix.join(self.spec[\"python\"].package.purelib).join(name)\n+ python = self.python_spec\n+ platlib = self.prefix.join(python.package.platlib).join(name)\n+ purelib = self.prefix.join(python.package.purelib).join(name)\n \n find_all_libraries = functools.partial(fs.find_all_libraries, recursive=True)\n libs_list = map(find_all_libraries, [platlib, purelib])\n@@ -504,6 +512,8 @@ def global_options(self, spec: Spec, prefix: Prefix) -> Iterable[str]:\n \n def install(self, pkg: PythonPackage, spec: Spec, prefix: Prefix) -> None:\n \"\"\"Install everything from build directory.\"\"\"\n+ pip = spec[\"python\"].command\n+ pip.add_default_arg(\"-m\", \"pip\")\n \n args = PythonPipBuilder.std_args(pkg) + [f\"--prefix={prefix}\"]\n \n@@ -519,14 +529,6 @@ def install(self, pkg: PythonPackage, spec: Spec, prefix: Prefix) -> None:\n else:\n args.append(\".\")\n \n- pip = spec[\"python\"].command\n- # Hide user packages, since we don't have build isolation. This is\n- # necessary because pip / setuptools may run hooks from arbitrary\n- # packages during the build. There is no equivalent variable to hide\n- # system packages, so this is not reliable for external Python.\n- pip.add_default_env(\"PYTHONNOUSERSITE\", \"1\")\n- pip.add_default_arg(\"-m\")\n- pip.add_default_arg(\"pip\")\n with fs.working_dir(self.build_directory):\n pip(*args)\n \ndiff --git a/lib/spack/spack/directives.py b/lib/spack/spack/directives.py\nindex 4991040142106..b69f83a75d257 100644\n--- a/lib/spack/spack/directives.py\n+++ b/lib/spack/spack/directives.py\n@@ -662,6 +662,7 @@ def _execute_redistribute(\n @directive((\"extendees\", \"dependencies\"))\n def extends(spec, when=None, type=(\"build\", \"run\"), patches=None):\n \"\"\"Same as depends_on, but also adds this package to the extendee list.\n+ In case of Python, also adds a dependency on python-venv.\n \n keyword arguments can be passed to extends() so that extension\n packages can pass parameters to the extendee's extension\n@@ -677,6 +678,11 @@ def _execute_extends(pkg):\n _depends_on(pkg, spec, when=when, type=type, patches=patches)\n spec_obj = spack.spec.Spec(spec)\n \n+ # When extending python, also add a dependency on python-venv. This is done so that\n+ # Spack environment views are Python virtual environments.\n+ if spec_obj.name == \"python\" and not pkg.name == \"python-venv\":\n+ _depends_on(pkg, \"python-venv\", when=when, type=(\"build\", \"run\"))\n+\n # TODO: the values of the extendees dictionary are not used. Remove in next refactor.\n pkg.extendees[spec_obj.name] = (spec_obj, None)\n \ndiff --git a/lib/spack/spack/hooks/windows_runtime_linkage.py b/lib/spack/spack/hooks/windows_runtime_linkage.py\nnew file mode 100644\nindex 0000000000000..5bb3744910812\n--- /dev/null\n+++ b/lib/spack/spack/hooks/windows_runtime_linkage.py\n@@ -0,0 +1,8 @@\n+# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other\n+# Spack Project Developers. See the top-level COPYRIGHT file for details.\n+#\n+# SPDX-License-Identifier: (Apache-2.0 OR MIT)\n+\n+\n+def post_install(spec, explicit=None):\n+ spec.package.windows_establish_runtime_linkage()\ndiff --git a/lib/spack/spack/installer.py b/lib/spack/spack/installer.py\nindex 1f33a7c6b056f..289a48568d296 100644\n--- a/lib/spack/spack/installer.py\n+++ b/lib/spack/spack/installer.py\n@@ -1698,10 +1698,6 @@ def _install_task(self, task: BuildTask, install_status: InstallStatus) -> None:\n spack.package_base.PackageBase._verbose = spack.build_environment.start_build_process(\n pkg, build_process, install_args\n )\n- # Currently this is how RPATH-like behavior is achieved on Windows, after install\n- # establish runtime linkage via Windows Runtime link object\n- # Note: this is a no-op on non Windows platforms\n- pkg.windows_establish_runtime_linkage()\n # Note: PARENT of the build process adds the new package to\n # the database, so that we don't need to re-read from file.\n spack.store.STORE.db.add(pkg.spec, spack.store.STORE.layout, explicit=explicit)\ndiff --git a/lib/spack/spack/spec.py b/lib/spack/spack/spec.py\nindex 7d8266400e4c9..fc82a7d1fc657 100644\n--- a/lib/spack/spack/spec.py\n+++ b/lib/spack/spack/spec.py\n@@ -1030,16 +1030,13 @@ def clear(self):\n self.edges.clear()\n \n \n-def _command_default_handler(descriptor, spec, cls):\n+def _command_default_handler(spec: \"Spec\"):\n \"\"\"Default handler when looking for the 'command' attribute.\n \n Tries to search for ``spec.name`` in the ``spec.home.bin`` directory.\n \n Parameters:\n- descriptor (ForwardQueryToPackage): descriptor that triggered the call\n- spec (Spec): spec that is being queried\n- cls (type(spec)): type of spec, to match the signature of the\n- descriptor ``__get__`` method\n+ spec: spec that is being queried\n \n Returns:\n Executable: An executable of the command\n@@ -1052,22 +1049,17 @@ def _command_default_handler(descriptor, spec, cls):\n \n if fs.is_exe(path):\n return spack.util.executable.Executable(path)\n- else:\n- msg = \"Unable to locate {0} command in {1}\"\n- raise RuntimeError(msg.format(spec.name, home.bin))\n+ raise RuntimeError(f\"Unable to locate {spec.name} command in {home.bin}\")\n \n \n-def _headers_default_handler(descriptor, spec, cls):\n+def _headers_default_handler(spec: \"Spec\"):\n \"\"\"Default handler when looking for the 'headers' attribute.\n \n Tries to search for ``*.h`` files recursively starting from\n ``spec.package.home.include``.\n \n Parameters:\n- descriptor (ForwardQueryToPackage): descriptor that triggered the call\n- spec (Spec): spec that is being queried\n- cls (type(spec)): type of spec, to match the signature of the\n- descriptor ``__get__`` method\n+ spec: spec that is being queried\n \n Returns:\n HeaderList: The headers in ``prefix.include``\n@@ -1080,12 +1072,10 @@ def _headers_default_handler(descriptor, spec, cls):\n \n if headers:\n return headers\n- else:\n- msg = \"Unable to locate {0} headers in {1}\"\n- raise spack.error.NoHeadersError(msg.format(spec.name, home))\n+ raise spack.error.NoHeadersError(f\"Unable to locate {spec.name} headers in {home}\")\n \n \n-def _libs_default_handler(descriptor, spec, cls):\n+def _libs_default_handler(spec: \"Spec\"):\n \"\"\"Default handler when looking for the 'libs' attribute.\n \n Tries to search for ``lib{spec.name}`` recursively starting from\n@@ -1093,10 +1083,7 @@ def _libs_default_handler(descriptor, spec, cls):\n ``{spec.name}`` instead.\n \n Parameters:\n- descriptor (ForwardQueryToPackage): descriptor that triggered the call\n- spec (Spec): spec that is being queried\n- cls (type(spec)): type of spec, to match the signature of the\n- descriptor ``__get__`` method\n+ spec: spec that is being queried\n \n Returns:\n LibraryList: The libraries found\n@@ -1135,27 +1122,33 @@ def _libs_default_handler(descriptor, spec, cls):\n if libs:\n return libs\n \n- msg = \"Unable to recursively locate {0} libraries in {1}\"\n- raise spack.error.NoLibrariesError(msg.format(spec.name, home))\n+ raise spack.error.NoLibrariesError(\n+ f\"Unable to recursively locate {spec.name} libraries in {home}\"\n+ )\n \n \n class ForwardQueryToPackage:\n \"\"\"Descriptor used to forward queries from Spec to Package\"\"\"\n \n- def __init__(self, attribute_name, default_handler=None):\n+ def __init__(\n+ self,\n+ attribute_name: str,\n+ default_handler: Optional[Callable[[\"Spec\"], Any]] = None,\n+ _indirect: bool = False,\n+ ) -> None:\n \"\"\"Create a new descriptor.\n \n Parameters:\n- attribute_name (str): name of the attribute to be\n- searched for in the Package instance\n- default_handler (callable, optional): default function to be\n- called if the attribute was not found in the Package\n- instance\n+ attribute_name: name of the attribute to be searched for in the Package instance\n+ default_handler: default function to be called if the attribute was not found in the\n+ Package instance\n+ _indirect: temporarily added to redirect a query to another package.\n \"\"\"\n self.attribute_name = attribute_name\n self.default = default_handler\n+ self.indirect = _indirect\n \n- def __get__(self, instance, cls):\n+ def __get__(self, instance: \"SpecBuildInterface\", cls):\n \"\"\"Retrieves the property from Package using a well defined chain\n of responsibility.\n \n@@ -1177,13 +1170,18 @@ def __get__(self, instance, cls):\n indicating a query failure, e.g. that library files were not found in a\n 'libs' query.\n \"\"\"\n- pkg = instance.package\n+ # TODO: this indirection exist solely for `spec[\"python\"].command` to actually return\n+ # spec[\"python-venv\"].command. It should be removed when `python` is a virtual.\n+ if self.indirect and instance.indirect_spec:\n+ pkg = instance.indirect_spec.package\n+ else:\n+ pkg = instance.wrapped_obj.package\n try:\n query = instance.last_query\n except AttributeError:\n # There has been no query yet: this means\n # a spec is trying to access its own attributes\n- _ = instance[instance.name] # NOQA: ignore=F841\n+ _ = instance.wrapped_obj[instance.wrapped_obj.name] # NOQA: ignore=F841\n query = instance.last_query\n \n callbacks_chain = []\n@@ -1195,7 +1193,8 @@ def __get__(self, instance, cls):\n callbacks_chain.append(lambda: getattr(pkg, self.attribute_name))\n # Final resort : default callback\n if self.default is not None:\n- callbacks_chain.append(lambda: self.default(self, instance, cls))\n+ _default = self.default # make mypy happy\n+ callbacks_chain.append(lambda: _default(instance.wrapped_obj))\n \n # Trigger the callbacks in order, the first one producing a\n # value wins\n@@ -1254,25 +1253,33 @@ def __set__(self, instance, value):\n class SpecBuildInterface(lang.ObjectWrapper):\n # home is available in the base Package so no default is needed\n home = ForwardQueryToPackage(\"home\", default_handler=None)\n-\n- command = ForwardQueryToPackage(\"command\", default_handler=_command_default_handler)\n-\n headers = ForwardQueryToPackage(\"headers\", default_handler=_headers_default_handler)\n-\n libs = ForwardQueryToPackage(\"libs\", default_handler=_libs_default_handler)\n+ command = ForwardQueryToPackage(\n+ \"command\", default_handler=_command_default_handler, _indirect=True\n+ )\n \n- def __init__(self, spec, name, query_parameters):\n+ def __init__(self, spec: \"Spec\", name: str, query_parameters: List[str], _parent: \"Spec\"):\n super().__init__(spec)\n # Adding new attributes goes after super() call since the ObjectWrapper\n # resets __dict__ to behave like the passed object\n original_spec = getattr(spec, \"wrapped_obj\", spec)\n self.wrapped_obj = original_spec\n- self.token = original_spec, name, query_parameters\n+ self.token = original_spec, name, query_parameters, _parent\n is_virtual = spack.repo.PATH.is_virtual(name)\n self.last_query = QueryState(\n name=name, extra_parameters=query_parameters, isvirtual=is_virtual\n )\n \n+ # TODO: this ad-hoc logic makes `spec[\"python\"].command` return\n+ # `spec[\"python-venv\"].command` and should be removed when `python` is a virtual.\n+ self.indirect_spec = None\n+ if spec.name == \"python\":\n+ python_venvs = _parent.dependencies(\"python-venv\")\n+ if not python_venvs:\n+ return\n+ self.indirect_spec = python_venvs[0]\n+\n def __reduce__(self):\n return SpecBuildInterface, self.token\n \n@@ -4129,7 +4136,7 @@ def version(self):\n raise spack.error.SpecError(\"Spec version is not concrete: \" + str(self))\n return self.versions[0]\n \n- def __getitem__(self, name):\n+ def __getitem__(self, name: str):\n \"\"\"Get a dependency from the spec by its name. This call implicitly\n sets a query state in the package being retrieved. The behavior of\n packages may be influenced by additional query parameters that are\n@@ -4138,7 +4145,7 @@ def __getitem__(self, name):\n Note that if a virtual package is queried a copy of the Spec is\n returned while for non-virtual a reference is returned.\n \"\"\"\n- query_parameters = name.split(\":\")\n+ query_parameters: List[str] = name.split(\":\")\n if len(query_parameters) > 2:\n raise KeyError(\"key has more than one ':' symbol. At most one is admitted.\")\n \n@@ -4161,7 +4168,7 @@ def __getitem__(self, name):\n )\n \n try:\n- value = next(\n+ child: Spec = next(\n itertools.chain(\n # Regular specs\n (x for x in order() if x.name == name),\n@@ -4178,9 +4185,9 @@ def __getitem__(self, name):\n raise KeyError(f\"No spec with name {name} in {self}\")\n \n if self._concrete:\n- return SpecBuildInterface(value, name, query_parameters)\n+ return SpecBuildInterface(child, name, query_parameters, _parent=self)\n \n- return value\n+ return child\n \n def __contains__(self, spec):\n \"\"\"True if this spec or some dependency satisfies the spec.\ndiff --git a/lib/spack/spack/util/executable.py b/lib/spack/spack/util/executable.py\nindex f160051674609..afb8bcaa3909e 100644\n--- a/lib/spack/spack/util/executable.py\n+++ b/lib/spack/spack/util/executable.py\n@@ -39,6 +39,20 @@ def add_default_arg(self, *args):\n \"\"\"Add default argument(s) to the command.\"\"\"\n self.exe.extend(args)\n \n+ def with_default_args(self, *args):\n+ \"\"\"Same as add_default_arg, but returns a copy of the executable.\"\"\"\n+ new = self.copy()\n+ new.add_default_arg(*args)\n+ return new\n+\n+ def copy(self):\n+ \"\"\"Return a copy of this Executable.\"\"\"\n+ new = Executable(self.exe[0])\n+ new.exe[:] = self.exe\n+ new.default_env.update(self.default_env)\n+ new.default_envmod.extend(self.default_envmod)\n+ return new\n+\n def add_default_env(self, key, value):\n \"\"\"Set an environment variable when the command is run.\n \ndiff --git a/var/spack/repos/builtin.mock/packages/python-venv/package.py b/var/spack/repos/builtin.mock/packages/python-venv/package.py\nnew file mode 100644\nindex 0000000000000..741fc3c627bfb\n--- /dev/null\n+++ b/var/spack/repos/builtin.mock/packages/python-venv/package.py\n@@ -0,0 +1,21 @@\n+# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other\n+# Spack Project Developers. See the top-level COPYRIGHT file for details.\n+#\n+# SPDX-License-Identifier: (Apache-2.0 OR MIT)\n+\n+\n+from spack.package import *\n+\n+\n+class PythonVenv(Package):\n+ \"\"\"A Spack managed Python virtual environment\"\"\"\n+\n+ homepage = \"https://docs.python.org/3/library/venv.html\"\n+ has_code = False\n+\n+ version(\"1.0\")\n+\n+ extends(\"python\")\n+\n+ def install(self, spec, prefix):\n+ pass\ndiff --git a/var/spack/repos/builtin/packages/ascent/package.py b/var/spack/repos/builtin/packages/ascent/package.py\nindex 5fb06916f36b9..17c56040338da 100644\n--- a/var/spack/repos/builtin/packages/ascent/package.py\n+++ b/var/spack/repos/builtin/packages/ascent/package.py\n@@ -495,7 +495,7 @@ def hostconfig(self):\n cfg.write(\"# Enable python module builds\\n\")\n cfg.write(cmake_cache_entry(\"ENABLE_PYTHON\", \"ON\"))\n cfg.write(\"# python from spack \\n\")\n- cfg.write(cmake_cache_entry(\"PYTHON_EXECUTABLE\", spec[\"python\"].command.path))\n+ cfg.write(cmake_cache_entry(\"PYTHON_EXECUTABLE\", python.path))\n try:\n cfg.write(\"# python module install dir\\n\")\n cfg.write(cmake_cache_entry(\"PYTHON_MODULE_INSTALL_PREFIX\", python_platlib))\ndiff --git a/var/spack/repos/builtin/packages/bohrium/package.py b/var/spack/repos/builtin/packages/bohrium/package.py\nindex 64ad8c100e0ac..fd9e6656631ac 100644\n--- a/var/spack/repos/builtin/packages/bohrium/package.py\n+++ b/var/spack/repos/builtin/packages/bohrium/package.py\n@@ -256,10 +256,6 @@ def check_install(self):\n cxx(\"-o\", \"test_cxxadd\", file_cxxadd, *cxx_flags)\n test_cxxadd = Executable(\"./test_cxxadd\")\n \n- # Build python test commandline\n- file_pyadd = join_path(os.path.dirname(self.module.__file__), \"pyadd.py\")\n- test_pyadd = Executable(spec[\"python\"].command.path + \" \" + file_pyadd)\n-\n # Run tests for each available stack\n for bh_stack in stacks:\n tty.info(\"Testing with bohrium stack '\" + bh_stack + \"'\")\n@@ -270,5 +266,6 @@ def check_install(self):\n \n # Python test (if +python)\n if \"+python\" in spec:\n- py_output = test_pyadd(output=str, env=test_env)\n+ file_pyadd = join_path(os.path.dirname(self.module.__file__), \"pyadd.py\")\n+ py_output = python(file_pyadd, output=str, env=test_env)\n compare_output(py_output, \"Success!\\n\")\ndiff --git a/var/spack/repos/builtin/packages/cantera/package.py b/var/spack/repos/builtin/packages/cantera/package.py\nindex efb9d7fcbe225..ef057f955b090 100644\n--- a/var/spack/repos/builtin/packages/cantera/package.py\n+++ b/var/spack/repos/builtin/packages/cantera/package.py\n@@ -134,13 +134,9 @@ def build_args(self, spec, prefix):\n \n # Python module\n if \"+python\" in spec:\n- args.extend(\n- [\"python_package=full\", \"python_cmd={0}\".format(spec[\"python\"].command.path)]\n- )\n+ args.extend([\"python_package=full\", \"python_cmd={0}\".format(python.path)])\n if spec[\"python\"].satisfies(\"@3:\"):\n- args.extend(\n- [\"python3_package=y\", \"python3_cmd={0}\".format(spec[\"python\"].command.path)]\n- )\n+ args.extend([\"python3_package=y\", \"python3_cmd={0}\".format(python.path)])\n else:\n args.append(\"python3_package=n\")\n else:\ndiff --git a/var/spack/repos/builtin/packages/clingo-bootstrap/package.py b/var/spack/repos/builtin/packages/clingo-bootstrap/package.py\nindex a11ff0a048414..b45932d17912f 100644\n--- a/var/spack/repos/builtin/packages/clingo-bootstrap/package.py\n+++ b/var/spack/repos/builtin/packages/clingo-bootstrap/package.py\n@@ -127,9 +127,7 @@ def pgo_train(self):\n )\n python_runtime_env.unset(\"SPACK_ENV\")\n python_runtime_env.unset(\"SPACK_PYTHON\")\n- self.spec[\"python\"].command(\n- spack.paths.spack_script, \"solve\", \"--fresh\", \"hdf5\", extra_env=python_runtime_env\n- )\n+ python(spack.paths.spack_script, \"solve\", \"--fresh\", \"hdf5\", extra_env=python_runtime_env)\n \n # Clean the build dir.\n rmtree(self.build_directory, ignore_errors=True)\ndiff --git a/var/spack/repos/builtin/packages/clingo/package.py b/var/spack/repos/builtin/packages/clingo/package.py\nindex 8ef318b81d26f..eee4659b98fd1 100644\n--- a/var/spack/repos/builtin/packages/clingo/package.py\n+++ b/var/spack/repos/builtin/packages/clingo/package.py\n@@ -3,8 +3,6 @@\n #\n # SPDX-License-Identifier: (Apache-2.0 OR MIT)\n \n-import os\n-\n from spack.compiler import UnsupportedCompilerFlag\n from spack.package import *\n \n@@ -125,7 +123,4 @@ def cmake_args(self):\n return args\n \n def win_add_library_dependent(self):\n- if \"+python\" in self.spec:\n- return [os.path.join(self.prefix, self.spec[\"python\"].package.platlib)]\n- else:\n- return []\n+ return [python_platlib] if \"+python\" in self.spec else []\ndiff --git a/var/spack/repos/builtin/packages/conduit/package.py b/var/spack/repos/builtin/packages/conduit/package.py\nindex c1066ce7524c0..001b04953d361 100644\n--- a/var/spack/repos/builtin/packages/conduit/package.py\n+++ b/var/spack/repos/builtin/packages/conduit/package.py\n@@ -443,7 +443,7 @@ def hostconfig(self):\n cfg.write(\"# Enable python module builds\\n\")\n cfg.write(cmake_cache_entry(\"ENABLE_PYTHON\", \"ON\"))\n cfg.write(\"# python from spack \\n\")\n- cfg.write(cmake_cache_entry(\"PYTHON_EXECUTABLE\", spec[\"python\"].command.path))\n+ cfg.write(cmake_cache_entry(\"PYTHON_EXECUTABLE\", python.path))\n try:\n cfg.write(\"# python module install dir\\n\")\n cfg.write(cmake_cache_entry(\"PYTHON_MODULE_INSTALL_PREFIX\", python_platlib))\ndiff --git a/var/spack/repos/builtin/packages/dsqss/package.py b/var/spack/repos/builtin/packages/dsqss/package.py\nindex 72e5f5961f381..44f76ab619861 100644\n--- a/var/spack/repos/builtin/packages/dsqss/package.py\n+++ b/var/spack/repos/builtin/packages/dsqss/package.py\n@@ -58,7 +58,6 @@ def test_dla(self):\n copy(join_path(test01, \"std.toml\"), \".\")\n \n # prepare\n- python = self.spec[\"python\"].command\n opts = [self.spec.prefix.bin.dla_pre, \"std.toml\"]\n with test_part(self, \"test_dla_pre\", purpose=\"prepare dla\"):\n python(*opts)\ndiff --git a/var/spack/repos/builtin/packages/fenics/package.py b/var/spack/repos/builtin/packages/fenics/package.py\nindex ae8336aa39e74..cf56c14fd01c1 100644\n--- a/var/spack/repos/builtin/packages/fenics/package.py\n+++ b/var/spack/repos/builtin/packages/fenics/package.py\n@@ -156,7 +156,7 @@ class Fenics(CMakePackage):\n depends_on(\"py-sphinx@1.0.1:\", when=\"+doc\", type=\"build\")\n \n def cmake_args(self):\n- args = [\n+ return [\n self.define_from_variant(\"BUILD_SHARED_LIBS\", \"shared\"),\n self.define(\"DOLFIN_SKIP_BUILD_TESTS\", True),\n self.define_from_variant(\"DOLFIN_ENABLE_OPENMP\", \"openmp\"),\n@@ -180,11 +180,6 @@ def cmake_args(self):\n self.define_from_variant(\"DOLFIN_ENABLE_ZLIB\", \"zlib\"),\n ]\n \n- if \"+python\" in self.spec:\n- args.append(self.define(\"PYTHON_EXECUTABLE\", self.spec[\"python\"].command.path))\n-\n- return args\n-\n # set environment for bulding python interface\n def setup_build_environment(self, env):\n env.set(\"DOLFIN_DIR\", self.prefix)\ndiff --git a/var/spack/repos/builtin/packages/gurobi/package.py b/var/spack/repos/builtin/packages/gurobi/package.py\nindex c0fa33639df9f..d9dd35c2ed75e 100644\n--- a/var/spack/repos/builtin/packages/gurobi/package.py\n+++ b/var/spack/repos/builtin/packages/gurobi/package.py\n@@ -57,5 +57,4 @@ def install(self, spec, prefix):\n @run_after(\"install\")\n def gurobipy(self):\n with working_dir(\"linux64\"):\n- python = which(\"python\")\n python(\"setup.py\", \"install\", \"--prefix={0}\".format(self.prefix))\ndiff --git a/var/spack/repos/builtin/packages/lbann/package.py b/var/spack/repos/builtin/packages/lbann/package.py\nindex 482d591a1c03a..e875832b92870 100644\n--- a/var/spack/repos/builtin/packages/lbann/package.py\n+++ b/var/spack/repos/builtin/packages/lbann/package.py\n@@ -402,12 +402,8 @@ def initconfig_package_entries(self):\n )\n entries.append(cmake_cache_option(\"protobuf_MODULE_COMPATIBLE\", True))\n \n- if spec.satisfies(\"^python\") and \"+pfe\" in spec:\n- entries.append(\n- cmake_cache_path(\n- \"LBANN_PFE_PYTHON_EXECUTABLE\", \"{0}/python3\".format(spec[\"python\"].prefix.bin)\n- )\n- )\n+ if spec.satisfies(\"+pfe ^python\"):\n+ entries.append(cmake_cache_path(\"LBANN_PFE_PYTHON_EXECUTABLE\", python.path))\n entries.append(\n cmake_cache_string(\"LBANN_PFE_PYTHONPATH\", env[\"PYTHONPATH\"])\n ) # do NOT need to sub ; for : because\ndiff --git a/var/spack/repos/builtin/packages/libcap-ng/package.py b/var/spack/repos/builtin/packages/libcap-ng/package.py\nindex 373cf7c3999ee..8256fc16a5fec 100644\n--- a/var/spack/repos/builtin/packages/libcap-ng/package.py\n+++ b/var/spack/repos/builtin/packages/libcap-ng/package.py\n@@ -33,7 +33,7 @@ class LibcapNg(AutotoolsPackage):\n \n def setup_build_environment(self, env):\n if self.spec.satisfies(\"+python\"):\n- env.set(\"PYTHON\", self.spec[\"python\"].command.path)\n+ env.set(\"PYTHON\", python.path)\n \n def configure_args(self):\n args = []\ndiff --git a/var/spack/repos/builtin/packages/mapserver/package.py b/var/spack/repos/builtin/packages/mapserver/package.py\nindex e26951531e117..c55cba0fead11 100644\n--- a/var/spack/repos/builtin/packages/mapserver/package.py\n+++ b/var/spack/repos/builtin/packages/mapserver/package.py\n@@ -3,8 +3,6 @@\n #\n # SPDX-License-Identifier: (Apache-2.0 OR MIT)\n \n-import os\n-\n from spack.package import *\n \n \n@@ -60,9 +58,7 @@ def patch(self):\n # prefix. This hack patches the CMakeLists.txt for the Python\n # bindings and hard-wires in the right destination. A bit ugly,\n # sorry, but I don't speak cmake.\n- pyversiondir = \"python{0}\".format(self.spec[\"python\"].version.up_to(2))\n- sitepackages = os.path.join(self.spec.prefix.lib, pyversiondir, \"site-packages\")\n- filter_file(r\"\\${PYTHON_SITE_PACKAGES}\", sitepackages, \"mapscript/python/CMakeLists.txt\")\n+ filter_file(r\"\\${PYTHON_SITE_PACKAGES}\", python_platlib, \"mapscript/python/CMakeLists.txt\")\n \n def cmake_args(self):\n args = []\ndiff --git a/var/spack/repos/builtin/packages/omnitrace/package.py b/var/spack/repos/builtin/packages/omnitrace/package.py\nindex bc3ed3175886a..384f8ca2db4c9 100644\n--- a/var/spack/repos/builtin/packages/omnitrace/package.py\n+++ b/var/spack/repos/builtin/packages/omnitrace/package.py\n@@ -141,7 +141,3 @@ def setup_build_environment(self, env):\n files = glob.glob(pattern)\n if files:\n env.set(\"TAU_MAKEFILE\", files[0])\n-\n- def setup_run_environment(self, env):\n- if \"+python\" in self.spec:\n- env.prepend_path(\"PYTHONPATH\", join_path(self.prefix.lib, \"python\", \"site-packages\"))\ndiff --git a/var/spack/repos/builtin/packages/open3d/package.py b/var/spack/repos/builtin/packages/open3d/package.py\nindex 2a63de25caed6..a8f1beee6b04d 100644\n--- a/var/spack/repos/builtin/packages/open3d/package.py\n+++ b/var/spack/repos/builtin/packages/open3d/package.py\n@@ -119,7 +119,7 @@ def install(self, spec, prefix):\n def test(self):\n if \"+python\" in self.spec:\n self.run_test(\n- self.spec[\"python\"].command.path,\n+ python.path,\n [\"-c\", \"import open3d\"],\n purpose=\"checking import of open3d\",\n work_dir=\"spack-test\",\ndiff --git a/var/spack/repos/builtin/packages/opencv/package.py b/var/spack/repos/builtin/packages/opencv/package.py\nindex 8e3f3236bb7b6..64375458a3283 100644\n--- a/var/spack/repos/builtin/packages/opencv/package.py\n+++ b/var/spack/repos/builtin/packages/opencv/package.py\n@@ -1027,14 +1027,13 @@ def cmake_args(self):\n )\n \n # Python\n- python_exe = spec[\"python\"].command.path\n python_lib = spec[\"python\"].libs[0]\n python_include_dir = spec[\"python\"].headers.directories[0]\n \n if \"+python3\" in spec:\n args.extend(\n [\n- self.define(\"PYTHON3_EXECUTABLE\", python_exe),\n+ self.define(\"PYTHON3_EXECUTABLE\", python.path),\n self.define(\"PYTHON3_LIBRARY\", python_lib),\n self.define(\"PYTHON3_INCLUDE_DIR\", python_include_dir),\n self.define(\"PYTHON2_EXECUTABLE\", \"\"),\ndiff --git a/var/spack/repos/builtin/packages/openwsman/package.py b/var/spack/repos/builtin/packages/openwsman/package.py\nindex 4be921bad99c5..9d9870706b72a 100644\n--- a/var/spack/repos/builtin/packages/openwsman/package.py\n+++ b/var/spack/repos/builtin/packages/openwsman/package.py\n@@ -31,13 +31,9 @@ class Openwsman(CMakePackage):\n def patch(self):\n \"\"\"Change python install directory.\"\"\"\n if self.spec.satisfies(\"+python\"):\n- python_spec = self.spec[\"python\"]\n- python_libdir = join_path(\n- self.spec.prefix.lib, \"python\" + str(python_spec.version.up_to(2)), \"site-packages\"\n- )\n filter_file(\n \"DESTINATION .*\",\n- \"DESTINATION {0} )\".format(python_libdir),\n+ \"DESTINATION {0} )\".format(python_platlib),\n join_path(\"bindings\", \"python\", \"CMakeLists.txt\"),\n )\n \ndiff --git a/var/spack/repos/builtin/packages/precice/package.py b/var/spack/repos/builtin/packages/precice/package.py\nindex 12473225fdbee..631d4d252bcab 100644\n--- a/var/spack/repos/builtin/packages/precice/package.py\n+++ b/var/spack/repos/builtin/packages/precice/package.py\n@@ -183,7 +183,7 @@ def cmake_args(self):\n python_library = spec[\"python\"].libs[0]\n python_include = spec[\"python\"].headers.directories[0]\n numpy_include = join_path(\n- spec[\"py-numpy\"].prefix, spec[\"python\"].package.platlib, \"numpy\", \"core\", \"include\"\n+ spec[\"py-numpy\"].package.module.python_platlib, \"numpy\", \"core\", \"include\"\n )\n cmake_args.extend(\n [\ndiff --git a/var/spack/repos/builtin/packages/py-alphafold/package.py b/var/spack/repos/builtin/packages/py-alphafold/package.py\nindex 674f3ebf10810..0269a2abdfb18 100644\n--- a/var/spack/repos/builtin/packages/py-alphafold/package.py\n+++ b/var/spack/repos/builtin/packages/py-alphafold/package.py\n@@ -77,7 +77,7 @@ class PyAlphafold(PythonPackage, CudaPackage):\n @run_after(\"install\")\n def install_scripts(self):\n mkdirp(self.prefix.bin)\n- shebang = \"#!{0}\\n\".format(self.spec[\"python\"].command)\n+ shebang = f\"#!{python.path}\\n\"\n for fname in glob.glob(\"run_alphafold*.py\"):\n destfile = join_path(self.prefix.bin, fname)\n with open(fname, \"r\") as src:\ndiff --git a/var/spack/repos/builtin/packages/py-chainer/package.py b/var/spack/repos/builtin/packages/py-chainer/package.py\nindex 1f78c76a30d3b..a1ab6819a1368 100644\n--- a/var/spack/repos/builtin/packages/py-chainer/package.py\n+++ b/var/spack/repos/builtin/packages/py-chainer/package.py\n@@ -59,7 +59,7 @@ def test_chainermn(self):\n \n mnist_file = join_path(self.install_test_root.examples.chainermn.mnist, \"train_mnist.py\")\n mpirun = which(self.spec[\"mpi\"].prefix.bin.mpirun)\n- opts = [\"-n\", \"4\", self.spec[\"python\"].command.path, mnist_file, \"-o\", \".\"]\n+ opts = [\"-n\", \"4\", python.path, mnist_file, \"-o\", \".\"]\n env[\"OMP_NUM_THREADS\"] = \"4\"\n \n mpirun(*opts)\ndiff --git a/var/spack/repos/builtin/packages/py-eccodes/package.py b/var/spack/repos/builtin/packages/py-eccodes/package.py\nindex 107cddc03e624..b53c545e4a00c 100644\n--- a/var/spack/repos/builtin/packages/py-eccodes/package.py\n+++ b/var/spack/repos/builtin/packages/py-eccodes/package.py\n@@ -43,5 +43,4 @@ def setup_dependent_run_environment(self, env, dependent_spec):\n \n def test_selfcheck(self):\n \"\"\"checking system setup\"\"\"\n- python = self.spec[\"python\"].command\n python(\"-m\", \"eccodes\", \"selfcheck\")\ndiff --git a/var/spack/repos/builtin/packages/py-gmxapi/package.py b/var/spack/repos/builtin/packages/py-gmxapi/package.py\nindex 77a03d6fd4257..5869d1ad4b3a4 100644\n--- a/var/spack/repos/builtin/packages/py-gmxapi/package.py\n+++ b/var/spack/repos/builtin/packages/py-gmxapi/package.py\n@@ -49,5 +49,4 @@ def setup_build_environment(self, env):\n def install_test(self):\n with working_dir(\"spack-test\", create=True):\n # test include helper points to right location\n- python = self.spec[\"python\"].command\n python(\"-m\", \"pytest\", \"-x\", os.path.join(self.build_directory, \"test\"))\ndiff --git a/var/spack/repos/builtin/packages/py-gpaw/package.py b/var/spack/repos/builtin/packages/py-gpaw/package.py\nindex 8a94a37b1d007..6e4181afbdd48 100644\n--- a/var/spack/repos/builtin/packages/py-gpaw/package.py\n+++ b/var/spack/repos/builtin/packages/py-gpaw/package.py\n@@ -59,7 +59,7 @@ def patch(self):\n \n python_include = spec[\"python\"].headers.directories[0]\n numpy_include = join_path(\n- spec[\"py-numpy\"].prefix, spec[\"python\"].package.platlib, \"numpy\", \"core\", \"include\"\n+ spec[\"py-numpy\"].package.module.python_platlib, \"numpy\", \"core\", \"include\"\n )\n \n libs = blas.libs + lapack.libs + libxc.libs\ndiff --git a/var/spack/repos/builtin/packages/py-installer/package.py b/var/spack/repos/builtin/packages/py-installer/package.py\nindex 01132b63bbb74..6ecf2c5b4e8f9 100644\n--- a/var/spack/repos/builtin/packages/py-installer/package.py\n+++ b/var/spack/repos/builtin/packages/py-installer/package.py\n@@ -36,6 +36,4 @@ def install(self, spec, prefix):\n python(*args)\n \n def setup_dependent_package(self, module, dependent_spec):\n- installer = dependent_spec[\"python\"].command\n- installer.add_default_arg(\"-m\", \"installer\")\n- setattr(module, \"installer\", installer)\n+ setattr(module, \"installer\", python.with_default_args(\"-m\", \"installer\"))\ndiff --git a/var/spack/repos/builtin/packages/py-ipykernel/package.py b/var/spack/repos/builtin/packages/py-ipykernel/package.py\nindex 2357fbb56d5ff..80490e66f0650 100644\n--- a/var/spack/repos/builtin/packages/py-ipykernel/package.py\n+++ b/var/spack/repos/builtin/packages/py-ipykernel/package.py\n@@ -89,4 +89,4 @@ class PyIpykernel(PythonPackage):\n @run_after(\"install\")\n def install_data(self):\n \"\"\"install the Jupyter kernel spec\"\"\"\n- self.spec[\"python\"].command(\"-m\", \"ipykernel\", \"install\", \"--prefix=\" + self.prefix)\n+ python(\"-m\", \"ipykernel\", \"install\", \"--prefix=\" + self.prefix)\ndiff --git a/var/spack/repos/builtin/packages/py-libensemble/package.py b/var/spack/repos/builtin/packages/py-libensemble/package.py\nindex 88dcd37bdbcbe..f89c1a9607f5e 100644\n--- a/var/spack/repos/builtin/packages/py-libensemble/package.py\n+++ b/var/spack/repos/builtin/packages/py-libensemble/package.py\n@@ -99,7 +99,6 @@ def run_tutorial_script(self, script):\n if not os.path.isfile(exe):\n raise SkipTest(f\"{script} is missing\")\n \n- python = self.spec[\"python\"].command\n python(exe, \"--comms\", \"local\", \"--nworkers\", \"2\")\n \n def test_uniform_sampling(self):\ndiff --git a/var/spack/repos/builtin/packages/py-nanobind/package.py b/var/spack/repos/builtin/packages/py-nanobind/package.py\nindex 909175140b747..6fb598acdcaab 100644\n--- a/var/spack/repos/builtin/packages/py-nanobind/package.py\n+++ b/var/spack/repos/builtin/packages/py-nanobind/package.py\n@@ -60,5 +60,5 @@ class PyNanobind(PythonPackage):\n \n @property\n def cmake_prefix_paths(self):\n- paths = [join_path(self.prefix, self.spec[\"python\"].package.platlib, \"nanobind\", \"cmake\")]\n+ paths = [join_path(python_platlib, \"nanobind\", \"cmake\")]\n return paths\ndiff --git a/var/spack/repos/builtin/packages/py-pip/package.py b/var/spack/repos/builtin/packages/py-pip/package.py\nindex 023eab21ecc5f..111e50911b87b 100644\n--- a/var/spack/repos/builtin/packages/py-pip/package.py\n+++ b/var/spack/repos/builtin/packages/py-pip/package.py\n@@ -77,7 +77,5 @@ def install(self, spec, prefix):\n args.insert(0, os.path.join(whl, \"pip\"))\n python(*args)\n \n- def setup_dependent_package(self, module, dependent_spec):\n- pip = dependent_spec[\"python\"].command\n- pip.add_default_arg(\"-m\", \"pip\")\n- setattr(module, \"pip\", pip)\n+ def setup_dependent_package(self, module, dependent_spec: Spec):\n+ setattr(module, \"pip\", python.with_default_args(\"-m\", \"pip\"))\ndiff --git a/var/spack/repos/builtin/packages/py-pybind11/package.py b/var/spack/repos/builtin/packages/py-pybind11/package.py\nindex 1fa9f7beee627..f7c298309b696 100644\n--- a/var/spack/repos/builtin/packages/py-pybind11/package.py\n+++ b/var/spack/repos/builtin/packages/py-pybind11/package.py\n@@ -102,7 +102,6 @@ def install_test(self):\n \n with working_dir(\"spack-test\", create=True):\n # test include helper points to right location\n- python = self.spec[\"python\"].command\n py_inc = python(\n \"-c\", \"import pybind11 as py; print(py.get_include())\", output=str\n ).strip()\ndiff --git a/var/spack/repos/builtin/packages/py-pymol/package.py b/var/spack/repos/builtin/packages/py-pymol/package.py\nindex fe9bcce3a8d6e..a4ab0b522d849 100644\n--- a/var/spack/repos/builtin/packages/py-pymol/package.py\n+++ b/var/spack/repos/builtin/packages/py-pymol/package.py\n@@ -58,7 +58,7 @@ def install_launcher(self):\n script = join_path(python_platlib, \"pymol\", \"__init__.py\")\n \n shebang = \"#!/bin/sh\\n\"\n- fdata = 'exec {0} {1} \"$@\"'.format(self.spec[\"python\"].command, script)\n+ fdata = f'exec {python.path} {script} \"$@\"'\n with open(fname, \"w\") as new:\n new.write(shebang + fdata)\n set_executable(fname)\ndiff --git a/var/spack/repos/builtin/packages/py-pyqt4/package.py b/var/spack/repos/builtin/packages/py-pyqt4/package.py\nindex 31e481d3052fc..00e27c994e3bd 100644\n--- a/var/spack/repos/builtin/packages/py-pyqt4/package.py\n+++ b/var/spack/repos/builtin/packages/py-pyqt4/package.py\n@@ -48,7 +48,7 @@ def configure_args(self):\n \"--destdir\",\n python_platlib,\n \"--pyuic4-interpreter\",\n- self.spec[\"python\"].command.path,\n+ python.path,\n \"--sipdir\",\n self.prefix.share.sip.PyQt4,\n \"--stubsdir\",\ndiff --git a/var/spack/repos/builtin/packages/py-pyspark/package.py b/var/spack/repos/builtin/packages/py-pyspark/package.py\nindex 087378d753d9e..058ac47bf77a9 100644\n--- a/var/spack/repos/builtin/packages/py-pyspark/package.py\n+++ b/var/spack/repos/builtin/packages/py-pyspark/package.py\n@@ -25,5 +25,5 @@ class PyPyspark(PythonPackage):\n depends_on(\"py-py4j@0.10.9\", when=\"@3.0.1:3.1.3\", type=(\"build\", \"run\"))\n \n def setup_run_environment(self, env):\n- env.set(\"PYSPARK_PYTHON\", self.spec[\"python\"].command.path)\n- env.set(\"PYSPARK_DRIVER_PYTHON\", self.spec[\"python\"].command.path)\n+ env.set(\"PYSPARK_PYTHON\", python.path)\n+ env.set(\"PYSPARK_DRIVER_PYTHON\", python.path)\ndiff --git a/var/spack/repos/builtin/packages/py-pythonsollya/package.py b/var/spack/repos/builtin/packages/py-pythonsollya/package.py\nindex 84a715c8d106f..c8f427f873de9 100644\n--- a/var/spack/repos/builtin/packages/py-pythonsollya/package.py\n+++ b/var/spack/repos/builtin/packages/py-pythonsollya/package.py\n@@ -34,9 +34,4 @@ class PyPythonsollya(PythonPackage):\n \n @run_before(\"install\")\n def patch(self):\n- filter_file(\n- \"PYTHON ?= python2\",\n- \"PYTHON ?= \" + self.spec[\"python\"].command.path,\n- \"GNUmakefile\",\n- string=True,\n- )\n+ filter_file(\"PYTHON ?= python2\", f\"PYTHON ?= {python.path}\", \"GNUmakefile\", string=True)\ndiff --git a/var/spack/repos/builtin/packages/py-tensorflow/package.py b/var/spack/repos/builtin/packages/py-tensorflow/package.py\nindex 5de25247e20fb..5552c0fb05521 100644\n--- a/var/spack/repos/builtin/packages/py-tensorflow/package.py\n+++ b/var/spack/repos/builtin/packages/py-tensorflow/package.py\n@@ -406,7 +406,7 @@ def setup_build_environment(self, env):\n spec = self.spec\n \n # Please specify the location of python\n- env.set(\"PYTHON_BIN_PATH\", spec[\"python\"].command.path)\n+ env.set(\"PYTHON_BIN_PATH\", python.path)\n \n # Please input the desired Python library path to use\n env.set(\"PYTHON_LIB_PATH\", python_platlib)\ndiff --git a/var/spack/repos/builtin/packages/py-torch/package.py b/var/spack/repos/builtin/packages/py-torch/package.py\nindex 2677105c64331..9a7c14606502e 100644\n--- a/var/spack/repos/builtin/packages/py-torch/package.py\n+++ b/var/spack/repos/builtin/packages/py-torch/package.py\n@@ -679,7 +679,5 @@ def install_test(self):\n \n @property\n def cmake_prefix_paths(self):\n- cmake_prefix_paths = [\n- join_path(self.prefix, self.spec[\"python\"].package.platlib, \"torch\", \"share\", \"cmake\")\n- ]\n+ cmake_prefix_paths = [join_path(python_platlib, \"torch\", \"share\", \"cmake\")]\n return cmake_prefix_paths\ndiff --git a/var/spack/repos/builtin/packages/py-xdot/package.py b/var/spack/repos/builtin/packages/py-xdot/package.py\nindex bf898a117e451..73d703a287bf3 100644\n--- a/var/spack/repos/builtin/packages/py-xdot/package.py\n+++ b/var/spack/repos/builtin/packages/py-xdot/package.py\n@@ -50,8 +50,7 @@ def post_install(self):\n dst,\n )\n # regenerate the byte-compiled __init__.py\n- python3 = spec[\"python\"].command\n- python3(\"-m\", \"compileall\", dst)\n+ python(\"-m\", \"compileall\", dst)\n \n def setup_run_environment(self, env):\n spec = self.spec\ndiff --git a/var/spack/repos/builtin/packages/python-venv/package.py b/var/spack/repos/builtin/packages/python-venv/package.py\nnew file mode 100644\nindex 0000000000000..cd0fd84371d89\n--- /dev/null\n+++ b/var/spack/repos/builtin/packages/python-venv/package.py\n@@ -0,0 +1,100 @@\n+# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other\n+# Spack Project Developers. See the top-level COPYRIGHT file for details.\n+#\n+# SPDX-License-Identifier: (Apache-2.0 OR MIT)\n+\n+import os\n+import shutil\n+\n+import llnl.util.filesystem as fs\n+\n+from spack.package import *\n+\n+\n+class PythonVenv(Package):\n+ \"\"\"A Spack managed Python virtual environment\"\"\"\n+\n+ homepage = \"https://docs.python.org/3/library/venv.html\"\n+ has_code = False\n+\n+ maintainers(\"haampie\")\n+\n+ version(\"1.0\")\n+\n+ extends(\"python\")\n+\n+ def install(self, spec, prefix):\n+ # Create a virtual environment\n+ python(\"-m\", \"venv\", \"--without-pip\", prefix)\n+\n+ def add_files_to_view(self, view, merge_map: Dict[str, str], skip_if_exists=True):\n+ for src, dst in merge_map.items():\n+ if skip_if_exists and os.path.lexists(dst):\n+ continue\n+\n+ name = os.path.basename(dst)\n+\n+ # Replace the VIRTUAL_ENV variable in the activate scripts after copying\n+ if name.lower().startswith(\"activate\"):\n+ shutil.copy(src, dst)\n+ fs.filter_file(\n+ self.spec.prefix,\n+ os.path.abspath(view.get_projection_for_spec(self.spec)),\n+ dst,\n+ string=True,\n+ )\n+ else:\n+ view.link(src, dst)\n+\n+ @property\n+ def bindir(self):\n+ windows = self.spec.satisfies(\"platform=windows\")\n+ return join_path(self.prefix, \"Scripts\" if windows else \"bin\")\n+\n+ @property\n+ def command(self):\n+ \"\"\"Returns a python Executable instance\"\"\"\n+ return which(\"python3\", path=self.bindir)\n+\n+ def _get_path(self, name) -> str:\n+ return self.command(\n+ \"-Ec\", f\"import sysconfig; print(sysconfig.get_path('{name}'))\", output=str\n+ ).strip()\n+\n+ @property\n+ def platlib(self) -> str:\n+ \"\"\"Directory for site-specific, platform-specific files.\"\"\"\n+ relative_platlib = os.path.relpath(self._get_path(\"platlib\"), self.prefix)\n+ assert not relative_platlib.startswith(\"..\")\n+ return relative_platlib\n+\n+ @property\n+ def purelib(self) -> str:\n+ \"\"\"Directory for site-specific, non-platform-specific files.\"\"\"\n+ relative_purelib = os.path.relpath(self._get_path(\"purelib\"), self.prefix)\n+ assert not relative_purelib.startswith(\"..\")\n+ return relative_purelib\n+\n+ @property\n+ def headers(self):\n+ return HeaderList([])\n+\n+ @property\n+ def libs(self):\n+ return LibraryList([])\n+\n+ def setup_dependent_run_environment(self, env, dependent_spec):\n+ \"\"\"Set PYTHONPATH to include the site-packages directory for the\n+ extension and any other python extensions it depends on.\"\"\"\n+ # Packages may be installed in platform-specific or platform-independent site-packages\n+ # directories\n+ for directory in {self.platlib, self.purelib}:\n+ path = os.path.join(dependent_spec.prefix, directory)\n+ if os.path.isdir(path):\n+ env.prepend_path(\"PYTHONPATH\", path)\n+\n+ def setup_dependent_package(self, module, dependent_spec):\n+ \"\"\"Called before python modules' install() methods.\"\"\"\n+ module.python = self.command\n+ module.python_platlib = join_path(dependent_spec.prefix, self.platlib)\n+ module.python_purelib = join_path(dependent_spec.prefix, self.purelib)\ndiff --git a/var/spack/repos/builtin/packages/python/package.py b/var/spack/repos/builtin/packages/python/package.py\nindex ad494226ee05c..b87ee813055dd 100644\n--- a/var/spack/repos/builtin/packages/python/package.py\n+++ b/var/spack/repos/builtin/packages/python/package.py\n@@ -8,19 +8,16 @@\n import os\n import platform\n import re\n-import stat\n import subprocess\n import sys\n from shutil import copy\n-from typing import Dict, List, Tuple\n+from typing import Dict, List\n \n import llnl.util.tty as tty\n-from llnl.util.filesystem import is_nonsymlink_exe_with_shebang, path_contains_subdirectory\n from llnl.util.lang import dedupe\n \n from spack.build_environment import dso_suffix, stat_suffix\n from spack.package import *\n-from spack.util.environment import is_system_path\n from spack.util.prefix import Prefix\n \n \n@@ -1115,7 +1112,7 @@ def platlib(self):\n path = self.config_vars[\"platlib\"]\n if path.startswith(prefix):\n return path.replace(prefix, \"\")\n- return os.path.join(\"lib64\", \"python{}\".format(self.version.up_to(2)), \"site-packages\")\n+ return os.path.join(\"lib64\", f\"python{self.version.up_to(2)}\", \"site-packages\")\n \n @property\n def purelib(self):\n@@ -1135,7 +1132,7 @@ def purelib(self):\n path = self.config_vars[\"purelib\"]\n if path.startswith(prefix):\n return path.replace(prefix, \"\")\n- return os.path.join(\"lib\", \"python{}\".format(self.version.up_to(2)), \"site-packages\")\n+ return os.path.join(\"lib\", f\"python{self.version.up_to(2)}\", \"site-packages\")\n \n @property\n def include(self):\n@@ -1163,39 +1160,6 @@ def setup_dependent_build_environment(self, env, dependent_spec):\n \"\"\"Set PYTHONPATH to include the site-packages directory for the\n extension and any other python extensions it depends on.\n \"\"\"\n- # Ensure the current Python is first in the PATH\n- path = os.path.dirname(self.command.path)\n- if not is_system_path(path):\n- env.prepend_path(\"PATH\", path)\n-\n- # Add installation prefix to PYTHONPATH, needed to run import tests\n- prefixes = set()\n- if dependent_spec.package.extends(self.spec):\n- prefixes.add(dependent_spec.prefix)\n-\n- # Add direct build/run/test dependencies to PYTHONPATH,\n- # needed to build the package and to run import tests\n- for direct_dep in dependent_spec.dependencies(deptype=(\"build\", \"run\", \"test\")):\n- if direct_dep.package.extends(self.spec):\n- prefixes.add(direct_dep.prefix)\n-\n- # Add recursive run dependencies of all direct dependencies,\n- # needed by direct dependencies at run-time\n- for indirect_dep in direct_dep.traverse(deptype=\"run\"):\n- if indirect_dep.package.extends(self.spec):\n- prefixes.add(indirect_dep.prefix)\n-\n- for prefix in prefixes:\n- # Packages may be installed in platform-specific or platform-independent\n- # site-packages directories\n- for directory in {self.platlib, self.purelib}:\n- env.prepend_path(\"PYTHONPATH\", os.path.join(prefix, directory))\n-\n- if self.spec.satisfies(\"platform=windows\"):\n- prefix_scripts_dir = prefix.Scripts\n- if os.path.exists(prefix_scripts_dir):\n- env.prepend_path(\"PATH\", prefix_scripts_dir)\n-\n # We need to make sure that the extensions are compiled and linked with\n # the Spack wrapper. Paths to the executables that are used for these\n # operations are normally taken from the sysconfigdata file, which we\n@@ -1241,9 +1205,7 @@ def setup_dependent_build_environment(self, env, dependent_spec):\n # invoked directly (no change would be required in that case\n # because Spack arranges for the Spack ld wrapper to be the\n # first instance of \"ld\" in PATH).\n- new_link = config_link.replace(\n- \" {0} \".format(config_compile), \" {0} \".format(new_compile)\n- )\n+ new_link = config_link.replace(f\" {config_compile} \", f\" {new_compile} \")\n \n # There is logic in the sysconfig module that is sensitive to the\n # fact that LDSHARED is set in the environment, therefore we export\n@@ -1256,66 +1218,23 @@ def setup_dependent_run_environment(self, env, dependent_spec):\n \"\"\"Set PYTHONPATH to include the site-packages directory for the\n extension and any other python extensions it depends on.\n \"\"\"\n- if dependent_spec.package.extends(self.spec):\n- # Packages may be installed in platform-specific or platform-independent\n- # site-packages directories\n- for directory in {self.platlib, self.purelib}:\n- env.prepend_path(\"PYTHONPATH\", os.path.join(dependent_spec.prefix, directory))\n+ if not dependent_spec.package.extends(self.spec) or dependent_spec.dependencies(\n+ \"python-venv\"\n+ ):\n+ return\n+\n+ # Packages may be installed in platform-specific or platform-independent site-packages\n+ # directories\n+ for directory in {self.platlib, self.purelib}:\n+ env.prepend_path(\"PYTHONPATH\", os.path.join(dependent_spec.prefix, directory))\n \n def setup_dependent_package(self, module, dependent_spec):\n \"\"\"Called before python modules' install() methods.\"\"\"\n-\n module.python = self.command\n-\n module.python_include = join_path(dependent_spec.prefix, self.include)\n module.python_platlib = join_path(dependent_spec.prefix, self.platlib)\n module.python_purelib = join_path(dependent_spec.prefix, self.purelib)\n \n- def add_files_to_view(self, view, merge_map, skip_if_exists=True):\n- # The goal is to copy the `python` executable, so that its search paths are relative to the\n- # view instead of the install prefix. This is an obsolete way of creating something that\n- # resembles a virtual environnent. Also we copy scripts with shebang lines. Finally we need\n- # to re-target symlinks pointing to copied files.\n- bin_dir = self.spec.prefix.bin if sys.platform != \"win32\" else self.spec.prefix\n- copied_files: Dict[Tuple[int, int], str] = {} # File identifier -> source\n- delayed_links: List[Tuple[str, str]] = [] # List of symlinks from merge map\n- for src, dst in merge_map.items():\n- if skip_if_exists and os.path.lexists(dst):\n- continue\n-\n- # Files not in the bin dir are linked the default way.\n- if not path_contains_subdirectory(src, bin_dir):\n- view.link(src, dst, spec=self.spec)\n- continue\n-\n- s = os.lstat(src)\n-\n- # Symlink is delayed because we may need to re-target if its target is copied in view\n- if stat.S_ISLNK(s.st_mode):\n- delayed_links.append((src, dst))\n- continue\n-\n- # Anything that's not a symlink gets copied. Scripts with shebangs are immediately\n- # updated when necessary.\n- copied_files[(s.st_dev, s.st_ino)] = dst\n- copy(src, dst)\n- if is_nonsymlink_exe_with_shebang(src):\n- filter_file(\n- self.spec.prefix, os.path.abspath(view.get_projection_for_spec(self.spec)), dst\n- )\n-\n- # Finally re-target the symlinks that point to copied files.\n- for src, dst in delayed_links:\n- try:\n- s = os.stat(src)\n- target = copied_files[(s.st_dev, s.st_ino)]\n- except (OSError, KeyError):\n- target = None\n- if target:\n- os.symlink(os.path.relpath(target, os.path.dirname(dst)), dst)\n- else:\n- view.link(src, dst, spec=self.spec)\n-\n def test_hello_world(self):\n \"\"\"run simple hello world program\"\"\"\n # do not use self.command because we are also testing the run env\ndiff --git a/var/spack/repos/builtin/packages/qgis/package.py b/var/spack/repos/builtin/packages/qgis/package.py\nindex 051a78660df69..196a52622f1f4 100644\n--- a/var/spack/repos/builtin/packages/qgis/package.py\n+++ b/var/spack/repos/builtin/packages/qgis/package.py\n@@ -188,9 +188,7 @@ class Qgis(CMakePackage):\n @run_before(\"cmake\", when=\"^py-pyqt5\")\n def fix_pyqt5_cmake(self):\n cmfile = FileFilter(join_path(\"cmake\", \"FindPyQt5.cmake\"))\n- pyqtpath = join_path(\n- self.spec[\"py-pyqt5\"].prefix, self.spec[\"python\"].package.platlib, \"PyQt5\"\n- )\n+ pyqtpath = join_path(self.spec[\"py-pyqt5\"].package.module.python_platlib, \"PyQt5\")\n cmfile.filter(\n 'SET(PYQT5_MOD_DIR \"${Python_SITEARCH}/PyQt5\")',\n 'SET(PYQT5_MOD_DIR \"' + pyqtpath + '\")',\n@@ -210,7 +208,7 @@ def fix_qsci_sip(self):\n pyqtx = \"PyQt6\"\n \n sip_inc_dir = join_path(\n- self.spec[\"qscintilla\"].prefix, self.spec[\"python\"].package.platlib, pyqtx, \"bindings\"\n+ self.spec[\"qscintilla\"].package.module.python_platlib, pyqtx, \"bindings\"\n )\n with open(join_path(\"python\", \"gui\", \"pyproject.toml.in\"), \"a\") as tomlfile:\n tomlfile.write(f'\\n[tool.sip.project]\\nsip-include-dirs = [\"{sip_inc_dir}\"]\\n')\ndiff --git a/var/spack/repos/builtin/packages/qscintilla/package.py b/var/spack/repos/builtin/packages/qscintilla/package.py\nindex bbf0b5a3090a5..ce39d02d45d65 100644\n--- a/var/spack/repos/builtin/packages/qscintilla/package.py\n+++ b/var/spack/repos/builtin/packages/qscintilla/package.py\n@@ -101,7 +101,7 @@ def make_qsci_python(self):\n with working_dir(join_path(self.stage.source_path, \"Python\")):\n copy(ftoml, \"pyproject.toml\")\n sip_inc_dir = join_path(\n- self.spec[py_pyqtx].prefix, self.spec[\"python\"].package.platlib, pyqtx, \"bindings\"\n+ self.spec[py_pyqtx].package.module.python_platlib, pyqtx, \"bindings\"\n )\n \n with open(\"pyproject.toml\", \"a\") as tomlfile:\ndiff --git a/var/spack/repos/builtin/packages/redland-bindings/package.py b/var/spack/repos/builtin/packages/redland-bindings/package.py\nindex 964f62108f023..3c6bb42abc400 100644\n--- a/var/spack/repos/builtin/packages/redland-bindings/package.py\n+++ b/var/spack/repos/builtin/packages/redland-bindings/package.py\n@@ -3,8 +3,6 @@\n #\n # SPDX-License-Identifier: (Apache-2.0 OR MIT)\n \n-import os\n-\n from spack.package import *\n \n \n@@ -27,11 +25,4 @@ class RedlandBindings(AutotoolsPackage):\n extends(\"python\")\n \n def configure_args(self):\n- plib = self.spec[\"python\"].prefix.lib\n- plib64 = self.spec[\"python\"].prefix.lib64\n- mybase = self.prefix.lib\n- if os.path.isdir(plib64) and not os.path.isdir(plib):\n- mybase = self.prefix.lib64\n- pver = \"python{0}\".format(self.spec[\"python\"].version.up_to(2))\n- myplib = join_path(mybase, pver, \"site-packages\")\n- return [\"--with-python\", \"PYTHON_LIB={0}\".format(myplib)]\n+ return [\"--with-python\", f\"PYTHON_LIB={python_platlib}\"]\ndiff --git a/var/spack/repos/builtin/packages/z3/package.py b/var/spack/repos/builtin/packages/z3/package.py\nindex e386e050c848c..b42d46655abc8 100644\n--- a/var/spack/repos/builtin/packages/z3/package.py\n+++ b/var/spack/repos/builtin/packages/z3/package.py\n@@ -53,13 +53,6 @@ def cmake_args(self):\n ]\n \n if spec.satisfies(\"+python\"):\n- args.append(\n- self.define(\n- \"CMAKE_INSTALL_PYTHON_PKG_DIR\",\n- join_path(\n- prefix.lib, \"python%s\" % spec[\"python\"].version.up_to(2), \"site-packages\"\n- ),\n- )\n- )\n+ args.append(self.define(\"CMAKE_INSTALL_PYTHON_PKG_DIR\", python_platlib))\n \n return args\n"},"test_patch":{"kind":"string","value":"diff --git a/lib/spack/spack/test/cmd/extensions.py b/lib/spack/spack/test/cmd/extensions.py\nindex 1f6ed95b56446..5869e466422a0 100644\n--- a/lib/spack/spack/test/cmd/extensions.py\n+++ b/lib/spack/spack/test/cmd/extensions.py\n@@ -33,21 +33,23 @@ def check_output(ni):\n packages = extensions(\"-s\", \"packages\", \"python\")\n installed = extensions(\"-s\", \"installed\", \"python\")\n assert \"==> python@2.7.11\" in output\n- assert \"==> 2 extensions\" in output\n+ assert \"==> 3 extensions\" in output\n assert \"py-extension1\" in output\n assert \"py-extension2\" in output\n+ assert \"python-venv\" in output\n \n- assert \"==> 2 extensions\" in packages\n+ assert \"==> 3 extensions\" in packages\n assert \"py-extension1\" in packages\n assert \"py-extension2\" in packages\n+ assert \"python-venv\" in packages\n assert \"installed\" not in packages\n \n- assert (\"%s installed\" % (ni if ni else \"None\")) in output\n- assert (\"%s installed\" % (ni if ni else \"None\")) in installed\n+ assert f\"{ni if ni else 'None'} installed\" in output\n+ assert f\"{ni if ni else 'None'} installed\" in installed\n \n- check_output(2)\n+ check_output(3)\n ext2.package.do_uninstall(force=True)\n- check_output(1)\n+ check_output(2)\n \n \n def test_extensions_no_arguments(mock_packages):\ndiff --git a/var/spack/repos/duplicates.test/packages/python-venv b/var/spack/repos/duplicates.test/packages/python-venv\nnew file mode 120000\nindex 0000000000000..a9a1ce867a862\n--- /dev/null\n+++ b/var/spack/repos/duplicates.test/packages/python-venv\n@@ -0,0 +1,1 @@\n+../../builtin.mock/packages/python-venv\n\\ No newline at end of file\n"},"problem_statement":{"kind":"string","value":"`pkg.windows_establish_runtime_linkage()` runs in the wrong place\nMissed in review of https://github.com/spack/spack/pull/31930\r\n\r\nThe following\r\n\r\nhttps://github.com/spack/spack/blob/9c4e44a0ad2a65f12a8cc4ee88729208ab78844b/lib/spack/spack/installer.py#L1694-L1697\r\n\r\nis executed after post install hooks are run, but modifies files in the package's prefix.\r\n\r\nThat means it mutates the prefix after the `write_install_manifest` post install hook, which is wrong.\r\n\r\nIt should really itself be a post-install hook that runs before `write_install_manifest`.\npy-setuptools: install setuptools from wheels directly \nWhen installing setuptools from sources in Spack, we might get into weird failures due to the way we use pip.\r\n\r\nIn particular, for Spack it's necessary to install in a non-isolated pip environment to allow using PYTHONPATH as a selection method for all the build requirements of a Python package.\r\n\r\nThis can fail when installing setuptools since there might be a setuptools version already installed for the Python interpreter being used, with different entry points than the one we want to install. The failure encountered in that case is like the one shown [here](https://github.com/pypa/setuptools/issues/980#issuecomment-1154471423).\r\n\r\nInstalling from wheels _both_ `pip` and `setuptools` should harden our installation procedure in the context of:\r\n- Bootstrapping Python dependencies of Spack\r\n- Using external Python packages\r\n\r\nThis PR takes this approach and changes the way we install py-setuptools in Spack.\n"},"hints_text":{"kind":"string","value":"\nI have another issue to track down, i.e. a system `python2` that:\r\n```console\r\nPython 2.7.18 (default, Mar 8 2021, 13:02:45) \r\n[GCC 9.3.0] on linux2\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n>>> from sysconfig import get_paths\r\n>>> get_paths()\r\n{'platinclude': '/usr/local/include/python2.7', 'platstdlib': '/usr/lib/python2.7', 'platlib': '/usr/local/lib/python2.7/dist-packages', 'purelib': '/usr/local/lib/python2.7/dist-packages', 'stdlib': '/usr/lib/python2.7', 'scripts': '/usr/local/bin', 'include': '/usr/local/include/python2.7', 'data': '/usr/local'}\r\n```\r\nbut then install packages under `site-packages`. But I'll track that in a following PR.\n@spackbot run pipeline\nI've started that [pipeline](https://gitlab.spack.io//spack/spack/-/pipelines/131475) for you!\n@spackbot run pipeline\nI've started that [pipeline](https://gitlab.spack.io//spack/spack/-/pipelines/131741) for you!"},"created_at":{"kind":"string","value":"2023-10-30T11:42:26Z"},"merged_at":{"kind":"string","value":"2024-05-06T14:17:36Z"},"PASS_TO_PASS":{"kind":"string","value":"[]"},"PASS_TO_FAIL":{"kind":"string","value":"[]"},"FAIL_TO_PASS":{"kind":"string","value":"[\"lib/spack/spack/test/cmd/extensions.py::test_extensions_raises_if_multiple_specs\", \"lib/spack/spack/test/cmd/extensions.py::test_extensions_raises_if_not_extendable\", \"lib/spack/spack/test/cmd/extensions.py::test_extensions_no_arguments\", \"lib/spack/spack/test/cmd/extensions.py::test_extensions\"]"},"FAIL_TO_FAIL":{"kind":"string","value":"[\"var/spack/repos/duplicates.test/packages/python-venv/package.py::test_part\"]"},"install":{"kind":"string","value":"{\"install\": [\"uv pip install -e .\", \"spack -d bootstrap now --dev\"], \"pre_install\": [\"tee pytest.ini <\n \n-to enable reuse for a single installation, and you can use:\n+to enable reuse for a single installation, or:\n \n .. code-block:: console\n \n spack install --fresh \n \n to do a fresh install if ``reuse`` is enabled by default.\n-``reuse: dependencies`` is the default.\n \n .. seealso::\n \ndiff --git a/lib/spack/spack/schema/concretizer.py b/lib/spack/spack/schema/concretizer.py\nindex 329f777f190889..e1c4d64ce1ca07 100644\n--- a/lib/spack/spack/schema/concretizer.py\n+++ b/lib/spack/spack/schema/concretizer.py\n@@ -9,13 +9,40 @@\n \"\"\"\n from typing import Any, Dict\n \n+LIST_OF_SPECS = {\"type\": \"array\", \"items\": {\"type\": \"string\"}}\n+\n properties: Dict[str, Any] = {\n \"concretizer\": {\n \"type\": \"object\",\n \"additionalProperties\": False,\n \"properties\": {\n \"reuse\": {\n- \"oneOf\": [{\"type\": \"boolean\"}, {\"type\": \"string\", \"enum\": [\"dependencies\"]}]\n+ \"oneOf\": [\n+ {\"type\": \"boolean\"},\n+ {\"type\": \"string\", \"enum\": [\"dependencies\"]},\n+ {\n+ \"type\": \"object\",\n+ \"properties\": {\n+ \"roots\": {\"type\": \"boolean\"},\n+ \"include\": LIST_OF_SPECS,\n+ \"exclude\": LIST_OF_SPECS,\n+ \"from\": {\n+ \"type\": \"array\",\n+ \"items\": {\n+ \"type\": \"object\",\n+ \"properties\": {\n+ \"type\": {\n+ \"type\": \"string\",\n+ \"enum\": [\"local\", \"buildcache\", \"external\"],\n+ },\n+ \"include\": LIST_OF_SPECS,\n+ \"exclude\": LIST_OF_SPECS,\n+ },\n+ },\n+ },\n+ },\n+ },\n+ ]\n },\n \"enable_node_namespace\": {\"type\": \"boolean\"},\n \"targets\": {\ndiff --git a/lib/spack/spack/solver/asp.py b/lib/spack/spack/solver/asp.py\nindex b3be999a1bdb6e..e56fe92b575376 100644\n--- a/lib/spack/spack/solver/asp.py\n+++ b/lib/spack/spack/solver/asp.py\n@@ -6,6 +6,7 @@\n import collections.abc\n import copy\n import enum\n+import functools\n import itertools\n import os\n import pathlib\n@@ -1221,6 +1222,9 @@ def pkg_rules(self, pkg, tests):\n \n def trigger_rules(self):\n \"\"\"Flushes all the trigger rules collected so far, and clears the cache.\"\"\"\n+ if not self._trigger_cache:\n+ return\n+\n self.gen.h2(\"Trigger conditions\")\n for name in self._trigger_cache:\n cache = self._trigger_cache[name]\n@@ -1234,6 +1238,9 @@ def trigger_rules(self):\n \n def effect_rules(self):\n \"\"\"Flushes all the effect rules collected so far, and clears the cache.\"\"\"\n+ if not self._effect_cache:\n+ return\n+\n self.gen.h2(\"Imposed requirements\")\n for name in self._effect_cache:\n cache = self._effect_cache[name]\n@@ -1614,6 +1621,27 @@ def external_packages(self):\n packages_yaml = _external_config_with_implicit_externals(spack.config.CONFIG)\n \n self.gen.h1(\"External packages\")\n+ spec_filters = []\n+ concretizer_yaml = spack.config.get(\"concretizer\")\n+ reuse_yaml = concretizer_yaml.get(\"reuse\")\n+ if isinstance(reuse_yaml, typing.Mapping):\n+ default_include = reuse_yaml.get(\"include\", [])\n+ default_exclude = reuse_yaml.get(\"exclude\", [])\n+ for source in reuse_yaml.get(\"from\", []):\n+ if source[\"type\"] != \"external\":\n+ continue\n+\n+ include = source.get(\"include\", default_include)\n+ exclude = source.get(\"exclude\", default_exclude)\n+ spec_filters.append(\n+ SpecFilter(\n+ factory=lambda: [],\n+ is_usable=lambda x: True,\n+ include=include,\n+ exclude=exclude,\n+ )\n+ )\n+\n for pkg_name, data in packages_yaml.items():\n if pkg_name == \"all\":\n continue\n@@ -1622,7 +1650,6 @@ def external_packages(self):\n if pkg_name not in spack.repo.PATH:\n continue\n \n- self.gen.h2(\"External package: {0}\".format(pkg_name))\n # Check if the external package is buildable. If it is\n # not then \"external()\" is a fact, unless we can\n # reuse an already installed spec.\n@@ -1632,7 +1659,17 @@ def external_packages(self):\n \n # Read a list of all the specs for this package\n externals = data.get(\"externals\", [])\n- external_specs = [spack.spec.parse_with_version_concrete(x[\"spec\"]) for x in externals]\n+ candidate_specs = [\n+ spack.spec.parse_with_version_concrete(x[\"spec\"]) for x in externals\n+ ]\n+\n+ external_specs = []\n+ if spec_filters:\n+ for current_filter in spec_filters:\n+ current_filter.factory = lambda: candidate_specs\n+ external_specs.extend(current_filter.selected_specs())\n+ else:\n+ external_specs.extend(candidate_specs)\n \n # Order the external versions to prefer more recent versions\n # even if specs in packages.yaml are not ordered that way\n@@ -3564,25 +3601,159 @@ def _has_runtime_dependencies(spec: spack.spec.Spec) -> bool:\n return True\n \n \n+class SpecFilter:\n+ \"\"\"Given a method to produce a list of specs, this class can filter them according to\n+ different criteria.\n+ \"\"\"\n+\n+ def __init__(\n+ self,\n+ factory: Callable[[], List[spack.spec.Spec]],\n+ is_usable: Callable[[spack.spec.Spec], bool],\n+ include: List[str],\n+ exclude: List[str],\n+ ) -> None:\n+ \"\"\"\n+ Args:\n+ factory: factory to produce a list of specs\n+ is_usable: predicate that takes a spec in input and returns False if the spec\n+ should not be considered for this filter, True otherwise.\n+ include: if present, a \"good\" spec must match at least one entry in the list\n+ exclude: if present, a \"good\" spec must not match any entry in the list\n+ \"\"\"\n+ self.factory = factory\n+ self.is_usable = is_usable\n+ self.include = include\n+ self.exclude = exclude\n+\n+ def is_selected(self, s: spack.spec.Spec) -> bool:\n+ if not self.is_usable(s):\n+ return False\n+\n+ if self.include and not any(s.satisfies(c) for c in self.include):\n+ return False\n+\n+ if self.exclude and any(s.satisfies(c) for c in self.exclude):\n+ return False\n+\n+ return True\n+\n+ def selected_specs(self) -> List[spack.spec.Spec]:\n+ return [s for s in self.factory() if self.is_selected(s)]\n+\n+ @staticmethod\n+ def from_store(configuration, include, exclude) -> \"SpecFilter\":\n+ \"\"\"Constructs a filter that takes the specs from the current store.\"\"\"\n+ packages = _external_config_with_implicit_externals(configuration)\n+ is_reusable = functools.partial(_is_reusable, packages=packages, local=True)\n+ factory = functools.partial(_specs_from_store, configuration=configuration)\n+ return SpecFilter(factory=factory, is_usable=is_reusable, include=include, exclude=exclude)\n+\n+ @staticmethod\n+ def from_buildcache(configuration, include, exclude) -> \"SpecFilter\":\n+ \"\"\"Constructs a filter that takes the specs from the configured buildcaches.\"\"\"\n+ packages = _external_config_with_implicit_externals(configuration)\n+ is_reusable = functools.partial(_is_reusable, packages=packages, local=False)\n+ return SpecFilter(\n+ factory=_specs_from_mirror, is_usable=is_reusable, include=include, exclude=exclude\n+ )\n+\n+\n+def _specs_from_store(configuration):\n+ store = spack.store.create(configuration)\n+ with store.db.read_transaction():\n+ return store.db.query(installed=True)\n+\n+\n+def _specs_from_mirror():\n+ try:\n+ return spack.binary_distribution.update_cache_and_get_specs()\n+ except (spack.binary_distribution.FetchCacheError, IndexError):\n+ # this is raised when no mirrors had indices.\n+ # TODO: update mirror configuration so it can indicate that the\n+ # TODO: source cache (or any mirror really) doesn't have binaries.\n+ return []\n+\n+\n+class ReuseStrategy(enum.Enum):\n+ ROOTS = enum.auto()\n+ DEPENDENCIES = enum.auto()\n+ NONE = enum.auto()\n+\n+\n+class ReusableSpecsSelector:\n+ \"\"\"Selects specs that can be reused during concretization.\"\"\"\n+\n+ def __init__(self, configuration: spack.config.Configuration) -> None:\n+ self.configuration = configuration\n+ self.store = spack.store.create(configuration)\n+ self.reuse_strategy = ReuseStrategy.ROOTS\n+\n+ reuse_yaml = self.configuration.get(\"concretizer:reuse\", False)\n+ self.reuse_sources = []\n+ if not isinstance(reuse_yaml, typing.Mapping):\n+ if reuse_yaml is False:\n+ self.reuse_strategy = ReuseStrategy.NONE\n+ if reuse_yaml == \"dependencies\":\n+ self.reuse_strategy = ReuseStrategy.DEPENDENCIES\n+ self.reuse_sources.extend(\n+ [\n+ SpecFilter.from_store(\n+ configuration=self.configuration, include=[], exclude=[]\n+ ),\n+ SpecFilter.from_buildcache(\n+ configuration=self.configuration, include=[], exclude=[]\n+ ),\n+ ]\n+ )\n+ else:\n+ roots = reuse_yaml.get(\"roots\", True)\n+ if roots is True:\n+ self.reuse_strategy = ReuseStrategy.ROOTS\n+ else:\n+ self.reuse_strategy = ReuseStrategy.DEPENDENCIES\n+ default_include = reuse_yaml.get(\"include\", [])\n+ default_exclude = reuse_yaml.get(\"exclude\", [])\n+ default_sources = [{\"type\": \"local\"}, {\"type\": \"buildcache\"}]\n+ for source in reuse_yaml.get(\"from\", default_sources):\n+ include = source.get(\"include\", default_include)\n+ exclude = source.get(\"exclude\", default_exclude)\n+ if source[\"type\"] == \"local\":\n+ self.reuse_sources.append(\n+ SpecFilter.from_store(self.configuration, include=include, exclude=exclude)\n+ )\n+ elif source[\"type\"] == \"buildcache\":\n+ self.reuse_sources.append(\n+ SpecFilter.from_buildcache(\n+ self.configuration, include=include, exclude=exclude\n+ )\n+ )\n+\n+ def reusable_specs(self, specs: List[spack.spec.Spec]) -> List[spack.spec.Spec]:\n+ if self.reuse_strategy == ReuseStrategy.NONE:\n+ return []\n+\n+ result = []\n+ for reuse_source in self.reuse_sources:\n+ result.extend(reuse_source.selected_specs())\n+\n+ # If we only want to reuse dependencies, remove the root specs\n+ if self.reuse_strategy == ReuseStrategy.DEPENDENCIES:\n+ result = [spec for spec in result if not any(root in spec for root in specs)]\n+\n+ return result\n+\n+\n class Solver:\n \"\"\"This is the main external interface class for solving.\n \n It manages solver configuration and preferences in one place. It sets up the solve\n and passes the setup method to the driver, as well.\n-\n- Properties of interest:\n-\n- ``reuse (bool)``\n- Whether to try to reuse existing installs/binaries\n-\n \"\"\"\n \n def __init__(self):\n self.driver = PyclingoDriver()\n-\n- # These properties are settable via spack configuration, and overridable\n- # by setting them directly as properties.\n- self.reuse = spack.config.get(\"concretizer:reuse\", True)\n+ self.selector = ReusableSpecsSelector(configuration=spack.config.CONFIG)\n \n @staticmethod\n def _check_input_and_extract_concrete_specs(specs):\n@@ -3596,39 +3767,6 @@ def _check_input_and_extract_concrete_specs(specs):\n spack.spec.Spec.ensure_valid_variants(s)\n return reusable\n \n- def _reusable_specs(self, specs):\n- reusable_specs = []\n- if self.reuse:\n- packages = _external_config_with_implicit_externals(spack.config.CONFIG)\n- # Specs from the local Database\n- with spack.store.STORE.db.read_transaction():\n- reusable_specs.extend(\n- s\n- for s in spack.store.STORE.db.query(installed=True)\n- if _is_reusable(s, packages, local=True)\n- )\n-\n- # Specs from buildcaches\n- try:\n- reusable_specs.extend(\n- s\n- for s in spack.binary_distribution.update_cache_and_get_specs()\n- if _is_reusable(s, packages, local=False)\n- )\n- except (spack.binary_distribution.FetchCacheError, IndexError):\n- # this is raised when no mirrors had indices.\n- # TODO: update mirror configuration so it can indicate that the\n- # TODO: source cache (or any mirror really) doesn't have binaries.\n- pass\n-\n- # If we only want to reuse dependencies, remove the root specs\n- if self.reuse == \"dependencies\":\n- reusable_specs = [\n- spec for spec in reusable_specs if not any(root in spec for root in specs)\n- ]\n-\n- return reusable_specs\n-\n def solve(\n self,\n specs,\n@@ -3654,7 +3792,7 @@ def solve(\n # Check upfront that the variants are admissible\n specs = [s.lookup_hash() for s in specs]\n reusable_specs = self._check_input_and_extract_concrete_specs(specs)\n- reusable_specs.extend(self._reusable_specs(specs))\n+ reusable_specs.extend(self.selector.reusable_specs(specs))\n setup = SpackSolverSetup(tests=tests)\n output = OutputConfiguration(timers=timers, stats=stats, out=out, setup_only=setup_only)\n result, _, _ = self.driver.solve(\n@@ -3683,7 +3821,7 @@ def solve_in_rounds(\n \"\"\"\n specs = [s.lookup_hash() for s in specs]\n reusable_specs = self._check_input_and_extract_concrete_specs(specs)\n- reusable_specs.extend(self._reusable_specs(specs))\n+ reusable_specs.extend(self.selector.reusable_specs(specs))\n setup = SpackSolverSetup(tests=tests)\n \n # Tell clingo that we don't have to solve all the inputs at once\n"},"test_patch":{"kind":"string","value":"diff --git a/lib/spack/spack/test/concretize.py b/lib/spack/spack/test/concretize.py\nindex f69ab54a586a0f..cf20934a00e84f 100644\n--- a/lib/spack/spack/test/concretize.py\n+++ b/lib/spack/spack/test/concretize.py\n@@ -2823,3 +2823,78 @@ def test_concretization_version_order():\n Version(\"develop\"), # likely development version\n Version(\"2.0\"), # deprecated\n ]\n+\n+\n+@pytest.mark.only_clingo(\"Original concretizer cannot reuse specs\")\n+@pytest.mark.parametrize(\n+ \"roots,reuse_yaml,expected,not_expected,expected_length\",\n+ [\n+ (\n+ [\"mpileaks\"],\n+ {\"roots\": True, \"include\": [\"^mpich\"]},\n+ [\"^mpich\"],\n+ [\"^mpich2\", \"^zmpi\"],\n+ 2,\n+ ),\n+ (\n+ [\"mpileaks\"],\n+ {\"roots\": True, \"include\": [\"externaltest\"]},\n+ [\"externaltest\"],\n+ [\"^mpich\", \"^mpich2\", \"^zmpi\"],\n+ 1,\n+ ),\n+ ],\n+)\n+@pytest.mark.usefixtures(\"database\", \"mock_store\")\n+@pytest.mark.not_on_windows(\"Expected length is different on Windows\")\n+def test_filtering_reused_specs(\n+ roots, reuse_yaml, expected, not_expected, expected_length, mutable_config, monkeypatch\n+):\n+ \"\"\"Tests that we can select which specs are to be reused, using constraints as filters\"\"\"\n+ # Assume all specs have a runtime dependency\n+ monkeypatch.setattr(spack.solver.asp, \"_has_runtime_dependencies\", lambda x: True)\n+ mutable_config.set(\"concretizer:reuse\", reuse_yaml)\n+ selector = spack.solver.asp.ReusableSpecsSelector(mutable_config)\n+ specs = selector.reusable_specs(roots)\n+\n+ assert len(specs) == expected_length\n+\n+ for constraint in expected:\n+ assert all(x.satisfies(constraint) for x in specs)\n+\n+ for constraint in not_expected:\n+ assert all(not x.satisfies(constraint) for x in specs)\n+\n+\n+@pytest.mark.usefixtures(\"database\", \"mock_store\")\n+@pytest.mark.parametrize(\n+ \"reuse_yaml,expected_length\",\n+ [({\"from\": [{\"type\": \"local\"}]}, 17), ({\"from\": [{\"type\": \"buildcache\"}]}, 0)],\n+)\n+@pytest.mark.not_on_windows(\"Expected length is different on Windows\")\n+def test_selecting_reused_sources(reuse_yaml, expected_length, mutable_config, monkeypatch):\n+ \"\"\"Tests that we can turn on/off sources of reusable specs\"\"\"\n+ # Assume all specs have a runtime dependency\n+ monkeypatch.setattr(spack.solver.asp, \"_has_runtime_dependencies\", lambda x: True)\n+ mutable_config.set(\"concretizer:reuse\", reuse_yaml)\n+ selector = spack.solver.asp.ReusableSpecsSelector(mutable_config)\n+ specs = selector.reusable_specs([\"mpileaks\"])\n+ assert len(specs) == expected_length\n+\n+\n+@pytest.mark.parametrize(\n+ \"specs,include,exclude,expected\",\n+ [\n+ # \"foo\" discarded by include rules (everything compiled with GCC)\n+ ([\"cmake@3.27.9 %gcc\", \"foo %clang\"], [\"%gcc\"], [], [\"cmake@3.27.9 %gcc\"]),\n+ # \"cmake\" discarded by exclude rules (everything compiled with GCC but cmake)\n+ ([\"cmake@3.27.9 %gcc\", \"foo %gcc\"], [\"%gcc\"], [\"cmake\"], [\"foo %gcc\"]),\n+ ],\n+)\n+def test_spec_filters(specs, include, exclude, expected):\n+ specs = [Spec(x) for x in specs]\n+ expected = [Spec(x) for x in expected]\n+ f = spack.solver.asp.SpecFilter(\n+ factory=lambda: specs, is_usable=lambda x: True, include=include, exclude=exclude\n+ )\n+ assert f.selected_specs() == expected\n"},"problem_statement":{"kind":"string","value":"Fine-Grained Control over the reuse-process\n### Summary\n\nSo, as I mentioned on the Slack, I would like to have all specs with a specific `target=` at the root be concretized with that target enforced for all dependencies. So I want to disable reusing non-target dependencies I'd argue.\r\n\r\nWhere should I start? Would I add an option to the concretizer (seems HARD) or do I just override something in lib/spack/spack/spec.py?\r\n\r\nAlso: it might be sensible to add more specific rules around the reusing-process (consistent compilers, making security-relevant stuff not be reused). Are there any plans for this?\n\n### Rationale\n\n_No response_\n\n### Description\n\n_No response_\n\n### Additional information\n\n_No response_\n\n### General information\n\n- [X] I have run `spack --version` and reported the version of Spack\n- [X] I have searched the issues of this repo and believe this is not a duplicate\n"},"hints_text":{"kind":"string","value":"> So, as I mentioned on the Slack, I would like to have all specs with a specific target= at the root be concretized with that target enforced for all dependencies\r\n\r\nCan you be more specific by, e.g. providing one or more concrete use cases? Asking because, depending on the complexity of what you need, this might be already doable with `packages::require` modulo the bugfix in #32528\nThank you I'll try this in a minute, still looking throught the asp.py.\r\n\r\nEssentially I would like a kind of \"minimal architecture\", which is used by default even if there are packages to reuse. E.g. it might happen that for some reason our ansible-playbook starts building package X for `target=x86_64_v3` (which is some old machines). Then later, something requires package X when building for e.g. `target=skylake_avx512` – here I would like to not reuse anything built with `target=x86_64_v3` (it does currently), but just like to have everything built with `target=skylake_avx512`. If your patch does this, it should be fine for now; longterm I think it would be nice if one could have a flag for spack install like `--reuse-archs x86_64_v3,x86_64_v4`. As reading through asp.py looks like, this shouldn't be too hard either, when I would know, what function to add to `SpackSolverSetup.setup()` ;).\r\n\r\n[I generally would like to reuse at least minor version across targets, because otherwise builds take ages and eat up TB of disk soon]\nSo, from my reading of asp.py the \"easiest\" (and probably cleanest way) would be to just add some flags to the concretizer config and then just filter here accordingly: https://github.com/spack/spack/blob/7d50fd3b8e82f93df73b86d54a8d15df4ec07b2b/lib/spack/spack/solver/asp.py#L2359\r\n\r\ncould any of core developers please confirm this is \"the way\", then I'll try to add more flags to control reuse and make a merge-request on that (excluding packages with relevant security issues, like most recently `expat` also would seem like a nice switch)?\nI was about to request the same thing.\r\n\r\nI was asking around in the spack slack about this issue:\r\n```\r\nspack install --verbose -y --reuse zlib%intel arch=linux-ubuntu20.04-x86_64_v3\r\n==> Error: Cannot concretize 'zlib' with multiple targets\r\n Requested 'target=x86_64' and 'target=x86_64_v3'\r\n```\r\nAnd I heard back from @tgamblin :\r\n> it might be unintuitive but you’re asking for both --reuse and for zlib SPECIFICALLY to have the x86_64_v3 target\r\n> but because it’s reusing I think it is telling you that your selected target isn’t the same as the reused one\r\n\r\nI feel like if I'm asking for a particular architecture, `--reuse` should be able to do it's job within those bounds.\nalso (just leaving this here as a note to me): if I have some \"basic\" specs lying around it looks like target-specifications in the defaults are not really respected when concretizing environments."},"created_at":{"kind":"string","value":"2024-02-21T13:01:12Z"},"merged_at":{"kind":"string","value":"2024-05-02T03:05:26Z"},"PASS_TO_PASS":{"kind":"string","value":"[\"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@:1]\", \"lib/spack/spack/test/concretize.py::TestConcretizeEdges::test_virtuals_provided_together_but_only_one_required_in_dag\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_custom_compiler_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_is_equivalent_to_specified_version[0.2.15]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3@1.0 ^python@3.5.1-expected4-unexpected4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants[conditional-variant-pkg@1.0-expected0-unexpected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_config[python@configured]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[0000000000000000000000000000000000000001=1.2.3-v_opts10-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_provider_must_meet_requirements\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_and_compiler_preferences[cmake %clang-expected2]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_match\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts0-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_select_lower_priority_package_from_repository_stack[builtin.mock.gmake-expected_namespaces0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[external-buildable-with-variant@0.9 +baz-True-@0.9]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inheritance[gcc]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretization_of_test_dependencies\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_with_restricted_virtual\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3@1.1 ^python@2.7.11-expected3-unexpected3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[quantum-espresso~veritas-expected4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_parents\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[externaltool@0.9-True-@0.9]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize_preferences[specs2-libelf@0.8.13-3]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts14-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_regression_issue_7941\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagated_variant_is_not_passed_to_dependent\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_installed_packages_when_package_def_changes[context2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_specified_variant\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concrete_specs_are_not_modified_on_reuse[mpich-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[cannonlake-preference-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[develop-v_opts1-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_installed_version_is_selected_only_for_reuse\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts11-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@:1.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[fftw ^mpich-expected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_hash_assigned_version_is_preferred\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3 ^python@2.7.11-expected1-unexpected1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_is_equivalent_to_specified_version[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts3-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_succeeds_with_unknown_version[fbranch]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_with_unknown_namespace_dont_raise\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_delete_version_and_reuse\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_newer_dependency_adds_a_transitive_virtual\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts7-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[external-buildable-with-variant@1.0: ~baz-False-@1.0 ~baz]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_user_can_select_externals_with_require\", \"lib/spack/spack/test/concretize.py::TestConcretizeEdges::test_condition_triggered_by_edge_property[conditional-edge+foo-expected_satisfies2-expected_not_satisfies2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mv_variants_disjoint_sets_from_packages_yaml\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a foobar=bar-True-with_dep1-without_dep1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[externaltool@0_8-True-@0_8]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mv_variants_disjoint_sets_from_spec[mvapich2 file_systems=lustre,gpfs-file_systems-expected_values2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[skylake-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_detection\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_conflicts_in_package_py[bowtie@1.4.0-%gcc@10.2.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[True-dev-build-test-install-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[conflict-parent%gcc]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mv_variants_disjoint_sets_from_spec[mvapich2-file_systems-expected_values0]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_match_virtual\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant foo=foo-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[cannonlake-preference-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[True-dev-build-test-dependent ^dev-build-test-install-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[haswell-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_package_with_constraint_not_met_by_external\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3 ^python@2.7.11-expected1-unexpected1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_misleading_error_message_on_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflicts_show_cores[conflict-parent@0.9^conflict~foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_with_flags\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich debug=True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[cannonlake-preference-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-preference-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_select_lower_priority_package_from_repository_stack[hdf5 ^gmake-expected_namespaces2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_nobuild_package\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtual_is_fully_expanded_for_callpath\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[ascent~~shared +adios2 ^adios2+shared-expected_propagation3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[False-dev-build-test-install-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[libelf0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize_preferences[specs0-libelf@0.8.12-1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_conflicts_in_package_py[bowtie@1.2.2 os=redhat6-%gcc@11.1.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_noversion_pkg[noversion]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[False-dev-build-test-install-True]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_two_gmake[minimal]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich cppflags=\\\"-O3\\\"]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts13-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_conflicts_in_package_py[bowtie@1.3.0-%clang@15.0.0]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_different_spec\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs5-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[quantum-espresso-expected1]\", \"lib/spack/spack/test/concretize.py::TestConcreteSpecsByHash::test_adding_specs[input_specs0]\", \"lib/spack/spack/test/concretize.py::TestConcretizeEdges::test_condition_triggered_by_edge_property[conditional-edge-expected_satisfies0-expected_not_satisfies0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_no_matching_compiler_specs\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_coconcretize_reuse_and_virtuals\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[ascent++shared +adios2 ^adios2~shared-expected_propagation4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_sticky_variant_in_external[sticky-variant@1.0-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_versions_in_virtual_dependencies\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[ascent~~shared +adios2-expected_propagation2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_target_granularity\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a foobar=bar-False-with_dep4-without_dep4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_compiler_flag_does_not_propagate\", \"lib/spack/spack/test/concretize.py::test_concretization_version_order\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_dependent_with_singlevalued_variant_type\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich~debug]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3@1.0 ^python@3.5.1-expected4-unexpected4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_different_compilers_get_different_flags\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_specs_from_non_available_compilers\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concrete_specs_are_not_modified_on_reuse[mpich~debug-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_version_weight_and_provenance\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[external-buildable-with-variant ~baz-False-@1.0 ~baz]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_python_from_cli_and_extension_from_db\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[skylake-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_externals_with_platform_explicitly_set\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_no_multiple_solutions_with_different_edges_same_nodes\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concrete_specs_are_not_modified_on_reuse[mpich+debug-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[haswell-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant foo=bar-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[True-dev-build-test-dependent ^dev-build-test-install-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mv_variants_disjoint_sets_from_spec[mvapich2 file_systems=lustre-file_systems-expected_values1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs6-4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_version_badness_more_important_than_default_mv_variants\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a foobar=bar-tests_arg3-with_dep3-without_dep3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_is_equivalent_to_specified_version[main]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_match_constraints_when_selected\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_non_default_provider_of_multiple_virtuals\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant@1.62.0 cxxstd=17-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_succeeds_with_unknown_version[0.2.15]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants[conditional-variant-pkg@2.0~version_based-expected2-unexpected2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inheritance[gcc@10.2.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_sticky_variant_in_package\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3 ^python@3.5.1-expected0-unexpected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_conditional_variant\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a foobar=bar-tests_arg2-with_dep2-without_dep2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_os_selection_when_multiple_choices_are_possible[mpileaks-os=debian6]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3@1.1 ^python@2.7.11-expected3-unexpected3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtual_is_fully_expanded_for_mpileaks\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_require_targets_are_allowed\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_two_setuptools[minimal]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[0000001=1.2.3-v_opts12-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[broadwell-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants[conditional-variant-pkg@2.0+version_based+variant_based-expected3-unexpected3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[libelf@0.8.13]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts2-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_target_ranges_in_conflicts\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_dependency_conditional_on_another_dependency_state\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_result_specs_is_not_empty[specs2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[external-buildable-with-variant +baz-True-@1.1.special +baz]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant@1.72.0 staging=flexpath-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_packages_have_consistent_hash\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_that_would_require_a_virtual_dependency\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies ^libelf@0.8.10-patched_deps3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_constraint_with_external_package[cmake %clang-%clang]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich+debug]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_annotated_on_edges[mpileaks]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_sibling\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_sticky_variant_in_external[sticky-variant@1.0+allow-gcc-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_regression_issue_7239\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[False-dev-build-test-dependent ^dev-build-test-install-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[quantum-espresso-expected3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_none\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3@1.0 ^python@2.7.11-expected2-unexpected2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants_fail[@1.0+version_based]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_installed_specs_disregard_conflicts\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_child\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals_with_one_bound\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_my_dep_depends_on_provider_of_my_virtual_dep\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[libelf1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_anonymous\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_cumulative_version_ranges_with_different_length\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_enable_disable_compiler_existence_check\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts4-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_multivalue_variant\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[callpath]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_different_modules[None]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant@1.72.0 cxxstd=2a-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals_with_dual_provider\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies +foo-patched_deps4]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_different_prefix\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_installed\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_and_compiler_preferences[cmake-expected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_with_unknown_package_dont_raise\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs7-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_succeeds_with_config_compatible_os\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_installed_externals_are_reused\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@2:]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize_preferences[specs3-mpich-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_solve_in_rounds_all_unsolved\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mixing_compilers_only_affects_subdag\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts15-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_all_patches_applied\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_specifying_different_versions_build_deps\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_version_matches_any_entry_in_compilers_yaml\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_deprecated_versions_not_selected[deprecated-versions-deprecated-versions@1.0.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_multivalued_variants_from_cli[multivalue-variant-expected_dict0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_dont_select_version_that_brings_more_variants_in\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_unified_python\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_reconstructed_on_reuse[mpileaks ^zmpi-zmpi]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_target_compatibility\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@2.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@2.2_1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_multivalued_variants_from_cli[multivalue-variant libs=static-expected_dict1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_clear_error_when_unknown_compiler_requested\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies@1.0 ^libdwarf@20111030-patched_deps2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_provides_handles_multiple_providers_of_same_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflicts_in_spec[conflict-parent@0.9^conflict~foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[broadwell-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_error_message_for_inconsistent_variants[wrong-variant-in-conflicts]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-preference-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals_with_two_bound\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants_fail[@2.0+version_based~variant_based+two_whens]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_and_virtual\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[broadwell-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_deprecated_versions_not_selected[deprecated-versions@=1.1.0-deprecated-versions@1.1.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[hypre~~shared ^openblas-expected_propagation1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_simultaneous_concretization_of_specs[abstract_specs1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_regression_issue_7705\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_simultaneous_concretization_of_specs[abstract_specs2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_match_is_preferred_to_newer_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs4-3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflicts_show_cores[conflict%clang+foo]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[git.branch=1.2.3-v_opts16-False]\", \"lib/spack/spack/test/concretize.py::TestConcreteSpecsByHash::test_adding_specs[input_specs1]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_pure_build_virtual_dependency[full]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_children\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[False-dev-build-test-dependent ^dev-build-test-install-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a-True-with_dep0-without_dep0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies@1.0-patched_deps1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[haswell-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[conflict%clang~foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[externaltool@1.0-True-@1.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_spec_flags_maintain_order\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_add_microarchitectures_on_explicit_request\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_unsolved_specs_raises_error\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_constraint_with_external_package[cmake %gcc-%gcc]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs8-1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_simultaneous_concretization_of_specs[abstract_specs3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_flags_from_user_are_grouped\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_dont_define_new_version_from_input_if_checksum_required\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[cannonlake-preference-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs3-4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_os_selection_when_multiple_choices_are_possible[mpileaks%gcc@10.2.1 platform=test os=debian6-os=debian6]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[quantum-espresso-expected2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_result_specs_is_not_empty[specs0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[skylake-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_config[python@configured target=core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs0-1]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_two_gmake[full]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_is_unique[mpileaks ^mpich%clang@15.0.0-%clang@15.0.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_config[python@configured os=debian]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@1.2:2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3 ^python@3.5.1-expected0-unexpected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs2-3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich cppflags==\\\"-O3\\\"]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_different_modules[modules1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_module\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_noversion_pkg[noversion-bundle]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals_with_dual_provider_and_a_conflict\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[conflict]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[old-external-True-@1.0.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_preferred_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_provides_or_depends_on\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretization_with_compilers_supporting_target_any\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_variant_not_default\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_architecture_deep_inheritance\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-preference-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_anonymous_dep[mpileaks ^cflags=-g]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[skylake-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_reconstructed_on_reuse[mpileaks ^mpich2-mpich2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inheritance[clang@:15.0.0]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts9-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant@1.62.0 cxxstd=2a-False]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_solution_without_cycles\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_compiler_flag_not_passed_to_dependent\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_installed_packages_when_package_def_changes[context0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_regression_issue_4492\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inherited_upwards\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-preference-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[hypre~~shared ^openblas+shared-expected_propagation0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_succeeds_with_unknown_version[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@2.2_0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_do_not_invent_new_concrete_versions_unless_necessary\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_no_conflict_in_external_specs[conflict@10.0%clang+foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_select_lower_priority_package_from_repository_stack[hdf5 ^builtin.mock.gmake-expected_namespaces1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_no_compilers_for_arch\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflicts_in_spec[conflict%clang+foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_config[python@configured platform=test]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts5-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_mention_build_dep\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[True-dev-build-test-install-True]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_pure_build_virtual_dependency[minimal]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_with_custom_non_numeric_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inheritance[clang]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_result_specs_is_not_empty[specs1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_os_selection_when_multiple_choices_are_possible[mpileaks%gcc@10.2.1 platform=test os=redhat6-os=redhat6]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_is_unique[mpileaks-%gcc@10.2.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[haswell-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_and_compiler_preferences[cmake %gcc-expected1]\", \"lib/spack/spack/test/concretize.py::TestConcretizeEdges::test_condition_triggered_by_edge_property[conditional-edge~foo-expected_satisfies1-expected_not_satisfies1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_reconstructed_on_reuse[mpileaks-mpich]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_anonymous_dep[mpileaks ^%gcc]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extensions_have_dependency\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_self\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_host_compatible_concretization\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_in_nonbuildable_external_package[gcc-external-common-python %clang-%clang ^external-common-openssl%gcc ^external-common-gdbm%clang-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants[conditional-variant-pkg@2.0-expected1-unexpected1]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts8-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants_fail[@2.0~version_based+variant_based]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[broadwell-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_installed_packages_when_package_def_changes[context1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_transitive_conditional_virtual_dependency\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_in_nonbuildable_external_package[clang-external-common-python-%clang ^external-common-openssl%clang ^external-common-gdbm%clang-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_no_reuse_when_variant_condition_does_not_hold\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_compiler_flag_propagate\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_annotated_on_edges[mpileaks ^mpich]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies-patched_deps0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize_preferences[specs1-libelf@0.8.12-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_with_provides_when\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_with_non_default_variant_as_dependency\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_simultaneous_concretization_of_specs[abstract_specs0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_flags_differ_identical_compilers\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflict_in_all_directives_true\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_sticky_variant_in_external[sticky-variant@1.0~allow-gcc-False]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_two_setuptools[full]\", \"lib/spack/spack/test/concretize.py::TestConcreteSpecsByHash::test_adding_specs[input_specs2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3@1.0 ^python@2.7.11-expected2-unexpected2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts6-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants_fail[@1.0~version_based]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_missing_compiler\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs1-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_error_message_for_inconsistent_variants[wrong-variant-in-depends-on]\"]"},"PASS_TO_FAIL":{"kind":"string","value":"[]"},"FAIL_TO_PASS":{"kind":"string","value":"[\"lib/spack/spack/test/concretize.py::test_selecting_reused_sources[reuse_yaml1-0]\", \"lib/spack/spack/test/concretize.py::test_spec_filters[specs1-include1-exclude1-expected1]\", \"lib/spack/spack/test/concretize.py::test_filtering_reused_specs[roots0-reuse_yaml0-expected0-not_expected0-2]\", \"lib/spack/spack/test/concretize.py::test_selecting_reused_sources[reuse_yaml0-17]\", \"lib/spack/spack/test/concretize.py::test_spec_filters[specs0-include0-exclude0-expected0]\", \"lib/spack/spack/test/concretize.py::test_filtering_reused_specs[roots1-reuse_yaml1-expected1-not_expected1-1]\"]"},"FAIL_TO_FAIL":{"kind":"string","value":"[]"},"install":{"kind":"string","value":"{\"install\": [\"uv pip install -e .\", \"spack -d bootstrap now --dev\"], \"pre_install\": [\"tee pytest.ini <\r\n\r\nOriginal report\r\n\r\nI have a `package.yaml` defined like this (minimal reproducer):\r\n```yaml\r\npackages:\r\n hwloc:\r\n externals:\r\n - spec: hwloc@2.2.0 # arch=None-None-None works as well\r\n prefix: /usr\r\n buildable: False\r\n```\r\nIf i concretize:\r\n```console \r\n$ spack spec hwloc\r\nInput spec\r\n--------------------------------\r\n - hwloc\r\n\r\nConcretized\r\n--------------------------------\r\n[e] hwloc@2.2.0%gcc@12.3.0~cairo~cuda~gl~libudev+libxml2~netloc~nvml~oneapi-level-zero~opencl+pci~rocm build_system=autotools libs=shared,static arch=linux-rocky8-zen2\r\n```\r\nAll good.\r\nNow if I add anything specific to the `arch=` spec, like this for example:\r\n```yaml\r\npackages:\r\n hwloc:\r\n externals:\r\n - spec: hwloc@2.2.0 arch=linux-None-None # added platform\r\n prefix: /usr\r\n buildable: False\r\n```\r\nAnd try to concretize:\r\n```console \r\n$ spack spec hwloc\r\n==> Error: concretization failed for the following reasons:\r\n\r\n 1. Attempted to use external for 'hwloc' which does not satisfy any configured external spec version\r\n 2. Attempted to use external for 'hwloc' which does not satisfy any configured external spec\r\n 3. Attempted to build package hwloc which is not buildable and does not have a satisfying external\r\n attr('node_version_satisfies', 'hwloc', '=2.2.0') is an external constraint for hwloc which was not satisfied\r\n```\r\nThe error message complains about the version but it's actually fake, as if i add more specific constraints it will complain about something else:\r\n```yaml\r\npackages:\r\n hwloc:\r\n externals:\r\n - spec: hwloc@2.2.0 arch=linux-rocky8-None # added OS\r\n prefix: /usr\r\n buildable: False\r\n```\r\n```console \r\n$ spack spec hwloc\r\n==> Error: concretization failed for the following reasons:\r\n\r\n 1. Cannot select a single \"node_os\" for package \"hwloc\"\r\n 2. Attempted to use external for 'hwloc' which does not satisfy any configured external spec\r\n 3. Attempted to build package hwloc which is not buildable and does not have a satisfying external\r\n attr('node_os', 'hwloc', 'rocky8') is an external constraint for hwloc which was not satisfied\r\n```\r\nSpecifying variants works fine.\r\n\r\nI'm executing this with the latest develop branch but this error is present also in 0.21.2. \r\n0.21.1 works fine.\r\n\r\n\r\n### Error message\r\n\r\n```console\r\n==> Error: concretization failed for the following reasons:\r\n\r\n 1. Attempted to use external for 'hwloc' which does not satisfy any configured external spec version\r\n 2. Attempted to use external for 'hwloc' which does not satisfy any configured external spec\r\n 3. Attempted to build package hwloc which is not buildable and does not have a satisfying external\r\n attr('node_version_satisfies', 'hwloc', '=2.2.0') is an external constraint for hwloc which was not satisfied\r\n```\r\n\r\n### Information on your system\r\n\r\n* **Spack:** 0.22.0.dev0 (32deca2a4ce0f05b44d67a09887434fc8057a5fa)\r\n* **Python:** 3.6.8\r\n* **Platform:** linux-rocky8-zen2\r\n* **Concretizer:** clingo\r\n\r\n### General information\r\n\r\n- [X] I have run `spack debug report` and reported the version of Spack/Python/Platform\r\n- [X] I have searched the issues of this repo and believe this is not a duplicate\r\n- [X] I have run the failing commands in debug mode and reported the output\n"},"hints_text":{"kind":"string","value":"@becker33 @alalazo could it be this commit here?\r\nhttps://github.com/spack/spack/commit/9963e2a20ca1b381ff5e6a3d316c200e01dd0766\n@becker33 @scheibelp @alalazo \r\nI believe that this is the same bug that I am hitting.\nThe issue is specific to `platform=` specification. Minimal reproducer is:\r\n```yaml\r\nspack:\r\n specs:\r\n - hwloc\r\n view: false\r\n concretizer:\r\n unify: true\r\n packages:\r\n hwloc:\r\n externals:\r\n - spec: hwloc@2.2.0 platform=linux\r\n prefix: /usr\r\n buildable: False\r\n\r\n```\nWhile I look for a fix, note that the issue comes from the least useful part of the `arch=` (at least for an external). I would suggest, as a workaround and as a best practice, to always use the disjoint form and write `os=` and `target=` explicitly.\nBisection says this regressed in https://github.com/spack/spack/pull/42253\nEdited the description, kept the original report in a `
` section."},"created_at":{"kind":"string","value":"2024-04-20T08:49:42Z"},"merged_at":{"kind":"string","value":"2024-04-22T07:15:22Z"},"PASS_TO_PASS":{"kind":"string","value":"[\"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@:1]\", \"lib/spack/spack/test/concretize.py::TestConcretizeEdges::test_virtuals_provided_together_but_only_one_required_in_dag\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_custom_compiler_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_is_equivalent_to_specified_version[0.2.15]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3@1.0 ^python@3.5.1-expected4-unexpected4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants[conditional-variant-pkg@1.0-expected0-unexpected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_config[python@configured]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[0000000000000000000000000000000000000001=1.2.3-v_opts10-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_provider_must_meet_requirements\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_and_compiler_preferences[cmake %clang-expected2]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_match\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts0-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_select_lower_priority_package_from_repository_stack[builtin.mock.gmake-expected_namespaces0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[external-buildable-with-variant@0.9 +baz-True-@0.9]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inheritance[gcc]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretization_of_test_dependencies\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_with_restricted_virtual\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3@1.1 ^python@2.7.11-expected3-unexpected3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[quantum-espresso~veritas-expected4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_parents\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[externaltool@0.9-True-@0.9]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize_preferences[specs2-libelf@0.8.13-3]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts14-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_regression_issue_7941\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagated_variant_is_not_passed_to_dependent\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_installed_packages_when_package_def_changes[context2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_specified_variant\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concrete_specs_are_not_modified_on_reuse[mpich-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[cannonlake-preference-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[develop-v_opts1-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_installed_version_is_selected_only_for_reuse\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts11-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@:1.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[fftw ^mpich-expected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_hash_assigned_version_is_preferred\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3 ^python@2.7.11-expected1-unexpected1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_is_equivalent_to_specified_version[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts3-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_succeeds_with_unknown_version[fbranch]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_with_unknown_namespace_dont_raise\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_delete_version_and_reuse\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_newer_dependency_adds_a_transitive_virtual\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts7-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[external-buildable-with-variant@1.0: ~baz-False-@1.0 ~baz]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_user_can_select_externals_with_require\", \"lib/spack/spack/test/concretize.py::TestConcretizeEdges::test_condition_triggered_by_edge_property[conditional-edge+foo-expected_satisfies2-expected_not_satisfies2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mv_variants_disjoint_sets_from_packages_yaml\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a foobar=bar-True-with_dep1-without_dep1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[externaltool@0_8-True-@0_8]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mv_variants_disjoint_sets_from_spec[mvapich2 file_systems=lustre,gpfs-file_systems-expected_values2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[skylake-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_detection\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_conflicts_in_package_py[bowtie@1.4.0-%gcc@10.2.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[True-dev-build-test-install-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[conflict-parent%gcc]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mv_variants_disjoint_sets_from_spec[mvapich2-file_systems-expected_values0]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_match_virtual\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant foo=foo-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[cannonlake-preference-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[True-dev-build-test-dependent ^dev-build-test-install-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[haswell-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_package_with_constraint_not_met_by_external\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3 ^python@2.7.11-expected1-unexpected1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_misleading_error_message_on_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflicts_show_cores[conflict-parent@0.9^conflict~foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_with_flags\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich debug=True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[cannonlake-preference-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-preference-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_select_lower_priority_package_from_repository_stack[hdf5 ^gmake-expected_namespaces2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_nobuild_package\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtual_is_fully_expanded_for_callpath\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[ascent~~shared +adios2 ^adios2+shared-expected_propagation3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[False-dev-build-test-install-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[libelf0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize_preferences[specs0-libelf@0.8.12-1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_conflicts_in_package_py[bowtie@1.2.2 os=redhat6-%gcc@11.1.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_noversion_pkg[noversion]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[False-dev-build-test-install-True]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_two_gmake[minimal]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich cppflags=\\\"-O3\\\"]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts13-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_conflicts_in_package_py[bowtie@1.3.0-%clang@15.0.0]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_different_spec\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs5-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[quantum-espresso-expected1]\", \"lib/spack/spack/test/concretize.py::TestConcreteSpecsByHash::test_adding_specs[input_specs0]\", \"lib/spack/spack/test/concretize.py::TestConcretizeEdges::test_condition_triggered_by_edge_property[conditional-edge-expected_satisfies0-expected_not_satisfies0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_no_matching_compiler_specs\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_coconcretize_reuse_and_virtuals\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[ascent++shared +adios2 ^adios2~shared-expected_propagation4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_sticky_variant_in_external[sticky-variant@1.0-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_versions_in_virtual_dependencies\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[ascent~~shared +adios2-expected_propagation2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_target_granularity\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a foobar=bar-False-with_dep4-without_dep4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_compiler_flag_does_not_propagate\", \"lib/spack/spack/test/concretize.py::test_concretization_version_order\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_dependent_with_singlevalued_variant_type\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich~debug]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3@1.0 ^python@3.5.1-expected4-unexpected4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_different_compilers_get_different_flags\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_specs_from_non_available_compilers\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concrete_specs_are_not_modified_on_reuse[mpich~debug-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_version_weight_and_provenance\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[external-buildable-with-variant ~baz-False-@1.0 ~baz]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_python_from_cli_and_extension_from_db\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[skylake-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_no_multiple_solutions_with_different_edges_same_nodes\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concrete_specs_are_not_modified_on_reuse[mpich+debug-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[haswell-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant foo=bar-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[True-dev-build-test-dependent ^dev-build-test-install-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mv_variants_disjoint_sets_from_spec[mvapich2 file_systems=lustre-file_systems-expected_values1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs6-4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_version_badness_more_important_than_default_mv_variants\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a foobar=bar-tests_arg3-with_dep3-without_dep3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_is_equivalent_to_specified_version[main]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_match_constraints_when_selected\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_non_default_provider_of_multiple_virtuals\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant@1.62.0 cxxstd=17-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_succeeds_with_unknown_version[0.2.15]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants[conditional-variant-pkg@2.0~version_based-expected2-unexpected2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inheritance[gcc@10.2.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_sticky_variant_in_package\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3 ^python@3.5.1-expected0-unexpected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_conditional_variant\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a foobar=bar-tests_arg2-with_dep2-without_dep2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_os_selection_when_multiple_choices_are_possible[mpileaks-os=debian6]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3@1.1 ^python@2.7.11-expected3-unexpected3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtual_is_fully_expanded_for_mpileaks\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_require_targets_are_allowed\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_two_setuptools[minimal]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[0000001=1.2.3-v_opts12-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[broadwell-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants[conditional-variant-pkg@2.0+version_based+variant_based-expected3-unexpected3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[libelf@0.8.13]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts2-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_target_ranges_in_conflicts\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_dependency_conditional_on_another_dependency_state\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_result_specs_is_not_empty[specs2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[external-buildable-with-variant +baz-True-@1.1.special +baz]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant@1.72.0 staging=flexpath-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_packages_have_consistent_hash\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_that_would_require_a_virtual_dependency\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies ^libelf@0.8.10-patched_deps3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_constraint_with_external_package[cmake %clang-%clang]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich+debug]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_annotated_on_edges[mpileaks]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_sibling\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_sticky_variant_in_external[sticky-variant@1.0+allow-gcc-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_regression_issue_7239\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[False-dev-build-test-dependent ^dev-build-test-install-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[quantum-espresso-expected3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_none\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3@1.0 ^python@2.7.11-expected2-unexpected2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants_fail[@1.0+version_based]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_installed_specs_disregard_conflicts\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_child\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals_with_one_bound\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_my_dep_depends_on_provider_of_my_virtual_dep\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[libelf1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_anonymous\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_cumulative_version_ranges_with_different_length\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_enable_disable_compiler_existence_check\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts4-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_multivalue_variant\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[callpath]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_different_modules[None]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant@1.72.0 cxxstd=2a-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals_with_dual_provider\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies +foo-patched_deps4]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_different_prefix\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_installed\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_and_compiler_preferences[cmake-expected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_with_unknown_package_dont_raise\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs7-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_succeeds_with_config_compatible_os\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_installed_externals_are_reused\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@2:]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize_preferences[specs3-mpich-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_solve_in_rounds_all_unsolved\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mixing_compilers_only_affects_subdag\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts15-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_all_patches_applied\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_specifying_different_versions_build_deps\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_version_matches_any_entry_in_compilers_yaml\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_deprecated_versions_not_selected[deprecated-versions-deprecated-versions@1.0.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_multivalued_variants_from_cli[multivalue-variant-expected_dict0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_dont_select_version_that_brings_more_variants_in\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_unified_python\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_reconstructed_on_reuse[mpileaks ^zmpi-zmpi]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_target_compatibility\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@2.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@2.2_1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_multivalued_variants_from_cli[multivalue-variant libs=static-expected_dict1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_clear_error_when_unknown_compiler_requested\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies@1.0 ^libdwarf@20111030-patched_deps2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_provides_handles_multiple_providers_of_same_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflicts_in_spec[conflict-parent@0.9^conflict~foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[broadwell-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_error_message_for_inconsistent_variants[wrong-variant-in-conflicts]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-preference-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals_with_two_bound\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants_fail[@2.0+version_based~variant_based+two_whens]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_and_virtual\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[broadwell-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_deprecated_versions_not_selected[deprecated-versions@=1.1.0-deprecated-versions@1.1.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[hypre~~shared ^openblas-expected_propagation1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_simultaneous_concretization_of_specs[abstract_specs1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_regression_issue_7705\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_simultaneous_concretization_of_specs[abstract_specs2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_match_is_preferred_to_newer_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs4-3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflicts_show_cores[conflict%clang+foo]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[git.branch=1.2.3-v_opts16-False]\", \"lib/spack/spack/test/concretize.py::TestConcreteSpecsByHash::test_adding_specs[input_specs1]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_pure_build_virtual_dependency[full]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_children\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[False-dev-build-test-dependent ^dev-build-test-install-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a-True-with_dep0-without_dep0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies@1.0-patched_deps1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[haswell-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[conflict%clang~foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[externaltool@1.0-True-@1.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_spec_flags_maintain_order\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_add_microarchitectures_on_explicit_request\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_unsolved_specs_raises_error\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_constraint_with_external_package[cmake %gcc-%gcc]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs8-1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_simultaneous_concretization_of_specs[abstract_specs3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_flags_from_user_are_grouped\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_dont_define_new_version_from_input_if_checksum_required\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[cannonlake-preference-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs3-4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_os_selection_when_multiple_choices_are_possible[mpileaks%gcc@10.2.1 platform=test os=debian6-os=debian6]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[quantum-espresso-expected2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_result_specs_is_not_empty[specs0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[skylake-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_config[python@configured target=core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs0-1]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_two_gmake[full]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_is_unique[mpileaks ^mpich%clang@15.0.0-%clang@15.0.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_config[python@configured os=debian]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@1.2:2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3 ^python@3.5.1-expected0-unexpected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs2-3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich cppflags==\\\"-O3\\\"]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_different_modules[modules1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_module\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_noversion_pkg[noversion-bundle]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals_with_dual_provider_and_a_conflict\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[conflict]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[old-external-True-@1.0.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_preferred_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_provides_or_depends_on\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretization_with_compilers_supporting_target_any\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_variant_not_default\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_architecture_deep_inheritance\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-preference-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_anonymous_dep[mpileaks ^cflags=-g]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[skylake-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_reconstructed_on_reuse[mpileaks ^mpich2-mpich2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inheritance[clang@:15.0.0]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts9-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant@1.62.0 cxxstd=2a-False]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_solution_without_cycles\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_compiler_flag_not_passed_to_dependent\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_installed_packages_when_package_def_changes[context0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_regression_issue_4492\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inherited_upwards\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-preference-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[hypre~~shared ^openblas+shared-expected_propagation0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_succeeds_with_unknown_version[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@2.2_0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_do_not_invent_new_concrete_versions_unless_necessary\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_no_conflict_in_external_specs[conflict@10.0%clang+foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_select_lower_priority_package_from_repository_stack[hdf5 ^builtin.mock.gmake-expected_namespaces1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_no_compilers_for_arch\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflicts_in_spec[conflict%clang+foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_config[python@configured platform=test]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts5-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_mention_build_dep\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[True-dev-build-test-install-True]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_pure_build_virtual_dependency[minimal]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_with_custom_non_numeric_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inheritance[clang]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_result_specs_is_not_empty[specs1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_os_selection_when_multiple_choices_are_possible[mpileaks%gcc@10.2.1 platform=test os=redhat6-os=redhat6]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_is_unique[mpileaks-%gcc@10.2.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[haswell-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_and_compiler_preferences[cmake %gcc-expected1]\", \"lib/spack/spack/test/concretize.py::TestConcretizeEdges::test_condition_triggered_by_edge_property[conditional-edge~foo-expected_satisfies1-expected_not_satisfies1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_reconstructed_on_reuse[mpileaks-mpich]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_anonymous_dep[mpileaks ^%gcc]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extensions_have_dependency\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_self\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_host_compatible_concretization\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_in_nonbuildable_external_package[gcc-external-common-python %clang-%clang ^external-common-openssl%gcc ^external-common-gdbm%clang-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants[conditional-variant-pkg@2.0-expected1-unexpected1]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts8-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_not_reusing_incompatible_os\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants_fail[@2.0~version_based+variant_based]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[broadwell-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_installed_packages_when_package_def_changes[context1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_transitive_conditional_virtual_dependency\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_in_nonbuildable_external_package[clang-external-common-python-%clang ^external-common-openssl%clang ^external-common-gdbm%clang-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_no_reuse_when_variant_condition_does_not_hold\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_compiler_flag_propagate\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_annotated_on_edges[mpileaks ^mpich]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies-patched_deps0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize_preferences[specs1-libelf@0.8.12-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_with_provides_when\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_with_non_default_variant_as_dependency\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_simultaneous_concretization_of_specs[abstract_specs0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_flags_differ_identical_compilers\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflict_in_all_directives_true\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_sticky_variant_in_external[sticky-variant@1.0~allow-gcc-False]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_two_setuptools[full]\", \"lib/spack/spack/test/concretize.py::TestConcreteSpecsByHash::test_adding_specs[input_specs2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3@1.0 ^python@2.7.11-expected2-unexpected2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts6-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants_fail[@1.0~version_based]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs1-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_error_message_for_inconsistent_variants[wrong-variant-in-depends-on]\"]"},"PASS_TO_FAIL":{"kind":"string","value":"[]"},"FAIL_TO_PASS":{"kind":"string","value":"[\"lib/spack/spack/test/concretize.py::TestConcretize::test_externals_with_platform_explicitly_set\"]"},"FAIL_TO_FAIL":{"kind":"string","value":"[]"},"install":{"kind":"string","value":"{\"install\": [\"uv pip install -e .\", \"spack -d bootstrap now --dev\"], \"pre_install\": [\"tee pytest.ini < -Xlinker \n- if system_dir \"$1\"; then\n- append return_system_rpath_dirs_list \"$1\"\n- else\n- append return_rpath_dirs_list \"$1\"\n- fi\n+ path_order \"$1\"\n+ case $? in\n+ 0) append return_spack_store_rpath_dirs_list \"$1\" ;;\n+ 1) append return_rpath_dirs_list \"$1\" ;;\n+ 2) append return_system_rpath_dirs_list \"$1\" ;;\n+ esac\n xlinker_expect_rpath=no\n else\n case \"$1\" in\n -rpath=*)\n arg=\"${1#-rpath=}\"\n- if system_dir \"$arg\"; then\n- append return_system_rpath_dirs_list \"$arg\"\n- else\n- append return_rpath_dirs_list \"$arg\"\n- fi\n+ path_order \"$arg\"\n+ case $? in\n+ 0) append return_spack_store_rpath_dirs_list \"$arg\" ;;\n+ 1) append return_rpath_dirs_list \"$arg\" ;;\n+ 2) append return_system_rpath_dirs_list \"$arg\" ;;\n+ esac\n ;;\n --rpath=*)\n arg=\"${1#--rpath=}\"\n- if system_dir \"$arg\"; then\n- append return_system_rpath_dirs_list \"$arg\"\n- else\n- append return_rpath_dirs_list \"$arg\"\n- fi\n+ path_order \"$arg\"\n+ case $? in\n+ 0) append return_spack_store_rpath_dirs_list \"$arg\" ;;\n+ 1) append return_rpath_dirs_list \"$arg\" ;;\n+ 2) append return_system_rpath_dirs_list \"$arg\" ;;\n+ esac\n ;;\n -rpath|--rpath)\n xlinker_expect_rpath=yes\n@@ -661,16 +677,25 @@ categorize_arguments() {\n }\n \n categorize_arguments \"$@\"\n- include_dirs_list=\"$return_include_dirs_list\"\n- lib_dirs_list=\"$return_lib_dirs_list\"\n- rpath_dirs_list=\"$return_rpath_dirs_list\"\n- system_include_dirs_list=\"$return_system_include_dirs_list\"\n- system_lib_dirs_list=\"$return_system_lib_dirs_list\"\n- system_rpath_dirs_list=\"$return_system_rpath_dirs_list\"\n- isystem_was_used=\"$return_isystem_was_used\"\n- isystem_system_include_dirs_list=\"$return_isystem_system_include_dirs_list\"\n- isystem_include_dirs_list=\"$return_isystem_include_dirs_list\"\n- other_args_list=\"$return_other_args_list\"\n+\n+spack_store_include_dirs_list=\"$return_spack_store_include_dirs_list\"\n+system_include_dirs_list=\"$return_system_include_dirs_list\"\n+include_dirs_list=\"$return_include_dirs_list\"\n+\n+spack_store_lib_dirs_list=\"$return_spack_store_lib_dirs_list\"\n+system_lib_dirs_list=\"$return_system_lib_dirs_list\"\n+lib_dirs_list=\"$return_lib_dirs_list\"\n+\n+spack_store_rpath_dirs_list=\"$return_spack_store_rpath_dirs_list\"\n+system_rpath_dirs_list=\"$return_system_rpath_dirs_list\"\n+rpath_dirs_list=\"$return_rpath_dirs_list\"\n+\n+isystem_spack_store_include_dirs_list=\"$return_isystem_spack_store_include_dirs_list\"\n+isystem_system_include_dirs_list=\"$return_isystem_system_include_dirs_list\"\n+isystem_include_dirs_list=\"$return_isystem_include_dirs_list\"\n+\n+isystem_was_used=\"$return_isystem_was_used\"\n+other_args_list=\"$return_other_args_list\"\n \n #\n # Add flags from Spack's cppflags, cflags, cxxflags, fcflags, fflags, and\n@@ -738,16 +763,25 @@ esac\n IFS=\"$lsep\"\n categorize_arguments $spack_flags_list\n unset IFS\n- spack_flags_include_dirs_list=\"$return_include_dirs_list\"\n- spack_flags_lib_dirs_list=\"$return_lib_dirs_list\"\n- spack_flags_rpath_dirs_list=\"$return_rpath_dirs_list\"\n- spack_flags_system_include_dirs_list=\"$return_system_include_dirs_list\"\n- spack_flags_system_lib_dirs_list=\"$return_system_lib_dirs_list\"\n- spack_flags_system_rpath_dirs_list=\"$return_system_rpath_dirs_list\"\n- spack_flags_isystem_was_used=\"$return_isystem_was_used\"\n- spack_flags_isystem_system_include_dirs_list=\"$return_isystem_system_include_dirs_list\"\n- spack_flags_isystem_include_dirs_list=\"$return_isystem_include_dirs_list\"\n- spack_flags_other_args_list=\"$return_other_args_list\"\n+\n+spack_flags_isystem_spack_store_include_dirs_list=\"$return_isystem_spack_store_include_dirs_list\"\n+spack_flags_isystem_system_include_dirs_list=\"$return_isystem_system_include_dirs_list\"\n+spack_flags_isystem_include_dirs_list=\"$return_isystem_include_dirs_list\"\n+\n+spack_flags_spack_store_include_dirs_list=\"$return_spack_store_include_dirs_list\"\n+spack_flags_system_include_dirs_list=\"$return_system_include_dirs_list\"\n+spack_flags_include_dirs_list=\"$return_include_dirs_list\"\n+\n+spack_flags_spack_store_lib_dirs_list=\"$return_spack_store_lib_dirs_list\"\n+spack_flags_system_lib_dirs_list=\"$return_system_lib_dirs_list\"\n+spack_flags_lib_dirs_list=\"$return_lib_dirs_list\"\n+\n+spack_flags_spack_store_rpath_dirs_list=\"$return_spack_store_rpath_dirs_list\"\n+spack_flags_system_rpath_dirs_list=\"$return_system_rpath_dirs_list\"\n+spack_flags_rpath_dirs_list=\"$return_rpath_dirs_list\"\n+\n+spack_flags_isystem_was_used=\"$return_isystem_was_used\"\n+spack_flags_other_args_list=\"$return_other_args_list\"\n \n \n # On macOS insert headerpad_max_install_names linker flag\n@@ -767,11 +801,13 @@ if [ \"$mode\" = ccld ] || [ \"$mode\" = ld ]; then\n # Append RPATH directories. Note that in the case of the\n # top-level package these directories may not exist yet. For dependencies\n # it is assumed that paths have already been confirmed.\n+ extend spack_store_rpath_dirs_list SPACK_STORE_RPATH_DIRS\n extend rpath_dirs_list SPACK_RPATH_DIRS\n fi\n fi\n \n if [ \"$mode\" = ccld ] || [ \"$mode\" = ld ]; then\n+ extend spack_store_lib_dirs_list SPACK_STORE_LINK_DIRS\n extend lib_dirs_list SPACK_LINK_DIRS\n fi\n \n@@ -798,38 +834,50 @@ case \"$mode\" in\n ;;\n esac\n \n+case \"$mode\" in\n+ cpp|cc|as|ccld)\n+ if [ \"$spack_flags_isystem_was_used\" = \"true\" ] || [ \"$isystem_was_used\" = \"true\" ]; then\n+ extend isystem_spack_store_include_dirs_list SPACK_STORE_INCLUDE_DIRS\n+ extend isystem_include_dirs_list SPACK_INCLUDE_DIRS\n+ else\n+ extend spack_store_include_dirs_list SPACK_STORE_INCLUDE_DIRS\n+ extend include_dirs_list SPACK_INCLUDE_DIRS\n+ fi\n+ ;;\n+esac\n+\n #\n # Finally, reassemble the command line.\n #\n args_list=\"$flags_list\"\n \n-# Insert include directories just prior to any system include directories\n+# Include search paths partitioned by (in store, non-sytem, system)\n # NOTE: adding ${lsep} to the prefix here turns every added element into two\n-extend args_list spack_flags_include_dirs_list \"-I\"\n-extend args_list include_dirs_list \"-I\"\n+extend args_list spack_flags_spack_store_include_dirs_list -I\n+extend args_list spack_store_include_dirs_list -I\n+\n+extend args_list spack_flags_include_dirs_list -I\n+extend args_list include_dirs_list -I\n+\n+extend args_list spack_flags_isystem_spack_store_include_dirs_list \"-isystem${lsep}\"\n+extend args_list isystem_spack_store_include_dirs_list \"-isystem${lsep}\"\n+\n extend args_list spack_flags_isystem_include_dirs_list \"-isystem${lsep}\"\n extend args_list isystem_include_dirs_list \"-isystem${lsep}\"\n \n-case \"$mode\" in\n- cpp|cc|as|ccld)\n- if [ \"$spack_flags_isystem_was_used\" = \"true\" ]; then\n- extend args_list SPACK_INCLUDE_DIRS \"-isystem${lsep}\"\n- elif [ \"$isystem_was_used\" = \"true\" ]; then\n- extend args_list SPACK_INCLUDE_DIRS \"-isystem${lsep}\"\n- else\n- extend args_list SPACK_INCLUDE_DIRS \"-I\"\n- fi\n- ;;\n-esac\n-\n extend args_list spack_flags_system_include_dirs_list -I\n extend args_list system_include_dirs_list -I\n+\n extend args_list spack_flags_isystem_system_include_dirs_list \"-isystem${lsep}\"\n extend args_list isystem_system_include_dirs_list \"-isystem${lsep}\"\n \n-# Library search paths\n+# Library search paths partitioned by (in store, non-sytem, system)\n+extend args_list spack_flags_spack_store_lib_dirs_list \"-L\"\n+extend args_list spack_store_lib_dirs_list \"-L\"\n+\n extend args_list spack_flags_lib_dirs_list \"-L\"\n extend args_list lib_dirs_list \"-L\"\n+\n extend args_list spack_flags_system_lib_dirs_list \"-L\"\n extend args_list system_lib_dirs_list \"-L\"\n \n@@ -839,8 +887,12 @@ case \"$mode\" in\n if [ -n \"$dtags_to_add\" ] ; then\n append args_list \"$linker_arg$dtags_to_add\"\n fi\n+ extend args_list spack_flags_spack_store_rpath_dirs_list \"$rpath\"\n+ extend args_list spack_store_rpath_dirs_list \"$rpath\"\n+\n extend args_list spack_flags_rpath_dirs_list \"$rpath\"\n extend args_list rpath_dirs_list \"$rpath\"\n+\n extend args_list spack_flags_system_rpath_dirs_list \"$rpath\"\n extend args_list system_rpath_dirs_list \"$rpath\"\n ;;\n@@ -848,8 +900,12 @@ case \"$mode\" in\n if [ -n \"$dtags_to_add\" ] ; then\n append args_list \"$dtags_to_add\"\n fi\n+ extend args_list spack_flags_spack_store_rpath_dirs_list \"-rpath${lsep}\"\n+ extend args_list spack_store_rpath_dirs_list \"-rpath${lsep}\"\n+\n extend args_list spack_flags_rpath_dirs_list \"-rpath${lsep}\"\n extend args_list rpath_dirs_list \"-rpath${lsep}\"\n+\n extend args_list spack_flags_system_rpath_dirs_list \"-rpath${lsep}\"\n extend args_list system_rpath_dirs_list \"-rpath${lsep}\"\n ;;\ndiff --git a/lib/spack/spack/build_environment.py b/lib/spack/spack/build_environment.py\nindex a5679519187517..86934daf243233 100644\n--- a/lib/spack/spack/build_environment.py\n+++ b/lib/spack/spack/build_environment.py\n@@ -68,6 +68,7 @@\n import spack.repo\n import spack.schema.environment\n import spack.spec\n+import spack.stage\n import spack.store\n import spack.subprocess_context\n import spack.user_environment\n@@ -80,7 +81,7 @@\n from spack.installer import InstallError\n from spack.util.cpus import determine_number_of_jobs\n from spack.util.environment import (\n- SYSTEM_DIRS,\n+ SYSTEM_DIR_CASE_ENTRY,\n EnvironmentModifications,\n env_flag,\n filter_system_paths,\n@@ -103,9 +104,13 @@\n # Spack's compiler wrappers.\n #\n SPACK_ENV_PATH = \"SPACK_ENV_PATH\"\n+SPACK_MANAGED_DIRS = \"SPACK_MANAGED_DIRS\"\n SPACK_INCLUDE_DIRS = \"SPACK_INCLUDE_DIRS\"\n SPACK_LINK_DIRS = \"SPACK_LINK_DIRS\"\n SPACK_RPATH_DIRS = \"SPACK_RPATH_DIRS\"\n+SPACK_STORE_INCLUDE_DIRS = \"SPACK_STORE_INCLUDE_DIRS\"\n+SPACK_STORE_LINK_DIRS = \"SPACK_STORE_LINK_DIRS\"\n+SPACK_STORE_RPATH_DIRS = \"SPACK_STORE_RPATH_DIRS\"\n SPACK_RPATH_DEPS = \"SPACK_RPATH_DEPS\"\n SPACK_LINK_DEPS = \"SPACK_LINK_DEPS\"\n SPACK_PREFIX = \"SPACK_PREFIX\"\n@@ -418,7 +423,7 @@ def set_compiler_environment_variables(pkg, env):\n \n env.set(\"SPACK_COMPILER_SPEC\", str(spec.compiler))\n \n- env.set(\"SPACK_SYSTEM_DIRS\", \":\".join(SYSTEM_DIRS))\n+ env.set(\"SPACK_SYSTEM_DIRS\", SYSTEM_DIR_CASE_ENTRY)\n \n compiler.setup_custom_environment(pkg, env)\n \n@@ -546,9 +551,23 @@ def update_compiler_args_for_dep(dep):\n include_dirs = list(dedupe(filter_system_paths(include_dirs)))\n rpath_dirs = list(dedupe(filter_system_paths(rpath_dirs)))\n \n- env.set(SPACK_LINK_DIRS, \":\".join(link_dirs))\n- env.set(SPACK_INCLUDE_DIRS, \":\".join(include_dirs))\n- env.set(SPACK_RPATH_DIRS, \":\".join(rpath_dirs))\n+ spack_managed_dirs: List[str] = [\n+ spack.stage.get_stage_root(),\n+ spack.store.STORE.db.root,\n+ *(db.root for db in spack.store.STORE.db.upstream_dbs),\n+ ]\n+\n+ env.set(SPACK_MANAGED_DIRS, \"|\".join(f'\"{p}/\"*' for p in spack_managed_dirs))\n+ is_spack_managed = lambda p: any(p.startswith(store) for store in spack_managed_dirs)\n+ link_dirs_spack, link_dirs_system = stable_partition(link_dirs, is_spack_managed)\n+ include_dirs_spack, include_dirs_system = stable_partition(include_dirs, is_spack_managed)\n+ rpath_dirs_spack, rpath_dirs_system = stable_partition(rpath_dirs, is_spack_managed)\n+ env.set(SPACK_LINK_DIRS, \":\".join(link_dirs_system))\n+ env.set(SPACK_INCLUDE_DIRS, \":\".join(include_dirs_system))\n+ env.set(SPACK_RPATH_DIRS, \":\".join(rpath_dirs_system))\n+ env.set(SPACK_STORE_LINK_DIRS, \":\".join(link_dirs_spack))\n+ env.set(SPACK_STORE_INCLUDE_DIRS, \":\".join(include_dirs_spack))\n+ env.set(SPACK_STORE_RPATH_DIRS, \":\".join(rpath_dirs_spack))\n \n \n def set_package_py_globals(pkg, context: Context = Context.BUILD):\ndiff --git a/lib/spack/spack/util/environment.py b/lib/spack/spack/util/environment.py\nindex d2f56dd4a7688d..af15cd2764c654 100644\n--- a/lib/spack/spack/util/environment.py\n+++ b/lib/spack/spack/util/environment.py\n@@ -36,6 +36,8 @@\n \n SYSTEM_DIRS = [os.path.join(p, s) for s in SUFFIXES for p in SYSTEM_PATHS] + SYSTEM_PATHS\n \n+#: used in the compiler wrapper's `/usr/lib|/usr/lib64|...)` case entry\n+SYSTEM_DIR_CASE_ENTRY = \"|\".join(sorted(f'\"{d}{suff}\"' for d in SYSTEM_DIRS for suff in (\"\", \"/\")))\n \n _SHELL_SET_STRINGS = {\n \"sh\": \"export {0}={1};\\n\",\n"},"test_patch":{"kind":"string","value":"diff --git a/lib/spack/spack/test/build_environment.py b/lib/spack/spack/test/build_environment.py\nindex 1f2d9e904fd890..cb47ee5977ca1e 100644\n--- a/lib/spack/spack/test/build_environment.py\n+++ b/lib/spack/spack/test/build_environment.py\n@@ -63,7 +63,8 @@ def build_environment(working_env):\n os.environ[\"SPACK_LINKER_ARG\"] = \"-Wl,\"\n os.environ[\"SPACK_DTAGS_TO_ADD\"] = \"--disable-new-dtags\"\n os.environ[\"SPACK_DTAGS_TO_STRIP\"] = \"--enable-new-dtags\"\n- os.environ[\"SPACK_SYSTEM_DIRS\"] = \"/usr/include /usr/lib\"\n+ os.environ[\"SPACK_SYSTEM_DIRS\"] = \"/usr/include|/usr/lib\"\n+ os.environ[\"SPACK_MANAGED_DIRS\"] = f\"{prefix}/opt/spack\"\n os.environ[\"SPACK_TARGET_ARGS\"] = \"\"\n \n if \"SPACK_DEPENDENCIES\" in os.environ:\ndiff --git a/lib/spack/spack/test/cc.py b/lib/spack/spack/test/cc.py\nindex 25aab774a7f183..4bd7bf5c3d4f1a 100644\n--- a/lib/spack/spack/test/cc.py\n+++ b/lib/spack/spack/test/cc.py\n@@ -15,7 +15,7 @@\n import spack.config\n import spack.spec\n from spack.paths import build_env_path\n-from spack.util.environment import SYSTEM_DIRS, set_env\n+from spack.util.environment import SYSTEM_DIR_CASE_ENTRY, set_env\n from spack.util.executable import Executable, ProcessError\n \n #\n@@ -159,7 +159,8 @@ def wrapper_environment(working_env):\n SPACK_DEBUG_LOG_ID=\"foo-hashabc\",\n SPACK_COMPILER_SPEC=\"gcc@4.4.7\",\n SPACK_SHORT_SPEC=\"foo@1.2 arch=linux-rhel6-x86_64 /hashabc\",\n- SPACK_SYSTEM_DIRS=\":\".join(SYSTEM_DIRS),\n+ SPACK_SYSTEM_DIRS=SYSTEM_DIR_CASE_ENTRY,\n+ SPACK_MANAGED_DIRS=\"/path/to/spack-1/opt/spack/*|/path/to/spack-2/opt/spack/*\",\n SPACK_CC_RPATH_ARG=\"-Wl,-rpath,\",\n SPACK_CXX_RPATH_ARG=\"-Wl,-rpath,\",\n SPACK_F77_RPATH_ARG=\"-Wl,-rpath,\",\n@@ -907,3 +908,108 @@ def test_linker_strips_loopopt(wrapper_environment, wrapper_flags):\n result = cc(*(test_args + [\"-loopopt=0\", \"-c\", \"x.c\"]), output=str)\n result = result.strip().split(\"\\n\")\n assert \"-loopopt=0\" in result\n+\n+\n+def test_spack_managed_dirs_are_prioritized(wrapper_environment):\n+ # We have two different stores with 5 packages divided over them\n+ pkg1 = \"/path/to/spack-1/opt/spack/linux-ubuntu22.04-zen2/gcc-13.2.0/pkg-1.0-abcdef\"\n+ pkg2 = \"/path/to/spack-1/opt/spack/linux-ubuntu22.04-zen2/gcc-13.2.0/pkg-2.0-abcdef\"\n+ pkg3 = \"/path/to/spack-2/opt/spack/linux-ubuntu22.04-zen2/gcc-13.2.0/pkg-3.0-abcdef\"\n+ pkg4 = \"/path/to/spack-2/opt/spack/linux-ubuntu22.04-zen2/gcc-13.2.0/pkg-4.0-abcdef\"\n+ pkg5 = \"/path/to/spack-2/opt/spack/linux-ubuntu22.04-zen2/gcc-13.2.0/pkg-5.0-abcdef\"\n+\n+ variables = {\n+ # cppflags, ldflags from the command line, config or package.py take highest priority\n+ \"SPACK_CPPFLAGS\": f\"-I/usr/local/include -I/external-1/include -I{pkg1}/include\",\n+ \"SPACK_LDFLAGS\": f\"-L/usr/local/lib -L/external-1/lib -L{pkg1}/lib \"\n+ f\"-Wl,-rpath,/usr/local/lib -Wl,-rpath,/external-1/lib -Wl,-rpath,{pkg1}/lib\",\n+ # automatic -L, -Wl,-rpath, -I flags from dependencies -- on the spack side they are\n+ # already partitioned into \"spack owned prefixes\" and \"non-spack owned prefixes\"\n+ \"SPACK_STORE_LINK_DIRS\": f\"{pkg4}/lib:{pkg5}/lib\",\n+ \"SPACK_STORE_RPATH_DIRS\": f\"{pkg4}/lib:{pkg5}/lib\",\n+ \"SPACK_STORE_INCLUDE_DIRS\": f\"{pkg4}/include:{pkg5}/include\",\n+ \"SPACK_LINK_DIRS\": \"/external-3/lib:/external-4/lib\",\n+ \"SPACK_RPATH_DIRS\": \"/external-3/lib:/external-4/lib\",\n+ \"SPACK_INCLUDE_DIRS\": \"/external-3/include:/external-4/include\",\n+ }\n+\n+ with set_env(SPACK_TEST_COMMAND=\"dump-args\", **variables):\n+ effective_call = (\n+ cc(\n+ # system paths\n+ \"-I/usr/include\",\n+ \"-L/usr/lib\",\n+ \"-Wl,-rpath,/usr/lib\",\n+ # some other externals\n+ \"-I/external-2/include\",\n+ \"-L/external-2/lib\",\n+ \"-Wl,-rpath,/external-2/lib\",\n+ # relative paths are considered \"spack managed\" since they are in the stage dir\n+ \"-I..\",\n+ \"-L..\",\n+ \"-Wl,-rpath,..\", # pathological but simpler for the test.\n+ # spack store paths\n+ f\"-I{pkg2}/include\",\n+ f\"-I{pkg3}/include\",\n+ f\"-L{pkg2}/lib\",\n+ f\"-L{pkg3}/lib\",\n+ f\"-Wl,-rpath,{pkg2}/lib\",\n+ f\"-Wl,-rpath,{pkg3}/lib\",\n+ \"hello.c\",\n+ \"-o\",\n+ \"hello\",\n+ output=str,\n+ )\n+ .strip()\n+ .split(\"\\n\")\n+ )\n+\n+ dash_I = [flag[2:] for flag in effective_call if flag.startswith(\"-I\")]\n+ dash_L = [flag[2:] for flag in effective_call if flag.startswith(\"-L\")]\n+ dash_Wl_rpath = [flag[11:] for flag in effective_call if flag.startswith(\"-Wl,-rpath\")]\n+\n+ assert dash_I == [\n+ # spack owned dirs from SPACK_*FLAGS\n+ f\"{pkg1}/include\",\n+ # spack owned dirs from command line & automatic flags for deps (in that order)]\n+ \"..\",\n+ f\"{pkg2}/include\", # from command line\n+ f\"{pkg3}/include\", # from command line\n+ f\"{pkg4}/include\", # from SPACK_STORE_INCLUDE_DIRS\n+ f\"{pkg5}/include\", # from SPACK_STORE_INCLUDE_DIRS\n+ # non-system dirs from SPACK_*FLAGS\n+ \"/external-1/include\",\n+ # non-system dirs from command line & automatic flags for deps (in that order)\n+ \"/external-2/include\", # from command line\n+ \"/external-3/include\", # from SPACK_INCLUDE_DIRS\n+ \"/external-4/include\", # from SPACK_INCLUDE_DIRS\n+ # system dirs from SPACK_*FLAGS\n+ \"/usr/local/include\",\n+ # system dirs from command line\n+ \"/usr/include\",\n+ ]\n+\n+ assert (\n+ dash_L\n+ == dash_Wl_rpath\n+ == [\n+ # spack owned dirs from SPACK_*FLAGS\n+ f\"{pkg1}/lib\",\n+ # spack owned dirs from command line & automatic flags for deps (in that order)\n+ \"..\",\n+ f\"{pkg2}/lib\", # from command line\n+ f\"{pkg3}/lib\", # from command line\n+ f\"{pkg4}/lib\", # from SPACK_STORE_LINK_DIRS\n+ f\"{pkg5}/lib\", # from SPACK_STORE_LINK_DIRS\n+ # non-system dirs from SPACK_*FLAGS\n+ \"/external-1/lib\",\n+ # non-system dirs from command line & automatic flags for deps (in that order)\n+ \"/external-2/lib\", # from command line\n+ \"/external-3/lib\", # from SPACK_LINK_DIRS\n+ \"/external-4/lib\", # from SPACK_LINK_DIRS\n+ # system dirs from SPACK_*FLAGS\n+ \"/usr/local/lib\",\n+ # system dirs from command line\n+ \"/usr/lib\",\n+ ]\n+ )\n"},"problem_statement":{"kind":"string","value":"Installation issue: gperftools\n### Steps to reproduce the issue\n\n```console\r\nspack install gperftools\r\n```\n\n### Information on your system\n\n* **Spack:** 0.16.2-3914-fbed679dd0\r\n* **Python:** 3.9.6\r\n* **Platform:** linux-ubuntu20.04-skylake\r\n* **Concretizer:** original\r\n\n\n### Additional information\n\nBasically, this hits https://github.com/gperftools/gperftools/issues/424 because gperftools isn't configured to link with libunwind. Forcing a LDFLAGS=\"-L/path/to/libunwind -lunwind' bypasses the issue but it's an ugly solution. gperftools has cmake build now and we should switch the package to cmake build\r\n@albestro @eschnett @msimberg @teonnik\n\n### General information\n\n- [X] I have run `spack debug report` and reported the version of Spack/Python/Platform\n- [X] I have run `spack maintainers ` and **@mentioned** any maintainers\n- [X] I have uploaded the build log and environment files\n- [X] I have searched the issues of this repo and believe this is not a duplicate\n"},"hints_text":{"kind":"string","value":"I can try to have a go at this. It looks like CMake support was added in 2.8.1 though, and I don't know if it's possible to support autotools for the older versions while using CMake for the newer versions? I'd be ok with dropping the older versions but I don't know if someone else needs them to stay around? I take it things build fine with CMake but not autotools, right?\r\n\r\nAdding the needed LDFLAGS is not terrible either given that there's one and only one dependency.\nThere's currently a discussion in the Spack community about how to change build systems, i.e. how to support multiple build systems for packages. I don't know whether there's a good answer yet. In the mean time, I'd just limp forward with autotools, and setting the additional flag.\n@Char-Aznable just to understand the problem, are you building an older version of `gperftools`? I just tried `spack install gperftools` on spack commit `edb1d75b1b` which installs `gperftools` 2.9.1 and `libunwind` 1.5.0. I'm on Ubuntu 21.04 and it worked.\r\n\r\nThe issue you've linked was closed as not a bug, so it's not clear to me in what situations `gperftools` isn't being linked to `libunwind`. I know nothing about `gperftools`' build system otherwise.\n@msimberg I was also trying to build 2.9.1. To my understanding, libunwind doesn't have dependent environment set up in package.py so gperftools shouldn't be able to pick up the LDFLAGS from spack's libunwind, should it? I examined my build log and certainly didn't see the desired LDFLAGS. `spack` sometimes pick up dependent library from other directories (see https://github.com/spack/spack/issues/18802). Which libunwind was your build of gperftools linked to?\r\n\r\nThe issue I linked was probably a bug but the OP probably hacked the autotool config to work around it. \nNotice that you don't see the flags the compiler wrapper injects in the build logs:\r\n\r\n```\r\n$ spack build-env gperftools -- env SPACK_TEST_COMMAND=dump-args gcc foo.c | grep unwind\r\n-I/home/user/spack/opt/spack/linux-ubuntu20.04-zen2/gcc-10.3.0/libunwind-1.5.0-gu3uqvitxk2jr2l34hqboh7o7eye6d63/include\r\n-L/home/user/spack/opt/spack/linux-ubuntu20.04-zen2/gcc-10.3.0/libunwind-1.5.0-gu3uqvitxk2jr2l34hqboh7o7eye6d63/lib\r\n-Wl,-rpath,/home/user/spack/opt/spack/linux-ubuntu20.04-zen2/gcc-10.3.0/libunwind-1.5.0-gu3uqvitxk2jr2l34hqboh7o7eye6d63/lib\r\n```\r\n\r\nfrom my build logs `checking for backtrace in -lunwind... yes`, so it works with just `-lunwind`, provided everything goes through the compiler wrapper.\r\n\n@Char-Aznable just FYI, I'm not doing any work in this direction at the moment. I'd like to understand why things are failing in your case first.\nI still see the same build error on a new machine with a fresh spack setup. The `build-env` command @haampie showed above gave:\r\n\r\n```\r\n-L/home/aznb/spack/opt/spack/linux-ubuntu22.04-x86_64_v4/clang-homebrew/libunwind-1.6.2-r6fdxqrwhcd4ozgvbb3sdlzottbyvapj/lib\r\n/home/aznb/spack/opt/spack/linux-ubuntu22.04-x86_64_v4/clang-homebrew/libunwind-1.6.2-r6fdxqrwhcd4ozgvbb3sdlzottbyvapj/lib\r\n```\r\non my system, which lacks the necessary `-lunwind` flag. I am using clang from homebrew as the compiler instead of gcc\n@Char-Aznable I'd be happy to add a `-lunwind` flag if that turns out to be required.\r\n\r\nJust for comparison, could you check what your install logs say about `unwind`? This is my verbose install log (on nixos, which may make things a bit different... but still): https://gist.github.com/msimberg/1f2c9d40d04b276cb9a2c7a9b117516a. Note that for me `-lunwind` does explicitly end up in the linker command lines (without any patches, of course).\n@msimberg I do see `-lunwind` here and there in the log but not at the place right where it needs to be, exactly the reason why we should move to a more maintainable build system. See the attached log here:\r\n[spack-build-out.txt.zip](https://github.com/spack/spack/files/8953002/spack-build-out.txt.zip)\r\n\r\nManually adding `-lunwind` would work around this issue but it would be difficult to keep up with upstream changes. Anyway, thanks for looking at this. \n@Char-Aznable yeah, definitely. I just realized that this now exists in the documentation: https://spack.readthedocs.io/en/latest/build_systems/multiplepackage.html#autotools-cmake. I don't know if this is the multi-build system support that @eschnett was referring to but that looks workable. I'll try to get something going before the weekend.\n@Char-Aznable could you try out https://github.com/spack/spack/pull/31231? Note that the 2.10 release notes also mention a CMake/libunwind issue being fixed, so maybe try both 2.10 and at least one of 2.8.1 or 2.9.1 (which are now both also built with CMake). If 2.10 works but the others don't we might want to add a conflict for `+libunwind` and the older versions.\nDidn't realize you fixed this years ago @msimberg :) \r\n\r\n#43506 fixes it now."},"created_at":{"kind":"string","value":"2024-04-11T09:02:40Z"},"merged_at":{"kind":"string","value":"2024-04-20T17:23:37Z"},"PASS_TO_PASS":{"kind":"string","value":"[]"},"PASS_TO_FAIL":{"kind":"string","value":"[]"},"FAIL_TO_PASS":{"kind":"string","value":"[\"lib/spack/spack/test/build_environment.py::test_compiler_config_modifications[initial2-modifications2-expected2]\", \"lib/spack/spack/test/build_environment.py::test_compiler_config_modifications[initial4-modifications4-expected4]\", \"lib/spack/spack/test/cc.py::test_system_path_cleanup\", \"lib/spack/spack/test/build_environment.py::test_compiler_config_modifications[initial0-modifications0-expected0]\", \"lib/spack/spack/test/build_environment.py::test_build_jobs_defaults\", \"lib/spack/spack/test/build_environment.py::test_build_system_globals_only_set_on_root_during_build[run]\", \"lib/spack/spack/test/cc.py::test_flag_modification[config:flags:keep_werror:none-initial2-expected2-must_be_gone2]\", \"lib/spack/spack/test/cc.py::test_dep_include\", \"lib/spack/spack/test/cc.py::test_ld_deps\", \"lib/spack/spack/test/build_environment.py::test_monkey_patching_works_across_virtual\", \"lib/spack/spack/test/build_environment.py::test_effective_deptype_build_environment\", \"lib/spack/spack/test/build_environment.py::test_compiler_config_modifications[initial7-modifications7-expected7]\", \"lib/spack/spack/test/cc.py::test_ccld_deps\", \"lib/spack/spack/test/cc.py::test_cpp_mode\", \"lib/spack/spack/test/build_environment.py::test_build_jobs_sequential_is_sequential\", \"lib/spack/spack/test/cc.py::test_dep_rpath\", \"lib/spack/spack/test/cc.py::test_ld_deps_partial\", \"lib/spack/spack/test/build_environment.py::test_external_prefixes_last\", \"lib/spack/spack/test/build_environment.py::test_setup_dependent_package_inherited_modules[mock_archive0]\", \"lib/spack/spack/test/cc.py::test_linker_strips_loopopt\", \"lib/spack/spack/test/build_environment.py::test_static_to_shared_library\", \"lib/spack/spack/test/cc.py::test_ccld_with_system_dirs_isystem\", \"lib/spack/spack/test/build_environment.py::test_parallel_false_is_not_propagating\", \"lib/spack/spack/test/cc.py::test_ld_deps_no_rpath\", \"lib/spack/spack/test/cc.py::test_ccache_prepend_for_cc\", \"lib/spack/spack/test/cc.py::test_fc_flags\", \"lib/spack/spack/test/cc.py::test_flag_modification[config:flags:keep_werror:all-initial0-expected0-must_be_gone0]\", \"lib/spack/spack/test/cc.py::test_cpp_flags\", \"lib/spack/spack/test/build_environment.py::test_setting_dtags_based_on_config[rpath---disable-new-dtags]\", \"lib/spack/spack/test/cc.py::test_no_ccache_prepend_for_fc\", \"lib/spack/spack/test/cc.py::test_flag_modification[config:flags:keep_werror:none-initial5-expected5-must_be_gone5]\", \"lib/spack/spack/test/build_environment.py::TestModuleMonkeyPatcher::test_setting_attributes\", \"lib/spack/spack/test/cc.py::test_spack_managed_dirs_are_prioritized\", \"lib/spack/spack/test/build_environment.py::test_setting_dtags_based_on_config[runpath---enable-new-dtags]\", \"lib/spack/spack/test/cc.py::test_dep_lib_no_rpath\", \"lib/spack/spack/test/cc.py::test_ccld_with_system_dirs\", \"lib/spack/spack/test/cc.py::test_disable_new_dtags\", \"lib/spack/spack/test/cc.py::test_vcheck_mode\", \"lib/spack/spack/test/build_environment.py::test_compiler_config_modifications[initial1-modifications1-expected1]\", \"lib/spack/spack/test/build_environment.py::test_package_inheritance_module_setup\", \"lib/spack/spack/test/build_environment.py::test_dirty_disable_module_unload\", \"lib/spack/spack/test/cc.py::test_keep_and_replace\", \"lib/spack/spack/test/build_environment.py::test_compiler_config_modifications[initial6-modifications6-expected6]\", \"lib/spack/spack/test/cc.py::test_Wl_parsing\", \"lib/spack/spack/test/build_environment.py::TestModuleMonkeyPatcher::test_getting_attributes\", \"lib/spack/spack/test/build_environment.py::test_build_jobs_command_line_overrides\", \"lib/spack/spack/test/cc.py::test_no_wrapper_environment\", \"lib/spack/spack/test/cc.py::test_ld_flags\", \"lib/spack/spack/test/cc.py::test_flag_modification[config:flags:keep_werror:all-initial3-expected3-must_be_gone3]\", \"lib/spack/spack/test/build_environment.py::test_clear_compiler_related_runtime_variables_of_build_deps\", \"lib/spack/spack/test/cc.py::test_ld_deps_no_link\", \"lib/spack/spack/test/cc.py::test_as_mode\", \"lib/spack/spack/test/cc.py::test_dep_lib\", \"lib/spack/spack/test/cc.py::test_rpath_without_value\", \"lib/spack/spack/test/build_environment.py::test_compiler_config_modifications[initial3-modifications3-expected3]\", \"lib/spack/spack/test/cc.py::test_flag_modification[config:flags:keep_werror:specific-initial4-expected4-must_be_gone4]\", \"lib/spack/spack/test/cc.py::test_ld_mode\", \"lib/spack/spack/test/cc.py::test_filter_enable_new_dtags\", \"lib/spack/spack/test/build_environment.py::test_cc_not_changed_by_modules\", \"lib/spack/spack/test/build_environment.py::test_external_config_env\", \"lib/spack/spack/test/cc.py::test_cxx_flags\", \"lib/spack/spack/test/build_environment.py::test_build_system_globals_only_set_on_root_during_build[build]\", \"lib/spack/spack/test/cc.py::test_ccld_mode\", \"lib/spack/spack/test/cc.py::test_cc_deps\", \"lib/spack/spack/test/build_environment.py::test_wrapper_variables\", \"lib/spack/spack/test/cc.py::test_Xlinker_parsing\", \"lib/spack/spack/test/cc.py::test_ccld_deps_isystem\", \"lib/spack/spack/test/cc.py::test_dep_lib_no_lib\", \"lib/spack/spack/test/build_environment.py::test_spack_paths_before_module_paths\", \"lib/spack/spack/test/cc.py::test_Wl_parsing_NAG_is_ignored\", \"lib/spack/spack/test/cc.py::test_cc_flags\", \"lib/spack/spack/test/build_environment.py::test_compiler_config_modifications[initial5-modifications5-expected5]\", \"lib/spack/spack/test/cc.py::test_Wl_parsing_with_missing_value\", \"lib/spack/spack/test/build_environment.py::test_effective_deptype_run_environment\", \"lib/spack/spack/test/cc.py::test_flag_modification[config:flags:keep_werror:specific-initial1-expected1-must_be_gone1]\"]"},"FAIL_TO_FAIL":{"kind":"string","value":"[]"},"install":{"kind":"string","value":"{\"install\": [\"uv pip install -e .\", \"spack -d bootstrap now --dev\"], \"pre_install\": [\"tee pytest.ini < [2024-04-12-17:55:10.026653] Error: Internal Spack error: the solver completed but produced specs that do not satisfy the request. Please report a bug at https://github.com/spack/spack/issues\r\n\tUnsatisfied input specs:\r\n\tInput spec: apptainer ^py-cython@0.29.36\r\n\tCandidate spec: apptainer@=1.1.9%gcc@=8.5.0+network+suid build_system=makefile arch=linux-centos8-zen ^[deptypes=build] autoconf@=2.72%gcc@=8.5.0 build_system=autotools arch=linux-centos8-zen ^[deptypes=build] autoconf-archive@=2023.02.20%gcc@=8.5.0 build_system=autotools arch=linux-centos8-zen ^[deptypes=build] automake@=1.16.5%gcc@=8.5.0 build_system=autotools arch=linux-centos8-zen ^[deptypes=build,link] berkeley-db@=18.1.40%gcc@=8.5.0+cxx~docs+stl build_system=autotools patches=26090f4,b231fcc arch=linux-centos8-zen ^[deptypes=build] bison@=3.8.2%gcc@=8.5.0~color build_system=autotools arch=linux-centos8-zen ^[deptypes=build,link,run] bzip2@=1.0.8%gcc@=8.5.0~debug~pic+shared build_system=generic arch=linux-centos8-zen ^[deptypes=build] ca-certificates-mozilla@=2023-05-30%gcc@=8.5.0 build_system=generic arch=linux-centos8-zen ^[deptypes=build,run] conmon@=2.1.7%gcc@=8.5.0 build_system=makefile arch=linux-centos8-zen ^[deptypes=build,link] curl@=8.6.0%gcc@=8.5.0~gssapi~ldap~libidn2~librtmp~libssh~libssh2+nghttp2 build_system=autotools libs=shared,static tls=openssl arch=linux-centos8-zen ^[deptypes=build] diffutils@=3.10%gcc@=8.5.0 build_system=autotools arch=linux-centos8-zen ^[deptypes=build,link virtuals=elf] elfutils@=0.190%gcc@=8.5.0~debuginfod+exeprefix+nls build_system=autotools arch=linux-centos8-zen ^[deptypes=build,link] expat@=2.6.2%gcc@=8.5.0+libbsd build_system=autotools arch=linux-centos8-zen ^[deptypes=build,run] findutils@=4.9.0%gcc@=8.5.0 build_system=autotools patches=440b954 arch=linux-centos8-zen ^[deptypes=build virtuals=awk] gawk@=5.3.0%gcc@=8.5.0~nls build_system=autotools arch=linux-centos8-zen ^[deptypes=link] gcc-runtime@=8.5.0%gcc@=8.5.0 build_system=generic arch=linux-centos8-zen ^[deptypes=build,link] gdbm@=1.23%gcc@=8.5.0 build_system=autotools arch=linux-centos8-zen ^[deptypes=build,link] gettext@=0.22.4%gcc@=8.5.0+bzip2+curses+git~libunistring+libxml2+pic+shared+tar+xz build_system=autotools arch=linux-centos8-zen ^[deptypes=build,link,run] git@=2.42.0%gcc@=8.5.0+man+nls+perl+subtree~svn~tcltk build_system=autotools arch=linux-centos8-zen ^[deptypes=build,link] glib@=2.78.3%gcc@=8.5.0~libmount~strip build_system=meson buildtype=release default_library=shared tracing=none arch=linux-centos8-zen ^[deptypes=build,link] gmake@=4.4.1%gcc@=8.5.0~guile build_system=generic arch=linux-centos8-zen ^[deptypes=build,link] gmp@=6.2.1%gcc@=8.5.0+cxx build_system=autotools libs=shared,static patches=69ad2e2 arch=linux-centos8-zen ^[deptypes=build,link] go@=1.22.1%gcc@=8.5.0 build_system=generic arch=linux-centos8-zen ^[deptypes=build virtuals=go-or-gccgo-bootstrap] go-bootstrap@=1.20.6%gcc@=8.5.0 build_system=generic arch=linux-centos8-zen ^[deptypes=build] go-md2man@=2.0.3%gcc@=8.5.0 build_system=go arch=linux-centos8-zen ^[deptypes=build] gperf@=3.1%gcc@=8.5.0 build_system=autotools patches=3dd36db arch=linux-centos8-zen ^[deptypes=build,link] krb5@=1.20.1%gcc@=8.5.0+shared build_system=autotools arch=linux-centos8-zen ^[deptypes=build,link] libbsd@=0.12.1%gcc@=8.5.0 build_system=autotools arch=linux-centos8-zen ^[deptypes=build,link] libedit@=3.1-20230828%gcc@=8.5.0 build_system=autotools arch=linux-centos8-zen ^[deptypes=build,link] libffi@=3.4.6%gcc@=8.5.0 build_system=autotools arch=linux-centos8-zen ^[deptypes=build,link virtuals=fuse] libfuse@=3.16.2%gcc@=8.5.0~strip~system_install~useroot+utils build_system=meson buildtype=release default_library=shared arch=linux-centos8-zen ^[deptypes=build,link] libgpg-error@=1.48%gcc@=8.5.0 build_system=autotools arch=linux-centos8-zen ^[deptypes=build,link virtuals=iconv] libiconv@=1.17%gcc@=8.5.0 build_system=autotools libs=shared,static arch=linux-centos8-zen ^[deptypes=build,link] libidn2@=2.3.4%gcc@=8.5.0 build_system=autotools arch=linux-centos8-zen ^[deptypes=build,link] libmd@=1.0.4%gcc@=8.5.0 build_system=autotools arch=linux-centos8-zen ^[deptypes=build,link] libseccomp@=2.5.4%gcc@=8.5.0+python build_system=autotools arch=linux-centos8-zen ^[deptypes=build,link] libsigsegv@=2.14%gcc@=8.5.0 build_system=autotools arch=linux-centos8-zen ^[deptypes=build] libtool@=2.4.7%gcc@=8.5.0 build_system=autotools arch=linux-centos8-zen ^[deptypes=build,link] libunistring@=1.1%gcc@=8.5.0 build_system=autotools arch=linux-centos8-zen ^[deptypes=build,link] libxcrypt@=4.4.35%gcc@=8.5.0~obsolete_api build_system=autotools patches=4885da3 arch=linux-centos8-zen ^[deptypes=build,link] libxml2@=2.10.3%gcc@=8.5.0+pic~python+shared build_system=autotools arch=linux-centos8-zen ^[deptypes=build,link] lz4@=1.9.4%gcc@=8.5.0+pic build_system=makefile libs=shared,static arch=linux-centos8-zen ^[deptypes=build,link] lzo@=2.10%gcc@=8.5.0 build_system=autotools libs=shared,static arch=linux-centos8-zen ^[deptypes=build,run] m4@=1.4.19%gcc@=8.5.0+sigsegv build_system=autotools patches=9dc5fbd,bfdffa7 arch=linux-centos8-zen ^[deptypes=build,run] meson@=1.3.2%gcc@=8.5.0 build_system=python_pip patches=0f0b1bd arch=linux-centos8-zen ^[deptypes=build,link] mpfr@=4.2.1%gcc@=8.5.0 build_system=autotools libs=shared,static arch=linux-centos8-zen ^[deptypes=build,link] ncurses@=6.4%gcc@=8.5.0~symlinks+termlib abi=none build_system=autotools patches=7a351bc arch=linux-centos8-zen ^[deptypes=build,link] nghttp2@=1.57.0%gcc@=8.5.0 build_system=autotools arch=linux-centos8-zen ^[deptypes=build,run] ninja@=1.11.1%gcc@=8.5.0+re2c build_system=generic arch=linux-centos8-zen ^[deptypes=run] openssh@=9.7p1%gcc@=8.5.0+gssapi build_system=autotools arch=linux-centos8-zen ^[deptypes=build,link] openssl@=3.2.1%gcc@=8.5.0~docs+shared build_system=generic certs=mozilla arch=linux-centos8-zen ^[deptypes=build,link] pcre2@=10.42%gcc@=8.5.0~jit+multibyte build_system=autotools arch=linux-centos8-zen ^[deptypes=build,link,run] perl@=5.38.0%gcc@=8.5.0+cpanm+opcode+open+shared+threads build_system=generic patches=714e4d1 arch=linux-centos8-zen ^[deptypes=run] pigz@=2.8%gcc@=8.5.0 build_system=makefile arch=linux-centos8-zen ^[deptypes=build,link virtuals=pkgconfig] pkgconf@=1.9.5%gcc@=8.5.0 build_system=autotools arch=linux-centos8-zen ^[deptypes=build] py-cython@=3.0.8%gcc@=8.5.0 build_system=python_pip arch=linux-centos8-zen ^[deptypes=build] py-pip@=23.1.2%gcc@=8.5.0 build_system=generic arch=linux-centos8-zen ^[deptypes=build,run] py-setuptools@=69.2.0%gcc@=8.5.0 build_system=generic arch=linux-centos8-zen ^[deptypes=build,run] py-wheel@=0.41.2%gcc@=8.5.0 build_system=generic arch=linux-centos8-zen ^[deptypes=build,link,run] python@=3.11.7%gcc@=8.5.0+bz2+crypt+ctypes+dbm~debug+libxml2+lzma~nis~optimizations+pic+pyexpat+pythoncmd+readline+shared+sqlite3+ssl~tkinter+uuid+zlib build_system=generic patches=13fa8bf,b0615b2,ebdca64,f2fd060 arch=linux-centos8-zen ^[deptypes=build] re2c@=2.2%gcc@=8.5.0 build_system=generic arch=linux-centos8-zen ^[deptypes=build,link] readline@=8.2%gcc@=8.5.0 build_system=autotools patches=bbf97f1 arch=linux-centos8-zen ^[deptypes=build,link] sqlite@=3.43.2%gcc@=8.5.0+column_metadata+dynamic_extensions+fts~functions+rtree build_system=autotools arch=linux-centos8-zen ^[deptypes=build,run] squashfs@=4.6.1%gcc@=8.5.0+gzip~lz4~lzo~static~xz~zstd build_system=makefile default_compression=gzip arch=linux-centos8-zen ^[deptypes=run] squashfuse@=0.5.0%gcc@=8.5.0+lz4+lzo~min_size+shared+static+xz+zlib+zstd build_system=autotools arch=linux-centos8-zen ^[deptypes=build,link] tar@=1.34%gcc@=8.5.0 build_system=autotools zip=pigz arch=linux-centos8-zen ^[deptypes=build] texinfo@=7.0.3%gcc@=8.5.0 build_system=autotools arch=linux-centos8-zen ^[deptypes=build,link virtuals=uuid] util-linux-uuid@=2.38.1%gcc@=8.5.0 build_system=autotools arch=linux-centos8-zen ^[deptypes=build,link,run] xz@=5.4.6%gcc@=8.5.0~pic build_system=autotools libs=shared,static arch=linux-centos8-zen ^[deptypes=build,link virtuals=zlib-api] zlib-ng@=2.1.6%gcc@=8.5.0+compat+new_strategies+opt+pic+shared build_system=autotools arch=linux-centos8-zen ^[deptypes=build,link,run] zstd@=1.5.5%gcc@=8.5.0+programs build_system=makefile compression=none libs=shared,static arch=linux-centos8-zen. You could consider setting `concretizer:unify` to `when_possible` or `false` to allow multiple versions of some packages.\r\n```\n\n### Information on your system\n\n* **Spack:** 0.22.0.dev0 (6bc66db141017d139dddf26ab617f8fa95e6f063)\r\n* **Python:** 3.6.8\r\n* **Platform:** linux-centos8-zen3\r\n* **Concretizer:** clingo\n\n### General information\n\n- [X] I have run `spack debug report` and reported the version of Spack/Python/Platform\n- [X] I have searched the issues of this repo and believe this is not a duplicate\n- [X] I have run the failing commands in debug mode and reported the output\n"},"hints_text":{"kind":"string","value":"Short version: `apptainer ^py-cython@0.29` picks `^py-cython@3` somewhere down the line.\r\n\r\nBut how would apptainer possibly depend on py-cython? Was the `^` intentional?\r\n\nSingularityBase (singularityce/package.py) depends on libseccomp, which has py-cython as a dependency (type=build).\nBisected to cbc39977ca03634f7a69eba25bd58c138e5d1519 (ping @alalazo). Looks like that minimization does not respect the constraint `^py-cython@0.29`.\nWe are looking into this with @haampie I think this might go back to separate concretization of build dependencies. There should be many workarounds to this situation, which is triggered by imposing a `^` constraint on a spec, where `dep` is not in the link/run + direct build dep subdag.\r\n\r\nOne workaround, for instance, is:\r\n```yaml\r\nspack:\r\n # add package specs to the `specs` list\r\n specs:\r\n - apptainer\r\n - py-pyzmq\r\n packages:\r\n py-cython:\r\n require:\r\n - \"@0.29.36\"\r\n view: true\r\n concretizer:\r\n unify: true\r\n\r\n```\nThe issue seems to be triggered by specifying a build dependency (which can have duplicate nodes in an environment), via a `^` clause. In that case the constraint on the build dependency is enforced, but the corresponding node might be associated with the wrong root.\r\n\r\nI think we also model incorrectly stuff like:\r\n```yaml\r\nspack:\r\n # add package specs to the `specs` list\r\n specs:\r\n - apptainer ^py-cython@0\r\n - py-pyzmq ^py-cython@3\r\n view: true\r\n concretizer:\r\n unify: true\r\n```\r\nbecause the two constraints will be mapped to the same `py-cython` node in a unified environment. This is easier to reproduce than the failure above, but share in part the same cause.\r\n\r\nThe error is in:\r\n\r\nhttps://github.com/spack/spack/blob/a2b76c68a0d4b38e1f5c55964d19107a93822f39/lib/spack/spack/solver/concretize.lp#L130-L133"},"created_at":{"kind":"string","value":"2024-04-17T21:54:26Z"},"merged_at":{"kind":"string","value":"2024-04-18T15:27:12Z"},"PASS_TO_PASS":{"kind":"string","value":"[\"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@:1]\", \"lib/spack/spack/test/concretize.py::TestConcretizeEdges::test_virtuals_provided_together_but_only_one_required_in_dag\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_custom_compiler_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_is_equivalent_to_specified_version[0.2.15]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3@1.0 ^python@3.5.1-expected4-unexpected4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants[conditional-variant-pkg@1.0-expected0-unexpected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_config[python@configured]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[0000000000000000000000000000000000000001=1.2.3-v_opts10-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_provider_must_meet_requirements\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_and_compiler_preferences[cmake %clang-expected2]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_match\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts0-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_select_lower_priority_package_from_repository_stack[builtin.mock.gmake-expected_namespaces0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[external-buildable-with-variant@0.9 +baz-True-@0.9]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inheritance[gcc]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretization_of_test_dependencies\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_with_restricted_virtual\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3@1.1 ^python@2.7.11-expected3-unexpected3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[quantum-espresso~veritas-expected4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_parents\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[externaltool@0.9-True-@0.9]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize_preferences[specs2-libelf@0.8.13-3]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts14-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_regression_issue_7941\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagated_variant_is_not_passed_to_dependent\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_installed_packages_when_package_def_changes[context2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_specified_variant\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concrete_specs_are_not_modified_on_reuse[mpich-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[cannonlake-preference-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[develop-v_opts1-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_installed_version_is_selected_only_for_reuse\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts11-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@:1.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[fftw ^mpich-expected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_hash_assigned_version_is_preferred\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3 ^python@2.7.11-expected1-unexpected1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_is_equivalent_to_specified_version[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts3-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_succeeds_with_unknown_version[fbranch]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_with_unknown_namespace_dont_raise\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_delete_version_and_reuse\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_newer_dependency_adds_a_transitive_virtual\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts7-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[external-buildable-with-variant@1.0: ~baz-False-@1.0 ~baz]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_user_can_select_externals_with_require\", \"lib/spack/spack/test/concretize.py::TestConcretizeEdges::test_condition_triggered_by_edge_property[conditional-edge+foo-expected_satisfies2-expected_not_satisfies2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mv_variants_disjoint_sets_from_packages_yaml\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a foobar=bar-True-with_dep1-without_dep1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[externaltool@0_8-True-@0_8]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mv_variants_disjoint_sets_from_spec[mvapich2 file_systems=lustre,gpfs-file_systems-expected_values2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[skylake-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_detection\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_conflicts_in_package_py[bowtie@1.4.0-%gcc@10.2.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[True-dev-build-test-install-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[conflict-parent%gcc]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mv_variants_disjoint_sets_from_spec[mvapich2-file_systems-expected_values0]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_match_virtual\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant foo=foo-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[cannonlake-preference-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[True-dev-build-test-dependent ^dev-build-test-install-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[haswell-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_package_with_constraint_not_met_by_external\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3 ^python@2.7.11-expected1-unexpected1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_misleading_error_message_on_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflicts_show_cores[conflict-parent@0.9^conflict~foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_with_flags\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich debug=True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[cannonlake-preference-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-preference-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_select_lower_priority_package_from_repository_stack[hdf5 ^gmake-expected_namespaces2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_nobuild_package\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtual_is_fully_expanded_for_callpath\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[ascent~~shared +adios2 ^adios2+shared-expected_propagation3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[False-dev-build-test-install-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[libelf0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize_preferences[specs0-libelf@0.8.12-1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_conflicts_in_package_py[bowtie@1.2.2 os=redhat6-%gcc@11.1.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_noversion_pkg[noversion]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[False-dev-build-test-install-True]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_two_gmake[minimal]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich cppflags=\\\"-O3\\\"]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts13-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_conflicts_in_package_py[bowtie@1.3.0-%clang@15.0.0]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_different_spec\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs5-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[quantum-espresso-expected1]\", \"lib/spack/spack/test/concretize.py::TestConcreteSpecsByHash::test_adding_specs[input_specs0]\", \"lib/spack/spack/test/concretize.py::TestConcretizeEdges::test_condition_triggered_by_edge_property[conditional-edge-expected_satisfies0-expected_not_satisfies0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_no_matching_compiler_specs\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_coconcretize_reuse_and_virtuals\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[ascent++shared +adios2 ^adios2~shared-expected_propagation4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_sticky_variant_in_external[sticky-variant@1.0-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_versions_in_virtual_dependencies\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[ascent~~shared +adios2-expected_propagation2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_target_granularity\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a foobar=bar-False-with_dep4-without_dep4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_compiler_flag_does_not_propagate\", \"lib/spack/spack/test/concretize.py::test_concretization_version_order\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_dependent_with_singlevalued_variant_type\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich~debug]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3@1.0 ^python@3.5.1-expected4-unexpected4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_different_compilers_get_different_flags\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_specs_from_non_available_compilers\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concrete_specs_are_not_modified_on_reuse[mpich~debug-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_version_weight_and_provenance\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[external-buildable-with-variant ~baz-False-@1.0 ~baz]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_python_from_cli_and_extension_from_db\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[skylake-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_no_multiple_solutions_with_different_edges_same_nodes\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concrete_specs_are_not_modified_on_reuse[mpich+debug-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[haswell-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant foo=bar-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[True-dev-build-test-dependent ^dev-build-test-install-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mv_variants_disjoint_sets_from_spec[mvapich2 file_systems=lustre-file_systems-expected_values1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs6-4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_version_badness_more_important_than_default_mv_variants\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a foobar=bar-tests_arg3-with_dep3-without_dep3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_is_equivalent_to_specified_version[main]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_match_constraints_when_selected\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_non_default_provider_of_multiple_virtuals\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant@1.62.0 cxxstd=17-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_succeeds_with_unknown_version[0.2.15]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants[conditional-variant-pkg@2.0~version_based-expected2-unexpected2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inheritance[gcc@10.2.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_sticky_variant_in_package\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3 ^python@3.5.1-expected0-unexpected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_conditional_variant\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a foobar=bar-tests_arg2-with_dep2-without_dep2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_os_selection_when_multiple_choices_are_possible[mpileaks-os=debian6]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3@1.1 ^python@2.7.11-expected3-unexpected3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtual_is_fully_expanded_for_mpileaks\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_require_targets_are_allowed\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_two_setuptools[minimal]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[0000001=1.2.3-v_opts12-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[broadwell-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants[conditional-variant-pkg@2.0+version_based+variant_based-expected3-unexpected3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[libelf@0.8.13]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts2-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_target_ranges_in_conflicts\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_dependency_conditional_on_another_dependency_state\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_result_specs_is_not_empty[specs2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[external-buildable-with-variant +baz-True-@1.1.special +baz]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant@1.72.0 staging=flexpath-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_packages_have_consistent_hash\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_that_would_require_a_virtual_dependency\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies ^libelf@0.8.10-patched_deps3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_constraint_with_external_package[cmake %clang-%clang]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich+debug]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_annotated_on_edges[mpileaks]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_sibling\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_sticky_variant_in_external[sticky-variant@1.0+allow-gcc-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_regression_issue_7239\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[False-dev-build-test-dependent ^dev-build-test-install-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[quantum-espresso-expected3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_none\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3@1.0 ^python@2.7.11-expected2-unexpected2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants_fail[@1.0+version_based]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_installed_specs_disregard_conflicts\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_child\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals_with_one_bound\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_my_dep_depends_on_provider_of_my_virtual_dep\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[libelf1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_anonymous\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_cumulative_version_ranges_with_different_length\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_enable_disable_compiler_existence_check\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts4-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_multivalue_variant\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[callpath]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_different_modules[None]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant@1.72.0 cxxstd=2a-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals_with_dual_provider\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies +foo-patched_deps4]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_different_prefix\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_installed\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_and_compiler_preferences[cmake-expected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_with_unknown_package_dont_raise\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs7-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_succeeds_with_config_compatible_os\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_installed_externals_are_reused\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@2:]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize_preferences[specs3-mpich-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_solve_in_rounds_all_unsolved\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mixing_compilers_only_affects_subdag\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts15-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_all_patches_applied\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_version_matches_any_entry_in_compilers_yaml\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_deprecated_versions_not_selected[deprecated-versions-deprecated-versions@1.0.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_multivalued_variants_from_cli[multivalue-variant-expected_dict0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_dont_select_version_that_brings_more_variants_in\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_unified_python\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_reconstructed_on_reuse[mpileaks ^zmpi-zmpi]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_target_compatibility\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@2.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@2.2_1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_multivalued_variants_from_cli[multivalue-variant libs=static-expected_dict1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_clear_error_when_unknown_compiler_requested\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies@1.0 ^libdwarf@20111030-patched_deps2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_provides_handles_multiple_providers_of_same_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflicts_in_spec[conflict-parent@0.9^conflict~foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[broadwell-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_error_message_for_inconsistent_variants[wrong-variant-in-conflicts]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-preference-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals_with_two_bound\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants_fail[@2.0+version_based~variant_based+two_whens]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_and_virtual\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[broadwell-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_deprecated_versions_not_selected[deprecated-versions@=1.1.0-deprecated-versions@1.1.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[hypre~~shared ^openblas-expected_propagation1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_simultaneous_concretization_of_specs[abstract_specs1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_regression_issue_7705\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_simultaneous_concretization_of_specs[abstract_specs2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_match_is_preferred_to_newer_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs4-3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflicts_show_cores[conflict%clang+foo]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[git.branch=1.2.3-v_opts16-False]\", \"lib/spack/spack/test/concretize.py::TestConcreteSpecsByHash::test_adding_specs[input_specs1]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_pure_build_virtual_dependency[full]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_children\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[False-dev-build-test-dependent ^dev-build-test-install-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a-True-with_dep0-without_dep0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies@1.0-patched_deps1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[haswell-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[conflict%clang~foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[externaltool@1.0-True-@1.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_spec_flags_maintain_order\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_add_microarchitectures_on_explicit_request\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_unsolved_specs_raises_error\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_constraint_with_external_package[cmake %gcc-%gcc]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs8-1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_simultaneous_concretization_of_specs[abstract_specs3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_flags_from_user_are_grouped\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_dont_define_new_version_from_input_if_checksum_required\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[cannonlake-preference-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs3-4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_os_selection_when_multiple_choices_are_possible[mpileaks%gcc@10.2.1 platform=test os=debian6-os=debian6]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[quantum-espresso-expected2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_result_specs_is_not_empty[specs0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[skylake-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_config[python@configured target=core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs0-1]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_two_gmake[full]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_is_unique[mpileaks ^mpich%clang@15.0.0-%clang@15.0.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_config[python@configured os=debian]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@1.2:2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3 ^python@3.5.1-expected0-unexpected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs2-3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich cppflags==\\\"-O3\\\"]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_different_modules[modules1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_module\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_noversion_pkg[noversion-bundle]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals_with_dual_provider_and_a_conflict\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[conflict]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[old-external-True-@1.0.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_preferred_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_provides_or_depends_on\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretization_with_compilers_supporting_target_any\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_variant_not_default\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_architecture_deep_inheritance\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-preference-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_anonymous_dep[mpileaks ^cflags=-g]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[skylake-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_reconstructed_on_reuse[mpileaks ^mpich2-mpich2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inheritance[clang@:15.0.0]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts9-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant@1.62.0 cxxstd=2a-False]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_solution_without_cycles\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_compiler_flag_not_passed_to_dependent\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_installed_packages_when_package_def_changes[context0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_regression_issue_4492\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inherited_upwards\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-preference-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[hypre~~shared ^openblas+shared-expected_propagation0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_succeeds_with_unknown_version[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@2.2_0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_do_not_invent_new_concrete_versions_unless_necessary\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_no_conflict_in_external_specs[conflict@10.0%clang+foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_select_lower_priority_package_from_repository_stack[hdf5 ^builtin.mock.gmake-expected_namespaces1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_no_compilers_for_arch\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflicts_in_spec[conflict%clang+foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_config[python@configured platform=test]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts5-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_mention_build_dep\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[True-dev-build-test-install-True]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_pure_build_virtual_dependency[minimal]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_with_custom_non_numeric_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inheritance[clang]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_result_specs_is_not_empty[specs1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_os_selection_when_multiple_choices_are_possible[mpileaks%gcc@10.2.1 platform=test os=redhat6-os=redhat6]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_is_unique[mpileaks-%gcc@10.2.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[haswell-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_and_compiler_preferences[cmake %gcc-expected1]\", \"lib/spack/spack/test/concretize.py::TestConcretizeEdges::test_condition_triggered_by_edge_property[conditional-edge~foo-expected_satisfies1-expected_not_satisfies1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_reconstructed_on_reuse[mpileaks-mpich]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_anonymous_dep[mpileaks ^%gcc]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extensions_have_dependency\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_self\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_host_compatible_concretization\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_in_nonbuildable_external_package[gcc-external-common-python %clang-%clang ^external-common-openssl%gcc ^external-common-gdbm%clang-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants[conditional-variant-pkg@2.0-expected1-unexpected1]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts8-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_not_reusing_incompatible_os\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants_fail[@2.0~version_based+variant_based]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[broadwell-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_installed_packages_when_package_def_changes[context1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_transitive_conditional_virtual_dependency\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_in_nonbuildable_external_package[clang-external-common-python-%clang ^external-common-openssl%clang ^external-common-gdbm%clang-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_no_reuse_when_variant_condition_does_not_hold\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_compiler_flag_propagate\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_annotated_on_edges[mpileaks ^mpich]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies-patched_deps0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize_preferences[specs1-libelf@0.8.12-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_with_provides_when\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_with_non_default_variant_as_dependency\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_simultaneous_concretization_of_specs[abstract_specs0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_flags_differ_identical_compilers\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflict_in_all_directives_true\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_sticky_variant_in_external[sticky-variant@1.0~allow-gcc-False]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_two_setuptools[full]\", \"lib/spack/spack/test/concretize.py::TestConcreteSpecsByHash::test_adding_specs[input_specs2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3@1.0 ^python@2.7.11-expected2-unexpected2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts6-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants_fail[@1.0~version_based]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs1-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_error_message_for_inconsistent_variants[wrong-variant-in-depends-on]\"]"},"PASS_TO_FAIL":{"kind":"string","value":"[]"},"FAIL_TO_PASS":{"kind":"string","value":"[\"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_specifying_different_versions_build_deps\"]"},"FAIL_TO_FAIL":{"kind":"string","value":"[]"},"install":{"kind":"string","value":"{\"install\": [\"uv pip install -e .\", \"spack -d bootstrap now --dev\"], \"pre_install\": [\"tee pytest.ini < spack spec gdal+mdb\r\n```\r\nwhereas the following succeed:\r\n```console\r\n> spack spec gdal@3.4+mdb\r\n> spack spec --fresh gdal+mdb\r\n```\r\nIt seems like reuse is preventing clingo from choosing an older version of GDAL.\n\n### Error message\n\n```console\r\n> spack -d spec gdal+mdb\r\n...\r\nTraceback (most recent call last):\r\n File \"/Users/Adam/spack/lib/spack/spack/main.py\", line 1068, in main\r\n return _main(argv)\r\n ^^^^^^^^^^^\r\n File \"/Users/Adam/spack/lib/spack/spack/main.py\", line 1021, in _main\r\n return finish_parse_and_run(parser, cmd_name, args, env_format_error)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/Users/Adam/spack/lib/spack/spack/main.py\", line 1051, in finish_parse_and_run\r\n return _invoke_command(command, parser, args, unknown)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/Users/Adam/spack/lib/spack/spack/main.py\", line 648, in _invoke_command\r\n return_val = command(parser, args)\r\n ^^^^^^^^^^^^^^^^^^^^^\r\n File \"/Users/Adam/spack/lib/spack/spack/cmd/spec.py\", line 101, in spec\r\n concretized_specs = spack.cmd.parse_specs(args.specs, concretize=True)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/Users/Adam/spack/lib/spack/spack/cmd/__init__.py\", line 177, in parse_specs\r\n spec.concretize(tests=tests)\r\n File \"/Users/Adam/spack/lib/spack/spack/spec.py\", line 2997, in concretize\r\n self._new_concretize(tests)\r\n File \"/Users/Adam/spack/lib/spack/spack/spec.py\", line 2970, in _new_concretize\r\n result = solver.solve([self], tests=tests, allow_deprecated=allow_deprecated)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/Users/Adam/spack/lib/spack/spack/solver/asp.py\", line 3548, in solve\r\n result, _, _ = self.driver.solve(\r\n ^^^^^^^^^^^^^^^^^^\r\n File \"/Users/Adam/spack/lib/spack/spack/solver/asp.py\", line 853, in solve\r\n raise InternalConcretizerError(\r\nspack.solver.asp.InternalConcretizerError: Internal Spack error: the solver completed but produced specs that do not satisfy the request. Please report a bug at https://github.com/spack/spack/issues\r\n\tUnsatisfied input specs:\r\n\tInput spec: gdal+mdb\r\n\tCandidate spec: gdal@=3.8.3...\r\n```\n\n### Information on your system\n\n* **Spack:** 0.22.0.dev0 (7e14ff806a63bf2af2a07f49fc13ed5b111a76ac)\r\n* **Python:** 3.11.6\r\n* **Platform:** darwin-sonoma-m2\r\n* **Concretizer:** clingo\n\n### General information\n\n- [X] I have run `spack debug report` and reported the version of Spack/Python/Platform\n- [X] I have searched the issues of this repo and believe this is not a duplicate\n- [X] I have run the failing commands in debug mode and reported the output\n"},"hints_text":{"kind":"string","value":"The issue is that `gdal@=3.8.3` is reused by the solver, which lacks `+mdb` because it's a conditional variant `when=\"@:3.4\"`. Will investigate why that happens."},"created_at":{"kind":"string","value":"2024-04-16T10:59:52Z"},"merged_at":{"kind":"string","value":"2024-04-16T16:09:32Z"},"PASS_TO_PASS":{"kind":"string","value":"[\"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@:1]\", \"lib/spack/spack/test/concretize.py::TestConcretizeEdges::test_virtuals_provided_together_but_only_one_required_in_dag\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_custom_compiler_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_is_equivalent_to_specified_version[0.2.15]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3@1.0 ^python@3.5.1-expected4-unexpected4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants[conditional-variant-pkg@1.0-expected0-unexpected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_config[python@configured]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[0000000000000000000000000000000000000001=1.2.3-v_opts10-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_provider_must_meet_requirements\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_and_compiler_preferences[cmake %clang-expected2]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_match\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts0-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_select_lower_priority_package_from_repository_stack[builtin.mock.gmake-expected_namespaces0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[external-buildable-with-variant@0.9 +baz-True-@0.9]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inheritance[gcc]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretization_of_test_dependencies\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_with_restricted_virtual\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3@1.1 ^python@2.7.11-expected3-unexpected3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[quantum-espresso~veritas-expected4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_parents\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[externaltool@0.9-True-@0.9]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize_preferences[specs2-libelf@0.8.13-3]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts14-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_regression_issue_7941\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagated_variant_is_not_passed_to_dependent\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_installed_packages_when_package_def_changes[context2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_specified_variant\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concrete_specs_are_not_modified_on_reuse[mpich-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[cannonlake-preference-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[develop-v_opts1-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_installed_version_is_selected_only_for_reuse\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts11-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@:1.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[fftw ^mpich-expected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_hash_assigned_version_is_preferred\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3 ^python@2.7.11-expected1-unexpected1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_is_equivalent_to_specified_version[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts3-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_succeeds_with_unknown_version[fbranch]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_with_unknown_namespace_dont_raise\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_delete_version_and_reuse\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_newer_dependency_adds_a_transitive_virtual\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts7-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[external-buildable-with-variant@1.0: ~baz-False-@1.0 ~baz]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_user_can_select_externals_with_require\", \"lib/spack/spack/test/concretize.py::TestConcretizeEdges::test_condition_triggered_by_edge_property[conditional-edge+foo-expected_satisfies2-expected_not_satisfies2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mv_variants_disjoint_sets_from_packages_yaml\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a foobar=bar-True-with_dep1-without_dep1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[externaltool@0_8-True-@0_8]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mv_variants_disjoint_sets_from_spec[mvapich2 file_systems=lustre,gpfs-file_systems-expected_values2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[skylake-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_detection\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_conflicts_in_package_py[bowtie@1.4.0-%gcc@10.2.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[True-dev-build-test-install-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[conflict-parent%gcc]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mv_variants_disjoint_sets_from_spec[mvapich2-file_systems-expected_values0]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_match_virtual\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant foo=foo-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[cannonlake-preference-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[True-dev-build-test-dependent ^dev-build-test-install-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[haswell-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_package_with_constraint_not_met_by_external\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3 ^python@2.7.11-expected1-unexpected1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_misleading_error_message_on_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflicts_show_cores[conflict-parent@0.9^conflict~foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_with_flags\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich debug=True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[cannonlake-preference-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-preference-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_select_lower_priority_package_from_repository_stack[hdf5 ^gmake-expected_namespaces2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_nobuild_package\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtual_is_fully_expanded_for_callpath\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[ascent~~shared +adios2 ^adios2+shared-expected_propagation3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[False-dev-build-test-install-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[libelf0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize_preferences[specs0-libelf@0.8.12-1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_conflicts_in_package_py[bowtie@1.2.2 os=redhat6-%gcc@11.1.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_noversion_pkg[noversion]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[False-dev-build-test-install-True]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_two_gmake[minimal]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich cppflags=\\\"-O3\\\"]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts13-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_conflicts_in_package_py[bowtie@1.3.0-%clang@15.0.0]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_different_spec\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs5-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[quantum-espresso-expected1]\", \"lib/spack/spack/test/concretize.py::TestConcreteSpecsByHash::test_adding_specs[input_specs0]\", \"lib/spack/spack/test/concretize.py::TestConcretizeEdges::test_condition_triggered_by_edge_property[conditional-edge-expected_satisfies0-expected_not_satisfies0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_no_matching_compiler_specs\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_coconcretize_reuse_and_virtuals\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[ascent++shared +adios2 ^adios2~shared-expected_propagation4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_sticky_variant_in_external[sticky-variant@1.0-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_versions_in_virtual_dependencies\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[ascent~~shared +adios2-expected_propagation2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_target_granularity\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a foobar=bar-False-with_dep4-without_dep4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_compiler_flag_does_not_propagate\", \"lib/spack/spack/test/concretize.py::test_concretization_version_order\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_dependent_with_singlevalued_variant_type\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich~debug]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3@1.0 ^python@3.5.1-expected4-unexpected4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_different_compilers_get_different_flags\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_specs_from_non_available_compilers\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concrete_specs_are_not_modified_on_reuse[mpich~debug-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_version_weight_and_provenance\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[external-buildable-with-variant ~baz-False-@1.0 ~baz]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_python_from_cli_and_extension_from_db\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[skylake-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_no_multiple_solutions_with_different_edges_same_nodes\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concrete_specs_are_not_modified_on_reuse[mpich+debug-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[haswell-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant foo=bar-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[True-dev-build-test-dependent ^dev-build-test-install-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mv_variants_disjoint_sets_from_spec[mvapich2 file_systems=lustre-file_systems-expected_values1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs6-4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_version_badness_more_important_than_default_mv_variants\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a foobar=bar-tests_arg3-with_dep3-without_dep3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_is_equivalent_to_specified_version[main]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_match_constraints_when_selected\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_non_default_provider_of_multiple_virtuals\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant@1.62.0 cxxstd=17-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_succeeds_with_unknown_version[0.2.15]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants[conditional-variant-pkg@2.0~version_based-expected2-unexpected2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inheritance[gcc@10.2.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_sticky_variant_in_package\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3 ^python@3.5.1-expected0-unexpected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_conditional_variant\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a foobar=bar-tests_arg2-with_dep2-without_dep2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_os_selection_when_multiple_choices_are_possible[mpileaks-os=debian6]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3@1.1 ^python@2.7.11-expected3-unexpected3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtual_is_fully_expanded_for_mpileaks\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_require_targets_are_allowed\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_two_setuptools[minimal]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[0000001=1.2.3-v_opts12-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[broadwell-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants[conditional-variant-pkg@2.0+version_based+variant_based-expected3-unexpected3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[libelf@0.8.13]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts2-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_target_ranges_in_conflicts\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_dependency_conditional_on_another_dependency_state\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_result_specs_is_not_empty[specs2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[external-buildable-with-variant +baz-True-@1.1.special +baz]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant@1.72.0 staging=flexpath-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_packages_have_consistent_hash\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_that_would_require_a_virtual_dependency\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies ^libelf@0.8.10-patched_deps3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_constraint_with_external_package[cmake %clang-%clang]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich+debug]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_annotated_on_edges[mpileaks]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_sibling\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_sticky_variant_in_external[sticky-variant@1.0+allow-gcc-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_regression_issue_7239\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[False-dev-build-test-dependent ^dev-build-test-install-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[quantum-espresso-expected3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_none\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3@1.0 ^python@2.7.11-expected2-unexpected2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants_fail[@1.0+version_based]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_installed_specs_disregard_conflicts\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_child\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals_with_one_bound\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_my_dep_depends_on_provider_of_my_virtual_dep\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[libelf1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_anonymous\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_cumulative_version_ranges_with_different_length\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_enable_disable_compiler_existence_check\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts4-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_multivalue_variant\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[callpath]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_different_modules[None]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant@1.72.0 cxxstd=2a-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals_with_dual_provider\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies +foo-patched_deps4]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_different_prefix\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_installed\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_and_compiler_preferences[cmake-expected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_with_unknown_package_dont_raise\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs7-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_succeeds_with_config_compatible_os\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_installed_externals_are_reused\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@2:]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize_preferences[specs3-mpich-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_solve_in_rounds_all_unsolved\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mixing_compilers_only_affects_subdag\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts15-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_all_patches_applied\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_version_matches_any_entry_in_compilers_yaml\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_deprecated_versions_not_selected[deprecated-versions-deprecated-versions@1.0.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_multivalued_variants_from_cli[multivalue-variant-expected_dict0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_dont_select_version_that_brings_more_variants_in\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_unified_python\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_reconstructed_on_reuse[mpileaks ^zmpi-zmpi]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_target_compatibility\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@2.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@2.2_1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_multivalued_variants_from_cli[multivalue-variant libs=static-expected_dict1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_clear_error_when_unknown_compiler_requested\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies@1.0 ^libdwarf@20111030-patched_deps2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_provides_handles_multiple_providers_of_same_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflicts_in_spec[conflict-parent@0.9^conflict~foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[broadwell-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_error_message_for_inconsistent_variants[wrong-variant-in-conflicts]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-preference-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals_with_two_bound\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants_fail[@2.0+version_based~variant_based+two_whens]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_and_virtual\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[broadwell-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_deprecated_versions_not_selected[deprecated-versions@=1.1.0-deprecated-versions@1.1.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[hypre~~shared ^openblas-expected_propagation1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_simultaneous_concretization_of_specs[abstract_specs1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_regression_issue_7705\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_simultaneous_concretization_of_specs[abstract_specs2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_match_is_preferred_to_newer_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs4-3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflicts_show_cores[conflict%clang+foo]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[git.branch=1.2.3-v_opts16-False]\", \"lib/spack/spack/test/concretize.py::TestConcreteSpecsByHash::test_adding_specs[input_specs1]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_pure_build_virtual_dependency[full]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_children\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[False-dev-build-test-dependent ^dev-build-test-install-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a-True-with_dep0-without_dep0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies@1.0-patched_deps1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[haswell-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[conflict%clang~foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[externaltool@1.0-True-@1.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_spec_flags_maintain_order\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_add_microarchitectures_on_explicit_request\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_unsolved_specs_raises_error\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_constraint_with_external_package[cmake %gcc-%gcc]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs8-1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_simultaneous_concretization_of_specs[abstract_specs3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_flags_from_user_are_grouped\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_dont_define_new_version_from_input_if_checksum_required\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[cannonlake-preference-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs3-4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_os_selection_when_multiple_choices_are_possible[mpileaks%gcc@10.2.1 platform=test os=debian6-os=debian6]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[quantum-espresso-expected2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_result_specs_is_not_empty[specs0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[skylake-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_config[python@configured target=core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs0-1]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_two_gmake[full]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_is_unique[mpileaks ^mpich%clang@15.0.0-%clang@15.0.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_config[python@configured os=debian]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@1.2:2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3 ^python@3.5.1-expected0-unexpected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs2-3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich cppflags==\\\"-O3\\\"]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_different_modules[modules1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_module\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_noversion_pkg[noversion-bundle]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals_with_dual_provider_and_a_conflict\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[conflict]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[old-external-True-@1.0.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_preferred_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_provides_or_depends_on\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretization_with_compilers_supporting_target_any\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_variant_not_default\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_architecture_deep_inheritance\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-preference-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_anonymous_dep[mpileaks ^cflags=-g]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[skylake-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_reconstructed_on_reuse[mpileaks ^mpich2-mpich2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inheritance[clang@:15.0.0]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts9-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant@1.62.0 cxxstd=2a-False]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_solution_without_cycles\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_compiler_flag_not_passed_to_dependent\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_installed_packages_when_package_def_changes[context0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_regression_issue_4492\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inherited_upwards\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-preference-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[hypre~~shared ^openblas+shared-expected_propagation0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_succeeds_with_unknown_version[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@2.2_0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_do_not_invent_new_concrete_versions_unless_necessary\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_no_conflict_in_external_specs[conflict@10.0%clang+foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_select_lower_priority_package_from_repository_stack[hdf5 ^builtin.mock.gmake-expected_namespaces1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_no_compilers_for_arch\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflicts_in_spec[conflict%clang+foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_config[python@configured platform=test]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts5-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_mention_build_dep\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[True-dev-build-test-install-True]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_pure_build_virtual_dependency[minimal]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_with_custom_non_numeric_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inheritance[clang]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_result_specs_is_not_empty[specs1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_os_selection_when_multiple_choices_are_possible[mpileaks%gcc@10.2.1 platform=test os=redhat6-os=redhat6]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_is_unique[mpileaks-%gcc@10.2.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[haswell-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_and_compiler_preferences[cmake %gcc-expected1]\", \"lib/spack/spack/test/concretize.py::TestConcretizeEdges::test_condition_triggered_by_edge_property[conditional-edge~foo-expected_satisfies1-expected_not_satisfies1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_reconstructed_on_reuse[mpileaks-mpich]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_anonymous_dep[mpileaks ^%gcc]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extensions_have_dependency\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_self\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_host_compatible_concretization\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_in_nonbuildable_external_package[gcc-external-common-python %clang-%clang ^external-common-openssl%gcc ^external-common-gdbm%clang-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants[conditional-variant-pkg@2.0-expected1-unexpected1]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts8-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_not_reusing_incompatible_os\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants_fail[@2.0~version_based+variant_based]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[broadwell-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_installed_packages_when_package_def_changes[context1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_transitive_conditional_virtual_dependency\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_in_nonbuildable_external_package[clang-external-common-python-%clang ^external-common-openssl%clang ^external-common-gdbm%clang-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_compiler_flag_propagate\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_annotated_on_edges[mpileaks ^mpich]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies-patched_deps0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize_preferences[specs1-libelf@0.8.12-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_with_provides_when\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_with_non_default_variant_as_dependency\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_simultaneous_concretization_of_specs[abstract_specs0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_flags_differ_identical_compilers\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflict_in_all_directives_true\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_sticky_variant_in_external[sticky-variant@1.0~allow-gcc-False]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_two_setuptools[full]\", \"lib/spack/spack/test/concretize.py::TestConcreteSpecsByHash::test_adding_specs[input_specs2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3@1.0 ^python@2.7.11-expected2-unexpected2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts6-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants_fail[@1.0~version_based]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs1-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_error_message_for_inconsistent_variants[wrong-variant-in-depends-on]\"]"},"PASS_TO_FAIL":{"kind":"string","value":"[]"},"FAIL_TO_PASS":{"kind":"string","value":"[\"lib/spack/spack/test/concretize.py::TestConcretize::test_no_reuse_when_variant_condition_does_not_hold\"]"},"FAIL_TO_FAIL":{"kind":"string","value":"[]"},"install":{"kind":"string","value":"{\"install\": [\"uv pip install -e .\", \"spack -d bootstrap now --dev\"], \"pre_install\": [\"tee pytest.ini <`. If I understood correctly, https://github.com/spack/spack/pull/41373 changed this, now the build directory is created in config:build_stage and a symlink is created in the source tree instead.\r\n\r\nWhen adding:\r\n```\r\nconfig:\r\n build_stage: ./stage\r\n```\r\nto `spack.yaml` in the environment, the build directory is deleted immediately after installation. \r\n\r\nIn case I don't change `config:build_stage`, the build directory sometimes persists in `/tmp`, although it's not clear under which conditions/why, it seems to get deleted randomly at some later point (e.g. when running an arbitrary spack command).\r\n\r\nThe current behavior isn't very useful for a developer workflow:\r\n1. building from scratch is slow\r\n2. it's difficult to obtain `compile_commands.json` or similar to use with an IDE\r\n\r\n\r\n### Information on your system\r\n\r\n* **Spack:** 0.22.0.dev0 (e5fdb9049651f1f996ccd4ad8d79aaa866b0a9c2)\r\n* **Python:** 3.11.8\r\n* **Platform:** linux-arch-skylake\r\n* **Concretizer:** clingo\r\n\r\n### General information\r\n\r\n- [X] I have run `spack debug report` and reported the version of Spack/Python/Platform\r\n- [X] I have searched the issues of this repo and believe this is not a duplicate\r\n- [X] I have run the failing commands in debug mode and reported the output\n"},"hints_text":{"kind":"string","value":""},"created_at":{"kind":"string","value":"2024-03-28T19:00:48Z"},"merged_at":{"kind":"string","value":"2024-03-29T16:36:31Z"},"PASS_TO_PASS":{"kind":"string","value":"[\"lib/spack/spack/test/cmd/env.py::test_bad_env_yaml_create_fails[ConfigFormatError-'specks' was unexpected-spack:\\\\n specks:\\\\n - libdwarf\\\\n]\", \"lib/spack/spack/test/cmd/env.py::test_view_link_roots[mock_archive0]\", \"lib/spack/spack/test/cmd/env.py::test_env_include_packages_url\", \"lib/spack/spack/test/cmd/env.py::test_stack_view_no_activate_without_default[mock_archive0]\", \"lib/spack/spack/test/stage.py::TestStage::test_setup_and_destroy_name_without_tmp\", \"lib/spack/spack/test/cmd/env.py::test_remove_before_concretize\", \"lib/spack/spack/test/cmd/env.py::test_env_activate_csh_prints_shell_output[mock_archive0]\", \"lib/spack/spack/test/cmd/env.py::test_env_view_external_prefix\", \"lib/spack/spack/test/stage.py::test_cannot_access\", \"lib/spack/spack/test/cmd/env.py::test_create_and_activate_unmanaged\", \"lib/spack/spack/test/cmd/env.py::test_env_view_disabled\", \"lib/spack/spack/test/cmd/dev_build.py::test_dev_build_fails_nonexistent_package_name\", \"lib/spack/spack/test/stage.py::TestStage::test_expand_archive[expected_file_list2]\", \"lib/spack/spack/test/cmd/env.py::test_env_activate_default_view_root_unconditional\", \"lib/spack/spack/test/cmd/env.py::test_env_view_succeeds_symlinked_dir_file[mock_archive0]\", \"lib/spack/spack/test/cmd/env.py::test_view_link_all[mock_archive0]\", \"lib/spack/spack/test/cmd/env.py::test_multi_env_remove[-y]\", \"lib/spack/spack/test/cmd/dev_build.py::test_dev_build_fails_multiple_specs\", \"lib/spack/spack/test/stage.py::test_override_keep_in_composite_stage\", \"lib/spack/spack/test/cmd/dev_build.py::test_dev_build_multiple[mock_archive0]\", \"lib/spack/spack/test/cmd/env.py::test_env_with_included_config_missing_file\", \"lib/spack/spack/test/stage.py::TestStage::test_composite_stage_with_expand_resource_default_placement\", \"lib/spack/spack/test/cmd/env.py::test_activate_adds_transitive_run_deps_to_path[mock_archive0]\", \"lib/spack/spack/test/cmd/dev_build.py::test_dev_build_env\", \"lib/spack/spack/test/cmd/env.py::test_stack_definition_conditional_with_variable\", \"lib/spack/spack/test/cmd/env.py::test_stack_view_exclude[mock_archive0]\", \"lib/spack/spack/test/cmd/env.py::test_custom_version_concretize_together\", \"lib/spack/spack/test/cmd/env.py::test_environment_depfile_makefile[depfile_flags1-expected_installs1]\", \"lib/spack/spack/test/cmd/env.py::test_env_definition_symlink[mock_archive0]\", \"lib/spack/spack/test/stage.py::TestStage::test_stage_purge[stage-spack-False]\", \"lib/spack/spack/test/cmd/env.py::test_stack_concretize_extraneous_variants\", \"lib/spack/spack/test/cmd/env.py::test_env_updates_view_uninstall[mock_archive0]\", \"lib/spack/spack/test/cmd/env.py::test_env_updates_view_install_package[mock_archive0]\", \"lib/spack/spack/test/cmd/env.py::test_stack_view_multiple_views[mock_archive0-split]\", \"lib/spack/spack/test/stage.py::TestStage::test_restage\", \"lib/spack/spack/test/cmd/env.py::test_env_write_only_non_default_nested\", \"lib/spack/spack/test/cmd/env.py::test_depfile_phony_convenience_targets[dtrun1-expected_installs1]\", \"lib/spack/spack/test/cmd/env.py::test_can_update_attributes_with_override\", \"lib/spack/spack/test/stage.py::TestStage::test_search_if_default_fails[Fetch from fetch.test.com-Fetch from fetch.test.com]\", \"lib/spack/spack/test/cmd/env.py::test_env_install_all[mock_archive0]\", \"lib/spack/spack/test/cmd/env.py::test_env_without_view_install[mock_archive0]\", \"lib/spack/spack/test/cmd/env.py::test_env_with_included_config_scope\", \"lib/spack/spack/test/cmd/env.py::test_activate_default\", \"lib/spack/spack/test/cmd/env.py::test_read_legacy_lockfile_and_reconcretize[mock_archive0-v3]\", \"lib/spack/spack/test/cmd/env.py::test_read_old_lock_and_write_new[v3]\", \"lib/spack/spack/test/cmd/env.py::test_stack_definition_extension\", \"lib/spack/spack/test/cmd/env.py::test_modules_exist_after_env_install[mock_archive0]\", \"lib/spack/spack/test/cmd/env.py::test_environment_query_spec_by_hash[mock_archive0]\", \"lib/spack/spack/test/stage.py::TestStage::test_ensure_one_stage_entry\", \"lib/spack/spack/test/stage.py::TestStage::test_expand_archive[expected_file_list0]\", \"lib/spack/spack/test/stage.py::TestStage::test_expand_archive_extra_expand\", \"lib/spack/spack/test/cmd/env.py::test_view_link_type[mock_archive0-hardlink]\", \"lib/spack/spack/test/cmd/dev_build.py::test_dev_build_before\", \"lib/spack/spack/test/cmd/env.py::test_stack_view_activate_from_default[mock_archive0]\", \"lib/spack/spack/test/cmd/env.py::test_env_updates_view_uninstall_referenced_elsewhere[mock_archive0]\", \"lib/spack/spack/test/cmd/env.py::test_activation_and_deactiviation_ambiguities[b-False-None-env_deactivate]\", \"lib/spack/spack/test/stage.py::TestStage::test_setup_and_destroy_no_name_with_tmp\", \"lib/spack/spack/test/cmd/env.py::test_env_status_broken_view[mock_archive0]\", \"lib/spack/spack/test/cmd/dev_build.py::test_dev_build_env_dependency[mock_archive0]\", \"lib/spack/spack/test/cmd/env.py::test_activate_parser_conflicts_with_temp[conflict_arg1]\", \"lib/spack/spack/test/cmd/env.py::test_uninstall_keeps_in_env[mock_archive0]\", \"lib/spack/spack/test/cmd/env.py::test_environment_depfile_makefile[depfile_flags2-expected_installs2]\", \"lib/spack/spack/test/stage.py::TestStage::test_stage_constructor_no_fetcher\", \"lib/spack/spack/test/cmd/dev_build.py::test_dev_build_drop_in\", \"lib/spack/spack/test/cmd/env.py::test_env_config_view_default[mock_archive0]\", \"lib/spack/spack/test/cmd/env.py::test_stack_view_select_and_exclude[mock_archive0]\", \"lib/spack/spack/test/cmd/env.py::test_user_removed_spec\", \"lib/spack/spack/test/stage.py::TestStage::test_create_stage_root\", \"lib/spack/spack/test/cmd/env.py::test_spack_package_ids_variable\", \"lib/spack/spack/test/cmd/env.py::test_env_with_included_config_precedence\", \"lib/spack/spack/test/cmd/env.py::test_stack_yaml_definitions_as_constraints\", \"lib/spack/spack/test/cmd/env.py::test_unify_when_possible_works_around_conflicts\", \"lib/spack/spack/test/cmd/dev_build.py::test_dev_build_fails_already_installed\", \"lib/spack/spack/test/cmd/env.py::test_init_with_file_and_remove\", \"lib/spack/spack/test/cmd/env.py::test_env_updates_view_remove_concretize[mock_archive0]\", \"lib/spack/spack/test/cmd/env.py::test_indirect_build_dep\", \"lib/spack/spack/test/cmd/env.py::test_stack_yaml_remove_from_list\", \"lib/spack/spack/test/cmd/env.py::test_view_link_type[mock_archive0-symlink]\", \"lib/spack/spack/test/cmd/env.py::test_env_view_fails_dir_file[mock_archive0]\", \"lib/spack/spack/test/cmd/dev_build.py::test_dev_build_fails_no_spec\", \"lib/spack/spack/test/stage.py::TestStage::test_setup_and_destroy_name_with_tmp\", \"lib/spack/spack/test/cmd/env.py::test_env_activate_custom_view\", \"lib/spack/spack/test/cmd/env.py::test_read_v1_lock_creates_backup\", \"lib/spack/spack/test/cmd/env.py::test_uninstall_removes_from_env[mock_archive0]\", \"lib/spack/spack/test/cmd/env.py::test_remove_command\", \"lib/spack/spack/test/cmd/env.py::test_activate_parser_conflicts_with_temp[conflict_arg3]\", \"lib/spack/spack/test/stage.py::TestStage::test_stage_purge[spack-stage-anything-goes-here-True]\", \"lib/spack/spack/test/cmd/env.py::test_stack_view_select[mock_archive0]\", \"lib/spack/spack/test/cmd/env.py::test_read_old_lock_and_write_new[v2]\", \"lib/spack/spack/test/stage.py::TestStage::test_composite_stage_with_expand_resource\", \"lib/spack/spack/test/cmd/dev_build.py::test_dev_build_fails_no_version\", \"lib/spack/spack/test/cmd/env.py::test_to_lockfile_dict\", \"lib/spack/spack/test/cmd/env.py::test_with_config_bad_include_activate\", \"lib/spack/spack/test/cmd/env.py::test_stack_yaml_definitions_as_constraints_on_matrix\", \"lib/spack/spack/test/cmd/env.py::test_rewrite_rel_dev_path_new_dir\", \"lib/spack/spack/test/stage.py::TestStage::test_source_path_available\", \"lib/spack/spack/test/cmd/env.py::test_environment_depfile_makefile[depfile_flags0-expected_installs0]\", \"lib/spack/spack/test/stage.py::TestStage::test_setup_and_destroy_no_name_without_tmp\", \"lib/spack/spack/test/cmd/env.py::test_virtual_spec_concretize_together\", \"lib/spack/spack/test/cmd/env.py::test_env_activate_sh_prints_shell_output[mock_archive0]\", \"lib/spack/spack/test/cmd/env.py::test_depfile_empty_does_not_error\", \"lib/spack/spack/test/cmd/env.py::test_env_blocks_uninstall[mock_archive0]\", \"lib/spack/spack/test/cmd/env.py::test_environment_created_from_lockfile_has_view\", \"lib/spack/spack/test/stage.py::TestStage::test_no_search_mirror_only\", \"lib/spack/spack/test/cmd/env.py::test_stack_yaml_add_to_list\", \"lib/spack/spack/test/cmd/env.py::test_create_and_activate_managed\", \"lib/spack/spack/test/stage.py::TestStage::test_keep_without_exceptions\", \"lib/spack/spack/test/cmd/env.py::test_env_with_include_config_files_same_basename\", \"lib/spack/spack/test/cmd/dev_build.py::test_dev_build_env_version_mismatch\", \"lib/spack/spack/test/cmd/env.py::test_activation_and_deactiviation_ambiguities[None-True-None-env_deactivate]\", \"lib/spack/spack/test/cmd/env.py::test_newline_in_commented_sequence_is_not_an_issue\", \"lib/spack/spack/test/cmd/env.py::test_env_roots_marked_explicit[mock_archive0]\", \"lib/spack/spack/test/stage.py::TestStage::test_fetch[True]\", \"lib/spack/spack/test/cmd/env.py::test_add\", \"lib/spack/spack/test/cmd/env.py::test_env_repo\", \"lib/spack/spack/test/cmd/env.py::test_depfile_works_with_gitversions\", \"lib/spack/spack/test/cmd/env.py::test_stack_yaml_definitions\", \"lib/spack/spack/test/cmd/env.py::test_init_from_yaml\", \"lib/spack/spack/test/cmd/env.py::test_stack_yaml_remove_from_list_force\", \"lib/spack/spack/test/cmd/env.py::test_stage[mock_archive0]\", \"lib/spack/spack/test/stage.py::TestDevelopStage::test_sanity_check_develop_path\", \"lib/spack/spack/test/cmd/env.py::test_stack_view_multiple_views[mock_archive0-True]\", \"lib/spack/spack/test/cmd/env.py::test_bad_env_yaml_create_fails[ConfigFormatError-not of type-spack:\\\\n specs: mpi@2.0\\\\n]\", \"lib/spack/spack/test/cmd/env.py::test_concretize_user_specs_together\", \"lib/spack/spack/test/cmd/env.py::test_env_include_mixed_views[true]\", \"lib/spack/spack/test/cmd/env.py::test_env_updates_view_install[mock_archive0]\", \"lib/spack/spack/test/cmd/env.py::test_custom_store_in_environment\", \"lib/spack/spack/test/cmd/env.py::test_depfile_safe_format\", \"lib/spack/spack/test/cmd/env.py::test_env_remove\", \"lib/spack/spack/test/stage.py::test_stage_create_replace_path\", \"lib/spack/spack/test/cmd/dev_build.py::test_dev_build_before_until\", \"lib/spack/spack/test/cmd/env.py::test_read_legacy_lockfile_and_reconcretize[mock_archive0-v2]\", \"lib/spack/spack/test/cmd/env.py::test_env_with_included_configs_precedence\", \"lib/spack/spack/test/cmd/env.py::test_env_list\", \"lib/spack/spack/test/cmd/env.py::test_env_view_fails[mock_archive0]\", \"lib/spack/spack/test/cmd/env.py::test_stack_definition_conditional_with_satisfaction\", \"lib/spack/spack/test/stage.py::TestStage::test_resolve_paths\", \"lib/spack/spack/test/cmd/env.py::test_store_different_build_deps\", \"lib/spack/spack/test/cmd/env.py::test_stack_yaml_definitions_write_reference\", \"lib/spack/spack/test/cmd/env.py::test_failed_view_cleanup[mock_archive0]\", \"lib/spack/spack/test/cmd/env.py::test_activation_and_deactiviation_ambiguities[b-False-None-env_activate]\", \"lib/spack/spack/test/stage.py::TestStage::test_no_search_if_default_succeeds\", \"lib/spack/spack/test/cmd/env.py::test_change_match_spec\", \"lib/spack/spack/test/cmd/env.py::test_env_with_included_config_file\", \"lib/spack/spack/test/cmd/env.py::test_env_specs_partition[mock_archive0]\", \"lib/spack/spack/test/stage.py::TestStage::test_noexpand_stage_file\", \"lib/spack/spack/test/stage.py::TestStage::test_diystage_preserve_file\", \"lib/spack/spack/test/cmd/env.py::test_env_updates_view_add_concretize[mock_archive0]\", \"lib/spack/spack/test/cmd/env.py::test_does_not_rewrite_rel_dev_path_when_keep_relative_is_set\", \"lib/spack/spack/test/cmd/env.py::test_env_view_fail_if_symlink_points_elsewhere[mock_archive0]\", \"lib/spack/spack/test/stage.py::TestStage::test_diystage_path_invalid\", \"lib/spack/spack/test/cmd/env.py::test_stack_combinatorial_view[mock_archive0]\", \"lib/spack/spack/test/cmd/env.py::test_env_modifications_error_on_activate[mock_archive0]\", \"lib/spack/spack/test/cmd/env.py::test_env_activate_view_fails[mock_archive0]\", \"lib/spack/spack/test/stage.py::TestStage::test_diystage_path_valid\", \"lib/spack/spack/test/cmd/env.py::test_env_write_only_non_default\", \"lib/spack/spack/test/cmd/env.py::test_env_updates_view_force_remove[mock_archive0]\", \"lib/spack/spack/test/cmd/env.py::test_stack_yaml_force_remove_from_matrix\", \"lib/spack/spack/test/cmd/env.py::test_activation_and_deactiviation_ambiguities[None-True-None-env_activate]\", \"lib/spack/spack/test/cmd/env.py::test_rewrite_rel_dev_path_named_env\", \"lib/spack/spack/test/cmd/env.py::test_bad_env_yaml_create_fails[SpackEnvironmentConfigError-duplicate key-spack:\\\\n packages:\\\\n all:\\\\n providers:\\\\n mpi: [mvapich2]\\\\n mpi: [mpich]\\\\n]\", \"lib/spack/spack/test/cmd/env.py::test_init_from_lockfile\", \"lib/spack/spack/test/cmd/env.py::test_activate_parser_conflicts_with_temp[conflict_arg0]\", \"lib/spack/spack/test/cmd/env.py::test_modules_relative_to_views[mock_archive0]\", \"lib/spack/spack/test/cmd/env.py::test_activation_and_deactiviation_ambiguities[None-False-path/-env_activate]\", \"lib/spack/spack/test/cmd/env.py::test_concretize\", \"lib/spack/spack/test/cmd/env.py::test_env_with_included_config_file_url\", \"lib/spack/spack/test/cmd/env.py::test_stack_concretize_extraneous_deps\", \"lib/spack/spack/test/cmd/env.py::test_relative_view_path_on_command_line_is_made_absolute\", \"lib/spack/spack/test/cmd/dev_build.py::test_dev_build_basics\", \"lib/spack/spack/test/cmd/env.py::test_lockfile_not_deleted_on_write_error\", \"lib/spack/spack/test/cmd/env.py::test_env_view_ignores_different_file_conflicts[mock_archive0]\", \"lib/spack/spack/test/cmd/env.py::test_activation_and_deactiviation_ambiguities[None-False-path/-env_deactivate]\", \"lib/spack/spack/test/cmd/env.py::test_environment_status\", \"lib/spack/spack/test/cmd/env.py::test_depfile_phony_convenience_targets[dttop-expected_installs0]\", \"lib/spack/spack/test/cmd/env.py::test_with_config_bad_include_create\", \"lib/spack/spack/test/stage.py::TestStage::test_diystage_path_none\", \"lib/spack/spack/test/cmd/env.py::test_env_with_config\", \"lib/spack/spack/test/cmd/env.py::test_remove_after_concretize\", \"lib/spack/spack/test/cmd/dev_build.py::test_dev_build_rebuild_on_source_changes[mock_archive0-dev-build-test-install]\", \"lib/spack/spack/test/cmd/env.py::test_env_install_single_spec[mock_archive0]\", \"lib/spack/spack/test/cmd/env.py::test_env_loads[mock_archive0]\", \"lib/spack/spack/test/cmd/env.py::test_env_add_nonexistant_fails\", \"lib/spack/spack/test/cmd/env.py::test_env_view_resolves_identical_file_conflicts[mock_archive0]\", \"lib/spack/spack/test/cmd/env.py::test_env_install_two_specs_same_dep[mock_archive0]\", \"lib/spack/spack/test/cmd/env.py::test_duplicate_packages_raise_when_concretizing_together\", \"lib/spack/spack/test/cmd/env.py::test_stack_yaml_remove_from_matrix_no_effect\", \"lib/spack/spack/test/cmd/env.py::test_read_legacy_lockfile_and_reconcretize[mock_archive0-v1]\", \"lib/spack/spack/test/stage.py::TestStage::test_stage_constructor_with_path\", \"lib/spack/spack/test/stage.py::TestStage::test_keep_exceptions\", \"lib/spack/spack/test/cmd/env.py::test_env_commands_die_with_no_env_arg\", \"lib/spack/spack/test/cmd/env.py::test_read_old_lock_and_write_new[v1]\", \"lib/spack/spack/test/cmd/env.py::test_view_link_run[mock_archive0]\", \"lib/spack/spack/test/cmd/env.py::test_roots_display_with_variants\", \"lib/spack/spack/test/stage.py::TestStage::test_no_keep_with_exceptions\", \"lib/spack/spack/test/cmd/dev_build.py::test_dev_build_rebuild_on_source_changes[mock_archive0-dependent-of-dev-build]\", \"lib/spack/spack/test/cmd/env.py::test_stack_definition_conditional_true\", \"lib/spack/spack/test/stage.py::TestStage::test_stage_purge[spack-stage-1234567890abcdef1234567890abcdef-True]\", \"lib/spack/spack/test/cmd/env.py::test_stack_definition_complex_conditional\", \"lib/spack/spack/test/cmd/env.py::test_env_include_mixed_views[false]\", \"lib/spack/spack/test/stage.py::TestStage::test_expand_archive[expected_file_list1]\", \"lib/spack/spack/test/cmd/dev_build.py::test_dev_build_until_last_phase\", \"lib/spack/spack/test/cmd/env.py::test_stack_definition_conditional_add_write\", \"lib/spack/spack/test/cmd/env.py::test_env_with_included_config_var_path\", \"lib/spack/spack/test/cmd/env.py::test_stack_view_multiple_views[mock_archive0-False]\", \"lib/spack/spack/test/cmd/env.py::test_env_add_virtual\", \"lib/spack/spack/test/cmd/env.py::test_bad_env_yaml_format_remove\", \"lib/spack/spack/test/cmd/env.py::test_environment_view_target_already_exists[mock_archive0]\", \"lib/spack/spack/test/cmd/env.py::test_change_multiple_matches\", \"lib/spack/spack/test/cmd/env.py::test_activate_temp\", \"lib/spack/spack/test/cmd/env.py::test_env_include_mixed_views[custom]\", \"lib/spack/spack/test/cmd/env.py::test_env_activate_broken_view[mock_archive0]\", \"lib/spack/spack/test/cmd/env.py::test_query_develop_specs\", \"lib/spack/spack/test/stage.py::TestStage::test_expand_archive[expected_file_list3]\", \"lib/spack/spack/test/stage.py::TestStage::test_no_keep_without_exceptions\", \"lib/spack/spack/test/cmd/env.py::test_environment_created_in_users_location\", \"lib/spack/spack/test/cmd/env.py::test_environment_depfile_makefile[depfile_flags3-expected_installs3]\", \"lib/spack/spack/test/cmd/env.py::test_multi_env_remove[]\", \"lib/spack/spack/test/cmd/dev_build.py::test_dev_build_until\", \"lib/spack/spack/test/cmd/env.py::test_config_change_new\", \"lib/spack/spack/test/cmd/env.py::test_stack_view_multiple_views_same_name[mock_archive0]\", \"lib/spack/spack/test/cmd/env.py::test_stack_definition_conditional_false\", \"lib/spack/spack/test/stage.py::TestStage::test_fetch[False]\", \"lib/spack/spack/test/cmd/env.py::test_stack_concretize_extraneous_variants_with_dash\", \"lib/spack/spack/test/cmd/env.py::test_stack_definition_conditional_invalid_variable\", \"lib/spack/spack/test/stage.py::TestStage::test_search_if_default_fails[None-All fetchers failed]\", \"lib/spack/spack/test/cmd/env.py::test_config_change_existing\", \"lib/spack/spack/test/cmd/env.py::test_environment_depfile_out\", \"lib/spack/spack/test/stage.py::TestStage::test_composite_stage_with_noexpand_resource\", \"lib/spack/spack/test/cmd/env.py::test_activate_parser_conflicts_with_temp[conflict_arg2]\", \"lib/spack/spack/test/cmd/dev_build.py::test_dev_build_env_with_vars\"]"},"PASS_TO_FAIL":{"kind":"string","value":"[]"},"FAIL_TO_PASS":{"kind":"string","value":"[\"lib/spack/spack/test/stage.py::TestDevelopStage::test_develop_stage\", \"lib/spack/spack/test/cmd/env.py::test_install_develop_keep_stage[mock_archive0]\"]"},"FAIL_TO_FAIL":{"kind":"string","value":"[\"lib/spack/spack/test/cmd/env.py::test_view_link_type[mock_archive0-copy]\"]"},"install":{"kind":"string","value":"{\"install\": [\"uv pip install -e .\", \"spack -d bootstrap now --dev\"], \"pre_install\": [\"tee pytest.ini < Error: Internal Spack error: the solver completed but produced specs that do not satisfy the request.\r\n\tUnsatisfied input specs:\r\n\tInput spec: zlib-ng%nvhpc\r\n\t(No candidate specs from solver)\r\n```\r\nwhile it should state that no compiler is available to satisfy the request.\n\n### Information on your system\n\n* **Spack:** 0.22.0.dev0 (5f5fc78236f8ad84121ac1d9aabf47d509676349)\r\n* **Python:** 3.11.5\r\n* **Platform:** linux-ubuntu20.04-icelake\r\n* **Concretizer:** clingo\r\n\n\n### General information\n\n- [X] I have run `spack debug report` and reported the version of Spack/Python/Platform\n- [X] I have searched the issues of this repo and believe this is not a duplicate\n- [X] I have run the failing commands in debug mode and reported the output\n"},"hints_text":{"kind":"string","value":"@scheibelp We likely introduced this in #42655 "},"created_at":{"kind":"string","value":"2024-03-12T14:34:58Z"},"merged_at":{"kind":"string","value":"2024-03-14T20:47:56Z"},"PASS_TO_PASS":{"kind":"string","value":"[\"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@:1]\", \"lib/spack/spack/test/concretize.py::TestConcretizeEdges::test_virtuals_provided_together_but_only_one_required_in_dag\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_custom_compiler_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_is_equivalent_to_specified_version[0.2.15]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3@1.0 ^python@3.5.1-expected4-unexpected4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants[conditional-variant-pkg@1.0-expected0-unexpected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_config[python@configured]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[0000000000000000000000000000000000000001=1.2.3-v_opts10-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_provider_must_meet_requirements\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_and_compiler_preferences[cmake %clang-expected2]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_match\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts0-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_select_lower_priority_package_from_repository_stack[builtin.mock.gmake-expected_namespaces0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[external-buildable-with-variant@0.9 +baz-True-@0.9]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inheritance[gcc]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretization_of_test_dependencies\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_with_restricted_virtual\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3@1.1 ^python@2.7.11-expected3-unexpected3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[quantum-espresso~veritas-expected4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_parents\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[externaltool@0.9-True-@0.9]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize_preferences[specs2-libelf@0.8.13-3]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts14-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_regression_issue_7941\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagated_variant_is_not_passed_to_dependent\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_installed_packages_when_package_def_changes[context2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_specified_variant\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concrete_specs_are_not_modified_on_reuse[mpich-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[cannonlake-preference-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_conflicts_in_package_py[bowtie@1.3.0-%clang@12.0.0]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[develop-v_opts1-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_installed_version_is_selected_only_for_reuse\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts11-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@:1.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[fftw ^mpich-expected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_hash_assigned_version_is_preferred\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3 ^python@2.7.11-expected1-unexpected1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_is_equivalent_to_specified_version[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts3-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_succeeds_with_unknown_version[fbranch]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_with_unknown_namespace_dont_raise\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_delete_version_and_reuse\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_newer_dependency_adds_a_transitive_virtual\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts7-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[external-buildable-with-variant@1.0: ~baz-False-@1.0 ~baz]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_user_can_select_externals_with_require\", \"lib/spack/spack/test/concretize.py::TestConcretizeEdges::test_condition_triggered_by_edge_property[conditional-edge+foo-expected_satisfies2-expected_not_satisfies2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mv_variants_disjoint_sets_from_packages_yaml\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a foobar=bar-True-with_dep1-without_dep1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[externaltool@0_8-True-@0_8]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mv_variants_disjoint_sets_from_spec[mvapich2 file_systems=lustre,gpfs-file_systems-expected_values2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[skylake-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_detection\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_conflicts_in_package_py[bowtie@1.4.0-%gcc@10.2.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[True-dev-build-test-install-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[conflict-parent%gcc]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mv_variants_disjoint_sets_from_spec[mvapich2-file_systems-expected_values0]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_match_virtual\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant foo=foo-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[cannonlake-preference-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[True-dev-build-test-dependent ^dev-build-test-install-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[haswell-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_package_with_constraint_not_met_by_external\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3 ^python@2.7.11-expected1-unexpected1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_misleading_error_message_on_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflicts_show_cores[conflict-parent@0.9^conflict~foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_with_flags\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich debug=True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[cannonlake-preference-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-preference-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_select_lower_priority_package_from_repository_stack[hdf5 ^gmake-expected_namespaces2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_nobuild_package\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtual_is_fully_expanded_for_callpath\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[ascent~~shared +adios2 ^adios2+shared-expected_propagation3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[False-dev-build-test-install-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[libelf0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize_preferences[specs0-libelf@0.8.12-1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_conflicts_in_package_py[bowtie@1.2.2 os=redhat6-%gcc@11.1.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_noversion_pkg[noversion]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[False-dev-build-test-install-True]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_two_gmake[minimal]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich cppflags=\\\"-O3\\\"]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts13-False]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_different_spec\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_not_reusing_incompatible_os_or_compiler\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs5-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[quantum-espresso-expected1]\", \"lib/spack/spack/test/concretize.py::TestConcreteSpecsByHash::test_adding_specs[input_specs0]\", \"lib/spack/spack/test/concretize.py::TestConcretizeEdges::test_condition_triggered_by_edge_property[conditional-edge-expected_satisfies0-expected_not_satisfies0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_no_matching_compiler_specs\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_coconcretize_reuse_and_virtuals\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[ascent++shared +adios2 ^adios2~shared-expected_propagation4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_sticky_variant_in_external[sticky-variant@1.0-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_versions_in_virtual_dependencies\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[ascent~~shared +adios2-expected_propagation2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_target_granularity\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a foobar=bar-False-with_dep4-without_dep4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_compiler_flag_does_not_propagate\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_dependent_with_singlevalued_variant_type\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich~debug]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3@1.0 ^python@3.5.1-expected4-unexpected4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_different_compilers_get_different_flags\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concrete_specs_are_not_modified_on_reuse[mpich~debug-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_version_weight_and_provenance\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[external-buildable-with-variant ~baz-False-@1.0 ~baz]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_python_from_cli_and_extension_from_db\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[skylake-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_no_multiple_solutions_with_different_edges_same_nodes\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concrete_specs_are_not_modified_on_reuse[mpich+debug-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[haswell-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant foo=bar-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[True-dev-build-test-dependent ^dev-build-test-install-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mv_variants_disjoint_sets_from_spec[mvapich2 file_systems=lustre-file_systems-expected_values1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs6-4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_version_badness_more_important_than_default_mv_variants\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a foobar=bar-tests_arg3-with_dep3-without_dep3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_is_equivalent_to_specified_version[main]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_match_constraints_when_selected\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_non_default_provider_of_multiple_virtuals\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant@1.62.0 cxxstd=17-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_succeeds_with_unknown_version[0.2.15]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants[conditional-variant-pkg@2.0~version_based-expected2-unexpected2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inheritance[gcc@10.2.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_sticky_variant_in_package\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3 ^python@3.5.1-expected0-unexpected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_conditional_variant\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a foobar=bar-tests_arg2-with_dep2-without_dep2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_os_selection_when_multiple_choices_are_possible[mpileaks-os=debian6]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3@1.1 ^python@2.7.11-expected3-unexpected3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtual_is_fully_expanded_for_mpileaks\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_require_targets_are_allowed\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_two_setuptools[minimal]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[0000001=1.2.3-v_opts12-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[broadwell-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants[conditional-variant-pkg@2.0+version_based+variant_based-expected3-unexpected3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[libelf@0.8.13]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts2-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_target_ranges_in_conflicts\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_dependency_conditional_on_another_dependency_state\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_result_specs_is_not_empty[specs2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[external-buildable-with-variant +baz-True-@1.1.special +baz]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant@1.72.0 staging=flexpath-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_packages_have_consistent_hash\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_that_would_require_a_virtual_dependency\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies ^libelf@0.8.10-patched_deps3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_constraint_with_external_package[cmake %clang-%clang]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich+debug]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_annotated_on_edges[mpileaks]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_sibling\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_sticky_variant_in_external[sticky-variant@1.0+allow-gcc-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_regression_issue_7239\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[False-dev-build-test-dependent ^dev-build-test-install-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[quantum-espresso-expected3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_none\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3@1.0 ^python@2.7.11-expected2-unexpected2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants_fail[@1.0+version_based]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_installed_specs_disregard_conflicts\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_child\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals_with_one_bound\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_my_dep_depends_on_provider_of_my_virtual_dep\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[libelf1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_anonymous\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_cumulative_version_ranges_with_different_length\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs2-4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_enable_disable_compiler_existence_check\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts4-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_multivalue_variant\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[callpath]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_different_modules[None]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant@1.72.0 cxxstd=2a-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals_with_dual_provider\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_is_unique[mpileaks ^mpich%clang@12.0.0-%clang@12.0.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies +foo-patched_deps4]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_different_prefix\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_installed\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_and_compiler_preferences[cmake-expected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_with_unknown_package_dont_raise\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs7-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_installed_externals_are_reused\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@2:]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize_preferences[specs3-mpich-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mixing_compilers_only_affects_subdag\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts15-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_all_patches_applied\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_version_matches_any_entry_in_compilers_yaml\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_deprecated_versions_not_selected[deprecated-versions-deprecated-versions@1.0.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_multivalued_variants_from_cli[multivalue-variant-expected_dict0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_dont_select_version_that_brings_more_variants_in\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_unified_python\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_reconstructed_on_reuse[mpileaks ^zmpi-zmpi]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_target_compatibility\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@2.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@2.2_1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_multivalued_variants_from_cli[multivalue-variant libs=static-expected_dict1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies@1.0 ^libdwarf@20111030-patched_deps2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_provides_handles_multiple_providers_of_same_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflicts_in_spec[conflict-parent@0.9^conflict~foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[broadwell-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_error_message_for_inconsistent_variants[wrong-variant-in-conflicts]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-preference-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals_with_two_bound\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants_fail[@2.0+version_based~variant_based+two_whens]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_and_virtual\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[broadwell-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_deprecated_versions_not_selected[deprecated-versions@=1.1.0-deprecated-versions@1.1.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[hypre~~shared ^openblas-expected_propagation1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_simultaneous_concretization_of_specs[abstract_specs1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_regression_issue_7705\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_simultaneous_concretization_of_specs[abstract_specs2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_match_is_preferred_to_newer_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs4-3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflicts_show_cores[conflict%clang+foo]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[git.branch=1.2.3-v_opts16-False]\", \"lib/spack/spack/test/concretize.py::TestConcreteSpecsByHash::test_adding_specs[input_specs1]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_pure_build_virtual_dependency[full]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_children\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[False-dev-build-test-dependent ^dev-build-test-install-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a-True-with_dep0-without_dep0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inheritance[clang@:12.0.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies@1.0-patched_deps1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[haswell-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[conflict%clang~foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[externaltool@1.0-True-@1.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_add_microarchitectures_on_explicit_request\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_unsolved_specs_raises_error\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_constraint_with_external_package[cmake %gcc-%gcc]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs8-1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_simultaneous_concretization_of_specs[abstract_specs3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_flags_from_user_are_grouped\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_dont_define_new_version_from_input_if_checksum_required\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[cannonlake-preference-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs3-4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_os_selection_when_multiple_choices_are_possible[mpileaks%gcc@10.2.1 platform=test os=debian6-os=debian6]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[quantum-espresso-expected2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_result_specs_is_not_empty[specs0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[skylake-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_config[python@configured target=core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs0-1]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_two_gmake[full]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_config[python@configured os=debian]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@1.2:2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3 ^python@3.5.1-expected0-unexpected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich cppflags==\\\"-O3\\\"]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_module\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_noversion_pkg[noversion-bundle]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals_with_dual_provider_and_a_conflict\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_different_modules[modules1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[conflict]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[old-external-True-@1.0.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_preferred_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_provides_or_depends_on\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretization_with_compilers_supporting_target_any\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_variant_not_default\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_architecture_deep_inheritance\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-preference-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_anonymous_dep[mpileaks ^cflags=-g]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[skylake-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_reconstructed_on_reuse[mpileaks ^mpich2-mpich2]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts9-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant@1.62.0 cxxstd=2a-False]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_solution_without_cycles\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_compiler_flag_not_passed_to_dependent\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_installed_packages_when_package_def_changes[context0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_regression_issue_4492\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inherited_upwards\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-preference-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[hypre~~shared ^openblas+shared-expected_propagation0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_succeeds_with_unknown_version[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@2.2_0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_do_not_invent_new_concrete_versions_unless_necessary\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_no_conflict_in_external_specs[conflict@10.0%clang+foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_select_lower_priority_package_from_repository_stack[hdf5 ^builtin.mock.gmake-expected_namespaces1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_no_compilers_for_arch\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflicts_in_spec[conflict%clang+foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_config[python@configured platform=test]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts5-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_mention_build_dep\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[True-dev-build-test-install-True]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_pure_build_virtual_dependency[minimal]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_with_custom_non_numeric_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_architecture_inheritance\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inheritance[clang]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_result_specs_is_not_empty[specs1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_os_selection_when_multiple_choices_are_possible[mpileaks%gcc@10.2.1 platform=test os=redhat6-os=redhat6]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_is_unique[mpileaks-%gcc@10.2.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[haswell-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_and_compiler_preferences[cmake %gcc-expected1]\", \"lib/spack/spack/test/concretize.py::TestConcretizeEdges::test_condition_triggered_by_edge_property[conditional-edge~foo-expected_satisfies1-expected_not_satisfies1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_reconstructed_on_reuse[mpileaks-mpich]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_anonymous_dep[mpileaks ^%gcc]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extensions_have_dependency\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_self\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_host_compatible_concretization\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_in_nonbuildable_external_package[gcc-external-common-python %clang-%clang ^external-common-openssl%gcc ^external-common-gdbm%clang-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants[conditional-variant-pkg@2.0-expected1-unexpected1]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts8-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants_fail[@2.0~version_based+variant_based]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[broadwell-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_installed_packages_when_package_def_changes[context1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_transitive_conditional_virtual_dependency\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_in_nonbuildable_external_package[clang-external-common-python-%clang ^external-common-openssl%clang ^external-common-gdbm%clang-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_compiler_flag_propagate\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_annotated_on_edges[mpileaks ^mpich]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies-patched_deps0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize_preferences[specs1-libelf@0.8.12-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_with_provides_when\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_with_non_default_variant_as_dependency\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_simultaneous_concretization_of_specs[abstract_specs0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_flags_differ_identical_compilers\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflict_in_all_directives_true\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_sticky_variant_in_external[sticky-variant@1.0~allow-gcc-False]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_two_setuptools[full]\", \"lib/spack/spack/test/concretize.py::TestConcreteSpecsByHash::test_adding_specs[input_specs2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3@1.0 ^python@2.7.11-expected2-unexpected2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts6-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants_fail[@1.0~version_based]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs1-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_error_message_for_inconsistent_variants[wrong-variant-in-depends-on]\"]"},"PASS_TO_FAIL":{"kind":"string","value":"[]"},"FAIL_TO_PASS":{"kind":"string","value":"[\"lib/spack/spack/test/concretize.py::TestConcretize::test_clear_error_when_unknown_compiler_requested\"]"},"FAIL_TO_FAIL":{"kind":"string","value":"[]"},"install":{"kind":"string","value":"{\"install\": [\"uv pip install -e .\", \"spack -d bootstrap now --dev\"], \"pre_install\": [\"tee pytest.ini < mock_pkgs > builder_pkgs\n-\n- both_repos = len(list(\"-r\", \"builtin.mock\", \"-r\", \"builder.test\").strip().split())\n assert both_repos == total_pkgs\ndiff --git a/var/spack/repos/builder.test/packages/builder-and-mixins/package.py b/var/spack/repos/builder.test/packages/builder-and-mixins/package.py\nnew file mode 100644\nindex 0000000000000..2e12b0e806123\n--- /dev/null\n+++ b/var/spack/repos/builder.test/packages/builder-and-mixins/package.py\n@@ -0,0 +1,32 @@\n+# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other\n+# Spack Project Developers. See the top-level COPYRIGHT file for details.\n+#\n+# SPDX-License-Identifier: (Apache-2.0 OR MIT)\n+import spack.builder\n+from spack.build_systems import generic\n+from spack.package import *\n+\n+\n+class BuilderAndMixins(Package):\n+ \"\"\"This package defines a mixin for its builder\"\"\"\n+\n+ homepage = \"http://www.example.com\"\n+ url = \"http://www.example.com/a-1.0.tar.gz\"\n+\n+ version(\"2.0\", md5=\"abcdef0123456789abcdef0123456789\")\n+ version(\"1.0\", md5=\"0123456789abcdef0123456789abcdef\")\n+\n+\n+class BuilderMixin(metaclass=spack.builder.PhaseCallbacksMeta):\n+ @run_before(\"install\")\n+ def before_install(self):\n+ pass\n+\n+ @run_after(\"install\")\n+ def after_install(self):\n+ pass\n+\n+\n+class GenericBuilder(BuilderMixin, generic.GenericBuilder):\n+ def install(self, pkg, spec, prefix):\n+ pass\n"},"problem_statement":{"kind":"string","value":"Builders fail to account for run_after callbacks, when using mixins\n### Steps to reproduce\n\nThe following is expected to run `make check`\r\n```console\r\n$ spack install --test=root netcdf-c\r\n```\r\nbut it doesn't. Issue reported by @skosukhin in DM.\n\n### Error message\n\nNo error message, just some expected function calls are not performed.\n\n### Information on your system\n\n* **Spack:** 0.22.0.dev0 (772928241b2e721724cbaa4a3a07a6ce0753c0e7)\r\n* **Python:** 3.11.5\r\n* **Platform:** linux-ubuntu20.04-icelake\r\n* **Concretizer:** clingo\r\n\n\n### General information\n\n- [X] I have run `spack debug report` and reported the version of Spack/Python/Platform\n- [X] I have searched the issues of this repo and believe this is not a duplicate\n- [X] I have run the failing commands in debug mode and reported the output\n"},"hints_text":{"kind":"string","value":"A first diff to solve this issue:\r\n```diff\r\ndiff --git a/lib/spack/spack/builder.py b/lib/spack/spack/builder.py\r\nindex 4119062ab6..d85d95284d 100644\r\n--- a/lib/spack/spack/builder.py\r\n+++ b/lib/spack/spack/builder.py\r\n@@ -230,11 +230,6 @@ class PhaseCallbacksMeta(type):\r\n def __new__(mcs, name, bases, attr_dict):\r\n for temporary_stage in (_RUN_BEFORE, _RUN_AFTER):\r\n staged_callbacks = temporary_stage.callbacks\r\n-\r\n- # We don't have callbacks in this class, move on\r\n- if not staged_callbacks:\r\n- continue\r\n-\r\n # If we are here we have callbacks. To get a complete list, get first what\r\n # was attached to parent classes, then prepend what we have registered here.\r\n #\r\n@@ -242,12 +237,13 @@ def __new__(mcs, name, bases, attr_dict):\r\n # 1. Callbacks are registered in order within the same class\r\n # 2. Callbacks defined in derived classes precede those defined in base\r\n # classes\r\n+ callbacks_from_base = []\r\n for base in bases:\r\n- callbacks_from_base = getattr(base, temporary_stage.attribute_name, None)\r\n- if callbacks_from_base:\r\n- break\r\n- else:\r\n- callbacks_from_base = []\r\n+ current_callbacks = getattr(base, temporary_stage.attribute_name, None)\r\n+ if not current_callbacks:\r\n+ continue\r\n+ selected_callbacks = [x for x in current_callbacks if x not in callbacks_from_base]\r\n+ callbacks_from_base.extend(selected_callbacks)\r\n \r\n # Set the callbacks in this class and flush the temporary stage\r\n attr_dict[temporary_stage.attribute_name] = staged_callbacks[:] + callbacks_from_base\r\n\r\n```"},"created_at":{"kind":"string","value":"2024-03-08T17:25:55Z"},"merged_at":{"kind":"string","value":"2024-03-11T19:48:21Z"},"PASS_TO_PASS":{"kind":"string","value":"[\"lib/spack/spack/test/cmd/list.py::test_list_filter\", \"lib/spack/spack/test/cmd/list.py::test_list_repos\", \"lib/spack/spack/test/builder.py::test_callbacks_and_installation_procedure[inheritance@1.0-expected_values2]\", \"lib/spack/spack/test/builder.py::test_callbacks_and_installation_procedure[callbacks@2.0-expected_values0]\", \"lib/spack/spack/test/builder.py::test_old_style_compatibility_with_super[old-style-autotools-configure_args-expected0]\", \"lib/spack/spack/test/builder.py::test_install_time_test_callback\", \"lib/spack/spack/test/builder.py::test_monkey_patching_test_log_file\", \"lib/spack/spack/test/cmd/list.py::test_list_tags\", \"lib/spack/spack/test/builder.py::test_callbacks_and_installation_procedure[custom-phases-expected_values3]\", \"lib/spack/spack/test/builder.py::test_callbacks_and_installation_procedure[callbacks@1.0-expected_values1]\", \"lib/spack/spack/test/cmd/list.py::test_list_search_description\", \"lib/spack/spack/test/cmd/list.py::test_list_format_version_json\", \"lib/spack/spack/test/builder.py::test_callbacks_and_installation_procedure[old-style-autotools@1.0-expected_values4]\", \"lib/spack/spack/test/cmd/list.py::test_list_format_name_only\", \"lib/spack/spack/test/builder.py::test_callbacks_and_installation_procedure[old-style-autotools@2.0-expected_values5]\", \"lib/spack/spack/test/builder.py::test_monkey_patching_wrapped_pkg\", \"lib/spack/spack/test/cmd/list.py::test_list\", \"lib/spack/spack/test/builder.py::test_build_time_tests_are_executed_from_default_builder\", \"lib/spack/spack/test/cmd/list.py::test_list_cli_output_format\", \"lib/spack/spack/test/cmd/list.py::test_list_update\", \"lib/spack/spack/test/cmd/list.py::test_list_count\", \"lib/spack/spack/test/builder.py::test_callbacks_and_installation_procedure[old-style-custom-phases-expected_values6]\", \"lib/spack/spack/test/builder.py::test_old_style_compatibility_with_super[old-style-derived-configure_args-expected1]\", \"lib/spack/spack/test/cmd/list.py::test_list_format_html\"]"},"PASS_TO_FAIL":{"kind":"string","value":"[]"},"FAIL_TO_PASS":{"kind":"string","value":"[\"lib/spack/spack/test/builder.py::test_mixins_with_builders\"]"},"FAIL_TO_FAIL":{"kind":"string","value":"[\"var/spack/repos/builder.test/packages/builder-and-mixins/package.py::test_part\"]"},"install":{"kind":"string","value":"{\"install\": [\"uv pip install -e .\", \"spack -d bootstrap now --dev\"], \"pre_install\": [\"tee pytest.ini < 29 packages will be uninstalled. Do you want to proceed? [y/N] y\r\n```\n\n### Error message\n\nNo error message. It just does nothing. The list of installed packaged displayed by `spack find` does not change after running it.\n\n### Information on your system\n\n* **Spack:** 0.22.0.dev0 (2b51980904933f8275e9a60f164a0bc6b2eda070)\r\n* **Python:** 3.11.7\r\n* **Platform:** darwin-sonoma-m1\r\n* **Concretizer:** clingo\n\n### General information\n\n- [X] I have run `spack debug report` and reported the version of Spack/Python/Platform\n- [X] I have searched the issues of this repo and believe this is not a duplicate\n- [X] I have run the failing commands in debug mode and reported the output\n"},"hints_text":{"kind":"string","value":"Thanks for the report! Do you have any reproducer? Can you provide a stacktrace using `spack -d gc` ?\nStuck on getting a write lock for the DB? Then you should see timeouts with the `-d` flag.\nHere is the output with `-d`:\r\n```console\r\n $ spack -d gc\r\n==> [2024-01-29-11:04:48.843439] Reading config from file /Users/benwibking/spack/etc/spack/defaults/config.yaml\r\n==> [2024-01-29-11:04:48.858914] Reading config from file /Users/benwibking/.spack/config.yaml\r\n==> [2024-01-29-11:04:48.868392] Imported gc from built-in commands\r\n==> [2024-01-29-11:04:48.868695] Imported gc from built-in commands\r\n==> [2024-01-29-11:04:48.869114] DATABASE LOCK TIMEOUT: 60s\r\n==> [2024-01-29-11:04:48.869147] PACKAGE LOCK TIMEOUT: No timeout\r\n -- darwin-sonoma-m1 / apple-clang@15.0.0 ------------------------\r\n zwr44p6 autoconf@2.69 atynmdj findutils@4.9.0 7vopm2j nasm@2.15.05 ixbnzx3 py-setuptools@68.0.0\r\n 7rgw5gc autoconf-archive@2023.02.20 islig2o flex@2.6.3 wr2k7lt nghttp2@1.57.0 ec2guny py-wheel@0.41.2\r\n d56zq3f automake@1.16.5 yg5a2oh gmake@4.4.1 ondzzfa ninja@1.11.1 5h3xqk7 re2c@2.2\r\n w7z4nlf bison@3.8.2 7gytrfu gnuconfig@2022-09-17 ox2l7lb py-cython@3.0.4 6p5yzso sed@4.9\r\n sbr7xj6 ca-certificates-mozilla@2023-05-30 5562oo7 libsigsegv@2.14 kyfcphh py-flit-core@3.9.0 rppe7is which@2.21\r\n 5jx4kan cmake@3.27.8 mjvdvy3 libtool@2.4.7 ha4uox6 py-packaging@23.1\r\n 76ptvnb curl@8.4.0 3cckab2 m4@1.4.19 qoxh6tu py-pip@23.1.2\r\n lau4vo7 diffutils@3.9 tx7x5kg meson@1.2.2 k3epkai py-pyproject-metadata@0.7.1\r\n\r\n==> [2024-01-29-11:04:48.875121] 29 packages will be uninstalled. Do you want to proceed? [y/N] y\r\n==> [2024-01-29-11:04:55.224986] Removed stale DB entry for autoconf-archive@2023.02.20%apple-clang@15.0.0 build_system=autotools arch=darwin-sonoma-m1/7rgw5gc\r\n==> [2024-01-29-11:05:00.261022] Removed stale DB entry for meson@1.2.2%apple-clang@15.0.0 build_system=python_pip patches=0f0b1bd,ae59765 arch=darwin-sonoma-m1/tx7x5kg\r\n==> [2024-01-29-11:05:05.285292] Removed stale DB entry for flex@2.6.3%apple-clang@15.0.0+lex~nls build_system=autotools arch=darwin-sonoma-m1/islig2o\r\n==> [2024-01-29-11:05:10.309751] Removed stale DB entry for which@2.21%apple-clang@15.0.0 build_system=autotools arch=darwin-sonoma-m1/rppe7is\r\n==> [2024-01-29-11:05:15.335751] Removed stale DB entry for sed@4.9%apple-clang@15.0.0 build_system=autotools arch=darwin-sonoma-m1/6p5yzso\r\n==> [2024-01-29-11:05:20.359327] Removed stale DB entry for py-pyproject-metadata@0.7.1%apple-clang@15.0.0 build_system=python_pip arch=darwin-sonoma-m1/k3epkai\r\n==> [2024-01-29-11:05:25.395817] Removed stale DB entry for py-packaging@23.1%apple-clang@15.0.0 build_system=python_pip arch=darwin-sonoma-m1/ha4uox6\r\n==> [2024-01-29-11:05:30.441813] Removed stale DB entry for py-flit-core@3.9.0%apple-clang@15.0.0 build_system=python_pip arch=darwin-sonoma-m1/kyfcphh\r\n==> [2024-01-29-11:05:35.483228] Removed stale DB entry for py-cython@3.0.4%apple-clang@15.0.0 build_system=python_pip arch=darwin-sonoma-m1/ox2l7lb\r\n==> [2024-01-29-11:05:40.521121] Removed stale DB entry for ninja@1.11.1%apple-clang@15.0.0+re2c build_system=generic arch=darwin-sonoma-m1/ondzzfa\r\n==> [2024-01-29-11:05:45.561369] Removed stale DB entry for cmake@3.27.8%apple-clang@15.0.0~doc+ncurses+ownlibs build_system=generic build_type=Release arch=darwin-sonoma-m1/5jx4kan\r\n==> [2024-01-29-11:05:50.585387] Removed stale DB entry for curl@8.4.0%apple-clang@15.0.0~gssapi~ldap~libidn2~librtmp~libssh~libssh2+nghttp2 build_system=autotools libs=shared,static tls=secure_transport arch=darwin-sonoma-m1/76ptvnb\r\n==> [2024-01-29-11:05:55.625611] Removed stale DB entry for nghttp2@1.57.0%apple-clang@15.0.0 build_system=autotools arch=darwin-sonoma-m1/wr2k7lt\r\n==> [2024-01-29-11:06:00.672967] Removed stale DB entry for nasm@2.15.05%apple-clang@15.0.0 build_system=autotools arch=darwin-sonoma-m1/7vopm2j\r\n==> [2024-01-29-11:06:05.697257] Removed stale DB entry for re2c@2.2%apple-clang@15.0.0 build_system=generic arch=darwin-sonoma-m1/5h3xqk7\r\n==> [2024-01-29-11:06:10.719690] Removed stale DB entry for py-setuptools@68.0.0%apple-clang@15.0.0 build_system=generic arch=darwin-sonoma-m1/ixbnzx3\r\n==> [2024-01-29-11:06:15.745301] Removed stale DB entry for py-wheel@0.41.2%apple-clang@15.0.0 build_system=generic arch=darwin-sonoma-m1/ec2guny\r\n==> [2024-01-29-11:06:20.770801] Removed stale DB entry for py-pip@23.1.2%apple-clang@15.0.0 build_system=generic arch=darwin-sonoma-m1/qoxh6tu\r\n==> [2024-01-29-11:06:25.797719] Removed stale DB entry for automake@1.16.5%apple-clang@15.0.0 build_system=autotools arch=darwin-sonoma-m1/d56zq3f\r\n==> [2024-01-29-11:06:30.843028] Removed stale DB entry for autoconf@2.69%apple-clang@15.0.0 build_system=autotools patches=35c4492,7793209,a49dd5b arch=darwin-sonoma-m1/zwr44p6\r\n==> [2024-01-29-11:06:35.871986] Removed stale DB entry for bison@3.8.2%apple-clang@15.0.0 build_system=autotools arch=darwin-sonoma-m1/w7z4nlf\r\n==> [2024-01-29-11:06:40.893507] Removed stale DB entry for libtool@2.4.7%apple-clang@15.0.0 build_system=autotools arch=darwin-sonoma-m1/mjvdvy3\r\n==> [2024-01-29-11:06:45.926443] Removed stale DB entry for m4@1.4.19%apple-clang@15.0.0+sigsegv build_system=autotools patches=9dc5fbd,bfdffa7 arch=darwin-sonoma-m1/3cckab2\r\n==> [2024-01-29-11:06:50.957943] Removed stale DB entry for diffutils@3.9%apple-clang@15.0.0 build_system=autotools arch=darwin-sonoma-m1/lau4vo7\r\n==> [2024-01-29-11:06:55.980024] Removed stale DB entry for findutils@4.9.0%apple-clang@15.0.0 build_system=autotools patches=440b954 arch=darwin-sonoma-m1/atynmdj\r\n==> [2024-01-29-11:07:01.006930] Removed stale DB entry for libsigsegv@2.14%apple-clang@15.0.0 build_system=autotools arch=darwin-sonoma-m1/5562oo7\r\n==> [2024-01-29-11:07:06.034471] Removed stale DB entry for ca-certificates-mozilla@2023-05-30%apple-clang@15.0.0 build_system=generic arch=darwin-sonoma-m1/sbr7xj6\r\n==> [2024-01-29-11:07:11.062358] Removed stale DB entry for gnuconfig@2022-09-17%apple-clang@15.0.0 build_system=generic arch=darwin-sonoma-m1/7gytrfu\r\n==> [2024-01-29-11:07:16.086593] Removed stale DB entry for gmake@4.4.1%apple-clang@15.0.0~guile build_system=generic arch=darwin-sonoma-m1/yg5a2oh\r\n```\nIt doesn't appear to actually remove anything from the database, since I can re-run the command again (and again, etc.), and it produces the same output.\nI am experiencing almost the exact same issue as Ben.\r\n\r\n* **Spack:** 0.22.0.dev0 (f550262efb50c56da97c23af5706a51237961af0)\r\n* **Python:** 3.6.8\r\n* **Platform:** linux-rhel8-zen3\r\n* **Concretizer:** clingo\r\n\r\n```\r\n[svcbuilder@ilogin1 spack]$ spack -d gc\r\n==> [2024-01-30-09:10:19.642059] Reading config from file /gpfs/fs1/soft/improv/spack/etc/spack/defaults/config.yaml\r\n==> [2024-01-30-09:10:19.669444] Reading config from file /gpfs/fs1/soft/improv/spack/etc/spack/config.yaml\r\n==> [2024-01-30-09:10:19.680419] Imported gc from built-in commands\r\n==> [2024-01-30-09:10:19.680911] Imported gc from built-in commands\r\n==> [2024-01-30-09:10:19.682340] DATABASE LOCK TIMEOUT: 60s\r\n==> [2024-01-30-09:10:19.682409] PACKAGE LOCK TIMEOUT: No timeout\r\n...\r\n==> [2024-01-30-09:10:19.843919] 250 packages will be uninstalled. Do you want to proceed? [y/N] y\r\n==> [2024-01-30-09:10:28.458090] Reading config from file /gpfs/fs1/soft/improv/spack/etc/spack/defaults/repos.yaml\r\n==> [2024-01-30-09:10:28.461404] Reading config from file /gpfs/fs1/soft/improv/spack/etc/spack/repos.yaml\r\n==> [2024-01-30-09:10:28.733997] Reading config from file /gpfs/fs1/soft/improv/spack/etc/spack/defaults/packages.yaml\r\n==> [2024-01-30-09:10:28.775552] Reading config from file /gpfs/fs1/soft/improv/spack/etc/spack/packages.yaml\r\n==> [2024-01-30-09:10:28.893482] Deleting DB entry [diffutils@3.6%gcc@13.2.0 build_system=autotools arch=linux-rhel8-zen3/4hbyzhe]\r\n==> [2024-01-30-09:10:29.045881] Reading config from file /gpfs/fs1/soft/improv/spack/etc/spack/defaults/modules.yaml\r\n==> [2024-01-30-09:10:29.060590] Reading config from file /gpfs/fs1/soft/improv/spack/etc/spack/defaults/linux/modules.yaml\r\n==> [2024-01-30-09:10:29.063273] Reading config from file /gpfs/fs1/soft/improv/spack/etc/spack/modules.yaml\r\n==> [2024-01-30-09:10:35.542370] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:35.542613] Successfully uninstalled diffutils@3.6%gcc@13.2.0 build_system=autotools arch=linux-rhel8-zen3/4hbyzhe\r\n==> [2024-01-30-09:10:35.723479] Removed stale DB entry for cmake@3.27.9%gcc@13.2.0~doc+ncurses+ownlibs build_system=generic build_type=Release arch=linux-rhel8-zen3/msw2iuu\r\n==> [2024-01-30-09:10:35.873163] Removed stale DB entry for ncurses@6.4%gcc@13.2.0~symlinks+termlib abi=none build_system=autotools arch=linux-rhel8-zen3/d7ik7k6\r\n==> [2024-01-30-09:10:35.901722] Deleting DB entry [curl@8.4.0%gcc@13.2.0~gssapi~ldap~libidn2~librtmp~libssh~libssh2+nghttp2 build_system=autotools libs=shared,static tls=openssl arch=linux-rhel8-zen3/f5rkx7d]\r\n==> [2024-01-30-09:10:36.058053] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:36.058297] Successfully uninstalled curl@8.4.0%gcc@13.2.0~gssapi~ldap~libidn2~librtmp~libssh~libssh2+nghttp2 build_system=autotools libs=shared,static tls=openssl arch=linux-rhel8-zen3/f5rkx7d\r\n==> [2024-01-30-09:10:36.081966] Deleting DB entry [perl@5.38.0%gcc@13.2.0+cpanm+opcode+open+shared+threads build_system=generic arch=linux-rhel8-zen3/y65xmxo]\r\n==> [2024-01-30-09:10:36.234687] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:36.234908] Successfully uninstalled perl@5.38.0%gcc@13.2.0+cpanm+opcode+open+shared+threads build_system=generic arch=linux-rhel8-zen3/y65xmxo\r\n==> [2024-01-30-09:10:36.262492] Deleting DB entry [m4@1.4.18%gcc@13.2.0+sigsegv build_system=autotools patches=3877ab5,fc9b616 arch=linux-rhel8-zen3/uywaexy]\r\n==> [2024-01-30-09:10:36.415980] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:36.416211] Successfully uninstalled m4@1.4.18%gcc@13.2.0+sigsegv build_system=autotools patches=3877ab5,fc9b616 arch=linux-rhel8-zen3/uywaexy\r\n==> [2024-01-30-09:10:36.434829] Deleting DB entry [libtool@2.4.6%gcc@13.2.0 build_system=autotools arch=linux-rhel8-zen3/l7nir74]\r\n==> [2024-01-30-09:10:36.611294] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:36.611527] Successfully uninstalled libtool@2.4.6%gcc@13.2.0 build_system=autotools arch=linux-rhel8-zen3/l7nir74\r\n==> [2024-01-30-09:10:36.618279] Deleting DB entry [gmake@4.2.1%gcc@13.2.0~guile build_system=generic patches=ca60bd9,fe5b60d arch=linux-rhel8-zen3/jrkc3j6]\r\n==> [2024-01-30-09:10:36.773115] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:36.773343] Successfully uninstalled gmake@4.2.1%gcc@13.2.0~guile build_system=generic patches=ca60bd9,fe5b60d arch=linux-rhel8-zen3/jrkc3j6\r\n==> [2024-01-30-09:10:36.778834] Deleting DB entry [automake@1.16.1%gcc@13.2.0 build_system=autotools arch=linux-rhel8-zen3/qnfitoh]\r\n==> [2024-01-30-09:10:36.931896] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:36.932108] Successfully uninstalled automake@1.16.1%gcc@13.2.0 build_system=autotools arch=linux-rhel8-zen3/qnfitoh\r\n==> [2024-01-30-09:10:36.956484] Deleting DB entry [autoconf@2.69%gcc@13.2.0 build_system=autotools patches=7793209 arch=linux-rhel8-zen3/yxflmir]\r\n==> [2024-01-30-09:10:37.109227] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:37.109448] Successfully uninstalled autoconf@2.69%gcc@13.2.0 build_system=autotools patches=7793209 arch=linux-rhel8-zen3/yxflmir\r\n==> [2024-01-30-09:10:37.115344] Deleting DB entry [pkgconf@1.4.2%gcc@7.5.0 build_system=autotools arch=linux-rhel8-x86_64/llmxvug]\r\n==> [2024-01-30-09:10:37.270208] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:37.270432] Successfully uninstalled pkgconf@1.4.2%gcc@7.5.0 build_system=autotools arch=linux-rhel8-x86_64/llmxvug\r\n==> [2024-01-30-09:10:37.271217] Deleting DB entry [perl@5.38.0%gcc@7.5.0+cpanm+opcode+open+shared+threads build_system=generic arch=linux-rhel8-x86_64/jxctzgq]\r\n==> [2024-01-30-09:10:37.422143] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:37.422381] Successfully uninstalled perl@5.38.0%gcc@7.5.0+cpanm+opcode+open+shared+threads build_system=generic arch=linux-rhel8-x86_64/jxctzgq\r\n==> [2024-01-30-09:10:37.423136] Deleting DB entry [m4@1.4.18%gcc@7.5.0+sigsegv build_system=autotools patches=3877ab5,fc9b616 arch=linux-rhel8-x86_64/wa232ae]\r\n==> [2024-01-30-09:10:37.596405] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:37.596646] Successfully uninstalled m4@1.4.18%gcc@7.5.0+sigsegv build_system=autotools patches=3877ab5,fc9b616 arch=linux-rhel8-x86_64/wa232ae\r\n==> [2024-01-30-09:10:37.597465] Deleting DB entry [libtool@2.4.6%gcc@7.5.0 build_system=autotools arch=linux-rhel8-x86_64/nrwgttt]\r\n==> [2024-01-30-09:10:37.751362] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:37.751576] Successfully uninstalled libtool@2.4.6%gcc@7.5.0 build_system=autotools arch=linux-rhel8-x86_64/nrwgttt\r\n==> [2024-01-30-09:10:37.752320] Deleting DB entry [automake@1.16.1%gcc@7.5.0 build_system=autotools arch=linux-rhel8-x86_64/4m5ii23]\r\n==> [2024-01-30-09:10:37.904744] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:37.904961] Successfully uninstalled automake@1.16.1%gcc@7.5.0 build_system=autotools arch=linux-rhel8-x86_64/4m5ii23\r\n==> [2024-01-30-09:10:37.905711] Deleting DB entry [autoconf@2.69%gcc@7.5.0 build_system=autotools patches=7793209 arch=linux-rhel8-x86_64/3b5mfo5]\r\n==> [2024-01-30-09:10:38.057936] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:38.058154] Successfully uninstalled autoconf@2.69%gcc@7.5.0 build_system=autotools patches=7793209 arch=linux-rhel8-x86_64/3b5mfo5\r\n==> [2024-01-30-09:10:38.058913] Deleting DB entry [gmake@4.2.1%gcc@7.5.0~guile build_system=generic patches=ca60bd9,fe5b60d arch=linux-rhel8-x86_64/etbkwrk]\r\n==> [2024-01-30-09:10:38.213239] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:38.213463] Successfully uninstalled gmake@4.2.1%gcc@7.5.0~guile build_system=generic patches=ca60bd9,fe5b60d arch=linux-rhel8-x86_64/etbkwrk\r\n==> [2024-01-30-09:10:38.214228] Deleting DB entry [perl@5.38.0%gcc@8.2.0+cpanm+opcode+open+shared+threads build_system=generic arch=linux-rhel8-x86_64/lua2fdh]\r\n==> [2024-01-30-09:10:38.386036] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:38.386293] Successfully uninstalled perl@5.38.0%gcc@8.2.0+cpanm+opcode+open+shared+threads build_system=generic arch=linux-rhel8-x86_64/lua2fdh\r\n==> [2024-01-30-09:10:38.387120] Deleting DB entry [gmake@4.2.1%gcc@8.2.0~guile build_system=generic patches=ca60bd9,fe5b60d arch=linux-rhel8-x86_64/sged3uw]\r\n==> [2024-01-30-09:10:38.543061] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:38.543303] Successfully uninstalled gmake@4.2.1%gcc@8.2.0~guile build_system=generic patches=ca60bd9,fe5b60d arch=linux-rhel8-x86_64/sged3uw\r\n==> [2024-01-30-09:10:38.544098] Deleting DB entry [perl@5.38.0%gcc@11.4.0+cpanm+opcode+open+shared+threads build_system=generic arch=linux-rhel8-zen3/br2ap5q]\r\n==> [2024-01-30-09:10:38.698024] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:38.698262] Successfully uninstalled perl@5.38.0%gcc@11.4.0+cpanm+opcode+open+shared+threads build_system=generic arch=linux-rhel8-zen3/br2ap5q\r\n==> [2024-01-30-09:10:38.699017] Deleting DB entry [gmake@4.2.1%gcc@11.4.0~guile build_system=generic patches=ca60bd9,fe5b60d arch=linux-rhel8-zen3/uk3lw7m]\r\n==> [2024-01-30-09:10:38.852786] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:38.853009] Successfully uninstalled gmake@4.2.1%gcc@11.4.0~guile build_system=generic patches=ca60bd9,fe5b60d arch=linux-rhel8-zen3/uk3lw7m\r\n==> [2024-01-30-09:10:39.003162] Removed stale DB entry for xkbcomp@1.4.4%gcc@12.3.0 build_system=autotools arch=linux-rhel8-zen3/vdwkknj\r\n==> [2024-01-30-09:10:39.170593] Removed stale DB entry for py-mako@1.2.4%gcc@12.3.0 build_system=python_pip arch=linux-rhel8-zen3/xiyv2rb\r\n==> [2024-01-30-09:10:39.319279] Removed stale DB entry for libxkbfile@1.0.9%gcc@12.3.0 build_system=autotools arch=linux-rhel8-zen3/uabqiz7\r\n==> [2024-01-30-09:10:39.467163] Removed stale DB entry for py-markupsafe@2.1.3%gcc@12.3.0 build_system=python_pip arch=linux-rhel8-zen3/q4yz63o\r\n==> [2024-01-30-09:10:39.614992] Removed stale DB entry for perl-data-dumper@2.173%gcc@12.3.0 build_system=perl arch=linux-rhel8-zen3/uumkivm\r\n==> [2024-01-30-09:10:39.763964] Removed stale DB entry for cmake@3.27.9%oneapi@2024.0.0~doc+ncurses+ownlibs build_system=generic build_type=Release arch=linux-rhel8-zen3/6nm3sxm\r\n==> [2024-01-30-09:10:39.912757] Removed stale DB entry for ncurses@6.4%oneapi@2024.0.0~symlinks+termlib abi=none build_system=autotools arch=linux-rhel8-zen3/54p5ayn\r\n==> [2024-01-30-09:10:39.913648] Deleting DB entry [perl@5.38.0%oneapi@2024.0.0+cpanm+opcode+open+shared+threads build_system=generic arch=linux-rhel8-zen3/3bvu2c3]\r\n==> [2024-01-30-09:10:40.086929] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:40.087171] Successfully uninstalled perl@5.38.0%oneapi@2024.0.0+cpanm+opcode+open+shared+threads build_system=generic arch=linux-rhel8-zen3/3bvu2c3\r\n==> [2024-01-30-09:10:40.088015] Deleting DB entry [m4@1.4.18%oneapi@2024.0.0+sigsegv build_system=autotools patches=3877ab5,d66f3af,fc9b616 arch=linux-rhel8-zen3/vngjaos]\r\n==> [2024-01-30-09:10:40.243988] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:40.244222] Successfully uninstalled m4@1.4.18%oneapi@2024.0.0+sigsegv build_system=autotools patches=3877ab5,d66f3af,fc9b616 arch=linux-rhel8-zen3/vngjaos\r\n==> [2024-01-30-09:10:40.244973] Deleting DB entry [libtool@2.4.6%oneapi@2024.0.0 build_system=autotools arch=linux-rhel8-zen3/kgjf5l5]\r\n==> [2024-01-30-09:10:40.398958] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:40.399170] Successfully uninstalled libtool@2.4.6%oneapi@2024.0.0 build_system=autotools arch=linux-rhel8-zen3/kgjf5l5\r\n==> [2024-01-30-09:10:40.399931] Deleting DB entry [automake@1.16.1%oneapi@2024.0.0 build_system=autotools arch=linux-rhel8-zen3/qnvuaal]\r\n==> [2024-01-30-09:10:40.554270] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:40.554481] Successfully uninstalled automake@1.16.1%oneapi@2024.0.0 build_system=autotools arch=linux-rhel8-zen3/qnvuaal\r\n==> [2024-01-30-09:10:40.555255] Deleting DB entry [autoconf@2.69%oneapi@2024.0.0 build_system=autotools patches=7793209 arch=linux-rhel8-zen3/r2cfb3h]\r\n==> [2024-01-30-09:10:40.705493] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:40.705712] Successfully uninstalled autoconf@2.69%oneapi@2024.0.0 build_system=autotools patches=7793209 arch=linux-rhel8-zen3/r2cfb3h\r\n==> [2024-01-30-09:10:40.706346] Deleting DB entry [gmake@4.2.1%oneapi@2024.0.0~guile build_system=generic patches=ca60bd9,fe5b60d arch=linux-rhel8-zen3/x6pxjnt]\r\n==> [2024-01-30-09:10:40.880090] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:40.880338] Successfully uninstalled gmake@4.2.1%oneapi@2024.0.0~guile build_system=generic patches=ca60bd9,fe5b60d arch=linux-rhel8-zen3/x6pxjnt\r\n==> [2024-01-30-09:10:41.027820] Removed stale DB entry for patchelf@0.17.2%gcc@12.3.0 build_system=autotools arch=linux-rhel8-zen3/lxdj64i\r\n==> [2024-01-30-09:10:41.178693] Removed stale DB entry for python@3.9.18%gcc@13.2.0+bz2+crypt+ctypes+dbm~debug+libxml2+lzma~nis~optimizations+pic+pyexpat+pythoncmd+readline+shared+sqlite3+ssl~tkinter+uuid+zlib build_system=generic patches=0d98e93,4c24573,ebdca64,f2fd060 arch=linux-rhel8-zen3/3ujlmby\r\n==> [2024-01-30-09:10:41.324973] Removed stale DB entry for gettext@0.22.3%gcc@13.2.0+bzip2+curses+git~libunistring+libxml2+pic+shared+tar+xz build_system=autotools arch=linux-rhel8-zen3/sbgtgbw\r\n==> [2024-01-30-09:10:41.472370] Removed stale DB entry for sqlite@3.43.2%gcc@13.2.0+column_metadata+dynamic_extensions+fts~functions+rtree build_system=autotools arch=linux-rhel8-zen3/6wvkatn\r\n==> [2024-01-30-09:10:41.639203] Removed stale DB entry for libxml2@2.10.3%gcc@13.2.0+pic~python+shared build_system=autotools arch=linux-rhel8-zen3/busrvvx\r\n==> [2024-01-30-09:10:41.645349] Deleting DB entry [cpio@2.14%gcc@13.2.0 build_system=autotools arch=linux-rhel8-zen3/z5xfa53]\r\n==> [2024-01-30-09:10:41.800087] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:41.800332] Successfully uninstalled cpio@2.14%gcc@13.2.0 build_system=autotools arch=linux-rhel8-zen3/z5xfa53\r\n==> [2024-01-30-09:10:41.801275] Deleting DB entry [diffutils@3.6%oneapi@2023.2.1 build_system=autotools arch=linux-rhel8-zen3/udq2rew]\r\n==> [2024-01-30-09:10:41.955959] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:41.956188] Successfully uninstalled diffutils@3.6%oneapi@2023.2.1 build_system=autotools arch=linux-rhel8-zen3/udq2rew\r\n==> [2024-01-30-09:10:41.956938] Deleting DB entry [cpio@2.14%oneapi@2023.2.1 build_system=autotools arch=linux-rhel8-zen3/mtbjhhp]\r\n==> [2024-01-30-09:10:42.109635] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:42.109849] Successfully uninstalled cpio@2.14%oneapi@2023.2.1 build_system=autotools arch=linux-rhel8-zen3/mtbjhhp\r\n==> [2024-01-30-09:10:42.110514] Deleting DB entry [gmake@4.2.1%gcc@12.3.0~guile build_system=generic patches=ca60bd9,fe5b60d arch=linux-rhel8-zen3/tdfrbds]\r\n==> [2024-01-30-09:10:42.264808] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:42.265037] Successfully uninstalled gmake@4.2.1%gcc@12.3.0~guile build_system=generic patches=ca60bd9,fe5b60d arch=linux-rhel8-zen3/tdfrbds\r\n==> [2024-01-30-09:10:42.265810] Deleting DB entry [gmake@4.2.1%oneapi@2023.2.1~guile build_system=generic patches=ca60bd9,fe5b60d arch=linux-rhel8-zen3/3ixnyag]\r\n==> [2024-01-30-09:10:42.442068] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:42.442316] Successfully uninstalled gmake@4.2.1%oneapi@2023.2.1~guile build_system=generic patches=ca60bd9,fe5b60d arch=linux-rhel8-zen3/3ixnyag\r\n==> [2024-01-30-09:10:42.443162] Deleting DB entry [perl@5.38.0%gcc@13.2.0+cpanm+opcode+open+shared+threads build_system=generic arch=linux-rhel8-zen3/vr4syq6]\r\n==> [2024-01-30-09:10:42.597175] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:42.597402] Successfully uninstalled perl@5.38.0%gcc@13.2.0+cpanm+opcode+open+shared+threads build_system=generic arch=linux-rhel8-zen3/vr4syq6\r\n==> [2024-01-30-09:10:42.598037] Deleting DB entry [gmake@4.2.1%gcc@13.2.0~guile build_system=generic patches=ca60bd9,fe5b60d arch=linux-rhel8-zen3/rklu7ah]\r\n==> [2024-01-30-09:10:42.752843] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:42.753061] Successfully uninstalled gmake@4.2.1%gcc@13.2.0~guile build_system=generic patches=ca60bd9,fe5b60d arch=linux-rhel8-zen3/rklu7ah\r\n==> [2024-01-30-09:10:42.900566] Removed stale DB entry for py-cython@3.0.0%gcc@12.3.0 build_system=python_pip arch=linux-rhel8-zen3/qa3njgm\r\n==> [2024-01-30-09:10:43.047122] Removed stale DB entry for meson@1.2.2%gcc@12.3.0 build_system=python_pip patches=0f0b1bd,ae59765 arch=linux-rhel8-zen3/j3ozsj7\r\n==> [2024-01-30-09:10:43.194091] Removed stale DB entry for py-setuptools@68.0.0%gcc@12.3.0 build_system=python_pip arch=linux-rhel8-zen3/6ljrhlj\r\n==> [2024-01-30-09:10:43.362497] Removed stale DB entry for py-wheel@0.41.2%gcc@12.3.0 build_system=generic arch=linux-rhel8-zen3/yb2ikpw\r\n==> [2024-01-30-09:10:43.509875] Removed stale DB entry for py-pip@23.1.2%gcc@12.3.0 build_system=generic arch=linux-rhel8-zen3/tk5bt77\r\n==> [2024-01-30-09:10:43.656545] Removed stale DB entry for go-md2man@2.0.2%gcc@12.3.0 build_system=generic arch=linux-rhel8-zen3/pri4fcy\r\n==> [2024-01-30-09:10:43.660782] Deleting DB entry [ninja@1.11.1%gcc@12.3.0+re2c build_system=generic arch=linux-rhel8-zen3/64u6bea]\r\n==> [2024-01-30-09:10:43.812797] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:43.813015] Successfully uninstalled ninja@1.11.1%gcc@12.3.0+re2c build_system=generic arch=linux-rhel8-zen3/64u6bea\r\n==> [2024-01-30-09:10:43.961672] Removed stale DB entry for bison@3.8.2%gcc@13.2.0 build_system=autotools arch=linux-rhel8-zen3/hukxbwt\r\n==> [2024-01-30-09:10:44.134172] Removed stale DB entry for scons@4.5.2%aocc@4.1.0 build_system=python_pip arch=linux-rhel8-zen3/35n6m4c\r\n==> [2024-01-30-09:10:44.282318] Removed stale DB entry for py-setuptools@68.0.0%aocc@4.1.0 build_system=python_pip arch=linux-rhel8-zen3/sut7vik\r\n==> [2024-01-30-09:10:44.429612] Removed stale DB entry for py-wheel@0.41.2%aocc@4.1.0 build_system=generic arch=linux-rhel8-zen3/svhzxmk\r\n==> [2024-01-30-09:10:44.576795] Removed stale DB entry for py-pip@23.1.2%aocc@4.1.0 build_system=generic arch=linux-rhel8-zen3/yyynjq3\r\n==> [2024-01-30-09:10:44.723174] Removed stale DB entry for aocl-utils@4.1%aocc@4.1.0~doc~examples~ipo~tests build_system=cmake build_type=Release generator=make arch=linux-rhel8-zen3/muqrdyw\r\n==> [2024-01-30-09:10:44.869677] Removed stale DB entry for autoconf-archive@2023.02.20%aocc@4.1.0 build_system=autotools arch=linux-rhel8-zen3/yzfqg2l\r\n==> [2024-01-30-09:10:44.870418] Deleting DB entry [gmake@4.2.1%aocc@4.1.0~guile build_system=autotools patches=ca60bd9,fe5b60d arch=linux-rhel8-zen3/wz4ugng]\r\n==> [2024-01-30-09:10:45.046884] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:45.047132] Successfully uninstalled gmake@4.2.1%aocc@4.1.0~guile build_system=autotools patches=ca60bd9,fe5b60d arch=linux-rhel8-zen3/wz4ugng\r\n==> [2024-01-30-09:10:45.081518] Deleting DB entry [cmake@3.20.2%aocc@4.1.0~doc+ncurses+ownlibs build_system=generic build_type=Release arch=linux-rhel8-zen3/s7jbdbi]\r\n==> [2024-01-30-09:10:45.233591] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:45.233812] Successfully uninstalled cmake@3.20.2%aocc@4.1.0~doc+ncurses+ownlibs build_system=generic build_type=Release arch=linux-rhel8-zen3/s7jbdbi\r\n==> [2024-01-30-09:10:45.234607] Deleting DB entry [gmake@4.2.1%oneapi@2023.2.1~guile build_system=autotools patches=ca60bd9,fe5b60d arch=linux-rhel8-zen3/vbrd4v6]\r\n==> [2024-01-30-09:10:45.387600] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:45.387817] Successfully uninstalled gmake@4.2.1%oneapi@2023.2.1~guile build_system=autotools patches=ca60bd9,fe5b60d arch=linux-rhel8-zen3/vbrd4v6\r\n==> [2024-01-30-09:10:45.388576] Deleting DB entry [cmake@3.20.2%oneapi@2023.2.1~doc+ncurses+ownlibs build_system=generic build_type=Release arch=linux-rhel8-zen3/3uxd6hk]\r\n==> [2024-01-30-09:10:45.539923] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:45.540139] Successfully uninstalled cmake@3.20.2%oneapi@2023.2.1~doc+ncurses+ownlibs build_system=generic build_type=Release arch=linux-rhel8-zen3/3uxd6hk\r\n==> [2024-01-30-09:10:45.687587] Removed stale DB entry for cmake@3.27.7%gcc@11.4.0~doc+ncurses+ownlibs build_system=generic build_type=Release arch=linux-rhel8-zen3/xjhdib4\r\n==> [2024-01-30-09:10:45.858223] Removed stale DB entry for ninja@1.11.1%gcc@11.4.0+re2c build_system=generic arch=linux-rhel8-zen3/kr57d4n\r\n==> [2024-01-30-09:10:46.005742] Removed stale DB entry for python@3.9.18%gcc@11.4.0+bz2+crypt+ctypes+dbm~debug+libxml2+lzma~nis~optimizations+pic+pyexpat+pythoncmd+readline+shared+sqlite3+ssl~tkinter+uuid+zlib build_system=generic patches=0d98e93,4c24573,ebdca64,f2fd060 arch=linux-rhel8-zen3/t7rmmeg\r\n==> [2024-01-30-09:10:46.153057] Removed stale DB entry for gettext@0.22.3%gcc@11.4.0+bzip2+curses+git~libunistring+libxml2+pic+shared+tar+xz build_system=autotools arch=linux-rhel8-zen3/ypxlamc\r\n==> [2024-01-30-09:10:46.300364] Removed stale DB entry for gdbm@1.23%gcc@11.4.0 build_system=autotools arch=linux-rhel8-zen3/vpuzwwt\r\n==> [2024-01-30-09:10:46.446958] Removed stale DB entry for expat@2.5.0%gcc@11.4.0+libbsd build_system=autotools arch=linux-rhel8-zen3/fmduoxb\r\n==> [2024-01-30-09:10:46.593694] Removed stale DB entry for libxcrypt@4.4.35%gcc@11.4.0~obsolete_api build_system=autotools patches=4885da3 arch=linux-rhel8-zen3/tvsnh3h\r\n==> [2024-01-30-09:10:46.761932] Removed stale DB entry for util-linux-uuid@2.38.1%gcc@11.4.0 build_system=autotools arch=linux-rhel8-zen3/q2pielu\r\n==> [2024-01-30-09:10:46.911198] Removed stale DB entry for libbsd@0.11.7%gcc@11.4.0 build_system=autotools arch=linux-rhel8-zen3/syafeju\r\n==> [2024-01-30-09:10:47.059114] Removed stale DB entry for bzip2@1.0.8%gcc@11.4.0~debug~pic+shared build_system=generic arch=linux-rhel8-zen3/xqm6mu6\r\n==> [2024-01-30-09:10:47.206213] Removed stale DB entry for nasm@2.15.05%gcc@11.4.0 build_system=autotools arch=linux-rhel8-zen3/wwysjev\r\n==> [2024-01-30-09:10:47.207083] Deleting DB entry [gmake@4.2.1%gcc@11.4.0~guile build_system=autotools patches=ca60bd9,fe5b60d arch=linux-rhel8-zen3/sa3sfgv]\r\n==> [2024-01-30-09:10:47.360129] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:47.360362] Successfully uninstalled gmake@4.2.1%gcc@11.4.0~guile build_system=autotools patches=ca60bd9,fe5b60d arch=linux-rhel8-zen3/sa3sfgv\r\n==> [2024-01-30-09:10:47.361139] Deleting DB entry [m4@1.4.18%gcc@11.4.0+sigsegv build_system=autotools patches=3877ab5,fc9b616 arch=linux-rhel8-zen3/stttbmh]\r\n==> [2024-01-30-09:10:47.539699] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:47.539937] Successfully uninstalled m4@1.4.18%gcc@11.4.0+sigsegv build_system=autotools patches=3877ab5,fc9b616 arch=linux-rhel8-zen3/stttbmh\r\n==> [2024-01-30-09:10:47.540760] Deleting DB entry [libtool@2.4.6%gcc@11.4.0 build_system=autotools arch=linux-rhel8-zen3/r6yym6g]\r\n==> [2024-01-30-09:10:47.694990] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:47.695214] Successfully uninstalled libtool@2.4.6%gcc@11.4.0 build_system=autotools arch=linux-rhel8-zen3/r6yym6g\r\n==> [2024-01-30-09:10:47.695984] Deleting DB entry [automake@1.16.1%gcc@11.4.0 build_system=autotools arch=linux-rhel8-zen3/ic5r7kz]\r\n==> [2024-01-30-09:10:47.848170] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:47.848393] Successfully uninstalled automake@1.16.1%gcc@11.4.0 build_system=autotools arch=linux-rhel8-zen3/ic5r7kz\r\n==> [2024-01-30-09:10:47.849162] Deleting DB entry [autoconf@2.69%gcc@11.4.0 build_system=autotools patches=7793209 arch=linux-rhel8-zen3/7h57zvx]\r\n==> [2024-01-30-09:10:48.001633] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:48.001846] Successfully uninstalled autoconf@2.69%gcc@11.4.0 build_system=autotools patches=7793209 arch=linux-rhel8-zen3/7h57zvx\r\n==> [2024-01-30-09:10:48.147608] Removed stale DB entry for re2c@2.2%gcc@11.4.0 build_system=generic arch=linux-rhel8-zen3/znj6tck\r\n==> [2024-01-30-09:10:48.162734] Deleting DB entry [openssl@1.0.2k-fips%gcc@11.4.0~docs+shared build_system=generic certs=mozilla arch=linux-rhel8-zen3/ggrsizf]\r\n==> [2024-01-30-09:10:48.315742] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:48.315964] Successfully uninstalled openssl@1.0.2k-fips%gcc@11.4.0~docs+shared build_system=generic certs=mozilla arch=linux-rhel8-zen3/ggrsizf\r\n==> [2024-01-30-09:10:48.316609] Deleting DB entry [perl@5.38.0%gcc@11.4.0+cpanm+opcode+open+shared+threads build_system=generic arch=linux-rhel8-zen3/zh33plj]\r\n==> [2024-01-30-09:10:48.488720] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:48.488956] Successfully uninstalled perl@5.38.0%gcc@11.4.0+cpanm+opcode+open+shared+threads build_system=generic arch=linux-rhel8-zen3/zh33plj\r\n==> [2024-01-30-09:10:48.636946] Removed stale DB entry for libffi@3.4.4%gcc@11.4.0 build_system=autotools arch=linux-rhel8-zen3/rhhkvvh\r\n==> [2024-01-30-09:10:48.647284] Deleting DB entry [tar@1.30%gcc@11.4.0 build_system=autotools zip=pigz arch=linux-rhel8-zen3/tre3yxo]\r\n==> [2024-01-30-09:10:48.801230] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:48.801443] Successfully uninstalled tar@1.30%gcc@11.4.0 build_system=autotools zip=pigz arch=linux-rhel8-zen3/tre3yxo\r\n==> [2024-01-30-09:10:48.949242] Removed stale DB entry for libmd@1.0.4%gcc@11.4.0 build_system=autotools arch=linux-rhel8-zen3/sge5nsw\r\n==> [2024-01-30-09:10:48.949868] Deleting DB entry [diffutils@3.6%gcc@11.4.0 build_system=autotools arch=linux-rhel8-zen3/x6dabgm]\r\n==> [2024-01-30-09:10:49.103951] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:49.104167] Successfully uninstalled diffutils@3.6%gcc@11.4.0 build_system=autotools arch=linux-rhel8-zen3/x6dabgm\r\n==> [2024-01-30-09:10:49.104964] Deleting DB entry [cmake@3.20.2%gcc@11.4.0~doc+ncurses+ownlibs build_system=generic build_type=Release arch=linux-rhel8-zen3/yfmjosy]\r\n==> [2024-01-30-09:10:49.277134] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:49.277389] Successfully uninstalled cmake@3.20.2%gcc@11.4.0~doc+ncurses+ownlibs build_system=generic build_type=Release arch=linux-rhel8-zen3/yfmjosy\r\n==> [2024-01-30-09:10:49.426521] Removed stale DB entry for texinfo@7.0.3%gcc@12.3.0 build_system=autotools arch=linux-rhel8-zen3/kc3hv3j\r\n==> [2024-01-30-09:10:49.573567] Removed stale DB entry for autoconf-archive@2023.02.20%gcc@12.3.0 build_system=autotools arch=linux-rhel8-zen3/ig3ubgz\r\n==> [2024-01-30-09:10:49.574380] Deleting DB entry [gmake@4.2.1%gcc@12.3.0~guile build_system=autotools patches=ca60bd9,fe5b60d arch=linux-rhel8-zen3/ojimlun]\r\n==> [2024-01-30-09:10:49.728144] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:49.728372] Successfully uninstalled gmake@4.2.1%gcc@12.3.0~guile build_system=autotools patches=ca60bd9,fe5b60d arch=linux-rhel8-zen3/ojimlun\r\n==> [2024-01-30-09:10:49.876567] Removed stale DB entry for py-docutils@0.20.1%gcc@13.2.0 build_system=python_pip arch=linux-rhel8-zen3/4hbf7k6\r\n==> [2024-01-30-09:10:49.877347] Deleting DB entry [gmake@4.2.1%gcc@13.2.0~guile build_system=autotools patches=ca60bd9,fe5b60d arch=linux-rhel8-zen3/aokrnjj]\r\n==> [2024-01-30-09:10:50.053481] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:50.053718] Successfully uninstalled gmake@4.2.1%gcc@13.2.0~guile build_system=autotools patches=ca60bd9,fe5b60d arch=linux-rhel8-zen3/aokrnjj\r\n==> [2024-01-30-09:10:50.054573] Deleting DB entry [cmake@3.20.2%gcc@13.2.0~doc+ncurses+ownlibs build_system=generic build_type=Release arch=linux-rhel8-zen3/za7rsq2]\r\n==> [2024-01-30-09:10:50.206454] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:50.206676] Successfully uninstalled cmake@3.20.2%gcc@13.2.0~doc+ncurses+ownlibs build_system=generic build_type=Release arch=linux-rhel8-zen3/za7rsq2\r\n==> [2024-01-30-09:10:50.354409] Removed stale DB entry for py-setuptools@68.0.0%gcc@13.2.0 build_system=python_pip arch=linux-rhel8-zen3/4kovvgf\r\n==> [2024-01-30-09:10:50.502542] Removed stale DB entry for py-wheel@0.41.2%gcc@13.2.0 build_system=generic arch=linux-rhel8-zen3/ntmhziw\r\n==> [2024-01-30-09:10:50.649743] Removed stale DB entry for py-pip@23.1.2%gcc@13.2.0 build_system=generic arch=linux-rhel8-zen3/562eqcr\r\n==> [2024-01-30-09:10:50.797841] Removed stale DB entry for python@3.9.18%gcc@13.2.0+bz2+crypt+ctypes+dbm~debug+libxml2+lzma~nis~optimizations+pic+pyexpat+pythoncmd+readline+shared+sqlite3+ssl~tkinter+uuid+zlib build_system=generic patches=0d98e93,4c24573,ebdca64,f2fd060 arch=linux-rhel8-zen3/6qfqmkz\r\n==> [2024-01-30-09:10:50.798649] Deleting DB entry [openssl@1.0.2k-fips%gcc@13.2.0~docs+shared build_system=generic certs=mozilla arch=linux-rhel8-zen3/2c7p3mb]\r\n==> [2024-01-30-09:10:50.974553] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:50.974790] Successfully uninstalled openssl@1.0.2k-fips%gcc@13.2.0~docs+shared build_system=generic certs=mozilla arch=linux-rhel8-zen3/2c7p3mb\r\n==> [2024-01-30-09:10:50.975632] Deleting DB entry [perl@5.38.0%gcc@7.3.0+cpanm+opcode+open+shared+threads build_system=generic arch=linux-rhel8-x86_64/54oonx6]\r\n==> [2024-01-30-09:10:51.127312] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:51.127537] Successfully uninstalled perl@5.38.0%gcc@7.3.0+cpanm+opcode+open+shared+threads build_system=generic arch=linux-rhel8-x86_64/54oonx6\r\n==> [2024-01-30-09:10:51.128306] Deleting DB entry [m4@1.4.18%gcc@7.3.0+sigsegv build_system=autotools patches=3877ab5,fc9b616 arch=linux-rhel8-x86_64/hwk7u2d]\r\n==> [2024-01-30-09:10:51.280146] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:51.280373] Successfully uninstalled m4@1.4.18%gcc@7.3.0+sigsegv build_system=autotools patches=3877ab5,fc9b616 arch=linux-rhel8-x86_64/hwk7u2d\r\n==> [2024-01-30-09:10:51.281098] Deleting DB entry [automake@1.16.1%gcc@7.3.0 build_system=autotools arch=linux-rhel8-x86_64/sgneir7]\r\n==> [2024-01-30-09:10:51.431634] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:51.431845] Successfully uninstalled automake@1.16.1%gcc@7.3.0 build_system=autotools arch=linux-rhel8-x86_64/sgneir7\r\n==> [2024-01-30-09:10:51.432587] Deleting DB entry [autoconf@2.69%gcc@7.3.0 build_system=autotools patches=7793209 arch=linux-rhel8-x86_64/n6ekw77]\r\n==> [2024-01-30-09:10:51.582897] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:51.583111] Successfully uninstalled autoconf@2.69%gcc@7.3.0 build_system=autotools patches=7793209 arch=linux-rhel8-x86_64/n6ekw77\r\n==> [2024-01-30-09:10:51.752663] Removed stale DB entry for util-macros@1.19.3%gcc@7.3.0 build_system=autotools arch=linux-rhel8-x86_64/ohgv2ce\r\n==> [2024-01-30-09:10:51.753587] Deleting DB entry [pkgconf@1.4.2%gcc@7.3.0 build_system=autotools arch=linux-rhel8-x86_64/57r4uuf]\r\n==> [2024-01-30-09:10:51.908258] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:51.908478] Successfully uninstalled pkgconf@1.4.2%gcc@7.3.0 build_system=autotools arch=linux-rhel8-x86_64/57r4uuf\r\n==> [2024-01-30-09:10:51.909262] Deleting DB entry [libtool@2.4.6%gcc@7.3.0 build_system=autotools arch=linux-rhel8-x86_64/xm2yqoj]\r\n==> [2024-01-30-09:10:52.061981] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:52.062199] Successfully uninstalled libtool@2.4.6%gcc@7.3.0 build_system=autotools arch=linux-rhel8-x86_64/xm2yqoj\r\n==> [2024-01-30-09:10:52.062937] Deleting DB entry [pkgconf@1.4.2%gcc@8.2.0 build_system=autotools arch=linux-rhel8-x86_64/5k7xby4]\r\n==> [2024-01-30-09:10:52.216416] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:52.216624] Successfully uninstalled pkgconf@1.4.2%gcc@8.2.0 build_system=autotools arch=linux-rhel8-x86_64/5k7xby4\r\n==> [2024-01-30-09:10:52.217394] Deleting DB entry [perl@5.38.0%gcc@8.2.0+cpanm+opcode+open+shared+threads build_system=generic arch=linux-rhel8-x86_64/dzb273v]\r\n==> [2024-01-30-09:10:52.367702] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:52.367916] Successfully uninstalled perl@5.38.0%gcc@8.2.0+cpanm+opcode+open+shared+threads build_system=generic arch=linux-rhel8-x86_64/dzb273v\r\n==> [2024-01-30-09:10:52.368667] Deleting DB entry [m4@1.4.18%gcc@8.2.0+sigsegv build_system=autotools patches=3877ab5,fc9b616 arch=linux-rhel8-x86_64/jpze6md]\r\n==> [2024-01-30-09:10:52.546481] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:52.546725] Successfully uninstalled m4@1.4.18%gcc@8.2.0+sigsegv build_system=autotools patches=3877ab5,fc9b616 arch=linux-rhel8-x86_64/jpze6md\r\n==> [2024-01-30-09:10:52.547554] Deleting DB entry [libtool@2.4.6%gcc@8.2.0 build_system=autotools arch=linux-rhel8-x86_64/zppttwh]\r\n==> [2024-01-30-09:10:52.699543] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:52.699757] Successfully uninstalled libtool@2.4.6%gcc@8.2.0 build_system=autotools arch=linux-rhel8-x86_64/zppttwh\r\n==> [2024-01-30-09:10:52.700506] Deleting DB entry [automake@1.16.1%gcc@8.2.0 build_system=autotools arch=linux-rhel8-x86_64/om2t5s7]\r\n==> [2024-01-30-09:10:52.851105] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:52.851327] Successfully uninstalled automake@1.16.1%gcc@8.2.0 build_system=autotools arch=linux-rhel8-x86_64/om2t5s7\r\n==> [2024-01-30-09:10:52.852068] Deleting DB entry [autoconf@2.69%gcc@8.2.0 build_system=autotools patches=7793209 arch=linux-rhel8-x86_64/qyeibbq]\r\n==> [2024-01-30-09:10:53.003809] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:53.004028] Successfully uninstalled autoconf@2.69%gcc@8.2.0 build_system=autotools patches=7793209 arch=linux-rhel8-x86_64/qyeibbq\r\n==> [2024-01-30-09:10:53.004674] Deleting DB entry [perl@5.38.0%gcc@13.2.0+cpanm+opcode+open+shared+threads build_system=generic arch=linux-rhel8-zen3/gvdjedg]\r\n==> [2024-01-30-09:10:53.155779] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:53.155997] Successfully uninstalled perl@5.38.0%gcc@13.2.0+cpanm+opcode+open+shared+threads build_system=generic arch=linux-rhel8-zen3/gvdjedg\r\n==> [2024-01-30-09:10:53.156785] Deleting DB entry [perl@5.38.0%oneapi@2023.2.1+cpanm+opcode+open+shared+threads build_system=generic arch=linux-rhel8-zen3/ysmeitn]\r\n==> [2024-01-30-09:10:53.308263] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:53.308484] Successfully uninstalled perl@5.38.0%oneapi@2023.2.1+cpanm+opcode+open+shared+threads build_system=generic arch=linux-rhel8-zen3/ysmeitn\r\n==> [2024-01-30-09:10:53.309258] Deleting DB entry [m4@1.4.18%oneapi@2023.2.1+sigsegv build_system=autotools patches=3877ab5,d66f3af,fc9b616 arch=linux-rhel8-zen3/ztgp5yx]\r\n==> [2024-01-30-09:10:53.484077] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:53.484328] Successfully uninstalled m4@1.4.18%oneapi@2023.2.1+sigsegv build_system=autotools patches=3877ab5,d66f3af,fc9b616 arch=linux-rhel8-zen3/ztgp5yx\r\n==> [2024-01-30-09:10:53.485155] Deleting DB entry [libtool@2.4.6%oneapi@2023.2.1 build_system=autotools arch=linux-rhel8-zen3/a3ftdfz]\r\n==> [2024-01-30-09:10:53.637796] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:53.638008] Successfully uninstalled libtool@2.4.6%oneapi@2023.2.1 build_system=autotools arch=linux-rhel8-zen3/a3ftdfz\r\n==> [2024-01-30-09:10:53.638779] Deleting DB entry [automake@1.16.1%oneapi@2023.2.1 build_system=autotools arch=linux-rhel8-zen3/tygveie]\r\n==> [2024-01-30-09:10:53.791508] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:53.791722] Successfully uninstalled automake@1.16.1%oneapi@2023.2.1 build_system=autotools arch=linux-rhel8-zen3/tygveie\r\n==> [2024-01-30-09:10:53.792500] Deleting DB entry [autoconf@2.69%oneapi@2023.2.1 build_system=autotools patches=7793209 arch=linux-rhel8-zen3/esi5pk7]\r\n==> [2024-01-30-09:10:53.943468] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:53.943684] Successfully uninstalled autoconf@2.69%oneapi@2023.2.1 build_system=autotools patches=7793209 arch=linux-rhel8-zen3/esi5pk7\r\n==> [2024-01-30-09:10:54.090640] Removed stale DB entry for meson@1.2.1%gcc@12.3.0 build_system=python_pip patches=0f0b1bd arch=linux-rhel8-zen3/ldxapg2\r\n==> [2024-01-30-09:10:54.258916] Removed stale DB entry for py-wheel@0.37.1%gcc@12.3.0 build_system=generic arch=linux-rhel8-zen3/jbd5e2f\r\n==> [2024-01-30-09:10:54.406306] Removed stale DB entry for py-setuptools@68.0.0%gcc@12.3.0 build_system=generic arch=linux-rhel8-zen3/kebw4q7\r\n==> [2024-01-30-09:10:54.553217] Removed stale DB entry for ninja@1.11.1%gcc@12.3.0+re2c build_system=generic arch=linux-rhel8-zen3/excuuov\r\n==> [2024-01-30-09:10:54.699505] Removed stale DB entry for py-pip@23.1.2%gcc@12.3.0 build_system=generic arch=linux-rhel8-zen3/t7pvch3\r\n==> [2024-01-30-09:10:54.847247] Removed stale DB entry for mkfontdir@1.0.7%gcc@12.3.0 build_system=autotools arch=linux-rhel8-zen3/p2mn24w\r\n==> [2024-01-30-09:10:55.018434] Removed stale DB entry for bdftopcf@1.1%gcc@12.3.0 build_system=autotools arch=linux-rhel8-zen3/wgvochn\r\n==> [2024-01-30-09:10:55.165750] Removed stale DB entry for mkfontscale@1.2.2%gcc@12.3.0 build_system=autotools arch=linux-rhel8-zen3/jmse7rg\r\n==> [2024-01-30-09:10:55.313353] Removed stale DB entry for libxfont@1.5.4%gcc@12.3.0 build_system=autotools arch=linux-rhel8-zen3/4frv2wb\r\n==> [2024-01-30-09:10:55.459753] Removed stale DB entry for libfontenc@1.1.7%gcc@12.3.0 build_system=autotools arch=linux-rhel8-zen3/wtg2hdh\r\n==> [2024-01-30-09:10:55.605686] Removed stale DB entry for fontsproto@2.1.3%gcc@12.3.0 build_system=autotools arch=linux-rhel8-zen3/lpr3ibj\r\n==> [2024-01-30-09:10:55.751896] Removed stale DB entry for nasm@2.15.05%gcc@12.3.0 build_system=autotools arch=linux-rhel8-zen3/5hoqmkk\r\n==> [2024-01-30-09:10:55.772969] Deleting DB entry [flex@2.6.1%gcc@12.3.0+lex~nls build_system=autotools arch=linux-rhel8-zen3/3p7knkg]\r\n==> [2024-01-30-09:10:55.948200] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:55.948438] Successfully uninstalled flex@2.6.1%gcc@12.3.0+lex~nls build_system=autotools arch=linux-rhel8-zen3/3p7knkg\r\n==> [2024-01-30-09:10:56.099518] Removed stale DB entry for libxcrypt@4.4.35%gcc@13.2.0~obsolete_api build_system=autotools patches=4885da3 arch=linux-rhel8-zen3/6usoya3\r\n==> [2024-01-30-09:10:56.245757] Removed stale DB entry for perl@5.38.0%gcc@13.2.0+cpanm+opcode+open+shared+threads build_system=generic patches=714e4d1 arch=linux-rhel8-zen3/zs3nzv3\r\n==> [2024-01-30-09:10:56.246601] Deleting DB entry [gmake@4.2.1%gcc@13.2.0~guile build_system=autotools patches=ca60bd9,fe5b60d arch=linux-rhel8-zen3/qjg63sp]\r\n==> [2024-01-30-09:10:56.400722] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:56.400940] Successfully uninstalled gmake@4.2.1%gcc@13.2.0~guile build_system=autotools patches=ca60bd9,fe5b60d arch=linux-rhel8-zen3/qjg63sp\r\n==> [2024-01-30-09:10:56.402621] Deleting DB entry [cmake@3.26.3%gcc@13.2.0~doc+ncurses+ownlibs build_system=generic build_type=Release arch=linux-rhel8-zen3/rzihbzv]\r\n==> [2024-01-30-09:10:56.554260] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:56.554473] Successfully uninstalled cmake@3.26.3%gcc@13.2.0~doc+ncurses+ownlibs build_system=generic build_type=Release arch=linux-rhel8-zen3/rzihbzv\r\n==> [2024-01-30-09:10:56.560830] Deleting DB entry [findutils@4.6.0%gcc@13.2.0 build_system=autotools arch=linux-rhel8-zen3/lmiprfp]\r\n==> [2024-01-30-09:10:56.739687] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:56.739922] Successfully uninstalled findutils@4.6.0%gcc@13.2.0 build_system=autotools arch=linux-rhel8-zen3/lmiprfp\r\n==> [2024-01-30-09:10:56.763918] Deleting DB entry [bison@3.0.4%gcc@13.2.0 build_system=autotools patches=b72914f arch=linux-rhel8-zen3/5pckofr]\r\n==> [2024-01-30-09:10:56.918896] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:56.919115] Successfully uninstalled bison@3.0.4%gcc@13.2.0 build_system=autotools patches=b72914f arch=linux-rhel8-zen3/5pckofr\r\n==> [2024-01-30-09:10:56.919749] Deleting DB entry [diffutils@3.6%gcc@13.2.0 build_system=autotools arch=linux-rhel8-zen3/tv6hkyw]\r\n==> [2024-01-30-09:10:57.073411] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:57.073619] Successfully uninstalled diffutils@3.6%gcc@13.2.0 build_system=autotools arch=linux-rhel8-zen3/tv6hkyw\r\n==> [2024-01-30-09:10:57.220714] Removed stale DB entry for berkeley-db@18.1.40%gcc@13.2.0+cxx~docs+stl build_system=autotools patches=26090f4,b231fcc arch=linux-rhel8-zen3/ewcyrie\r\n==> [2024-01-30-09:10:57.221379] Deleting DB entry [m4@1.4.18%gcc@13.2.0+sigsegv build_system=autotools patches=3877ab5,fc9b616 arch=linux-rhel8-zen3/5vi6fcd]\r\n==> [2024-01-30-09:10:57.374368] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:57.374589] Successfully uninstalled m4@1.4.18%gcc@13.2.0+sigsegv build_system=autotools patches=3877ab5,fc9b616 arch=linux-rhel8-zen3/5vi6fcd\r\n==> [2024-01-30-09:10:57.375360] Deleting DB entry [libtool@2.4.6%gcc@13.2.0 build_system=autotools arch=linux-rhel8-zen3/mz44g5i]\r\n==> [2024-01-30-09:10:57.527817] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:57.528025] Successfully uninstalled libtool@2.4.6%gcc@13.2.0 build_system=autotools arch=linux-rhel8-zen3/mz44g5i\r\n==> [2024-01-30-09:10:57.528778] Deleting DB entry [automake@1.16.1%gcc@13.2.0 build_system=autotools arch=linux-rhel8-zen3/2xqogmg]\r\n==> [2024-01-30-09:10:57.704210] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:57.704430] Successfully uninstalled automake@1.16.1%gcc@13.2.0 build_system=autotools arch=linux-rhel8-zen3/2xqogmg\r\n==> [2024-01-30-09:10:57.705271] Deleting DB entry [autoconf@2.69%gcc@13.2.0 build_system=autotools patches=7793209 arch=linux-rhel8-zen3/nmlwmbe]\r\n==> [2024-01-30-09:10:57.858479] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:57.858692] Successfully uninstalled autoconf@2.69%gcc@13.2.0 build_system=autotools patches=7793209 arch=linux-rhel8-zen3/nmlwmbe\r\n==> [2024-01-30-09:10:58.007027] Removed stale DB entry for py-hatchling@1.17.0%gcc@12.3.0 build_system=python_pip arch=linux-rhel8-zen3/qmy3upc\r\n==> [2024-01-30-09:10:58.153573] Removed stale DB entry for py-pluggy@1.0.0%gcc@12.3.0 build_system=python_pip arch=linux-rhel8-zen3/krbo5b7\r\n==> [2024-01-30-09:10:58.300669] Removed stale DB entry for bc@1.07.1%gcc@12.3.0 build_system=autotools arch=linux-rhel8-zen3/eal463f\r\n==> [2024-01-30-09:10:58.469934] Removed stale DB entry for py-setuptools-scm@7.1.0%gcc@12.3.0+toml build_system=python_pip arch=linux-rhel8-zen3/fviwjc2\r\n==> [2024-01-30-09:10:58.619308] Removed stale DB entry for py-trove-classifiers@2023.3.9%gcc@12.3.0 build_system=python_pip arch=linux-rhel8-zen3/mbrsj7i\r\n==> [2024-01-30-09:10:58.767548] Removed stale DB entry for py-packaging@23.1%gcc@12.3.0 build_system=python_pip arch=linux-rhel8-zen3/6sxbjdi\r\n==> [2024-01-30-09:10:58.914435] Removed stale DB entry for py-tomli@2.0.1%gcc@12.3.0 build_system=python_pip arch=linux-rhel8-zen3/7ljhr4s\r\n==> [2024-01-30-09:10:59.061823] Removed stale DB entry for py-typing-extensions@4.6.3%gcc@12.3.0 build_system=python_pip arch=linux-rhel8-zen3/7cvl4da\r\n==> [2024-01-30-09:10:59.208635] Removed stale DB entry for py-pathspec@0.11.1%gcc@12.3.0 build_system=python_pip arch=linux-rhel8-zen3/uvggazc\r\n==> [2024-01-30-09:10:59.378022] Removed stale DB entry for py-calver@2022.6.26%gcc@12.3.0 build_system=python_pip arch=linux-rhel8-zen3/32duapn\r\n==> [2024-01-30-09:10:59.526139] Removed stale DB entry for py-flit-core@3.9.0%gcc@12.3.0 build_system=python_pip arch=linux-rhel8-zen3/hsnsg34\r\n==> [2024-01-30-09:10:59.674270] Removed stale DB entry for py-editables@0.3%gcc@12.3.0 build_system=python_pip arch=linux-rhel8-zen3/7qdeiyy\r\n==> [2024-01-30-09:10:59.675161] Deleting DB entry [gmake@4.2.1%gcc@13.2.0~guile build_system=autotools patches=ca60bd9,fe5b60d arch=linux-rhel8-zen3/jdrxeyi]\r\n==> [2024-01-30-09:10:59.829590] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:59.829812] Successfully uninstalled gmake@4.2.1%gcc@13.2.0~guile build_system=autotools patches=ca60bd9,fe5b60d arch=linux-rhel8-zen3/jdrxeyi\r\n==> [2024-01-30-09:10:59.830613] Deleting DB entry [cmake@3.26.3%gcc@13.2.0~doc+ncurses+ownlibs build_system=generic build_type=Release arch=linux-rhel8-zen3/bt6xv7m]\r\n==> [2024-01-30-09:10:59.983039] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:10:59.983260] Successfully uninstalled cmake@3.26.3%gcc@13.2.0~doc+ncurses+ownlibs build_system=generic build_type=Release arch=linux-rhel8-zen3/bt6xv7m\r\n==> [2024-01-30-09:11:00.154082] Removed stale DB entry for ed@1.4%gcc@12.3.0 build_system=autotools arch=linux-rhel8-zen3/nzrd3k7\r\n==> [2024-01-30-09:11:00.302188] Removed stale DB entry for py-wheel@0.37.1%gcc@12.3.0 build_system=generic arch=linux-rhel8-zen3/n6uoe5c\r\n==> [2024-01-30-09:11:00.449747] Removed stale DB entry for py-pip@23.1.2%gcc@12.3.0 build_system=generic arch=linux-rhel8-zen3/rrrbox2\r\n==> [2024-01-30-09:11:00.454710] Deleting DB entry [gawk@4.2.1%gcc@12.3.0~nls build_system=autotools arch=linux-rhel8-zen3/igodrix]\r\n==> [2024-01-30-09:11:00.609736] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:11:00.609953] Successfully uninstalled gawk@4.2.1%gcc@12.3.0~nls build_system=autotools arch=linux-rhel8-zen3/igodrix\r\n==> [2024-01-30-09:11:00.760867] Removed stale DB entry for gperf@3.1%gcc@12.3.0 build_system=autotools patches=3dd36db arch=linux-rhel8-zen3/qxqtpyl\r\n==> [2024-01-30-09:11:00.909314] Removed stale DB entry for texinfo@7.0.3%gcc@12.3.0 build_system=autotools arch=linux-rhel8-zen3/vaphgco\r\n==> [2024-01-30-09:11:00.909999] Deleting DB entry [bison@3.0.4%gcc@12.3.0 build_system=autotools patches=b72914f arch=linux-rhel8-zen3/vpmvlsj]\r\n==> [2024-01-30-09:11:01.087647] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:11:01.087882] Successfully uninstalled bison@3.0.4%gcc@12.3.0 build_system=autotools patches=b72914f arch=linux-rhel8-zen3/vpmvlsj\r\n==> [2024-01-30-09:11:01.240908] Removed stale DB entry for re2c@2.2%gcc@12.3.0 build_system=generic arch=linux-rhel8-zen3/opse342\r\n==> [2024-01-30-09:11:01.241572] Deleting DB entry [diffutils@3.6%gcc@12.3.0 build_system=autotools arch=linux-rhel8-zen3/3r64de5]\r\n==> [2024-01-30-09:11:01.397783] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:11:01.397994] Successfully uninstalled diffutils@3.6%gcc@12.3.0 build_system=autotools arch=linux-rhel8-zen3/3r64de5\r\n==> [2024-01-30-09:11:01.550126] Removed stale DB entry for go-bootstrap@1.17.13%gcc@12.3.0 build_system=generic arch=linux-rhel8-zen3/i5emmpc\r\n==> [2024-01-30-09:11:01.700418] Removed stale DB entry for scons@4.5.2%gcc@8.5.0 build_system=python_pip arch=linux-rhel8-x86_64/osuskrx\r\n==> [2024-01-30-09:11:01.873215] Removed stale DB entry for py-setuptools@68.0.0%gcc@8.5.0 build_system=generic arch=linux-rhel8-x86_64/i3desox\r\n==> [2024-01-30-09:11:02.023356] Removed stale DB entry for py-wheel@0.37.1%gcc@8.5.0 build_system=generic arch=linux-rhel8-x86_64/7ixiglk\r\n==> [2024-01-30-09:11:02.172506] Removed stale DB entry for py-pip@23.1.2%gcc@8.5.0 build_system=generic arch=linux-rhel8-x86_64/kpo3yyd\r\n==> [2024-01-30-09:11:02.321677] Removed stale DB entry for ed@1.4%gcc@8.5.0 build_system=autotools arch=linux-rhel8-zen/cr6nrqo\r\n==> [2024-01-30-09:11:02.470625] Removed stale DB entry for aocl-utils@4.1%aocc@4.1.0~doc~examples~ipo~tests build_system=cmake build_type=Release generator=make arch=linux-rhel8-zen3/yms6q4h\r\n==> [2024-01-30-09:11:02.471370] Deleting DB entry [gmake@4.2.1%aocc@4.1.0~guile build_system=autotools patches=ca60bd9,fe5b60d arch=linux-rhel8-zen3/n4y7gwc]\r\n==> [2024-01-30-09:11:02.627490] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:11:02.627709] Successfully uninstalled gmake@4.2.1%aocc@4.1.0~guile build_system=autotools patches=ca60bd9,fe5b60d arch=linux-rhel8-zen3/n4y7gwc\r\n==> [2024-01-30-09:11:02.628347] Deleting DB entry [cmake@3.26.3%aocc@4.1.0~doc+ncurses+ownlibs build_system=generic build_type=Release arch=linux-rhel8-zen3/lhur44c]\r\n==> [2024-01-30-09:11:02.804333] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:11:02.804565] Successfully uninstalled cmake@3.26.3%aocc@4.1.0~doc+ncurses+ownlibs build_system=generic build_type=Release arch=linux-rhel8-zen3/lhur44c\r\n==> [2024-01-30-09:11:02.954573] Removed stale DB entry for python@3.10.10%aocc@4.1.0+bz2+crypt+ctypes+dbm~debug+libxml2+lzma~nis~optimizations+pic+pyexpat+pythoncmd+readline+shared+sqlite3+ssl~tkinter+uuid+zlib build_system=generic patches=0d98e93,7d40923,f2fd060 arch=linux-rhel8-zen3/altrzco\r\n==> [2024-01-30-09:11:03.104008] Removed stale DB entry for perl@5.38.0%aocc@4.1.0+cpanm+opcode+open+shared+threads build_system=generic patches=714e4d1 arch=linux-rhel8-zen3/ejopj53\r\n==> [2024-01-30-09:11:03.104688] Deleting DB entry [pkgconf@1.4.2%aocc@4.1.0 build_system=autotools arch=linux-rhel8-zen3/ziytjfh]\r\n==> [2024-01-30-09:11:03.258704] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:11:03.258916] Successfully uninstalled pkgconf@1.4.2%aocc@4.1.0 build_system=autotools arch=linux-rhel8-zen3/ziytjfh\r\n==> [2024-01-30-09:11:03.259541] Deleting DB entry [diffutils@3.6%aocc@4.1.0 build_system=autotools arch=linux-rhel8-zen3/dtajgq3]\r\n==> [2024-01-30-09:11:03.412978] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:11:03.413201] Successfully uninstalled diffutils@3.6%aocc@4.1.0 build_system=autotools arch=linux-rhel8-zen3/dtajgq3\r\n==> [2024-01-30-09:11:03.582819] Removed stale DB entry for berkeley-db@18.1.40%aocc@4.1.0+cxx~docs+stl build_system=autotools patches=26090f4,b231fcc arch=linux-rhel8-zen3/am7qo6b\r\n==> [2024-01-30-09:11:03.583798] Deleting DB entry [m4@1.4.18%aocc@4.1.0+sigsegv build_system=autotools patches=3877ab5,fc9b616 arch=linux-rhel8-zen3/gjnckac]\r\n==> [2024-01-30-09:11:03.737423] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:11:03.737648] Successfully uninstalled m4@1.4.18%aocc@4.1.0+sigsegv build_system=autotools patches=3877ab5,fc9b616 arch=linux-rhel8-zen3/gjnckac\r\n==> [2024-01-30-09:11:03.738406] Deleting DB entry [libtool@2.4.6%aocc@4.1.0 build_system=autotools arch=linux-rhel8-zen3/qumkytb]\r\n==> [2024-01-30-09:11:03.890879] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:11:03.891095] Successfully uninstalled libtool@2.4.6%aocc@4.1.0 build_system=autotools arch=linux-rhel8-zen3/qumkytb\r\n==> [2024-01-30-09:11:03.891856] Deleting DB entry [automake@1.16.1%aocc@4.1.0 build_system=autotools arch=linux-rhel8-zen3/jphkudh]\r\n==> [2024-01-30-09:11:04.043822] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:11:04.044033] Successfully uninstalled automake@1.16.1%aocc@4.1.0 build_system=autotools arch=linux-rhel8-zen3/jphkudh\r\n==> [2024-01-30-09:11:04.044803] Deleting DB entry [autoconf@2.69%aocc@4.1.0 build_system=autotools patches=7793209 arch=linux-rhel8-zen3/ganbnnn]\r\n==> [2024-01-30-09:11:04.196344] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:11:04.196560] Successfully uninstalled autoconf@2.69%aocc@4.1.0 build_system=autotools patches=7793209 arch=linux-rhel8-zen3/ganbnnn\r\n==> [2024-01-30-09:11:04.197324] Deleting DB entry [pkgconf@1.4.2%gcc@13.2.0 build_system=autotools arch=linux-rhel8-zen3/7kciiqu]\r\n==> [2024-01-30-09:11:04.374911] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:11:04.375143] Successfully uninstalled pkgconf@1.4.2%gcc@13.2.0 build_system=autotools arch=linux-rhel8-zen3/7kciiqu\r\n==> [2024-01-30-09:11:04.523653] Removed stale DB entry for zlib-ng@2.1.3%gcc@13.2.0+compat+opt build_system=autotools patches=299b958,ae9077a,b692621 arch=linux-rhel8-zen3/svjfef4\r\n==> [2024-01-30-09:11:04.670952] Removed stale DB entry for util-macros@1.19.3%gcc@13.2.0 build_system=autotools arch=linux-rhel8-zen3/fubqshz\r\n==> [2024-01-30-09:11:04.671768] Deleting DB entry [libtool@2.4.6%gcc@13.2.0 build_system=autotools arch=linux-rhel8-zen3/juxkmgg]\r\n==> [2024-01-30-09:11:04.823622] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:11:04.823831] Successfully uninstalled libtool@2.4.6%gcc@13.2.0 build_system=autotools arch=linux-rhel8-zen3/juxkmgg\r\n==> [2024-01-30-09:11:04.824582] Deleting DB entry [flex@2.6.1%gcc@8.5.0+lex~nls build_system=autotools arch=linux-rhel8-x86_64/x2a2zqx]\r\n==> [2024-01-30-09:11:04.979166] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:11:04.979391] Successfully uninstalled flex@2.6.1%gcc@8.5.0+lex~nls build_system=autotools arch=linux-rhel8-x86_64/x2a2zqx\r\n==> [2024-01-30-09:11:04.980129] Deleting DB entry [bison@3.0.4%gcc@8.5.0 build_system=autotools patches=b72914f arch=linux-rhel8-x86_64/p4kskul]\r\n==> [2024-01-30-09:11:05.153484] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:11:05.153771] Successfully uninstalled bison@3.0.4%gcc@8.5.0 build_system=autotools patches=b72914f arch=linux-rhel8-x86_64/p4kskul\r\n==> [2024-01-30-09:11:05.304842] Removed stale DB entry for util-macros@1.19.3%oneapi@2023.2.1 build_system=autotools arch=linux-rhel8-x86_64/hbo2q66\r\n==> [2024-01-30-09:11:05.305677] Deleting DB entry [pkgconf@1.4.2%oneapi@2023.2.1 build_system=autotools arch=linux-rhel8-x86_64/nk3vjog]\r\n==> [2024-01-30-09:11:05.459514] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:11:05.459726] Successfully uninstalled pkgconf@1.4.2%oneapi@2023.2.1 build_system=autotools arch=linux-rhel8-x86_64/nk3vjog\r\n==> [2024-01-30-09:11:05.460470] Deleting DB entry [libtool@2.4.6%oneapi@2023.2.1 build_system=autotools arch=linux-rhel8-x86_64/rn4clbw]\r\n==> [2024-01-30-09:11:05.613431] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:11:05.613640] Successfully uninstalled libtool@2.4.6%oneapi@2023.2.1 build_system=autotools arch=linux-rhel8-x86_64/rn4clbw\r\n==> [2024-01-30-09:11:05.614385] Deleting DB entry [gmake@4.2.1%oneapi@2023.2.1~guile build_system=autotools patches=ca60bd9,fe5b60d arch=linux-rhel8-x86_64/lec47bf]\r\n==> [2024-01-30-09:11:05.769303] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:11:05.769524] Successfully uninstalled gmake@4.2.1%oneapi@2023.2.1~guile build_system=autotools patches=ca60bd9,fe5b60d arch=linux-rhel8-x86_64/lec47bf\r\n==> [2024-01-30-09:11:05.770291] Deleting DB entry [cmake@3.26.3%oneapi@2023.2.1~doc+ncurses+ownlibs build_system=generic build_type=Release arch=linux-rhel8-x86_64/zxurgpo]\r\n==> [2024-01-30-09:11:05.922271] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:11:05.922490] Successfully uninstalled cmake@3.26.3%oneapi@2023.2.1~doc+ncurses+ownlibs build_system=generic build_type=Release arch=linux-rhel8-x86_64/zxurgpo\r\n==> [2024-01-30-09:11:06.093323] Removed stale DB entry for util-macros@1.19.3%gcc@13.2.0 build_system=autotools arch=linux-rhel8-x86_64/3h3us26\r\n==> [2024-01-30-09:11:06.094267] Deleting DB entry [pkgconf@1.4.2%gcc@13.2.0 build_system=autotools arch=linux-rhel8-x86_64/jfqjvoy]\r\n==> [2024-01-30-09:11:06.248860] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:11:06.249072] Successfully uninstalled pkgconf@1.4.2%gcc@13.2.0 build_system=autotools arch=linux-rhel8-x86_64/jfqjvoy\r\n==> [2024-01-30-09:11:06.249812] Deleting DB entry [libtool@2.4.6%gcc@13.2.0 build_system=autotools arch=linux-rhel8-x86_64/lbwjqv4]\r\n==> [2024-01-30-09:11:06.402336] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:11:06.402549] Successfully uninstalled libtool@2.4.6%gcc@13.2.0 build_system=autotools arch=linux-rhel8-x86_64/lbwjqv4\r\n==> [2024-01-30-09:11:06.551830] Removed stale DB entry for texinfo@7.0.3%gcc@8.5.0 build_system=autotools arch=linux-rhel8-x86_64/vlbzcls\r\n==> [2024-01-30-09:11:06.698669] Removed stale DB entry for perl@5.38.0%gcc@8.5.0+cpanm+opcode+open+shared+threads build_system=generic patches=714e4d1 arch=linux-rhel8-x86_64/bufuelm\r\n==> [2024-01-30-09:11:06.870224] Removed stale DB entry for gdbm@1.23%gcc@8.5.0 build_system=autotools arch=linux-rhel8-x86_64/62lackv\r\n==> [2024-01-30-09:11:07.020558] Removed stale DB entry for gettext@0.21.1%gcc@8.5.0+bzip2+curses+git~libunistring+libxml2+tar+xz build_system=autotools arch=linux-rhel8-x86_64/dscckcz\r\n==> [2024-01-30-09:11:07.172519] Removed stale DB entry for readline@8.2%gcc@8.5.0 build_system=autotools patches=bbf97f1 arch=linux-rhel8-x86_64/5x2jgec\r\n==> [2024-01-30-09:11:07.323279] Removed stale DB entry for libxml2@2.10.3%gcc@8.5.0~python build_system=autotools arch=linux-rhel8-x86_64/32cgqtf\r\n==> [2024-01-30-09:11:07.472821] Removed stale DB entry for ncurses@6.4%gcc@8.5.0~symlinks+termlib abi=none build_system=autotools arch=linux-rhel8-x86_64/xus2zn4\r\n==> [2024-01-30-09:11:07.473621] Deleting DB entry [tar@1.30%gcc@8.5.0 build_system=autotools zip=pigz arch=linux-rhel8-x86_64/6kbkibg]\r\n==> [2024-01-30-09:11:07.628981] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:11:07.629211] Successfully uninstalled tar@1.30%gcc@8.5.0 build_system=autotools zip=pigz arch=linux-rhel8-x86_64/6kbkibg\r\n==> [2024-01-30-09:11:07.799043] Removed stale DB entry for xz@5.4.1%gcc@8.5.0~pic build_system=autotools libs=shared,static arch=linux-rhel8-x86_64/sx6n3fo\r\n==> [2024-01-30-09:11:07.799867] Deleting DB entry [pkgconf@1.4.2%gcc@8.5.0 build_system=autotools arch=linux-rhel8-x86_64/cin6ndp]\r\n==> [2024-01-30-09:11:07.955306] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:11:07.955525] Successfully uninstalled pkgconf@1.4.2%gcc@8.5.0 build_system=autotools arch=linux-rhel8-x86_64/cin6ndp\r\n==> [2024-01-30-09:11:08.103673] Removed stale DB entry for libiconv@1.17%gcc@8.5.0 build_system=autotools libs=shared,static arch=linux-rhel8-x86_64/tjobyig\r\n==> [2024-01-30-09:11:08.251681] Removed stale DB entry for autoconf-archive@2023.02.20%gcc@8.5.0 build_system=autotools arch=linux-rhel8-x86_64/yiqadis\r\n==> [2024-01-30-09:11:08.252487] Deleting DB entry [m4@1.4.18%gcc@8.5.0+sigsegv build_system=autotools patches=3877ab5,fc9b616 arch=linux-rhel8-x86_64/lwrmt6x]\r\n==> [2024-01-30-09:11:08.405725] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:11:08.405945] Successfully uninstalled m4@1.4.18%gcc@8.5.0+sigsegv build_system=autotools patches=3877ab5,fc9b616 arch=linux-rhel8-x86_64/lwrmt6x\r\n==> [2024-01-30-09:11:08.406693] Deleting DB entry [libtool@2.4.6%gcc@8.5.0 build_system=autotools arch=linux-rhel8-x86_64/7abpuln]\r\n==> [2024-01-30-09:11:08.584305] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:11:08.584545] Successfully uninstalled libtool@2.4.6%gcc@8.5.0 build_system=autotools arch=linux-rhel8-x86_64/7abpuln\r\n==> [2024-01-30-09:11:08.585367] Deleting DB entry [automake@1.16.1%gcc@8.5.0 build_system=autotools arch=linux-rhel8-x86_64/sqbvkdv]\r\n==> [2024-01-30-09:11:08.738687] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:11:08.738898] Successfully uninstalled automake@1.16.1%gcc@8.5.0 build_system=autotools arch=linux-rhel8-x86_64/sqbvkdv\r\n==> [2024-01-30-09:11:08.739654] Deleting DB entry [autoconf@2.69%gcc@8.5.0 build_system=autotools patches=7793209 arch=linux-rhel8-x86_64/mh5fu5y]\r\n==> [2024-01-30-09:11:08.892455] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:11:08.892678] Successfully uninstalled autoconf@2.69%gcc@8.5.0 build_system=autotools patches=7793209 arch=linux-rhel8-x86_64/mh5fu5y\r\n==> [2024-01-30-09:11:09.042954] Removed stale DB entry for texinfo@7.0.3%gcc@13.1.0 build_system=autotools arch=linux-rhel8-x86_64/xtbmal2\r\n==> [2024-01-30-09:11:09.190401] Removed stale DB entry for perl@5.38.0%gcc@13.1.0+cpanm+opcode+open+shared+threads build_system=generic patches=714e4d1 arch=linux-rhel8-x86_64/r23nvsv\r\n==> [2024-01-30-09:11:09.338370] Removed stale DB entry for gdbm@1.23%gcc@13.1.0 build_system=autotools arch=linux-rhel8-x86_64/semtoyx\r\n==> [2024-01-30-09:11:09.508020] Removed stale DB entry for gettext@0.21.1%gcc@13.1.0+bzip2+curses+git~libunistring+libxml2+tar+xz build_system=autotools arch=linux-rhel8-x86_64/hep4a44\r\n==> [2024-01-30-09:11:09.655878] Removed stale DB entry for readline@8.2%gcc@13.1.0 build_system=autotools patches=bbf97f1 arch=linux-rhel8-x86_64/kxq3n4d\r\n==> [2024-01-30-09:11:09.802932] Removed stale DB entry for libxml2@2.10.3%gcc@13.1.0~python build_system=autotools arch=linux-rhel8-x86_64/ywv7grn\r\n==> [2024-01-30-09:11:09.950071] Removed stale DB entry for ncurses@6.4%gcc@13.1.0~symlinks+termlib abi=none build_system=autotools arch=linux-rhel8-x86_64/ebr34is\r\n==> [2024-01-30-09:11:10.097133] Removed stale DB entry for bzip2@1.0.8%gcc@13.1.0~debug~pic+shared build_system=generic arch=linux-rhel8-x86_64/v6p4cro\r\n==> [2024-01-30-09:11:10.267939] Removed stale DB entry for berkeley-db@18.1.40%gcc@13.1.0+cxx~docs+stl build_system=autotools patches=26090f4,b231fcc arch=linux-rhel8-x86_64/gh2j7bk\r\n==> [2024-01-30-09:11:10.268998] Deleting DB entry [tar@1.30%gcc@13.1.0 build_system=autotools zip=pigz arch=linux-rhel8-x86_64/3cae2eg]\r\n==> [2024-01-30-09:11:10.425103] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:11:10.425340] Successfully uninstalled tar@1.30%gcc@13.1.0 build_system=autotools zip=pigz arch=linux-rhel8-x86_64/3cae2eg\r\n==> [2024-01-30-09:11:10.575383] Removed stale DB entry for xz@5.4.1%gcc@13.1.0~pic build_system=autotools libs=shared,static arch=linux-rhel8-x86_64/j5jvah3\r\n==> [2024-01-30-09:11:10.724395] Removed stale DB entry for libiconv@1.17%gcc@13.1.0 build_system=autotools libs=shared,static arch=linux-rhel8-x86_64/gj54gie\r\n==> [2024-01-30-09:11:10.725040] Deleting DB entry [pkgconf@1.4.2%gcc@13.1.0 build_system=autotools arch=linux-rhel8-x86_64/pc4rnf6]\r\n==> [2024-01-30-09:11:10.879907] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:11:10.880115] Successfully uninstalled pkgconf@1.4.2%gcc@13.1.0 build_system=autotools arch=linux-rhel8-x86_64/pc4rnf6\r\n==> [2024-01-30-09:11:10.880730] Deleting DB entry [diffutils@3.6%gcc@13.1.0 build_system=autotools arch=linux-rhel8-x86_64/lditmw4]\r\n==> [2024-01-30-09:11:11.034268] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:11:11.034479] Successfully uninstalled diffutils@3.6%gcc@13.1.0 build_system=autotools arch=linux-rhel8-x86_64/lditmw4\r\n==> [2024-01-30-09:11:11.205316] Removed stale DB entry for patchelf@0.17.2%gcc@8.5.0 build_system=autotools arch=linux-rhel8-x86_64/absixwb\r\n==> [2024-01-30-09:11:11.206295] Deleting DB entry [gmake@4.2.1%gcc@8.5.0~guile build_system=autotools patches=ca60bd9,fe5b60d arch=linux-rhel8-x86_64/pw2df4u]\r\n==> [2024-01-30-09:11:11.361572] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:11:11.361795] Successfully uninstalled gmake@4.2.1%gcc@8.5.0~guile build_system=autotools patches=ca60bd9,fe5b60d arch=linux-rhel8-x86_64/pw2df4u\r\n==> [2024-01-30-09:11:11.362554] Deleting DB entry [gawk@4.2.1%gcc@8.5.0~nls build_system=autotools arch=linux-rhel8-x86_64/65ducor]\r\n==> [2024-01-30-09:11:11.516373] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:11:11.516588] Successfully uninstalled gawk@4.2.1%gcc@8.5.0~nls build_system=autotools arch=linux-rhel8-x86_64/65ducor\r\n==> [2024-01-30-09:11:11.517220] Deleting DB entry [diffutils@3.6%gcc@8.5.0 build_system=autotools arch=linux-rhel8-x86_64/csu422x]\r\n==> [2024-01-30-09:11:11.671508] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:11:11.671720] Successfully uninstalled diffutils@3.6%gcc@8.5.0 build_system=autotools arch=linux-rhel8-x86_64/csu422x\r\n==> [2024-01-30-09:11:11.672343] Deleting DB entry [pkgconf@1.4.2%gcc@8.5.0 build_system=autotools arch=linux-rhel8-x86_64/qbpp2be]\r\n==> [2024-01-30-09:11:11.826186] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:11:11.826400] Successfully uninstalled pkgconf@1.4.2%gcc@8.5.0 build_system=autotools arch=linux-rhel8-x86_64/qbpp2be\r\n==> [2024-01-30-09:11:11.827144] Deleting DB entry [m4@1.4.18%gcc@13.1.0+sigsegv build_system=autotools patches=3877ab5,fc9b616 arch=linux-rhel8-x86_64/rjaxpp4]\r\n==> [2024-01-30-09:11:12.003713] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:11:12.003959] Successfully uninstalled m4@1.4.18%gcc@13.1.0+sigsegv build_system=autotools patches=3877ab5,fc9b616 arch=linux-rhel8-x86_64/rjaxpp4\r\n==> [2024-01-30-09:11:12.004794] Deleting DB entry [libtool@2.4.6%gcc@13.1.0 build_system=autotools arch=linux-rhel8-x86_64/qgug4pg]\r\n==> [2024-01-30-09:11:12.157364] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:11:12.157578] Successfully uninstalled libtool@2.4.6%gcc@13.1.0 build_system=autotools arch=linux-rhel8-x86_64/qgug4pg\r\n==> [2024-01-30-09:11:12.158344] Deleting DB entry [automake@1.16.1%gcc@13.1.0 build_system=autotools arch=linux-rhel8-x86_64/lnax7to]\r\n==> [2024-01-30-09:11:12.311324] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:11:12.311544] Successfully uninstalled automake@1.16.1%gcc@13.1.0 build_system=autotools arch=linux-rhel8-x86_64/lnax7to\r\n==> [2024-01-30-09:11:12.312318] Deleting DB entry [autoconf@2.69%gcc@13.1.0 build_system=autotools patches=7793209 arch=linux-rhel8-x86_64/4troxoi]\r\n==> [2024-01-30-09:11:12.464999] NO MODULE WRITTEN: list of enabled module files is empty\r\n==> [2024-01-30-09:11:12.465226] Successfully uninstalled autoconf@2.69%gcc@13.1.0 build_system=autotools patches=7793209 arch=linux-rhel8-x86_64/4troxoi\r\n==> [2024-01-30-09:11:12.614773] Removed stale DB entry for util-macros@1.19.3%gcc@8.5.0 build_system=autotools arch=linux-rhel8-x86_64/pn7oh53\r\n==> [2024-01-30-09:11:12.787107] Removed stale DB entry for gawk@5.2.1%gcc@8.5.0~nls build_system=autotools arch=linux-rhel8-x86_64/kbgjcjg\r\n==> [2024-01-30-09:11:12.934603] Removed stale DB entry for automake@1.16.5%gcc@8.5.0 build_system=autotools arch=linux-rhel8-x86_64/vfrumgz\r\n==> [2024-01-30-09:11:13.081496] Removed stale DB entry for autoconf@2.69%gcc@8.5.0 build_system=autotools patches=35c4492,7793209,a49dd5b arch=linux-rhel8-x86_64/dm56cpm\r\n==> [2024-01-30-09:11:13.227576] Removed stale DB entry for m4@1.4.19%gcc@8.5.0+sigsegv build_system=autotools patches=9dc5fbd,bfdffa7 arch=linux-rhel8-x86_64/47bixvi\r\n==> [2024-01-30-09:11:13.373720] Removed stale DB entry for gmake@4.4.1%gcc@8.5.0~guile build_system=autotools arch=linux-rhel8-x86_64/m6v3x6l\r\n==> [2024-01-30-09:11:13.520802] Removed stale DB entry for autoconf-archive@2023.02.20%gcc@8.5.0 build_system=autotools arch=linux-rhel8-x86_64/incdk5s\r\n==> [2024-01-30-09:11:13.689995] Removed stale DB entry for libsigsegv@2.14%gcc@8.5.0 build_system=autotools arch=linux-rhel8-x86_64/tqpwu4e\r\n==> [2024-01-30-09:11:13.838464] Removed stale DB entry for bc@1.07.1%gcc@8.5.0 build_system=autotools arch=linux-rhel8-x86_64/k6ksegc\r\n==> [2024-01-30-09:11:13.985823] Removed stale DB entry for diffutils@3.9%gcc@8.5.0 build_system=autotools arch=linux-rhel8-x86_64/lusc554\r\n==> [2024-01-30-09:11:14.132593] Removed stale DB entry for ca-certificates-mozilla@2023-01-10%gcc@8.5.0 build_system=generic arch=linux-rhel8-x86_64/l7frxqr\r\n==> [2024-01-30-09:11:14.281001] Removed stale DB entry for pkgconf@1.9.5%gcc@8.5.0 build_system=autotools arch=linux-rhel8-x86_64/lpxmbwa\r\n==> [2024-01-30-09:11:14.427792] Removed stale DB entry for ed@1.4%gcc@8.5.0 build_system=autotools arch=linux-rhel8-x86_64/qswnh4t\r\n```\nCan you share the file `$spack/opt/spack/.spack-db/index.json` here for reproduction?\nHere's mine: [index.json](https://github.com/spack/spack/files/14104611/index.json)\r\n\nThis has now happened to me on another system:\r\n```\r\n* **Spack:** 0.22.0.dev0 (28eea2994f04ec73f647cf636de433fbc9317c4c)\r\n* **Python:** 3.12.1\r\n* **Platform:** linux-fedora_asahi_remix39-m1\r\n* **Concretizer:** clingo\r\n```\r\nThis time there is no hang, but the debug output is essentially the same, and running the command has no effect on the installed packages.\r\n```console\r\n➜ ~ spack -d gc\r\n==> [2024-01-30-20:41:02.952223] Reading config from file /home/benwibking/spack/etc/spack/defaults/config.yaml\r\n==> [2024-01-30-20:41:02.964568] Imported gc from built-in commands\r\n==> [2024-01-30-20:41:02.964826] Imported gc from built-in commands\r\n==> [2024-01-30-20:41:02.965185] DATABASE LOCK TIMEOUT: 60s\r\n==> [2024-01-30-20:41:02.965209] PACKAGE LOCK TIMEOUT: No timeout\r\n -- linux-fedora_asahi_remix39-m1 / gcc@11.4.0 -------------------\r\n 7yqteiy autoconf@2.72 ktuokka gnuconfig@2022-09-17 tnql2tl ninja@1.11.1\r\n btlgkcf autoconf-archive@2023.02.20 3c6e2ak gperf@3.1 moeuk5t perl-data-dumper@2.173\r\n 7xuuwt3 automake@1.16.5 eeadzwn libfontenc@1.1.7 64nyq4c py-cython@0.29.36\r\n piijvrp bdftopcf@1.1 c6xldj4 libsigsegv@2.14 2jqi7am py-mako@1.2.4\r\n cks5flk bison@3.8.2 hbnjtjz libtool@2.4.7 blxuff2 py-markupsafe@2.1.3\r\n fxglcrh ca-certificates-mozilla@2023-05-30 tddpgjs libxfont@1.5.4 2y4fqsf py-pip@23.1.2\r\n dlby55h cmake@3.27.9 qks4mw7 libxkbfile@1.1.2 ubjp5cg py-wheel@0.41.2\r\n 5j3ail6 diffutils@3.9 ncqdpur m4@1.4.19 lozdq7j re2c@2.2\r\n bdnygjk findutils@4.9.0 fbqfk4m meson@1.2.2 m5cbf5k which@2.21\r\n wekchao flex@2.6.3 fbw3wkg mkfontdir@1.0.7 4mv662w xkbcomp@1.4.6\r\n 44wi7zv fontsproto@2.1.3 svbp3l4 mkfontscale@1.2.2\r\n b3re3p4 gmake@4.4.1 hozmtc4 nasm@2.15.05\r\n\r\n -- linux-fedora_asahi_remix39-m1 / gcc@13.2.1 -------------------\r\n b7durqz autoconf@2.72 4h2pk6h gawk@5.2.2 lliinig libtool@2.4.7 ow3wptq readline@8.2\r\n mjjh5do autoconf-archive@2023.02.20 ekjswly gdbm@1.23 5pokogp libxml2@2.10.3 gfdgwyd tar@1.34\r\n pv45ziw automake@1.16.5 jnsrrlw gettext@0.22.4 mxus2sy m4@1.4.19 niuhu6j texinfo@7.0.3\r\n tdks3zu berkeley-db@18.1.40 egn3466 gmake@4.4.1 hbrjuii ncurses@6.4 rkbohcg xz@5.4.1\r\n hgu7dv6 bzip2@1.0.8 wkz5hfj gnuconfig@2022-09-17 5ttct4z perl@5.38.0\r\n 22zrc5m diffutils@3.9 tvqiuir libiconv@1.17 e4jpvly pigz@2.8\r\n mvhrfqv findutils@4.9.0 vxfhjon libsigsegv@2.14 ucbzg3i pkgconf@1.9.5\r\n\r\n==> [2024-01-30-20:41:02.980957] 59 packages will be uninstalled. Do you want to proceed? [y/N] y\r\n==> [2024-01-30-20:41:03.800847] Removed stale DB entry for xkbcomp@1.4.6%gcc@11.4.0 build_system=autotools arch=linux-fedora_asahi_remix39-m1/4mv662w\r\n==> [2024-01-30-20:41:03.821076] Removed stale DB entry for mkfontdir@1.0.7%gcc@11.4.0 build_system=autotools arch=linux-fedora_asahi_remix39-m1/fbw3wkg\r\n==> [2024-01-30-20:41:03.840837] Removed stale DB entry for bdftopcf@1.1%gcc@11.4.0 build_system=autotools arch=linux-fedora_asahi_remix39-m1/piijvrp\r\n==> [2024-01-30-20:41:03.860376] Removed stale DB entry for libxkbfile@1.1.2%gcc@11.4.0 build_system=autotools arch=linux-fedora_asahi_remix39-m1/qks4mw7\r\n==> [2024-01-30-20:41:03.880368] Removed stale DB entry for py-mako@1.2.4%gcc@11.4.0 build_system=python_pip arch=linux-fedora_asahi_remix39-m1/2jqi7am\r\n==> [2024-01-30-20:41:03.899814] Removed stale DB entry for mkfontscale@1.2.2%gcc@11.4.0 build_system=autotools arch=linux-fedora_asahi_remix39-m1/svbp3l4\r\n==> [2024-01-30-20:41:03.919025] Removed stale DB entry for libxfont@1.5.4%gcc@11.4.0 build_system=autotools arch=linux-fedora_asahi_remix39-m1/tddpgjs\r\n==> [2024-01-30-20:41:03.937651] Removed stale DB entry for py-markupsafe@2.1.3%gcc@11.4.0 build_system=python_pip arch=linux-fedora_asahi_remix39-m1/blxuff2\r\n==> [2024-01-30-20:41:03.956628] Removed stale DB entry for py-cython@0.29.36%gcc@11.4.0 build_system=python_pip patches=c4369ad arch=linux-fedora_asahi_remix39-m1/64nyq4c\r\n==> [2024-01-30-20:41:03.975438] Removed stale DB entry for meson@1.2.2%gcc@11.4.0 build_system=python_pip patches=0f0b1bd,ae59765 arch=linux-fedora_asahi_remix39-m1/fbqfk4m\r\n==> [2024-01-30-20:41:03.994289] Removed stale DB entry for py-wheel@0.41.2%gcc@11.4.0 build_system=generic arch=linux-fedora_asahi_remix39-m1/ubjp5cg\r\n==> [2024-01-30-20:41:04.013414] Removed stale DB entry for py-pip@23.1.2%gcc@11.4.0 build_system=generic arch=linux-fedora_asahi_remix39-m1/2y4fqsf\r\n==> [2024-01-30-20:41:04.032289] Removed stale DB entry for ninja@1.11.1%gcc@11.4.0+re2c build_system=generic arch=linux-fedora_asahi_remix39-m1/tnql2tl\r\n==> [2024-01-30-20:41:04.051511] Removed stale DB entry for cmake@3.27.9%gcc@11.4.0~doc+ncurses+ownlibs build_system=generic build_type=Release arch=linux-fedora_asahi_remix39-m1/dlby55h\r\n==> [2024-01-30-20:41:04.070742] Removed stale DB entry for automake@1.16.5%gcc@11.4.0 build_system=autotools arch=linux-fedora_asahi_remix39-m1/7xuuwt3\r\n==> [2024-01-30-20:41:04.089912] Removed stale DB entry for flex@2.6.3%gcc@11.4.0+lex~nls build_system=autotools arch=linux-fedora_asahi_remix39-m1/wekchao\r\n==> [2024-01-30-20:41:04.109230] Removed stale DB entry for perl-data-dumper@2.173%gcc@11.4.0 build_system=perl arch=linux-fedora_asahi_remix39-m1/moeuk5t\r\n==> [2024-01-30-20:41:04.128310] Removed stale DB entry for autoconf@2.72%gcc@11.4.0 build_system=autotools arch=linux-fedora_asahi_remix39-m1/7yqteiy\r\n==> [2024-01-30-20:41:04.154667] Removed stale DB entry for bison@3.8.2%gcc@11.4.0 build_system=autotools arch=linux-fedora_asahi_remix39-m1/cks5flk\r\n==> [2024-01-30-20:41:04.174004] Removed stale DB entry for libtool@2.4.7%gcc@11.4.0 build_system=autotools arch=linux-fedora_asahi_remix39-m1/hbnjtjz\r\n==> [2024-01-30-20:41:04.193443] Removed stale DB entry for libfontenc@1.1.7%gcc@11.4.0 build_system=autotools arch=linux-fedora_asahi_remix39-m1/eeadzwn\r\n==> [2024-01-30-20:41:04.212575] Removed stale DB entry for m4@1.4.19%gcc@11.4.0+sigsegv build_system=autotools patches=9dc5fbd,bfdffa7 arch=linux-fedora_asahi_remix39-m1/ncqdpur\r\n==> [2024-01-30-20:41:04.231717] Removed stale DB entry for fontsproto@2.1.3%gcc@11.4.0 build_system=autotools arch=linux-fedora_asahi_remix39-m1/44wi7zv\r\n==> [2024-01-30-20:41:04.250839] Removed stale DB entry for diffutils@3.9%gcc@11.4.0 build_system=autotools arch=linux-fedora_asahi_remix39-m1/5j3ail6\r\n==> [2024-01-30-20:41:04.270056] Removed stale DB entry for which@2.21%gcc@11.4.0 build_system=autotools arch=linux-fedora_asahi_remix39-m1/m5cbf5k\r\n==> [2024-01-30-20:41:04.289269] Removed stale DB entry for libsigsegv@2.14%gcc@11.4.0 build_system=autotools arch=linux-fedora_asahi_remix39-m1/c6xldj4\r\n==> [2024-01-30-20:41:04.308024] Removed stale DB entry for nasm@2.15.05%gcc@11.4.0 build_system=autotools arch=linux-fedora_asahi_remix39-m1/hozmtc4\r\n==> [2024-01-30-20:41:04.327150] Removed stale DB entry for autoconf-archive@2023.02.20%gcc@11.4.0 build_system=autotools arch=linux-fedora_asahi_remix39-m1/btlgkcf\r\n==> [2024-01-30-20:41:04.345770] Removed stale DB entry for findutils@4.9.0%gcc@11.4.0 build_system=autotools patches=440b954 arch=linux-fedora_asahi_remix39-m1/bdnygjk\r\n==> [2024-01-30-20:41:04.365071] Removed stale DB entry for gperf@3.1%gcc@11.4.0 build_system=autotools patches=3dd36db arch=linux-fedora_asahi_remix39-m1/3c6e2ak\r\n==> [2024-01-30-20:41:04.383975] Removed stale DB entry for gmake@4.4.1%gcc@11.4.0~guile build_system=generic arch=linux-fedora_asahi_remix39-m1/b3re3p4\r\n==> [2024-01-30-20:41:04.402827] Removed stale DB entry for gnuconfig@2022-09-17%gcc@11.4.0 build_system=generic arch=linux-fedora_asahi_remix39-m1/ktuokka\r\n==> [2024-01-30-20:41:04.421953] Removed stale DB entry for ca-certificates-mozilla@2023-05-30%gcc@11.4.0 build_system=generic arch=linux-fedora_asahi_remix39-m1/fxglcrh\r\n==> [2024-01-30-20:41:04.441038] Removed stale DB entry for re2c@2.2%gcc@11.4.0 build_system=generic arch=linux-fedora_asahi_remix39-m1/lozdq7j\r\n==> [2024-01-30-20:41:04.461521] Removed stale DB entry for gawk@5.2.2%gcc@13.2.1~nls build_system=autotools arch=linux-fedora_asahi_remix39-m1/4h2pk6h\r\n==> [2024-01-30-20:41:04.480839] Removed stale DB entry for automake@1.16.5%gcc@13.2.1 build_system=autotools arch=linux-fedora_asahi_remix39-m1/pv45ziw\r\n==> [2024-01-30-20:41:04.500006] Removed stale DB entry for autoconf@2.72%gcc@13.2.1 build_system=autotools arch=linux-fedora_asahi_remix39-m1/b7durqz\r\n==> [2024-01-30-20:41:04.527343] Removed stale DB entry for texinfo@7.0.3%gcc@13.2.1 build_system=autotools arch=linux-fedora_asahi_remix39-m1/niuhu6j\r\n==> [2024-01-30-20:41:04.547103] Removed stale DB entry for perl@5.38.0%gcc@13.2.1+cpanm+opcode+open+shared+threads build_system=generic patches=714e4d1 arch=linux-fedora_asahi_remix39-m1/5ttct4z\r\n==> [2024-01-30-20:41:04.566682] Removed stale DB entry for gettext@0.22.4%gcc@13.2.1+bzip2+curses+git~libunistring+libxml2+pic+shared+tar+xz build_system=autotools arch=linux-fedora_asahi_remix39-m1/jnsrrlw\r\n==> [2024-01-30-20:41:04.585940] Removed stale DB entry for gdbm@1.23%gcc@13.2.1 build_system=autotools arch=linux-fedora_asahi_remix39-m1/ekjswly\r\n==> [2024-01-30-20:41:04.605349] Removed stale DB entry for tar@1.34%gcc@13.2.1 build_system=autotools zip=pigz arch=linux-fedora_asahi_remix39-m1/gfdgwyd\r\n==> [2024-01-30-20:41:04.625001] Removed stale DB entry for libtool@2.4.7%gcc@13.2.1 build_system=autotools arch=linux-fedora_asahi_remix39-m1/lliinig\r\n==> [2024-01-30-20:41:04.644631] Removed stale DB entry for readline@8.2%gcc@13.2.1 build_system=autotools patches=bbf97f1 arch=linux-fedora_asahi_remix39-m1/ow3wptq\r\n==> [2024-01-30-20:41:04.664362] Removed stale DB entry for bzip2@1.0.8%gcc@13.2.1~debug~pic+shared build_system=generic arch=linux-fedora_asahi_remix39-m1/hgu7dv6\r\n==> [2024-01-30-20:41:04.683894] Removed stale DB entry for m4@1.4.19%gcc@13.2.1+sigsegv build_system=autotools patches=9dc5fbd,bfdffa7 arch=linux-fedora_asahi_remix39-m1/mxus2sy\r\n==> [2024-01-30-20:41:04.703401] Removed stale DB entry for libxml2@2.10.3%gcc@13.2.1+pic~python+shared build_system=autotools arch=linux-fedora_asahi_remix39-m1/5pokogp\r\n==> [2024-01-30-20:41:04.722849] Removed stale DB entry for ncurses@6.4%gcc@13.2.1~symlinks+termlib abi=none build_system=autotools arch=linux-fedora_asahi_remix39-m1/hbrjuii\r\n==> [2024-01-30-20:41:04.742383] Removed stale DB entry for pigz@2.8%gcc@13.2.1 build_system=makefile arch=linux-fedora_asahi_remix39-m1/e4jpvly\r\n==> [2024-01-30-20:41:04.762071] Removed stale DB entry for diffutils@3.9%gcc@13.2.1 build_system=autotools arch=linux-fedora_asahi_remix39-m1/22zrc5m\r\n==> [2024-01-30-20:41:04.781716] Removed stale DB entry for pkgconf@1.9.5%gcc@13.2.1 build_system=autotools arch=linux-fedora_asahi_remix39-m1/ucbzg3i\r\n==> [2024-01-30-20:41:04.801573] Removed stale DB entry for findutils@4.9.0%gcc@13.2.1 build_system=autotools patches=440b954 arch=linux-fedora_asahi_remix39-m1/mvhrfqv\r\n==> [2024-01-30-20:41:04.821132] Removed stale DB entry for libsigsegv@2.14%gcc@13.2.1 build_system=autotools arch=linux-fedora_asahi_remix39-m1/vxfhjon\r\n==> [2024-01-30-20:41:04.840792] Removed stale DB entry for libiconv@1.17%gcc@13.2.1 build_system=autotools libs=shared,static arch=linux-fedora_asahi_remix39-m1/tvqiuir\r\n==> [2024-01-30-20:41:04.860692] Removed stale DB entry for berkeley-db@18.1.40%gcc@13.2.1+cxx~docs+stl build_system=autotools patches=26090f4,b231fcc arch=linux-fedora_asahi_remix39-m1/tdks3zu\r\n==> [2024-01-30-20:41:04.880417] Removed stale DB entry for autoconf-archive@2023.02.20%gcc@13.2.1 build_system=autotools arch=linux-fedora_asahi_remix39-m1/mjjh5do\r\n==> [2024-01-30-20:41:04.907578] Removed stale DB entry for xz@5.4.1%gcc@13.2.1~pic build_system=autotools libs=shared,static arch=linux-fedora_asahi_remix39-m1/rkbohcg\r\n==> [2024-01-30-20:41:04.926946] Removed stale DB entry for gnuconfig@2022-09-17%gcc@13.2.1 build_system=generic arch=linux-fedora_asahi_remix39-m1/wkz5hfj\r\n==> [2024-01-30-20:41:04.946872] Removed stale DB entry for gmake@4.4.1%gcc@13.2.1~guile build_system=generic arch=linux-fedora_asahi_remix39-m1/egn3466\r\n``` \r\nHere is the index.json file for this system:\r\n[index.json](https://github.com/spack/spack/files/14106124/index.json)\nHere is mine. \r\n[index.json](https://github.com/spack/spack/files/14285257/index.json)\r\n\r\nThis problem also occurs on another system, too."},"created_at":{"kind":"string","value":"2024-02-15T12:22:41Z"},"merged_at":{"kind":"string","value":"2024-02-22T04:21:39Z"},"PASS_TO_PASS":{"kind":"string","value":"[\"lib/spack/spack/test/cmd/gc.py::test_gc_except_any_environments\", \"lib/spack/spack/test/cmd/gc.py::test_gc_except_specific_environments\", \"lib/spack/spack/test/cmd/gc.py::test_gc_with_environment\", \"lib/spack/spack/test/cmd/gc.py::test_gc_without_build_dependency\", \"lib/spack/spack/test/cmd/gc.py::test_gc_except_nonexisting_dir_env\"]"},"PASS_TO_FAIL":{"kind":"string","value":"[]"},"FAIL_TO_PASS":{"kind":"string","value":"[\"lib/spack/spack/test/cmd/gc.py::test_gc_with_build_dependency\", \"lib/spack/spack/test/cmd/gc.py::test_gc_with_build_dependency_in_environment\", \"lib/spack/spack/test/cmd/gc.py::test_gc_except_specific_dir_env\"]"},"FAIL_TO_FAIL":{"kind":"string","value":"[]"},"install":{"kind":"string","value":"{\"install\": [\"uv pip install -e .\", \"spack -d bootstrap now --dev\"], \"pre_install\": [\"tee pytest.ini < Concretized quantum-espresso+mpi+openmp+scalapack\r\n - h3jleui quantum-espresso@7.3%gcc@11.3.0~clock~elpa+epw~fox~gipaw~ipo~libxc+mpi~nvtx+openmp+patch~qmcpack+scalapack build_system=cmake build_type=Release generator=make hdf5=none arch=linux-rhel8-icelake\r\n[e] zqrzfhm ^cmake@3.24.3%gcc@11.3.0~doc+ncurses+ownlibs build_system=generic build_type=Release arch=linux-rhel8-icelake\r\n[+] wsggess ^gcc-runtime@11.3.0%gcc@11.3.0 build_system=generic arch=linux-rhel8-icelake\r\n[e] q2dq5wn ^git@2.39.3%gcc@11.3.0+man+nls+perl+subtree~svn~tcltk build_system=autotools arch=linux-rhel8-icelake\r\n[+] s72s4fm ^gmake@4.4.1%gcc@11.3.0~guile build_system=generic arch=linux-rhel8-icelake\r\n - dp7t2wp ^intel-oneapi-mkl@2024.0.0%gcc@11.3.0~cluster+envmods~ilp64+shared build_system=generic mpi_family=none threads=none arch=linux-rhel8-icelake\r\n - gpqoj4f ^intel-tbb@2021.9.0%gcc@11.3.0~ipo+shared+tm build_system=cmake build_type=Release cxxstd=default generator=make patches=91755c6 arch=linux-rhel8-icelake\r\n - t6o4ilu ^m4@1.4.19%gcc@11.3.0+sigsegv build_system=autotools patches=9dc5fbd,bfdffa7 arch=linux-rhel8-icelake\r\n - omnvp44 ^diffutils@3.9%gcc@11.3.0 build_system=autotools arch=linux-rhel8-icelake\r\n[+] cddzlag ^libiconv@1.17%gcc@11.3.0 build_system=autotools libs=shared,static arch=linux-rhel8-icelake\r\n[+] cgsvgxd ^libsigsegv@2.14%gcc@11.3.0 build_system=autotools arch=linux-rhel8-icelake\r\n - qvacy3c ^netlib-scalapack@2.2.0%gcc@11.3.0~ipo~pic+shared build_system=cmake build_type=Release generator=make patches=072b006,1c9ce5f,244a9aa arch=linux-rhel8-icelake\r\n - b7faigv ^openmpi@5.0.1%gcc@11.3.0~atomics~cuda~gpfs~internal-hwloc~internal-libevent~internal-pmix~java~legacylaunchers~lustre~memchecker~openshmem~orterunprefix~romio+rsh~static+vt+wrapper-rpath build_system=autotools fabrics=none patches=0a26bba schedulers=none arch=linux-rhel8-icelake\r\n - bqvwq2c ^autoconf@2.72%gcc@11.3.0 build_system=autotools arch=linux-rhel8-icelake\r\n - ofgywno ^automake@1.16.5%gcc@11.3.0 build_system=autotools arch=linux-rhel8-icelake\r\n - 75aj23a ^hwloc@2.9.1%gcc@11.3.0~cairo~cuda~gl~libudev+libxml2~netloc~nvml~oneapi-level-zero~opencl+pci~rocm build_system=autotools libs=shared,static arch=linux-rhel8-icelake\r\n - nzs7exa ^libpciaccess@0.17%gcc@11.3.0 build_system=autotools arch=linux-rhel8-icelake\r\n[+] qlatgkr ^util-macros@1.19.3%gcc@11.3.0 build_system=autotools arch=linux-rhel8-icelake\r\n - rwrycic ^libxml2@2.10.3%gcc@11.3.0+pic~python+shared build_system=autotools arch=linux-rhel8-icelake\r\n[+] x5yidss ^xz@5.4.1%gcc@11.3.0~pic build_system=autotools libs=shared,static arch=linux-rhel8-icelake\r\n - 5cw7dl2 ^ncurses@6.4%gcc@11.3.0~symlinks+termlib abi=none build_system=autotools arch=linux-rhel8-icelake\r\n - vysezdf ^libevent@2.1.12%gcc@11.3.0+openssl build_system=autotools arch=linux-rhel8-icelake\r\n - v57vbtd ^openssl@3.1.3%gcc@11.3.0~docs+shared build_system=generic certs=mozilla arch=linux-rhel8-icelake\r\n[+] bltjbtl ^ca-certificates-mozilla@2023-05-30%gcc@11.3.0 build_system=generic arch=linux-rhel8-icelake\r\n - ayzodvv ^libtool@2.4.7%gcc@11.3.0 build_system=autotools arch=linux-rhel8-icelake\r\n - mnirdaj ^findutils@4.9.0%gcc@11.3.0 build_system=autotools patches=440b954 arch=linux-rhel8-icelake\r\n - q5eddrt ^numactl@2.0.14%gcc@11.3.0 build_system=autotools patches=4e1d78c,62fc8a8,ff37630 arch=linux-rhel8-icelake\r\n - qp4yrmq ^openssh@9.5p1%gcc@11.3.0+gssapi build_system=autotools arch=linux-rhel8-icelake\r\n - 2or5l2v ^krb5@1.20.1%gcc@11.3.0+shared build_system=autotools arch=linux-rhel8-icelake\r\n - omiyvcz ^bison@3.8.2%gcc@11.3.0 build_system=autotools arch=linux-rhel8-icelake\r\n - tg4iboh ^gettext@0.22.4%gcc@11.3.0+bzip2+curses+git~libunistring+libxml2+pic+shared+tar+xz build_system=autotools arch=linux-rhel8-icelake\r\n - ttgls5n ^tar@1.34%gcc@11.3.0 build_system=autotools zip=pigz arch=linux-rhel8-icelake\r\n - aaffaed ^pigz@2.7%gcc@11.3.0 build_system=makefile arch=linux-rhel8-icelake\r\n[+] 7eivpw3 ^zstd@1.5.5%gcc@11.3.0+programs build_system=makefile compression=none libs=shared,static arch=linux-rhel8-icelake\r\n - ceo4kxj ^libedit@3.1-20210216%gcc@11.3.0 build_system=autotools arch=linux-rhel8-icelake\r\n - 22fo6ja ^libxcrypt@4.4.35%gcc@11.3.0~obsolete_api build_system=autotools patches=4885da3 arch=linux-rhel8-icelake\r\n - fgtt5zr ^perl@5.38.0%gcc@11.3.0+cpanm+opcode+open+shared+threads build_system=generic patches=714e4d1 arch=linux-rhel8-icelake\r\n[+] g6yyr7b ^berkeley-db@18.1.40%gcc@11.3.0+cxx~docs+stl build_system=autotools patches=26090f4,b231fcc arch=linux-rhel8-icelake\r\n - rnuk5uy ^bzip2@1.0.8%gcc@11.3.0~debug~pic+shared build_system=generic arch=linux-rhel8-icelake\r\n - anf4mfi ^gdbm@1.23%gcc@11.3.0 build_system=autotools arch=linux-rhel8-icelake\r\n - otyi35c ^readline@8.2%gcc@11.3.0 build_system=autotools patches=bbf97f1 arch=linux-rhel8-icelake\r\n[+] w4df7jn ^pkgconf@1.9.5%gcc@11.3.0 build_system=autotools arch=linux-rhel8-icelake\r\n - znkvl5v ^pmix@5.0.1%gcc@11.3.0~docs+pmi_backwards_compatibility~python~restful build_system=autotools arch=linux-rhel8-icelake\r\n - xxzz3we ^zlib-ng@2.1.5%gcc@11.3.0+compat+opt build_system=autotools arch=linux-rhel8-icelake\r\n```\r\nThis does not happen if `+cluster `variant is used. \r\n\r\n```\r\n==> Concretized quantum-espresso+mpi+openmp+scalapack\r\n - 4jkgdos quantum-espresso@7.3%gcc@11.3.0~clock~elpa+epw~fox~gipaw~ipo~libxc+mpi~nvtx+openmp+patch~qmcpack+scalapack build_system=cmake build_type=Release generator=make hdf5=none arch=linux-rhel8-icelake\r\n[e] zqrzfhm ^cmake@3.24.3%gcc@11.3.0~doc+ncurses+ownlibs build_system=generic build_type=Release arch=linux-rhel8-icelake\r\n[+] wsggess ^gcc-runtime@11.3.0%gcc@11.3.0 build_system=generic arch=linux-rhel8-icelake\r\n[e] q2dq5wn ^git@2.39.3%gcc@11.3.0+man+nls+perl+subtree~svn~tcltk build_system=autotools arch=linux-rhel8-icelake\r\n[+] s72s4fm ^gmake@4.4.1%gcc@11.3.0~guile build_system=generic arch=linux-rhel8-icelake\r\n - lups4gn ^intel-oneapi-mkl@2024.0.0%gcc@11.3.0+cluster+envmods~ilp64+shared build_system=generic mpi_family=none threads=none arch=linux-rhel8-icelake\r\n - gpqoj4f ^intel-tbb@2021.9.0%gcc@11.3.0~ipo+shared+tm build_system=cmake build_type=Release cxxstd=default generator=make patches=91755c6 arch=linux-rhel8-icelake\r\n - t6o4ilu ^m4@1.4.19%gcc@11.3.0+sigsegv build_system=autotools patches=9dc5fbd,bfdffa7 arch=linux-rhel8-icelake\r\n - omnvp44 ^diffutils@3.9%gcc@11.3.0 build_system=autotools arch=linux-rhel8-icelake\r\n[+] cddzlag ^libiconv@1.17%gcc@11.3.0 build_system=autotools libs=shared,static arch=linux-rhel8-icelake\r\n[+] cgsvgxd ^libsigsegv@2.14%gcc@11.3.0 build_system=autotools arch=linux-rhel8-icelake\r\n - b7faigv ^openmpi@5.0.1%gcc@11.3.0~atomics~cuda~gpfs~internal-hwloc~internal-libevent~internal-pmix~java~legacylaunchers~lustre~memchecker~openshmem~orterunprefix~romio+rsh~static+vt+wrapper-rpath build_system=autotools fabrics=none patches=0a26bba schedulers=none arch=linux-rhel8-icelake\r\n - bqvwq2c ^autoconf@2.72%gcc@11.3.0 build_system=autotools arch=linux-rhel8-icelake\r\n - ofgywno ^automake@1.16.5%gcc@11.3.0 build_system=autotools arch=linux-rhel8-icelake\r\n - 75aj23a ^hwloc@2.9.1%gcc@11.3.0~cairo~cuda~gl~libudev+libxml2~netloc~nvml~oneapi-level-zero~opencl+pci~rocm build_system=autotools libs=shared,static arch=linux-rhel8-icelake\r\n - nzs7exa ^libpciaccess@0.17%gcc@11.3.0 build_system=autotools arch=linux-rhel8-icelake\r\n[+] qlatgkr ^util-macros@1.19.3%gcc@11.3.0 build_system=autotools arch=linux-rhel8-icelake\r\n - rwrycic ^libxml2@2.10.3%gcc@11.3.0+pic~python+shared build_system=autotools arch=linux-rhel8-icelake\r\n[+] x5yidss ^xz@5.4.1%gcc@11.3.0~pic build_system=autotools libs=shared,static arch=linux-rhel8-icelake\r\n - 5cw7dl2 ^ncurses@6.4%gcc@11.3.0~symlinks+termlib abi=none build_system=autotools arch=linux-rhel8-icelake\r\n - vysezdf ^libevent@2.1.12%gcc@11.3.0+openssl build_system=autotools arch=linux-rhel8-icelake\r\n - v57vbtd ^openssl@3.1.3%gcc@11.3.0~docs+shared build_system=generic certs=mozilla arch=linux-rhel8-icelake\r\n[+] bltjbtl ^ca-certificates-mozilla@2023-05-30%gcc@11.3.0 build_system=generic arch=linux-rhel8-icelake\r\n - ayzodvv ^libtool@2.4.7%gcc@11.3.0 build_system=autotools arch=linux-rhel8-icelake\r\n - mnirdaj ^findutils@4.9.0%gcc@11.3.0 build_system=autotools patches=440b954 arch=linux-rhel8-icelake\r\n - q5eddrt ^numactl@2.0.14%gcc@11.3.0 build_system=autotools patches=4e1d78c,62fc8a8,ff37630 arch=linux-rhel8-icelake\r\n - qp4yrmq ^openssh@9.5p1%gcc@11.3.0+gssapi build_system=autotools arch=linux-rhel8-icelake\r\n - 2or5l2v ^krb5@1.20.1%gcc@11.3.0+shared build_system=autotools arch=linux-rhel8-icelake\r\n - omiyvcz ^bison@3.8.2%gcc@11.3.0 build_system=autotools arch=linux-rhel8-icelake\r\n - tg4iboh ^gettext@0.22.4%gcc@11.3.0+bzip2+curses+git~libunistring+libxml2+pic+shared+tar+xz build_system=autotools arch=linux-rhel8-icelake\r\n - ttgls5n ^tar@1.34%gcc@11.3.0 build_system=autotools zip=pigz arch=linux-rhel8-icelake\r\n - aaffaed ^pigz@2.7%gcc@11.3.0 build_system=makefile arch=linux-rhel8-icelake\r\n[+] 7eivpw3 ^zstd@1.5.5%gcc@11.3.0+programs build_system=makefile compression=none libs=shared,static arch=linux-rhel8-icelake\r\n - ceo4kxj ^libedit@3.1-20210216%gcc@11.3.0 build_system=autotools arch=linux-rhel8-icelake\r\n - 22fo6ja ^libxcrypt@4.4.35%gcc@11.3.0~obsolete_api build_system=autotools patches=4885da3 arch=linux-rhel8-icelake\r\n - fgtt5zr ^perl@5.38.0%gcc@11.3.0+cpanm+opcode+open+shared+threads build_system=generic patches=714e4d1 arch=linux-rhel8-icelake\r\n[+] g6yyr7b ^berkeley-db@18.1.40%gcc@11.3.0+cxx~docs+stl build_system=autotools patches=26090f4,b231fcc arch=linux-rhel8-icelake\r\n - rnuk5uy ^bzip2@1.0.8%gcc@11.3.0~debug~pic+shared build_system=generic arch=linux-rhel8-icelake\r\n - anf4mfi ^gdbm@1.23%gcc@11.3.0 build_system=autotools arch=linux-rhel8-icelake\r\n - otyi35c ^readline@8.2%gcc@11.3.0 build_system=autotools patches=bbf97f1 arch=linux-rhel8-icelake\r\n[+] w4df7jn ^pkgconf@1.9.5%gcc@11.3.0 build_system=autotools arch=linux-rhel8-icelake\r\n - znkvl5v ^pmix@5.0.1%gcc@11.3.0~docs+pmi_backwards_compatibility~python~restful build_system=autotools arch=linux-rhel8-icelake\r\n - xxzz3we ^zlib-ng@2.1.5%gcc@11.3.0+compat+opt build_system=autotools arch=linux-rhel8-icelake\r\n```\r\nManual build of QuantumESPRESSO with `intel-oneapi-mkl` (without +cluster) installed via Spack find indeed scalapack in the package.\r\nAre scalapack not available from the intel-oneapi-mkl package without +cluster spec?\n\n### Error message\n\n_No response_\n\n### Information on your system\n\n* **Spack:** 0.22.0.dev0 (91ff20cf7adc0ddf63d8e1df7b30e7598db9e322)\r\n* **Python:** 3.6.8\r\n* **Platform:** linux-rhel8-icelake\r\n* **Concretizer:** clingo\r\n\n\n### General information\n\n- [X] I have run `spack debug report` and reported the version of Spack/Python/Platform\n- [X] I have searched the issues of this repo and believe this is not a duplicate\n- [X] I have run the failing commands in debug mode and reported the output\n"},"hints_text":{"kind":"string","value":"> Are scalapack not available from the intel-oneapi-mkl package without +cluster spec?\r\n\r\nThat is true:\r\nhttps://github.com/spack/spack/blob/66813460c0777a4a2bbeb071db3cd7318f382811/var/spack/repos/builtin/packages/intel-oneapi-mkl/package.py#L133\r\n\r\nbut maybe @rscohn2 can comment more on why.\nThe scalapack library is always installed and an application can add -lmkl_scalapack to its link line\r\n\r\n+cluster controls whether the package provides libmkl_scalapack in its libs properties and related issues. That is useful if the application does not want to hard code the library names in its makefile/cmake\nI think there is something funny going on with the concretization of quantum-espresso with `intel-oneapi-mkl` even when `+cluster` is added. I am using the upstream Spack and no matter what I do. I always end up with the `^netlib-scalapack` and `^intel-oneapi-mkl`.\r\n\r\nJust give the following a try:\r\n```\r\nspack spec quantum-espresso ^[virtuals=blas] intel-oneapi-mkl+cluster threads=openmp ^[virtuals=scalapack] intel-oneapi-mkl+cluster threads=openmp\r\n```\r\n\r\n```\r\nInput spec\r\n--------------------------------\r\n - quantum-espresso\r\n - ^intel-oneapi-mkl+cluster threads=openmp\r\n\r\nConcretized\r\n--------------------------------\r\n - quantum-espresso@7.3%gcc@11.4.0~clock~elpa+epw~fox~gipaw~ipo~libxc+mpi~nvtx+openmp+patch~qmcpack+scalapack build_system=cmake build_type=Release generator=make hdf5=none arch=linux-ubuntu22.04-icelake\r\n[+] ^cmake@3.27.4%gcc@11.4.0~doc+ncurses+ownlibs build_system=generic build_type=Release arch=linux-ubuntu22.04-icelake\r\n[+] ^curl@8.1.2%gcc@11.4.0~gssapi~ldap~libidn2~librtmp~libssh~libssh2+nghttp2 build_system=autotools libs=shared,static tls=openssl arch=linux-ubuntu22.04-icelake\r\n[+] ^nghttp2@1.52.0%gcc@11.4.0 build_system=autotools arch=linux-ubuntu22.04-icelake\r\n[+] ^ncurses@6.4%gcc@11.4.0~symlinks+termlib abi=none build_system=autotools arch=linux-ubuntu22.04-icelake\r\n[+] ^zlib-ng@2.1.3%gcc@11.4.0+compat+opt build_system=autotools patches=299b958,ae9077a,b692621 arch=linux-ubuntu22.04-icelake\r\n[+] ^gcc-runtime@11.4.0%gcc@11.4.0 build_system=generic arch=linux-ubuntu22.04-icelake\r\n - ^git@2.42.0%gcc@11.4.0+man+nls+perl+subtree~svn~tcltk build_system=autotools arch=linux-ubuntu22.04-icelake\r\n[+] ^autoconf@2.69%gcc@11.4.0 build_system=autotools patches=35c4492,7793209,a49dd5b arch=linux-ubuntu22.04-icelake\r\n[+] ^automake@1.16.5%gcc@11.4.0 build_system=autotools arch=linux-ubuntu22.04-icelake\r\n[+] ^expat@2.5.0%gcc@11.4.0+libbsd build_system=autotools arch=linux-ubuntu22.04-icelake\r\n[+] ^libbsd@0.11.7%gcc@11.4.0 build_system=autotools arch=linux-ubuntu22.04-icelake\r\n[+] ^libmd@1.0.4%gcc@11.4.0 build_system=autotools arch=linux-ubuntu22.04-icelake\r\n[+] ^gettext@0.21.1%gcc@11.4.0+bzip2+curses+git~libunistring+libxml2+tar+xz build_system=autotools arch=linux-ubuntu22.04-icelake\r\n[+] ^bzip2@1.0.8%gcc@11.4.0~debug~pic+shared build_system=generic arch=linux-ubuntu22.04-icelake\r\n[+] ^tar@1.34%gcc@11.4.0 build_system=autotools zip=pigz arch=linux-ubuntu22.04-icelake\r\n[+] ^pigz@2.7%gcc@11.4.0 build_system=makefile arch=linux-ubuntu22.04-icelake\r\n[+] ^zstd@1.5.5%gcc@11.4.0+programs build_system=makefile compression=none libs=shared,static arch=linux-ubuntu22.04-icelake\r\n[+] ^xz@5.4.1%gcc@11.4.0~pic build_system=autotools libs=shared,static arch=linux-ubuntu22.04-icelake\r\n[+] ^libiconv@1.17%gcc@11.4.0 build_system=autotools libs=shared,static arch=linux-ubuntu22.04-icelake\r\n - ^libidn2@2.3.4%gcc@11.4.0 build_system=autotools arch=linux-ubuntu22.04-icelake\r\n - ^libunistring@1.1%gcc@11.4.0 build_system=autotools arch=linux-ubuntu22.04-icelake\r\n[+] ^libtool@2.4.7%gcc@11.4.0 build_system=autotools arch=linux-ubuntu22.04-icelake\r\n - ^openssh@9.5p1%gcc@11.4.0+gssapi build_system=autotools arch=linux-ubuntu22.04-icelake\r\n - ^krb5@1.20.1%gcc@11.4.0+shared build_system=autotools arch=linux-ubuntu22.04-icelake\r\n[+] ^bison@3.8.2%gcc@11.4.0 build_system=autotools arch=linux-ubuntu22.04-icelake\r\n[+] ^libedit@3.1-20210216%gcc@11.4.0 build_system=autotools arch=linux-ubuntu22.04-icelake\r\n[+] ^libxcrypt@4.4.35%gcc@11.4.0~obsolete_api build_system=autotools patches=4885da3 arch=linux-ubuntu22.04-icelake\r\n[+] ^openssl@3.1.2%gcc@11.4.0~docs+shared build_system=generic certs=mozilla arch=linux-ubuntu22.04-icelake\r\n[+] ^ca-certificates-mozilla@2023-05-30%gcc@11.4.0 build_system=generic arch=linux-ubuntu22.04-icelake\r\n - ^pcre2@10.42%gcc@11.4.0~jit+multibyte build_system=autotools arch=linux-ubuntu22.04-icelake\r\n[+] ^perl@5.38.0%gcc@11.4.0+cpanm+opcode+open+shared+threads build_system=generic patches=714e4d1 arch=linux-ubuntu22.04-icelake\r\n[+] ^berkeley-db@18.1.40%gcc@11.4.0+cxx~docs+stl build_system=autotools patches=26090f4,b231fcc arch=linux-ubuntu22.04-icelake\r\n[+] ^gdbm@1.23%gcc@11.4.0 build_system=autotools arch=linux-ubuntu22.04-icelake\r\n[+] ^readline@8.2%gcc@11.4.0 build_system=autotools patches=bbf97f1 arch=linux-ubuntu22.04-icelake\r\n - ^gmake@4.4.1%gcc@11.4.0~guile build_system=generic arch=linux-ubuntu22.04-icelake\r\n - ^intel-oneapi-mkl@2024.0.0%gcc@11.4.0+cluster+envmods~ilp64+shared build_system=generic mpi_family=none threads=openmp arch=linux-ubuntu22.04-icelake\r\n - ^intel-tbb@2021.9.0%gcc@11.4.0~ipo+shared+tm build_system=cmake build_type=Release cxxstd=default generator=make patches=91755c6 arch=linux-ubuntu22.04-icelake\r\n[+] ^m4@1.4.19%gcc@11.4.0+sigsegv build_system=autotools patches=9dc5fbd,bfdffa7 arch=linux-ubuntu22.04-icelake\r\n[+] ^diffutils@3.9%gcc@11.4.0 build_system=autotools arch=linux-ubuntu22.04-icelake\r\n[+] ^libsigsegv@2.14%gcc@11.4.0 build_system=autotools arch=linux-ubuntu22.04-icelake\r\n[+] ^mpich@4.1.2%gcc@11.4.0~argobots~cuda+fortran+hwloc+hydra+libxml2+pci~rocm+romio~slurm~vci~verbs+wrapperrpath build_system=autotools datatype-engine=auto device=ch4 netmod=ofi pmi=pmi arch=linux-ubuntu22.04-icelake\r\n[+] ^findutils@4.9.0%gcc@11.4.0 build_system=autotools patches=440b954 arch=linux-ubuntu22.04-icelake\r\n[+] ^hwloc@2.9.1%gcc@11.4.0~cairo~cuda~gl~libudev+libxml2~netloc~nvml~oneapi-level-zero~opencl+pci~rocm build_system=autotools libs=shared,static arch=linux-ubuntu22.04-icelake\r\n[+] ^libfabric@1.19.0%gcc@11.4.0~debug~kdreg build_system=autotools fabrics=sockets,tcp,udp arch=linux-ubuntu22.04-icelake\r\n[+] ^libpciaccess@0.17%gcc@11.4.0 build_system=autotools arch=linux-ubuntu22.04-icelake\r\n[+] ^util-macros@1.19.3%gcc@11.4.0 build_system=autotools arch=linux-ubuntu22.04-icelake\r\n[+] ^libxml2@2.10.3%gcc@11.4.0+pic~python+shared build_system=autotools arch=linux-ubuntu22.04-icelake\r\n[+] ^pkgconf@1.9.5%gcc@11.4.0 build_system=autotools arch=linux-ubuntu22.04-icelake\r\n[+] ^yaksa@0.2%gcc@11.4.0~cuda~rocm build_system=autotools arch=linux-ubuntu22.04-icelake\r\n[+] ^python@3.11.4%gcc@11.4.0+bz2+crypt+ctypes+dbm~debug+libxml2+lzma~nis~optimizations+pic+pyexpat+pythoncmd+readline+shared+sqlite3+ssl~tkinter+uuid+zlib build_system=generic patches=13fa8bf,b0615b2,f2fd060 arch=linux-ubuntu22.04-icelake\r\n[+] ^libffi@3.4.4%gcc@11.4.0 build_system=autotools arch=linux-ubuntu22.04-icelake\r\n[+] ^sqlite@3.42.0%gcc@11.4.0+column_metadata+dynamic_extensions+fts~functions+rtree build_system=autotools arch=linux-ubuntu22.04-icelake\r\n[+] ^util-linux-uuid@2.38.1%gcc@11.4.0 build_system=autotools arch=linux-ubuntu22.04-icelake\r\n - ^netlib-scalapack@2.2.0%gcc@11.4.0~ipo~pic+shared build_system=cmake build_type=Release generator=make patches=072b006,1c9ce5f,244a9aa arch=linux-ubuntu22.04-icelake\r\n ```\nI've bee reading the entire thread. Summary:\r\n- The issue being reported is a non-issue (`intel-oneapi-mkl~cluster` does not provide scalapack for Spack, so another provider needs to be pulled in)\r\n- The issue reported by @naromero77 is different, and seems related to the parser\r\n\r\n@naromero77 The usual syntax to do what you want to do above is:\r\n```console\r\n$ spack spec quantum-espresso ^[virtuals=blas,scalapack] intel-oneapi-mkl+cluster threads=openmp\r\n```\r\nand seems to work for me. I need to double check why we allow multiple times the same name in the parser, and why we don't merge the second `virtuals=scalapack`. In fact if you invert your virtuals, you don't get `netlib-scalapack` in the DAG, but `openblas`."},"created_at":{"kind":"string","value":"2024-01-25T10:28:29Z"},"merged_at":{"kind":"string","value":"2024-01-26T08:48:54Z"},"PASS_TO_PASS":{"kind":"string","value":"[\"lib/spack/spack/test/spec_syntax.py::test_platform_is_none_if_not_present[os=redhat6]\", \"lib/spack/spack/test/spec_syntax.py::test_error_conditions[x target=fe target=be-DuplicateArchitectureError]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[cflags==\\\"-O3 -g\\\"-tokens63-cflags=='-O3 -g']\", \"lib/spack/spack/test/spec_syntax.py::test_error_conditions[x os=fe os=fe-DuplicateArchitectureError]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_specfile_simple\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[^[virtuals=mpi] openmpi-tokens70-^[virtuals=mpi] openmpi]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_multiple_specs[mvapich cppflags='-O3 -fPIC' emacs-tokens1-expected_specs1]\", \"lib/spack/spack/test/spec_syntax.py::test_error_conditions[x@1.2%y@1.2@2.3:2.4-MultipleVersionError]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[openmpi ^hwloc@1.2e6:-tokens21-openmpi ^hwloc@1.2e6:]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_filename_missing_slash_as_spec[libelf.json]\", \"lib/spack/spack/test/spec_syntax.py::test_error_reporting[x@1.2::-x@1.2::\\\\\\\\n ^]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[openmpi ^hwloc^libunwind-tokens18-openmpi ^hwloc ^libunwind]\", \"lib/spack/spack/test/spec_syntax.py::test_error_conditions[x arch=linux-rhel7-x86_64 arch=linux-rhel7-ppc64le-DuplicateArchitectureError]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[_openmpi +debug -qt_4-tokens46-_openmpi+debug~qt_4]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[mvapich_foo ^_openmpi@1.2:1.4,1.6%intel@12.1~qt_4 debug=2 ^stackwalker@8.1_1e-tokens25-mvapich_foo ^_openmpi@1.2:1.4,1.6%intel@12.1~qt_4 debug=2 ^stackwalker@8.1_1e]\", \"lib/spack/spack/test/spec_syntax.py::test_error_conditions[x@1.2+debug+debug-DuplicateVariantError]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[openmpi ^hwloc ^libunwind-tokens17-openmpi ^hwloc ^libunwind]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[x ^y@foo ^y@foo-tokens42-x ^y@foo]\", \"lib/spack/spack/test/spec_syntax.py::test_specfile_error_conditions_windows[../../libdwarf.yaml-NoSuchSpecFileError]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[%intel-tokens5-%intel]\", \"lib/spack/spack/test/spec_syntax.py::test_specfile_error_conditions_windows[./libdwarf.yaml-NoSuchSpecFileError]\", \"lib/spack/spack/test/spec_syntax.py::test_error_conditions[x ^y%intel%gcc-DuplicateCompilerSpecError]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_specfile_relative_paths\", \"lib/spack/spack/test/spec_syntax.py::test_cli_spec_roundtrip[args18-zlib+pic]\", \"lib/spack/spack/test/spec_syntax.py::test_specfile_error_conditions_windows[libdwarf^/bogus/path/libelf.yamlfoobar ^/path/to/bogus.yaml-NoSuchSpecFileError]\", \"lib/spack/spack/test/spec_syntax.py::test_error_reporting[x@@1.2-x@@1.2\\\\\\\\n ^]\", \"lib/spack/spack/test/spec_syntax.py::test_cli_spec_roundtrip[args19-zlib ldflags='-Wl,-rpath=$ORIGIN/_libs']\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[mvapich_foo ^_openmpi@1.2:1.4,1.6%intel@12.1+debug~qt_4 ^stackwalker@8.1_1e-tokens24-mvapich_foo ^_openmpi@1.2:1.4,1.6%intel@12.1+debug~qt_4 ^stackwalker@8.1_1e]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[cflags=a=b=c+~-tokens61-cflags='a=b=c+~']\", \"lib/spack/spack/test/spec_syntax.py::test_error_conditions[x target=be platform=test os=be os=fe-DuplicateArchitectureError]\", \"lib/spack/spack/test/spec_syntax.py::test_spec_by_hash\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[y~f+e~d+c~b+a-tokens33-y+a~b+c~d+e~f]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[platform=test-tokens12-arch=test-None-None]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[os=default_os-tokens37-arch=test-debian6-None]\", \"lib/spack/spack/test/spec_syntax.py::test_error_reporting[@1.2:develop = foo-@1.2:develop = foo\\\\\\\\n ^^]\", \"lib/spack/spack/test/spec_syntax.py::test_specfile_parsing[.\\\\\\\\\\\\\\\\relative\\\\\\\\\\\\\\\\dot\\\\\\\\\\\\\\\\win\\\\\\\\\\\\\\\\path.yaml-(?:\\\\\\\\.|[a-zA-Z0-9-_]*\\\\\\\\\\\\\\\\|[a-zA-Z]:\\\\\\\\\\\\\\\\)(?:[a-zA-Z0-9-_\\\\\\\\.\\\\\\\\\\\\\\\\]*)(?:\\\\\\\\.json|\\\\\\\\.yaml)]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[x ^y@foo +bar ^y@foo-tokens44-x ^y@foo+bar]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[os=fe-tokens36-arch=test-redhat6-None]\", \"lib/spack/spack/test/spec_syntax.py::test_invalid_hash_dep\", \"lib/spack/spack/test/spec_syntax.py::test_parse_specfile_relative_subdir_path\", \"lib/spack/spack/test/spec_syntax.py::test_spec_by_hash_tokens[foo@1.2.3 /abcde-tokens2]\", \"lib/spack/spack/test/spec_syntax.py::test_specfile_error_conditions_windows[libfoo ^/bogus/path/libdwarf.yaml-NoSuchSpecFileError]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[builtin.yaml-cpp ^testrepo.boost ^zlib-tokens31-yaml-cpp ^boost ^zlib]\", \"lib/spack/spack/test/spec_syntax.py::test_cli_spec_roundtrip[args16-+pic]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[openmpi ^hwloc@1.2e6:1.4b7-rc3-tokens23-openmpi ^hwloc@1.2e6:1.4b7-rc3]\", \"lib/spack/spack/test/spec_syntax.py::test_git_ref_spec_equivalences[develop-branch-version@git.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa=develop-develop-branch-version@git.0.2.15=develop-expected2]\", \"lib/spack/spack/test/spec_syntax.py::test_specfile_error_conditions_windows[libfoo ^./libdwarf.yaml-NoSuchSpecFileError]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[@4.2: languages=go-tokens14-@4.2: languages=go]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[dev_path=*-tokens55-dev_path='*']\", \"lib/spack/spack/test/spec_syntax.py::test_error_reporting[x::-x::\\\\\\\\n ^^]\", \"lib/spack/spack/test/spec_syntax.py::test_error_conditions[x target=fe target=fe-DuplicateArchitectureError]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[~foo-tokens10-~foo]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[_mvapich_foo-tokens2-_mvapich_foo]\", \"lib/spack/spack/test/spec_syntax.py::test_cli_spec_roundtrip[args5-zlib cflags=-O3 +bar~g baz]\", \"lib/spack/spack/test/spec_syntax.py::test_compare_abstract_specs\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[dev_path=../relpath/work-tokens57-dev_path=../relpath/work]\", \"lib/spack/spack/test/spec_syntax.py::test_error_conditions[x platform=test platform=test-DuplicateArchitectureError]\", \"lib/spack/spack/test/spec_syntax.py::test_disambiguate_hash_by_spec[zlib+shared-zlib~shared-+shared]\", \"lib/spack/spack/test/spec_syntax.py::test_specfile_error_conditions_windows[libfoo ^../../libdwarf.yaml-NoSuchSpecFileError]\", \"lib/spack/spack/test/spec_syntax.py::test_error_conditions[x ^y@1.2+debug debug=true-DuplicateVariantError]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[^[deptypes=link,build] zlib-tokens72-^[deptypes=build,link] zlib]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[openmpi ^hwloc@:1.4b7-rc3-tokens22-openmpi ^hwloc@:1.4b7-rc3]\", \"lib/spack/spack/test/spec_syntax.py::test_ambiguous_hash\", \"lib/spack/spack/test/spec_syntax.py::test_parse_filename_missing_slash_as_spec[libelf.yaml]\", \"lib/spack/spack/test/spec_syntax.py::test_cli_spec_roundtrip[args14-SpecTokenizationError]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[%gcc@:10.2.1-tokens51-%gcc@:10.2.1]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[x ^y@foo ^y+bar-tokens43-x ^y@foo+bar]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_multiple_specs[mvapich emacs-tokens0-expected_specs0]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[@ 12.1:12.6 + debug - qt_4-tokens67-@12.1:12.6+debug~qt_4]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[develop-branch-version@abc12abc12abc12abc12abc12abc12abc12abc12=develop-tokens41-develop-branch-version@abc12abc12abc12abc12abc12abc12abc12abc12=develop]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[@2.7:-tokens7-@2.7:]\", \"lib/spack/spack/test/spec_syntax.py::test_cli_spec_roundtrip[args17-+pic]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[builtin.yaml-cpp@0.1.8%gcc@7.2.0 ^boost@3.1.4-tokens30-yaml-cpp@0.1.8%gcc@7.2.0 ^boost@3.1.4]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_multiple_specs[mvapich emacs @1.1.1 %intel cflags=-O3-tokens3-expected_specs3]\", \"lib/spack/spack/test/spec_syntax.py::test_cli_spec_roundtrip[args4-zlib cflags='-O3 -g +bar baz']\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[platform=linux-tokens40-arch=linux-None-None]\", \"lib/spack/spack/test/spec_syntax.py::test_cli_spec_roundtrip[args0-zlib cflags='-O3 -g' +bar baz]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[@:0.4 % nvhpc-tokens69-@:0.4%nvhpc]\", \"lib/spack/spack/test/spec_syntax.py::test_error_conditions[x ^y%gcc%intel-DuplicateCompilerSpecError]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[%gcc@:8.4.3,10.2.1:12.1.0-tokens54-%gcc@:8.4.3,10.2.1:12.1.0]\", \"lib/spack/spack/test/spec_syntax.py::test_error_conditions[y ^x arch=linux-rhel7-x86_64 arch=linux-rhel7-x86_64-DuplicateArchitectureError]\", \"lib/spack/spack/test/spec_syntax.py::test_error_conditions[x@1.2@2.3-MultipleVersionError]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[languages=go @4.2:-tokens13-@4.2: languages=go]\", \"lib/spack/spack/test/spec_syntax.py::test_specfile_parsing[relative/path/to/file.yaml-(?:\\\\\\\\.|\\\\\\\\/|[a-zA-Z0-9-_]*\\\\\\\\/)(?:[a-zA-Z0-9-_\\\\\\\\.\\\\\\\\/]*)(?:\\\\\\\\.json|\\\\\\\\.yaml)]\", \"lib/spack/spack/test/spec_syntax.py::test_error_conditions[x@1.2:2.3@1.4-MultipleVersionError]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[+foo-tokens9-+foo]\", \"lib/spack/spack/test/spec_syntax.py::test_cli_spec_roundtrip[args8-zlib cflags=\\\"'-O3 -g' \\\\\\\\\\\"+bar baz\\\\\\\\\\\"\\\"]\", \"lib/spack/spack/test/spec_syntax.py::test_invalid_hash\", \"lib/spack/spack/test/spec_syntax.py::test_error_conditions[x ^y@1.2 debug=false ~debug-DuplicateVariantError]\", \"lib/spack/spack/test/spec_syntax.py::test_cli_spec_roundtrip[args3-zlib cflags=-O3 +bar~g baz]\", \"lib/spack/spack/test/spec_syntax.py::test_git_ref_spec_equivalences[develop-branch-version@git.0.2.15=develop-develop-branch-version@develop-expected3]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[@1.2:1.4 , 1.6 -tokens64-@1.2:1.4,1.6]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[%gcc@10.2.1:-tokens50-%gcc@10.2.1:]\", \"lib/spack/spack/test/spec_syntax.py::test_cli_spec_roundtrip[args10-zlib ldflags='+pic']\", \"lib/spack/spack/test/spec_syntax.py::test_cli_spec_roundtrip[args11-ldflags='+pic']\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[%gcc@10.1.0,12.2.1:-tokens53-%gcc@10.1.0,12.2.1:]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[dev_path=/abspath/work-tokens58-dev_path=/abspath/work]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[dev_path=none-tokens56-dev_path=none]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[@2.7-tokens6-@2.7]\", \"lib/spack/spack/test/spec_syntax.py::test_platform_is_none_if_not_present[target=x86_64:]\", \"lib/spack/spack/test/spec_syntax.py::test_error_conditions[^[foo=bar] zlib-SpecParsingError]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[_openmpi +debug~qt_4-tokens47-_openmpi+debug~qt_4]\", \"lib/spack/spack/test/spec_syntax.py::test_cli_spec_roundtrip[args7-zlib cflags=\\\"'-O3 -g' +bar baz\\\"]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[develop-branch-version@git.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa=develop+var1+var2-tokens49-develop-branch-version@git.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa=develop+var1+var2]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[foo %bar@1.0 @2.0-tokens19-foo@2.0%bar@1.0]\", \"lib/spack/spack/test/spec_syntax.py::test_error_conditions[x@1.2@2.3:2.4-MultipleVersionError]\", \"lib/spack/spack/test/spec_syntax.py::test_specfile_parsing[/absolute/path/to/file.yaml-(?:\\\\\\\\.|\\\\\\\\/|[a-zA-Z0-9-_]*\\\\\\\\/)(?:[a-zA-Z0-9-_\\\\\\\\.\\\\\\\\/]*)(?:\\\\\\\\.json|\\\\\\\\.yaml)]\", \"lib/spack/spack/test/spec_syntax.py::test_error_conditions[^[@foo] zlib-SpecParsingError]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[cflags=a=b=c-tokens59-cflags='a=b=c']\", \"lib/spack/spack/test/spec_syntax.py::test_specfile_parsing[relative\\\\\\\\\\\\\\\\windows\\\\\\\\\\\\\\\\path.yaml-(?:\\\\\\\\.|[a-zA-Z0-9-_]*\\\\\\\\\\\\\\\\|[a-zA-Z]:\\\\\\\\\\\\\\\\)(?:[a-zA-Z0-9-_\\\\\\\\.\\\\\\\\\\\\\\\\]*)(?:\\\\\\\\.json|\\\\\\\\.yaml)]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[% intel @ 12.1:12.6 + debug-tokens66-%intel@12.1:12.6+debug]\", \"lib/spack/spack/test/spec_syntax.py::test_cli_spec_roundtrip[args9-zlib+pic]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[@:2.7-tokens8-@:2.7]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[target=:broadwell,icelake-tokens48-arch=None-None-:broadwell,icelake]\", \"lib/spack/spack/test/spec_syntax.py::test_specfile_parsing[./dot/rel/to/file.yaml-(?:\\\\\\\\.|\\\\\\\\/|[a-zA-Z0-9-_]*\\\\\\\\/)(?:[a-zA-Z0-9-_\\\\\\\\.\\\\\\\\/]*)(?:\\\\\\\\.json|\\\\\\\\.yaml)]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_multiple_specs[mvapich cppflags=-O3 emacs-tokens2-expected_specs2]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[mvapich_foo-tokens1-mvapich_foo]\", \"lib/spack/spack/test/spec_syntax.py::test_error_conditions[x ^y@1.2 debug=false debug=true-DuplicateVariantError]\", \"lib/spack/spack/test/spec_syntax.py::test_error_conditions[x arch=linux-rhel7-ppc64le arch=linux-rhel7-x86_64-DuplicateArchitectureError]\", \"lib/spack/spack/test/spec_syntax.py::test_disambiguate_hash_by_spec[zlib-hdf5-None]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[3dtk-tokens3-3dtk]\", \"lib/spack/spack/test/spec_syntax.py::test_error_conditions[x%intel%gcc-DuplicateCompilerSpecError]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[cflags=a=b=c-tokens60-cflags='a=b=c']\", \"lib/spack/spack/test/spec_syntax.py::test_error_conditions[x os=fe platform=test target=fe os=fe-DuplicateArchitectureError]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[mvapich_foo ^_openmpi@1.2:1.4,1.6%intel@12.1 cppflags=-O3 +debug~qt_4 ^stackwalker@8.1_1e-tokens26-mvapich_foo ^_openmpi@1.2:1.4,1.6%intel@12.1 cppflags=-O3 +debug~qt_4 ^stackwalker@8.1_1e]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[target=default_target-tokens39-arch=test-None-core2]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[@:-tokens34-]\", \"lib/spack/spack/test/spec_syntax.py::test_specfile_error_conditions_windows[/bogus/path/libdwarf.yamlfoobar-NoSuchSpecFileError]\", \"lib/spack/spack/test/spec_syntax.py::test_error_reporting[@1.2: develop = foo-@1.2: develop = foo\\\\\\\\n ^^]\", \"lib/spack/spack/test/spec_syntax.py::test_error_conditions[x ^y@1 ^y@2-DuplicateDependencyError]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[zlib foo==bar-tokens76-zlib foo==bar]\", \"lib/spack/spack/test/spec_syntax.py::test_cli_spec_roundtrip[args2-zlib cflags='-O3 -g' +bar baz]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[cflags=-Wl,a,b,c-tokens62-cflags=-Wl,a,b,c]\", \"lib/spack/spack/test/spec_syntax.py::test_nonexistent_hash\", \"lib/spack/spack/test/spec_syntax.py::test_cli_spec_roundtrip[args6-zlib cflags='\\\"-O3 -g\\\" +bar baz']\", \"lib/spack/spack/test/spec_syntax.py::test_error_conditions[x%intel%intel-DuplicateCompilerSpecError]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[target=be-tokens38-arch=test-None-core2]\", \"lib/spack/spack/test/spec_syntax.py::test_cli_spec_roundtrip[args15-SpecTokenizationError]\", \"lib/spack/spack/test/spec_syntax.py::test_error_reporting[cflags=''-Wl,a,b,c''-cflags=''-Wl,a,b,c''\\\\\\\\n ^ ^ ^ ^^]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[_openmpi +debug-qt_4-tokens45-_openmpi+debug-qt_4]\", \"lib/spack/spack/test/spec_syntax.py::test_error_conditions[x arch=linux-rhel7-x86_64 arch=linux-rhel7-x86_64-DuplicateArchitectureError]\", \"lib/spack/spack/test/spec_syntax.py::test_error_reporting[y ^x@@1.2-y ^x@@1.2\\\\\\\\n ^]\", \"lib/spack/spack/test/spec_syntax.py::test_cli_spec_roundtrip[args20-SpecTokenizationError]\", \"lib/spack/spack/test/spec_syntax.py::test_error_conditions[x@1.2 +foo~bar @2.3-MultipleVersionError]\", \"lib/spack/spack/test/spec_syntax.py::test_error_conditions[y ^x arch=linux-rhel7-x86_64 arch=linux-rhel7-ppc64le-DuplicateArchitectureError]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[mvapich ^stackwalker ^_openmpi-tokens32-mvapich ^_openmpi ^stackwalker]\", \"lib/spack/spack/test/spec_syntax.py::test_error_conditions[x ^y%intel%intel-DuplicateCompilerSpecError]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[a@1: b-tokens65-a@1:]\", \"lib/spack/spack/test/spec_syntax.py::test_dep_spec_by_hash\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[@1.6,1.2:1.4-tokens35-@1.2:1.4,1.6]\", \"lib/spack/spack/test/spec_syntax.py::test_disambiguate_hash_by_spec[hdf5+mpi^zmpi-hdf5~mpi-^zmpi]\", \"lib/spack/spack/test/spec_syntax.py::test_error_conditions[x os=fe os=be-DuplicateArchitectureError]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[%gcc@10.2.1:12.1.0-tokens52-%gcc@10.2.1:12.1.0]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[openmpi ^hwloc@1.2e6-tokens20-openmpi ^hwloc@1.2e6]\", \"lib/spack/spack/test/spec_syntax.py::test_multiple_specs_with_hash\", \"lib/spack/spack/test/spec_syntax.py::test_error_conditions[x%gcc%intel-DuplicateCompilerSpecError]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[ns-3-dev-tokens4-ns-3-dev]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[zlib ++foo-tokens74-zlib++foo]\", \"lib/spack/spack/test/spec_syntax.py::test_git_ref_spec_equivalences[develop-branch-version@git.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa=develop-develop-branch-version@develop-expected0]\", \"lib/spack/spack/test/spec_syntax.py::test_spec_by_hash_tokens[foo/abcde-tokens1]\", \"lib/spack/spack/test/spec_syntax.py::test_specfile_error_conditions_windows[/bogus/path/libdwarf.yaml-NoSuchSpecFileError]\", \"lib/spack/spack/test/spec_syntax.py::test_cli_spec_roundtrip[args13-foo=' +pic']\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[^zlib-tokens15-^zlib]\", \"lib/spack/spack/test/spec_syntax.py::test_cli_spec_roundtrip[args12-zlib foo=' +pic']\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[-foo-tokens11-~foo]\", \"lib/spack/spack/test/spec_syntax.py::test_git_ref_spec_equivalences[develop-branch-version@git.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa=develop-develop-branch-version@git.bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb=develop-expected1]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[mvapich-tokens0-mvapich]\", \"lib/spack/spack/test/spec_syntax.py::test_cli_spec_roundtrip[args1-zlib cflags=='-O3 -g' +bar baz]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[@10.4.0:10,11.3.0:target=aarch64:-tokens68-@10.4.0:10,11.3.0: arch=None-None-aarch64:]\", \"lib/spack/spack/test/spec_syntax.py::test_disambiguate_hash_by_spec[hdf5+mpi^mpich+debug-hdf5+mpi^mpich~debug-^mpich+debug]\", \"lib/spack/spack/test/spec_syntax.py::test_error_conditions[x@1.2@2.3,2.4-MultipleVersionError]\", \"lib/spack/spack/test/spec_syntax.py::test_spec_by_hash_tokens[/abcde-tokens0]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[openmpi ^hwloc-tokens16-openmpi ^hwloc]\", \"lib/spack/spack/test/spec_syntax.py::test_specfile_parsing[c:\\\\\\\\abs\\\\\\\\windows\\\\\\\\\\\\\\\\path.yaml-(?:\\\\\\\\.|[a-zA-Z0-9-_]*\\\\\\\\\\\\\\\\|[a-zA-Z]:\\\\\\\\\\\\\\\\)(?:[a-zA-Z0-9-_\\\\\\\\.\\\\\\\\\\\\\\\\]*)(?:\\\\\\\\.json|\\\\\\\\.yaml)]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[builtin.yaml-cpp%gcc-tokens28-yaml-cpp%gcc]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_multiple_specs[mvapich cflags=\\\"-O3 -fPIC\\\" emacs^ncurses%intel-tokens4-expected_specs4]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[testrepo.yaml-cpp%gcc-tokens29-yaml-cpp%gcc]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[zlib ~~foo-tokens75-zlib~~foo]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_specfile_dependency\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[yaml-cpp@0.1.8%intel@12.1 ^boost@3.1.4-tokens27-yaml-cpp@0.1.8%intel@12.1 ^boost@3.1.4]\", \"lib/spack/spack/test/spec_syntax.py::test_platform_is_none_if_not_present[target=x86_64]\"]"},"PASS_TO_FAIL":{"kind":"string","value":"[]"},"FAIL_TO_PASS":{"kind":"string","value":"[\"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[^[virtuals=mpi] openmpi+foo ^[virtuals=lapack] openmpi+bar-tokens71-^[virtuals=lapack,mpi] openmpi+bar+foo]\"]"},"FAIL_TO_FAIL":{"kind":"string","value":"[]"},"install":{"kind":"string","value":"{\"install\": [\"uv pip install -e .\", \"spack -d bootstrap now --dev\"], \"pre_install\": [\"tee pytest.ini < spec cuda\r\n```\r\n\n\n### Error message\n\nPartial error:\r\n\r\n```\r\n==> Error: concretization failed for the following reasons:\r\n\r\n 1. Attempted to use external for 'cuda' which does not satisfy any configured external spec\r\n 2. umpire: '%clang@16:' conflicts with '+cuda ^cuda@:12.3~allow-unsupported-compilers'\r\n 3. serac: '%clang@16:' conflicts with '+cuda ^cuda@:12.3~allow-unsupported-compilers'\r\n 4. raja: '%clang@16:' conflicts with '+cuda ^cuda@:12.3~allow-unsupported-compilers'\r\n 5. mfem: '%clang@16:' conflicts with '+cuda ^cuda@:12.3~allow-unsupported-compilers'\r\n 6. camp: '%clang@16:' conflicts with '+cuda ^cuda@:12.3~allow-unsupported-compilers'\r\n```\n\n### Information on your system\n\nMachine name: Lassen\r\nOS: blueos\n\n### General information\n\n- [X] I have run `spack debug report` and reported the version of Spack/Python/Platform\n- [X] I have searched the issues of this repo and believe this is not a duplicate\n- [X] I have run the failing commands in debug mode and reported the output\n"},"hints_text":{"kind":"string","value":"I was able to narrow this down to being specific to externals. `spack spec cuda+allow-unsupported-compilers` works.\nExact same issue was reported by @finkandreas. Users expect the `buildable: false` + `spec: x +sticky_variant` to be enough.\nI have a candidate patch for this that I've given to @white238 to ensure it works for him, and I'll push that as a PR soon\nI tested @becker33 's fix and it got around my concretization error."},"created_at":{"kind":"string","value":"2024-01-23T21:57:47Z"},"merged_at":{"kind":"string","value":"2024-01-25T16:22:23Z"},"PASS_TO_PASS":{"kind":"string","value":"[\"lib/spack/spack/test/concretize.py::TestConcretize::test_no_compilers_for_arch\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[external-buildable-with-variant@0.9 +baz-True-@0.9]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_newer_dependency_adds_a_transitive_virtual\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_enable_disable_compiler_existence_check\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-preference-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a-True-with_dep0-without_dep0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_constraint_with_external_package[cmake %gcc-%gcc]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts2-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_none\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_two_setuptools[minimal]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_no_multiple_solutions_with_different_edges_same_nodes\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_and_virtual\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_no_conflict_in_external_specs[conflict@10.0%clang+foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_select_lower_priority_package_from_repository_stack[hdf5 ^builtin.mock.gmake-expected_namespaces1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_anonymous_dep[mpileaks ^cflags=-g]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_match_is_preferred_to_newer_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_deprecated_versions_not_selected[deprecated-versions-deprecated-versions@1.0.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inheritance[clang]\", \"lib/spack/spack/test/concretize.py::TestConcreteSpecsByHash::test_adding_specs[input_specs0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_no_matching_compiler_specs\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies@1.0-patched_deps1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[True-dev-build-test-dependent ^dev-build-test-install-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_annotated_on_edges[mpileaks ^mpich]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize_preferences[specs2-libelf@0.8.13-3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_architecture_inheritance\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_conditional_variant\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretization_with_compilers_supporting_target_any\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inheritance[gcc@10.2.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_and_compiler_preferences[cmake %gcc-expected1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_noversion_pkg[noversion-bundle]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants[conditional-variant-pkg@2.0+version_based+variant_based-expected3-unexpected3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_target_ranges_in_conflicts\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-preference-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inheritance[gcc]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretization_of_test_dependencies\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_provides_or_depends_on\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_dependency_conditional_on_another_dependency_state\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_my_dep_depends_on_provider_of_my_virtual_dep\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3@1.1 ^python@2.7.11-expected3-unexpected3]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts6-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mv_variants_disjoint_sets_from_spec[mvapich2 file_systems=lustre-file_systems-expected_values1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[fftw ^mpich-expected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[ascent~~shared +adios2 ^adios2+shared-expected_propagation3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants_fail[@1.0+version_based]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich~debug]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_not_reusing_incompatible_os_or_compiler\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich debug=True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_noversion_pkg[noversion]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_match_virtual\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts5-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_children\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_version_weight_and_provenance\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[externaltool@1.0-True-@1.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_host_compatible_concretization\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant foo=foo-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_result_specs_is_not_empty[specs2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize_preferences[specs0-libelf@0.8.12-1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_is_unique[mpileaks ^mpich%clang@12.0.0-%clang@12.0.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[False-dev-build-test-dependent ^dev-build-test-install-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_package_with_constraint_not_met_by_external\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize_preferences[specs3-mpich-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_constraint_with_external_package[cmake %clang-%clang]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflicts_in_spec[conflict%clang+foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[cannonlake-preference-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals_with_two_bound\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_preferred_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_config[python@configured platform=test]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[libelf@0.8.13]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concrete_specs_are_not_modified_on_reuse[mpich~debug-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_provides_handles_multiple_providers_of_same_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_with_unknown_package_dont_raise\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_is_unique[mpileaks-%gcc@10.2.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[haswell-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_flags_from_user_are_grouped\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[skylake-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_pure_build_virtual_dependency[minimal]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs7-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_with_restricted_virtual\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_flags_from_compiler_and_dependent\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_solution_without_cycles\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[False-dev-build-test-install-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[quantum-espresso-expected2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant@1.72.0 cxxstd=2a-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich+debug]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[broadwell-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[broadwell-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[conflict-parent%gcc]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_succeeds_with_unknown_version[0.2.15]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_succeeds_with_unknown_version[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_config[python@configured os=debian]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_reconstructed_on_reuse[mpileaks ^zmpi-zmpi]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflict_in_all_directives_true\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_conflicts_in_package_py[bowtie@1.4.0-%gcc@10.2.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants_fail[@2.0+version_based~variant_based+two_whens]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_conflicts_in_package_py[bowtie@1.3.0-%clang@12.0.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals_with_one_bound\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[develop-v_opts1-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[cannonlake-preference-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_add_microarchitectures_on_explicit_request\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_packages_have_consistent_hash\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_different_prefix\", \"lib/spack/spack/test/concretize.py::TestConcretizeEdges::test_condition_triggered_by_edge_property[conditional-edge~foo-expected_satisfies1-expected_not_satisfies1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[old-external-True-@1.0.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-preference-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs5-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[ascent~~shared +adios2-expected_propagation2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_annotated_on_edges[mpileaks]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_and_compiler_preferences[cmake-expected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs1-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_error_message_for_inconsistent_variants[wrong-variant-in-conflicts]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[haswell-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants_fail[@1.0~version_based]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_reconstructed_on_reuse[mpileaks ^mpich2-mpich2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[haswell-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflicts_show_cores[conflict-parent@0.9^conflict~foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3 ^python@2.7.11-expected1-unexpected1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_os_selection_when_multiple_choices_are_possible[mpileaks%gcc@10.2.1 platform=test os=debian6-os=debian6]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[skylake-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[cannonlake-preference-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcreteSpecsByHash::test_adding_specs[input_specs2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_module\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_cumulative_version_ranges_with_different_length\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_specified_variant\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[broadwell-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[ascent++shared +adios2 ^adios2~shared-expected_propagation4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_config[python@configured target=core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_sticky_variant_in_external[sticky-variant@1.0-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3 ^python@3.5.1-expected0-unexpected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_config[python@configured]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants[conditional-variant-pkg@1.0-expected0-unexpected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_unified_python\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_installed_packages_when_package_def_changes[context0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3 ^python@3.5.1-expected0-unexpected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[external-buildable-with-variant +baz-True-@1.1.special +baz]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagated_variant_is_not_passed_to_dependent\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_mention_build_dep\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_versions_in_virtual_dependencies\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_installed_specs_disregard_conflicts\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[external-buildable-with-variant@1.0: ~baz-False-@1.0 ~baz]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[git.branch=1.2.3-v_opts16-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_multivalue_variant\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mv_variants_disjoint_sets_from_packages_yaml\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inheritance[clang@:12.0.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[libelf0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_with_unknown_namespace_dont_raise\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_compiler_flag_propagate\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concrete_specs_are_not_modified_on_reuse[mpich-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants[conditional-variant-pkg@2.0~version_based-expected2-unexpected2]\", \"lib/spack/spack/test/concretize.py::TestConcretizeEdges::test_virtuals_provided_together_but_only_one_required_in_dag\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3 ^python@2.7.11-expected1-unexpected1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_succeeds_with_unknown_version[fbranch]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_result_specs_is_not_empty[specs0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_child\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extensions_have_dependency\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_provider_must_meet_requirements\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_dependent_with_singlevalued_variant_type\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_os_selection_when_multiple_choices_are_possible[mpileaks%gcc@10.2.1 platform=test os=redhat6-os=redhat6]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts4-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[conflict%clang~foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_simultaneous_concretization_of_specs[abstract_specs0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[broadwell-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretizeEdges::test_condition_triggered_by_edge_property[conditional-edge+foo-expected_satisfies2-expected_not_satisfies2]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_two_gmake[minimal]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a foobar=bar-tests_arg2-with_dep2-without_dep2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals_with_dual_provider\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_do_not_invent_new_concrete_versions_unless_necessary\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_delete_version_and_reuse\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_different_modules[modules1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3@1.0 ^python@3.5.1-expected4-unexpected4]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_two_gmake[full]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-preference-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[False-dev-build-test-install-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[hypre~~shared ^openblas+shared-expected_propagation0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_variant_not_default\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_non_default_provider_of_multiple_virtuals\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@2.20]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_deprecated_versions_not_selected[deprecated-versions@=1.1.0-deprecated-versions@1.1.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_is_equivalent_to_specified_version[main]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant@1.62.0 cxxstd=17-False]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[0000001=1.2.3-v_opts12-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_compiler_flag_not_passed_to_dependent\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant foo=bar-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[skylake-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich cppflags==\\\"-O3\\\"]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_simultaneous_concretization_of_specs[abstract_specs1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_os_selection_when_multiple_choices_are_possible[mpileaks-os=debian6]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_installed_packages_when_package_def_changes[context2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies +foo-patched_deps4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs4-3]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_pure_build_virtual_dependency[full]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_custom_compiler_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_target_granularity\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs3-4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[callpath]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_parents\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_that_would_require_a_virtual_dependency\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[quantum-espresso-expected1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_anonymous\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a foobar=bar-tests_arg3-with_dep3-without_dep3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[externaltool@0.9-True-@0.9]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflicts_show_cores[conflict%clang+foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_transitive_conditional_virtual_dependency\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_two_setuptools[full]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inherited_upwards\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_dont_define_new_version_from_input_if_checksum_required\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_different_modules[None]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_self\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[skylake-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[external-buildable-with-variant ~baz-False-@1.0 ~baz]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_installed_packages_when_package_def_changes[context1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_sticky_variant_in_package\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant@1.62.0 cxxstd=2a-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs8-1]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts11-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_anonymous_dep[mpileaks ^%gcc]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_version_badness_more_important_than_default_mv_variants\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_reconstructed_on_reuse[mpileaks-mpich]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_all_patches_applied\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@1.2:2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant@1.72.0 staging=flexpath-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[libelf1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_with_custom_non_numeric_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals_with_dual_provider_and_a_conflict\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts15-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_version_matches_any_entry_in_compilers_yaml\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtual_is_fully_expanded_for_mpileaks\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants[conditional-variant-pkg@2.0-expected1-unexpected1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_match_constraints_when_selected\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_nobuild_package\", \"lib/spack/spack/test/concretize.py::TestConcreteSpecsByHash::test_adding_specs[input_specs1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_different_compilers_get_different_flags\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_coconcretize_reuse_and_virtuals\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtual_is_fully_expanded_for_callpath\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3@1.0 ^python@2.7.11-expected2-unexpected2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_conflicts_in_package_py[bowtie@1.2.2 os=redhat6-%gcc@11.1.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mv_variants_disjoint_sets_from_spec[mvapich2 file_systems=lustre,gpfs-file_systems-expected_values2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_multivalued_variants_from_cli[multivalue-variant-expected_dict0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_result_specs_is_not_empty[specs1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mixing_compilers_only_affects_subdag\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_multivalued_variants_from_cli[multivalue-variant libs=static-expected_dict1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@2.21]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_with_non_default_variant_as_dependency\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[0000000000000000000000000000000000000001=1.2.3-v_opts10-True]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts0-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@:1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_user_can_select_externals_with_require\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_regression_issue_4492\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[True-dev-build-test-install-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[cannonlake-preference-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_installed\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_in_nonbuildable_external_package[clang-external-common-python-%clang ^external-common-openssl%clang ^external-common-gdbm%clang-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@2.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[quantum-espresso-expected3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[True-dev-build-test-install-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[quantum-espresso~veritas-expected4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_installed_externals_are_reused\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_python_from_cli_and_extension_from_db\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3@1.0 ^python@2.7.11-expected2-unexpected2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize_preferences[specs1-libelf@0.8.12-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs2-4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_regression_issue_7705\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_is_equivalent_to_specified_version[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_sibling\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts9-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[True-dev-build-test-dependent ^dev-build-test-install-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_regression_issue_7239\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[hypre~~shared ^openblas-expected_propagation1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants_fail[@2.0~version_based+variant_based]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_select_lower_priority_package_from_repository_stack[builtin.mock.gmake-expected_namespaces0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_error_message_for_inconsistent_variants[wrong-variant-in-depends-on]\", \"lib/spack/spack/test/concretize.py::TestConcretizeEdges::test_condition_triggered_by_edge_property[conditional-edge-expected_satisfies0-expected_not_satisfies0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies ^libelf@0.8.10-patched_deps3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_compiler_flag_does_not_propagate\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3@1.0 ^python@3.5.1-expected4-unexpected4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a foobar=bar-False-with_dep4-without_dep4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mv_variants_disjoint_sets_from_spec[mvapich2-file_systems-expected_values0]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts13-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs0-1]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts3-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_and_compiler_preferences[cmake %clang-expected2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_in_nonbuildable_external_package[gcc-external-common-python %clang-%clang ^external-common-openssl%gcc ^external-common-gdbm%clang-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_architecture_deep_inheritance\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a foobar=bar-True-with_dep1-without_dep1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_simultaneous_concretization_of_specs[abstract_specs3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_regression_issue_7941\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies-patched_deps0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_misleading_error_message_on_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[conflict]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts14-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflicts_in_spec[conflict-parent@0.9^conflict~foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_is_equivalent_to_specified_version[0.2.15]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@2:]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_with_flags\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs6-4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_simultaneous_concretization_of_specs[abstract_specs2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[False-dev-build-test-dependent ^dev-build-test-install-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@:1.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_require_targets_are_allowed\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts8-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_with_provides_when\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_match\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_installed_version_is_selected_only_for_reuse\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[externaltool@0_8-True-@0_8]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies@1.0 ^libdwarf@20111030-patched_deps2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich cppflags=\\\"-O3\\\"]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts7-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_detection\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_select_lower_priority_package_from_repository_stack[hdf5 ^gmake-expected_namespaces2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_target_compatibility\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_sticky_variant_in_external[sticky-variant@1.0~allow-gcc-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_dont_select_version_that_brings_more_variants_in\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concrete_specs_are_not_modified_on_reuse[mpich+debug-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_hash_assigned_version_is_preferred\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[haswell-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_flags_differ_identical_compilers\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3@1.1 ^python@2.7.11-expected3-unexpected3]\"]"},"PASS_TO_FAIL":{"kind":"string","value":"[]"},"FAIL_TO_PASS":{"kind":"string","value":"[\"lib/spack/spack/test/concretize.py::test_reusable_externals_different_spec\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_sticky_variant_in_external[sticky-variant@1.0+allow-gcc-True]\"]"},"FAIL_TO_FAIL":{"kind":"string","value":"[]"},"install":{"kind":"string","value":"{\"install\": [\"uv pip install -e .\", \"spack -d bootstrap now --dev\"], \"pre_install\": [\"tee pytest.ini < Dict[str, Set[str]]:\n \"\"\"Return dict of possible dependencies of this package.\n \n Args:\n@@ -2493,14 +2494,21 @@ def flatten_dependencies(spec, flat_dir):\n dep_files.merge(flat_dir + \"/\" + name)\n \n \n-def possible_dependencies(*pkg_or_spec, **kwargs):\n+def possible_dependencies(\n+ *pkg_or_spec: Union[str, spack.spec.Spec, typing.Type[PackageBase]],\n+ transitive: bool = True,\n+ expand_virtuals: bool = True,\n+ depflag: dt.DepFlag = dt.ALL,\n+ missing: Optional[dict] = None,\n+ virtuals: Optional[set] = None,\n+) -> Dict[str, Set[str]]:\n \"\"\"Get the possible dependencies of a number of packages.\n \n See ``PackageBase.possible_dependencies`` for details.\n \"\"\"\n packages = []\n for pos in pkg_or_spec:\n- if isinstance(pos, PackageMeta):\n+ if isinstance(pos, PackageMeta) and issubclass(pos, PackageBase):\n packages.append(pos)\n continue\n \n@@ -2513,9 +2521,16 @@ def possible_dependencies(*pkg_or_spec, **kwargs):\n else:\n packages.append(pos.package_class)\n \n- visited = {}\n+ visited: Dict[str, Set[str]] = {}\n for pkg in packages:\n- pkg.possible_dependencies(visited=visited, **kwargs)\n+ pkg.possible_dependencies(\n+ visited=visited,\n+ transitive=transitive,\n+ expand_virtuals=expand_virtuals,\n+ depflag=depflag,\n+ missing=missing,\n+ virtuals=virtuals,\n+ )\n \n return visited\n \ndiff --git a/lib/spack/spack/solver/asp.py b/lib/spack/spack/solver/asp.py\nindex 0f38331412cd0c..bc9a3e2fd7e960 100644\n--- a/lib/spack/spack/solver/asp.py\n+++ b/lib/spack/spack/solver/asp.py\n@@ -13,6 +13,7 @@\n import re\n import sys\n import types\n+import typing\n import warnings\n from typing import Callable, Dict, List, NamedTuple, Optional, Sequence, Set, Tuple, Union\n \n@@ -418,7 +419,7 @@ def check_packages_exist(specs):\n for spec in specs:\n for s in spec.traverse():\n try:\n- check_passed = repo.exists(s.name) or repo.is_virtual(s.name)\n+ check_passed = repo.repo_for_pkg(s).exists(s.name) or repo.is_virtual(s.name)\n except Exception as e:\n msg = \"Cannot find package: {0}\".format(str(e))\n check_passed = False\n@@ -1175,6 +1176,7 @@ def __init__(self, tests=False):\n \n # Set during the call to setup\n self.pkgs = None\n+ self.explicitly_required_namespaces = {}\n \n def pkg_version_rules(self, pkg):\n \"\"\"Output declared versions of a package.\n@@ -1187,7 +1189,9 @@ def key_fn(version):\n # Origins are sorted by \"provenance\" first, see the Provenance enumeration above\n return version.origin, version.idx\n \n- pkg = packagize(pkg)\n+ if isinstance(pkg, str):\n+ pkg = self.pkg_class(pkg)\n+\n declared_versions = self.declared_versions[pkg.name]\n partially_sorted_versions = sorted(set(declared_versions), key=key_fn)\n \n@@ -1406,7 +1410,10 @@ def reject_requirement_constraint(\n return False\n \n def pkg_rules(self, pkg, tests):\n- pkg = packagize(pkg)\n+ pkg = self.pkg_class(pkg)\n+\n+ # Namespace of the package\n+ self.gen.fact(fn.pkg_fact(pkg.name, fn.namespace(pkg.namespace)))\n \n # versions\n self.pkg_version_rules(pkg)\n@@ -2038,7 +2045,7 @@ class Body:\n if not spec.concrete:\n reserved_names = spack.directives.reserved_names\n if not spec.virtual and vname not in reserved_names:\n- pkg_cls = spack.repo.PATH.get_pkg_class(spec.name)\n+ pkg_cls = self.pkg_class(spec.name)\n try:\n variant_def, _ = pkg_cls.variants[vname]\n except KeyError:\n@@ -2159,7 +2166,7 @@ def define_package_versions_and_validate_preferences(\n \"\"\"Declare any versions in specs not declared in packages.\"\"\"\n packages_yaml = spack.config.get(\"packages\")\n for pkg_name in possible_pkgs:\n- pkg_cls = spack.repo.PATH.get_pkg_class(pkg_name)\n+ pkg_cls = self.pkg_class(pkg_name)\n \n # All the versions from the corresponding package.py file. Since concepts\n # like being a \"develop\" version or being preferred exist only at a\n@@ -2621,8 +2628,6 @@ def setup(\n \"\"\"\n check_packages_exist(specs)\n \n- self.possible_virtuals = set(x.name for x in specs if x.virtual)\n-\n node_counter = _create_counter(specs, tests=self.tests)\n self.possible_virtuals = node_counter.possible_virtuals()\n self.pkgs = node_counter.possible_dependencies()\n@@ -2638,6 +2643,10 @@ def setup(\n if missing_deps:\n raise spack.spec.InvalidDependencyError(spec.name, missing_deps)\n \n+ for node in spack.traverse.traverse_nodes(specs):\n+ if node.namespace is not None:\n+ self.explicitly_required_namespaces[node.name] = node.namespace\n+\n # driver is used by all the functions below to add facts and\n # rules to generate an ASP program.\n self.gen = driver\n@@ -2866,6 +2875,13 @@ def _specs_from_requires(self, pkg_name, section):\n for s in spec_group[key]:\n yield _spec_with_default_name(s, pkg_name)\n \n+ def pkg_class(self, pkg_name: str) -> typing.Type[\"spack.package_base.PackageBase\"]:\n+ request = pkg_name\n+ if pkg_name in self.explicitly_required_namespaces:\n+ namespace = self.explicitly_required_namespaces[pkg_name]\n+ request = f\"{namespace}.{pkg_name}\"\n+ return spack.repo.PATH.get_pkg_class(request)\n+\n \n class RuntimePropertyRecorder:\n \"\"\"An object of this class is injected in callbacks to compilers, to let them declare\n@@ -3077,6 +3093,9 @@ def _arch(self, node):\n self._specs[node].architecture = arch\n return arch\n \n+ def namespace(self, node, namespace):\n+ self._specs[node].namespace = namespace\n+\n def node_platform(self, node, platform):\n self._arch(node).platform = platform\n \n@@ -3291,14 +3310,6 @@ def build_specs(self, function_tuples):\n \n action(*args)\n \n- # namespace assignment is done after the fact, as it is not\n- # currently part of the solve\n- for spec in self._specs.values():\n- if spec.namespace:\n- continue\n- repo = spack.repo.PATH.repo_for_pkg(spec)\n- spec.namespace = repo.namespace\n-\n # fix flags after all specs are constructed\n self.reorder_flags()\n \ndiff --git a/lib/spack/spack/solver/concretize.lp b/lib/spack/spack/solver/concretize.lp\nindex 21cdbbf8481ae8..c56f2bcc665a0d 100644\n--- a/lib/spack/spack/solver/concretize.lp\n+++ b/lib/spack/spack/solver/concretize.lp\n@@ -45,6 +45,9 @@\n :- attr(\"depends_on\", node(min_dupe_id, Package), node(ID, _), \"link\"), ID != min_dupe_id, unification_set(\"root\", node(min_dupe_id, Package)), internal_error(\"link dependency out of the root unification set\").\n :- attr(\"depends_on\", node(min_dupe_id, Package), node(ID, _), \"run\"), ID != min_dupe_id, unification_set(\"root\", node(min_dupe_id, Package)), internal_error(\"run dependency out of the root unification set\").\n \n+% Namespaces are statically assigned by a package fact\n+attr(\"namespace\", node(ID, Package), Namespace) :- attr(\"node\", node(ID, Package)), pkg_fact(Package, namespace(Namespace)).\n+\n % Rules on \"unification sets\", i.e. on sets of nodes allowing a single configuration of any given package\n unify(SetID, PackageName) :- unification_set(SetID, node(_, PackageName)).\n :- 2 { unification_set(SetID, node(_, PackageName)) }, unify(SetID, PackageName).\ndiff --git a/var/spack/repos/builtin.mock/packages/gmake/package.py b/var/spack/repos/builtin.mock/packages/gmake/package.py\nindex 5fc2748deec17e..4ab856a3add92b 100644\n--- a/var/spack/repos/builtin.mock/packages/gmake/package.py\n+++ b/var/spack/repos/builtin.mock/packages/gmake/package.py\n@@ -13,6 +13,7 @@ class Gmake(Package):\n url = \"https://ftpmirror.gnu.org/make/make-4.4.tar.gz\"\n \n version(\"4.4\", sha256=\"ce35865411f0490368a8fc383f29071de6690cbadc27704734978221f25e2bed\")\n+ version(\"3.0\", sha256=\"ce35865411f0490368a8fc383f29071de6690cbadc27704734978221f25e2bed\")\n \n def do_stage(self):\n mkdirp(self.stage.source_path)\n"},"test_patch":{"kind":"string","value":"diff --git a/lib/spack/spack/test/concretize.py b/lib/spack/spack/test/concretize.py\nindex b6ddf6c4dd68ae..70743d8704407d 100644\n--- a/lib/spack/spack/test/concretize.py\n+++ b/lib/spack/spack/test/concretize.py\n@@ -2207,6 +2207,33 @@ def test_reuse_python_from_cli_and_extension_from_db(self, mutable_database):\n \n assert with_reuse.dag_hash() == without_reuse.dag_hash()\n \n+ @pytest.mark.regression(\"35536\")\n+ @pytest.mark.parametrize(\n+ \"spec_str,expected_namespaces\",\n+ [\n+ # Single node with fully qualified namespace\n+ (\"builtin.mock.gmake\", {\"gmake\": \"builtin.mock\"}),\n+ # Dependency with fully qualified namespace\n+ (\"hdf5 ^builtin.mock.gmake\", {\"gmake\": \"builtin.mock\", \"hdf5\": \"duplicates.test\"}),\n+ (\"hdf5 ^gmake\", {\"gmake\": \"duplicates.test\", \"hdf5\": \"duplicates.test\"}),\n+ ],\n+ )\n+ @pytest.mark.only_clingo(\"Uses specs requiring multiple gmake specs\")\n+ def test_select_lower_priority_package_from_repository_stack(\n+ self, spec_str, expected_namespaces\n+ ):\n+ \"\"\"Tests that a user can explicitly select a lower priority, fully qualified dependency\n+ from cli.\n+ \"\"\"\n+ # 'builtin.mock\" and \"duplicates.test\" share a 'gmake' package\n+ additional_repo = os.path.join(spack.paths.repos_path, \"duplicates.test\")\n+ with spack.repo.use_repositories(additional_repo, override=False):\n+ s = Spec(spec_str).concretized()\n+\n+ for name, namespace in expected_namespaces.items():\n+ assert s[name].concrete\n+ assert s[name].namespace == namespace\n+\n \n @pytest.fixture()\n def duplicates_test_repository():\n"},"problem_statement":{"kind":"string","value":"Namespace is ignored depending on the repo order in repos.yaml\n### Steps to reproduce\r\n\r\nWe want to have the same package (e.g. `zlib` here) in two repos, where the `builtin` repository is the default one and `myrepo` to have less priority. \r\nI start from scratch:\r\n```console\r\n$ cd $SCRATCH\r\n$ git clone -c feature.manyFiles=true https://github.com/spack/spack.git\r\n$ cd spack/\r\n$ . share/spack/setup-env.sh\r\n```\r\nI create my new repository:\r\n```console\r\n$ spack repo create myrepo\r\n$ spack repo add $SCRATCH/spack/myrepo\r\n```\r\nbut I want the `builtin` repo to be the default:\r\n```console\r\n# Change the order of the repos:\r\n$ spack config edit repos\r\n# to\r\n$ spack config get repos \r\nrepos:\r\n- $spack/var/spack/repos/builtin\r\n- $spack/myrepo\r\n```\r\nNow I copy from the `builtin` repository to `myrepo` and install the package from `myrepo`:\r\n```console\r\n$ cp -r var/spack/repos/builtin/packages/zlib myrepo/packages/\r\n$ spack install myrepo.zlib\r\n$ spack find -N\r\n-- linux-sles15-haswell / gcc@7.5.0 -----------------------------\r\nbuiltin.zlib@1.2.13\r\n==> 1 installed package\r\n```\r\nSo the namespace seems to be ignored.\r\nBut if I reverse the order of the repos, it installs correctly.\r\n```console\r\n$ spack uninstall zlib\r\n# reverse the order\r\n$ spack config get repos \r\nrepos:\r\n- spack/myrepo\r\n- spack/var/spack/repos/builtin\r\n\r\n$ spack install myrepo.zlib\r\n$ spack find -N\r\n-- linux-sles15-haswell / gcc@7.5.0 -----------------------------\r\nmyrepo.zlib@1.2.13\r\n==> 1 installed package\r\n```\r\n\r\n### Error message\r\n\r\nDepending on the order of the repos in the `repos.yaml`:\r\n```console\r\nrepos:\r\n- $spack/var/spack/repos/builtin\r\n- $spack/myrepo\r\n```\r\nthe namespace in `spack install myrepo.zlib` is ignored (see above). \r\nAlso `spack info myrepo.zlib` shows only the information of the builtin one.\r\nBut we want to have the `builtin` repo to be the default one and to be able to install a package from `myrepo` if explicitly stated. Do I miss something here? As far as I understood the documentation, that should be possible.\r\n\r\nAttached the debug output of `spack install myrepo.zlib`\r\n```console\r\nrepos:\r\n- $spack/myrepo\r\n- $spack/var/spack/repos/builtin\r\n```\r\n[wrong_order.log](https://github.com/spack/spack/files/10768243/wrong_order.log)\r\n\r\nDebug output of `spack install myrepo.zlib` with\r\n```console\r\nrepos:\r\n- $spack/var/spack/repos/builtin\r\n- $spack/myrepo\r\n```\r\n[correct_order.log](https://github.com/spack/spack/files/10768290/correct_order.log)\r\n\r\n\r\n### Information on your system\r\n\r\n```console\r\n$ spack debug report\r\n* **Spack:** 0.20.0.dev0 (983c68cc30be337bfcd1711bb0b95431fefbb2e1)\r\n* **Python:** 3.6.12\r\n* **Platform:** linux-sles15-haswell\r\n* **Concretizer:** clingo\r\n```\r\n\r\n### General information\r\n\r\n- [X] I have run `spack debug report` and reported the version of Spack/Python/Platform\r\n- [X] I have searched the issues of this repo and believe this is not a duplicate\r\n- [X] I have run the failing commands in debug mode and reported the output\r\n\r\n\n"},"hints_text":{"kind":"string","value":"I think originally namespaces were meant to act as overlays, even though I am not sure if that is written anywhere. We should probably define the semantic more rigorously, document it and enforce its behavior with tests. @tgamblin @haampie fyi\nI'll start adding references, as this seems similar to our problem: https://github.com/spack/spack/issues/33036 \r\n\r\nAs to your problem: I think the canonical way to edit would be to use `spack edit -N namespace`. For spack to pick up packages from lower-ranked namespaces we successfully used this patch: https://github.com/spack/spack/pull/33053 (and I'd be happy to hear any feedback whether it makes sense to someone besides me ;))\nThis bug has many duplicates, so raising priority\nThank you for raising the priority of this issue, @alalazo, as it is an important (and [documented](https://spack.readthedocs.io/en/latest/repositories.html#overriding-built-in-packages)) feature. \r\n\r\n\r\n"},"created_at":{"kind":"string","value":"2024-01-04T18:45:36Z"},"merged_at":{"kind":"string","value":"2024-01-16T10:47:33Z"},"PASS_TO_PASS":{"kind":"string","value":"[\"lib/spack/spack/test/concretize.py::TestConcretize::test_no_compilers_for_arch\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[external-buildable-with-variant@0.9 +baz-True-@0.9]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_newer_dependency_adds_a_transitive_virtual\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_enable_disable_compiler_existence_check\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-preference-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a-True-with_dep0-without_dep0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_constraint_with_external_package[cmake %gcc-%gcc]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts2-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_none\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_two_setuptools[minimal]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_no_multiple_solutions_with_different_edges_same_nodes\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_and_virtual\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_no_conflict_in_external_specs[conflict@10.0%clang+foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_anonymous_dep[mpileaks ^cflags=-g]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_match_is_preferred_to_newer_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_deprecated_versions_not_selected[deprecated-versions-deprecated-versions@1.0.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inheritance[clang]\", \"lib/spack/spack/test/concretize.py::TestConcreteSpecsByHash::test_adding_specs[input_specs0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_no_matching_compiler_specs\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies@1.0-patched_deps1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[True-dev-build-test-dependent ^dev-build-test-install-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_annotated_on_edges[mpileaks ^mpich]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize_preferences[specs2-libelf@0.8.13-3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_architecture_inheritance\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_conditional_variant\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretization_with_compilers_supporting_target_any\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inheritance[gcc@10.2.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_and_compiler_preferences[cmake %gcc-expected1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_noversion_pkg[noversion-bundle]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants[conditional-variant-pkg@2.0+version_based+variant_based-expected3-unexpected3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_target_ranges_in_conflicts\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-preference-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inheritance[gcc]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretization_of_test_dependencies\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_provides_or_depends_on\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_dependency_conditional_on_another_dependency_state\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_my_dep_depends_on_provider_of_my_virtual_dep\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3@1.1 ^python@2.7.11-expected3-unexpected3]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts6-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mv_variants_disjoint_sets_from_spec[mvapich2 file_systems=lustre-file_systems-expected_values1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[fftw ^mpich-expected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[ascent~~shared +adios2 ^adios2+shared-expected_propagation3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants_fail[@1.0+version_based]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich~debug]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_not_reusing_incompatible_os_or_compiler\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich debug=True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_noversion_pkg[noversion]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_match_virtual\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts5-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_children\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_version_weight_and_provenance\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[externaltool@1.0-True-@1.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_host_compatible_concretization\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant foo=foo-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_result_specs_is_not_empty[specs2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize_preferences[specs0-libelf@0.8.12-1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_is_unique[mpileaks ^mpich%clang@12.0.0-%clang@12.0.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[False-dev-build-test-dependent ^dev-build-test-install-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_package_with_constraint_not_met_by_external\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize_preferences[specs3-mpich-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_constraint_with_external_package[cmake %clang-%clang]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflicts_in_spec[conflict%clang+foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[cannonlake-preference-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals_with_two_bound\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_preferred_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_config[python@configured platform=test]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[libelf@0.8.13]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concrete_specs_are_not_modified_on_reuse[mpich~debug-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_provides_handles_multiple_providers_of_same_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_with_unknown_package_dont_raise\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_is_unique[mpileaks-%gcc@10.2.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[haswell-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_flags_from_user_are_grouped\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[skylake-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_pure_build_virtual_dependency[minimal]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs7-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_with_restricted_virtual\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_flags_from_compiler_and_dependent\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_solution_without_cycles\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[False-dev-build-test-install-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[quantum-espresso-expected2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant@1.72.0 cxxstd=2a-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich+debug]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[broadwell-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[broadwell-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[conflict-parent%gcc]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_succeeds_with_unknown_version[0.2.15]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_succeeds_with_unknown_version[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_config[python@configured os=debian]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_reconstructed_on_reuse[mpileaks ^zmpi-zmpi]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflict_in_all_directives_true\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_conflicts_in_package_py[bowtie@1.4.0-%gcc@10.2.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants_fail[@2.0+version_based~variant_based+two_whens]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_conflicts_in_package_py[bowtie@1.3.0-%clang@12.0.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals_with_one_bound\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[develop-v_opts1-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[cannonlake-preference-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_add_microarchitectures_on_explicit_request\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_packages_have_consistent_hash\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_different_prefix\", \"lib/spack/spack/test/concretize.py::TestConcretizeEdges::test_condition_triggered_by_edge_property[conditional-edge~foo-expected_satisfies1-expected_not_satisfies1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[old-external-True-@1.0.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-preference-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs5-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[ascent~~shared +adios2-expected_propagation2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_annotated_on_edges[mpileaks]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_and_compiler_preferences[cmake-expected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs1-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_error_message_for_inconsistent_variants[wrong-variant-in-conflicts]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[haswell-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants_fail[@1.0~version_based]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_reconstructed_on_reuse[mpileaks ^mpich2-mpich2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[haswell-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflicts_show_cores[conflict-parent@0.9^conflict~foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3 ^python@2.7.11-expected1-unexpected1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_os_selection_when_multiple_choices_are_possible[mpileaks%gcc@10.2.1 platform=test os=debian6-os=debian6]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[skylake-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[cannonlake-preference-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcreteSpecsByHash::test_adding_specs[input_specs2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_module\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_cumulative_version_ranges_with_different_length\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_specified_variant\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[broadwell-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[ascent++shared +adios2 ^adios2~shared-expected_propagation4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_config[python@configured target=core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3 ^python@3.5.1-expected0-unexpected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_config[python@configured]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants[conditional-variant-pkg@1.0-expected0-unexpected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_unified_python\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_installed_packages_when_package_def_changes[context0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3 ^python@3.5.1-expected0-unexpected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[external-buildable-with-variant +baz-True-@1.1.special +baz]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagated_variant_is_not_passed_to_dependent\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_mention_build_dep\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_versions_in_virtual_dependencies\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_installed_specs_disregard_conflicts\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[external-buildable-with-variant@1.0: ~baz-False-@1.0 ~baz]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[git.branch=1.2.3-v_opts16-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_multivalue_variant\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mv_variants_disjoint_sets_from_packages_yaml\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inheritance[clang@:12.0.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[libelf0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_with_unknown_namespace_dont_raise\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_compiler_flag_propagate\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concrete_specs_are_not_modified_on_reuse[mpich-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants[conditional-variant-pkg@2.0~version_based-expected2-unexpected2]\", \"lib/spack/spack/test/concretize.py::TestConcretizeEdges::test_virtuals_provided_together_but_only_one_required_in_dag\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3 ^python@2.7.11-expected1-unexpected1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_succeeds_with_unknown_version[fbranch]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_result_specs_is_not_empty[specs0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_child\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extensions_have_dependency\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_provider_must_meet_requirements\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_dependent_with_singlevalued_variant_type\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_os_selection_when_multiple_choices_are_possible[mpileaks%gcc@10.2.1 platform=test os=redhat6-os=redhat6]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts4-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[conflict%clang~foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_simultaneous_concretization_of_specs[abstract_specs0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[broadwell-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretizeEdges::test_condition_triggered_by_edge_property[conditional-edge+foo-expected_satisfies2-expected_not_satisfies2]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_two_gmake[minimal]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a foobar=bar-tests_arg2-with_dep2-without_dep2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals_with_dual_provider\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_do_not_invent_new_concrete_versions_unless_necessary\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_delete_version_and_reuse\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_different_modules[modules1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3@1.0 ^python@3.5.1-expected4-unexpected4]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_two_gmake[full]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-preference-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[False-dev-build-test-install-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[hypre~~shared ^openblas+shared-expected_propagation0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_variant_not_default\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_non_default_provider_of_multiple_virtuals\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@2.20]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_deprecated_versions_not_selected[deprecated-versions@=1.1.0-deprecated-versions@1.1.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_is_equivalent_to_specified_version[main]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant@1.62.0 cxxstd=17-False]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[0000001=1.2.3-v_opts12-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_compiler_flag_not_passed_to_dependent\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant foo=bar-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[skylake-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich cppflags==\\\"-O3\\\"]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_simultaneous_concretization_of_specs[abstract_specs1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_os_selection_when_multiple_choices_are_possible[mpileaks-os=debian6]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_installed_packages_when_package_def_changes[context2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies +foo-patched_deps4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs4-3]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_pure_build_virtual_dependency[full]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_custom_compiler_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_target_granularity\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs3-4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[callpath]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_parents\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_that_would_require_a_virtual_dependency\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[quantum-espresso-expected1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_anonymous\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a foobar=bar-tests_arg3-with_dep3-without_dep3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[externaltool@0.9-True-@0.9]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflicts_show_cores[conflict%clang+foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_transitive_conditional_virtual_dependency\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_two_setuptools[full]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inherited_upwards\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_dont_define_new_version_from_input_if_checksum_required\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_different_modules[None]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_self\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[skylake-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[external-buildable-with-variant ~baz-False-@1.0 ~baz]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_installed_packages_when_package_def_changes[context1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_sticky_variant_in_package\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant@1.62.0 cxxstd=2a-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs8-1]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts11-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_anonymous_dep[mpileaks ^%gcc]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_version_badness_more_important_than_default_mv_variants\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_reconstructed_on_reuse[mpileaks-mpich]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_all_patches_applied\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@1.2:2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant@1.72.0 staging=flexpath-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[libelf1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_with_custom_non_numeric_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals_with_dual_provider_and_a_conflict\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts15-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_version_matches_any_entry_in_compilers_yaml\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtual_is_fully_expanded_for_mpileaks\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants[conditional-variant-pkg@2.0-expected1-unexpected1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_match_constraints_when_selected\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_nobuild_package\", \"lib/spack/spack/test/concretize.py::TestConcreteSpecsByHash::test_adding_specs[input_specs1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_different_compilers_get_different_flags\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_coconcretize_reuse_and_virtuals\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtual_is_fully_expanded_for_callpath\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3@1.0 ^python@2.7.11-expected2-unexpected2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_conflicts_in_package_py[bowtie@1.2.2 os=redhat6-%gcc@11.1.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mv_variants_disjoint_sets_from_spec[mvapich2 file_systems=lustre,gpfs-file_systems-expected_values2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_multivalued_variants_from_cli[multivalue-variant-expected_dict0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_result_specs_is_not_empty[specs1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mixing_compilers_only_affects_subdag\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_multivalued_variants_from_cli[multivalue-variant libs=static-expected_dict1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@2.21]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_with_non_default_variant_as_dependency\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[0000000000000000000000000000000000000001=1.2.3-v_opts10-True]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts0-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@:1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_user_can_select_externals_with_require\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_regression_issue_4492\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[True-dev-build-test-install-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[cannonlake-preference-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_installed\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_in_nonbuildable_external_package[clang-external-common-python-%clang ^external-common-openssl%clang ^external-common-gdbm%clang-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@2.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[quantum-espresso-expected3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[True-dev-build-test-install-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[quantum-espresso~veritas-expected4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_installed_externals_are_reused\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_python_from_cli_and_extension_from_db\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3@1.0 ^python@2.7.11-expected2-unexpected2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize_preferences[specs1-libelf@0.8.12-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs2-4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_regression_issue_7705\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_is_equivalent_to_specified_version[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_sibling\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts9-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[True-dev-build-test-dependent ^dev-build-test-install-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_regression_issue_7239\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[hypre~~shared ^openblas-expected_propagation1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants_fail[@2.0~version_based+variant_based]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_error_message_for_inconsistent_variants[wrong-variant-in-depends-on]\", \"lib/spack/spack/test/concretize.py::TestConcretizeEdges::test_condition_triggered_by_edge_property[conditional-edge-expected_satisfies0-expected_not_satisfies0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies ^libelf@0.8.10-patched_deps3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_compiler_flag_does_not_propagate\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[False-py-extension3@1.0 ^python@3.5.1-expected4-unexpected4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a foobar=bar-False-with_dep4-without_dep4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mv_variants_disjoint_sets_from_spec[mvapich2-file_systems-expected_values0]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts13-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs0-1]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts3-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_and_compiler_preferences[cmake %clang-expected2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_in_nonbuildable_external_package[gcc-external-common-python %clang-%clang ^external-common-openssl%gcc ^external-common-gdbm%clang-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_architecture_deep_inheritance\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a foobar=bar-True-with_dep1-without_dep1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_simultaneous_concretization_of_specs[abstract_specs3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_regression_issue_7941\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies-patched_deps0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_misleading_error_message_on_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[conflict]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts14-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflicts_in_spec[conflict-parent@0.9^conflict~foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_is_equivalent_to_specified_version[0.2.15]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@2:]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_with_flags\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs6-4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_simultaneous_concretization_of_specs[abstract_specs2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[False-dev-build-test-dependent ^dev-build-test-install-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@:1.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_require_targets_are_allowed\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts8-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_with_provides_when\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_match\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_installed_version_is_selected_only_for_reuse\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[externaltool@0_8-True-@0_8]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies@1.0 ^libdwarf@20111030-patched_deps2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich cppflags=\\\"-O3\\\"]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts7-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_detection\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_select_lower_priority_package_from_repository_stack[hdf5 ^gmake-expected_namespaces2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_target_compatibility\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_dont_select_version_that_brings_more_variants_in\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concrete_specs_are_not_modified_on_reuse[mpich+debug-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_hash_assigned_version_is_preferred\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[haswell-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_flags_differ_identical_compilers\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[True-py-extension3@1.1 ^python@2.7.11-expected3-unexpected3]\"]"},"PASS_TO_FAIL":{"kind":"string","value":"[]"},"FAIL_TO_PASS":{"kind":"string","value":"[\"lib/spack/spack/test/concretize.py::test_reusable_externals_different_spec\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_select_lower_priority_package_from_repository_stack[hdf5 ^builtin.mock.gmake-expected_namespaces1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_select_lower_priority_package_from_repository_stack[builtin.mock.gmake-expected_namespaces0]\"]"},"FAIL_TO_FAIL":{"kind":"string","value":"[]"},"install":{"kind":"string","value":"{\"install\": [\"uv pip install -e .\", \"spack -d bootstrap now --dev\"], \"pre_install\": [\"tee pytest.ini < Updating view at /var/spack/environments/t1/.spack-env/view\r\n==> Warning: Skipping external package: zlib@1.2.11%gcc@10.3.1+optimize+pic+shared build_system=makefile arch=linux-rhel8-broadwell/o5v2wcz\r\n==> Error: [Errno 2] No such file or directory: '/opt/spack/linux-rhel8-broadwell/gcc-10.3.1/gcc-runtime-10.3.1-wnbqufepp7kyfd32a3mvkxfpkgm4cerd/'\r\n```\r\n\r\nit looks like:\r\n\r\n* The installation did not actually install a `gcc-runtime` package\r\n* The view is trying to add it anyway\r\n\r\nI assume the core issue is that gcc-runtime should actually be getting installed.\n\n### Error message\n\nWhen running with `spack -d...`:\r\n\r\n```\r\nTraceback (most recent call last):\r\n File \"/bin/spack\", line 52, in \r\n sys.exit(main())\r\n File \"/lib/spack/spack_installable/main.py\", line 42, in main\r\n sys.exit(spack.main.main(argv))\r\n File \"/lib/spack/spack/main.py\", line 1066, in main\r\n return _main(argv)\r\n File \"/lib/spack/spack/main.py\", line 1019, in _main\r\n return finish_parse_and_run(parser, cmd_name, args, env_format_error)\r\n File \"/lib/spack/spack/main.py\", line 1049, in finish_parse_and_run\r\n return _invoke_command(command, parser, args, unknown)\r\n File \"/lib/spack/spack/main.py\", line 648, in _invoke_command\r\n return_val = command(parser, args)\r\n File \"/lib/spack/spack/cmd/install.py\", line 355, in install\r\n install_with_active_env(env, args, install_kwargs, reporter_factory)\r\n File \"/lib/spack/spack/cmd/install.py\", line 429, in install_with_active_env\r\n env.write(regenerate=True)\r\n File \"/lib/spack/spack/environment/environment.py\", line 2255, in write\r\n self.regenerate_views()\r\n File \"/lib/spack/spack/environment/environment.py\", line 1709, in regenerate_views\r\n view.regenerate(self.concrete_roots())\r\n File \"/lib/spack/spack/environment/environment.py\", line 717, in regenerate\r\n view.add_specs(*specs, with_dependencies=False)\r\n File \"/lib/spack/spack/filesystem_view.py\", line 686, in add_specs\r\n visit_directory_tree(src_prefix, visitor)\r\n File \"/lib/spack/llnl/util/filesystem.py\", line 1496, in visit_directory_tree\r\n dir_entries = sorted(os.scandir(dir), key=lambda d: d.name)\r\nFileNotFoundError: [Errno 2] No such file or directory: '/opt/spack/linux-rhel8-broadwell/gcc-10.3.1/gcc-runtime-10.3.1-wnbqufepp7kyfd32a3mvkxfpkgm4cerd/'\r\n```\n\n### Information on your system\n\n* **Spack:** 0.22.0.dev0 (861979a24f554130e569db26d32d580f0fa177a0)\r\n* **Python:** 3.9.12\r\n* **Platform:** linux-rhel8-broadwell\r\n* **Concretizer:** clingo\n\n### General information\n\n- [X] I have run `spack debug report` and reported the version of Spack/Python/Platform\n- [X] I have searched the issues of this repo and believe this is not a duplicate\n- [X] I have run the failing commands in debug mode and reported the output\n"},"hints_text":{"kind":"string","value":"> I assume the core issue is that gcc-runtime should actually be getting installed.\r\n\r\nthe issue is that externals depend on `gcc-runtime` too (and the installer probably assumes externals have no installable deps)\r\n\r\n@alalazo is that a bug or intentional?\r\n\r\n```\r\n==> Concretized zlib\r\n[e] atsd7wc zlib@1.2.11%gcc@13.2.0+optimize+pic+shared build_system=makefile arch=linux-ubuntu23.10-zen2\r\n[+] g7lop5r ^gcc-runtime@13.2.0%gcc@13.2.0 build_system=generic arch=linux-ubuntu23.10-zen2\r\n```\r\n\nThat was intentional in the encoding, but if it causes issues and we want to special case externals it should be easy to exclude them from the rule."},"created_at":{"kind":"string","value":"2024-01-08T19:17:50Z"},"merged_at":{"kind":"string","value":"2024-01-08T21:09:54Z"},"PASS_TO_PASS":{"kind":"string","value":"[]"},"PASS_TO_FAIL":{"kind":"string","value":"[]"},"FAIL_TO_PASS":{"kind":"string","value":"[\"lib/spack/spack/test/concretize_compiler_runtimes.py::test_external_nodes_do_not_have_runtimes\", \"lib/spack/spack/test/concretize_compiler_runtimes.py::test_correct_gcc_runtime_is_injected_as_dependency\"]"},"FAIL_TO_FAIL":{"kind":"string","value":"[]"},"install":{"kind":"string","value":"{\"install\": [\"uv pip install -e .\", \"spack -d bootstrap now --dev\"], \"pre_install\": [\"tee pytest.ini < None:\n+ \"\"\"Ensure that the format string does not contain old ${...} syntax.\"\"\"\n+ result = OLD_STYLE_FMT_RE.search(fmt)\n+ if result:\n+ raise SpecFormatStringError(\n+ f\"Format string `{fmt}` contains old syntax `{result.group(0)}`. \"\n+ \"This is no longer supported.\"\n+ )\n+\n+\n @lang.lazy_lexicographic_ordering\n class ArchSpec:\n \"\"\"Aggregate the target platform, the operating system and the target microarchitecture.\"\"\"\n@@ -4362,6 +4375,7 @@ def format(self, format_string=DEFAULT_FORMAT, **kwargs):\n that accepts a string and returns another one\n \n \"\"\"\n+ ensure_modern_format_string(format_string)\n color = kwargs.get(\"color\", False)\n transform = kwargs.get(\"transform\", {})\n \n"},"test_patch":{"kind":"string","value":"diff --git a/lib/spack/spack/test/spec_semantics.py b/lib/spack/spack/test/spec_semantics.py\nindex 7964ed318487a5..d159bf744ae95e 100644\n--- a/lib/spack/spack/test/spec_semantics.py\n+++ b/lib/spack/spack/test/spec_semantics.py\n@@ -1528,3 +1528,9 @@ def test_edge_equality_does_not_depend_on_virtual_order():\n assert edge1 == edge2\n assert tuple(sorted(edge1.virtuals)) == edge1.virtuals\n assert tuple(sorted(edge2.virtuals)) == edge1.virtuals\n+\n+\n+def test_old_format_strings_trigger_error(default_mock_concretization):\n+ s = Spec(\"a\").concretized()\n+ with pytest.raises(SpecFormatStringError):\n+ s.format(\"${PACKAGE}-${VERSION}-${HASH}\")\n"},"problem_statement":{"kind":"string","value":"Installation issue: dollar signs `$` in paths for several packages, e.g. gmake@=4.4.1%gcc@=12.2.0\n### Steps to reproduce the issue\n\n```console\r\n$ spack install --overwrite gmake@=4.4.1%gcc@=12.2.0\r\n```\r\n\n\n### Error message\n\nSee the last two lines. Second-last line has the path with dollar signs `$`, last line with the `Warning` is because the package is missing from the expected directory, without `$`. The error is that gmake exists at the unexpected directory with `$` symbols, so it can't be found.\r\n\r\n
Error message\r\n
\r\n$ spack install --overwrite gmake@=4.4.1%gcc@=12.2.0\r\n==> The following package specs will be reinstalled:\r\n\r\n-- linux-rocky8-zen2 / gcc@=12.2.0 ------------------------------\r\nkqkpdnx gmake@4.4.1%gcc \\~guile build_system=autotools\r\n==> Do you want to proceed? [y/N] y\r\n==> Installing gmake-4.4.1-kqkpdnxusciojbahb3up4ot5xr4wdrwb\r\n==> No binary for gmake-4.4.1-kqkpdnxusciojbahb3up4ot5xr4wdrwb found: installing from source\r\n==> Using cached archive: /opt/ohpc/admin/spack/github/spack/var/spack/cache/_source-cache/archive/dd/dd16fb1d67bfab79a72f5e8390735c49e3e8e70b4945a15ab1f81ddb78658fb3.tar.gz\r\n==> No patches needed for gmake\r\n==> gmake: Executing phase: 'autoreconf'\r\n==> gmake: Executing phase: 'configure'\r\n==> gmake: Executing phase: 'build'\r\n==> gmake: Executing phase: 'install'\r\n==> Warning: Module file /opt/ohpc/pub/spack/develop/share/spack/modules/linux-rocky8-zen2/gmake-4.4.1-gcc-12.2.0-kqkpdnx exists and will not be overwritten\r\n==> Warning: Module file /opt/ohpc/pub/spack/develop/share/spack/lmod/linux-rocky8-x86_64/gcc/12.2.0/gmake/4.4.1-kqkpdnx.lua exists and will not be overwritten\r\n==> gmake: Successfully installed gmake-4.4.1-kqkpdnxusciojbahb3up4ot5xr4wdrwb\r\n  Stage: 0.04s.  Autoreconf: 0.00s.  Configure: 6.71s.  Build: 6.61s.  Install: 0.00s.  Total: 13.45s\r\n[+] /opt/ohpc/pub/spack/develop/opt/spack/$linux-rocky8-zen2/$gcc-$12.2.0/$gmake-$4.4.1-$kqkpdnxusciojbahb3up4ot5xr4wdrwb\r\n==> Warning: gmake@4.4.1%gcc@=12.2.0~guile build_system=autotools arch=linux-rocky8-zen2/kqkpdnx is being updated in the database with prefix /opt/ohpc/pub/spack/develop/opt/spack/linux-rocky8-zen2/gcc-12.2.0/gmake-4.4.1-kqkpdnxusciojbahb3up4ot5xr4wdrwb, but this directory does not contain an installation of the spec, due to: Install prefix /opt/ohpc/pub/spack/develop/opt/spack/linux-rocky8-zen2/gcc-12.2.0/gmake-4.4.1-kqkpdnxusciojbahb3up4ot5xr4wdrwb does not exist.\r\n
\r\n\n\n### Information on your system\n\n* **Spack:** 0.20.0.dev0 (2dcc55d6c524048e56f7231b755d133af79cdf7b)\r\n* **Python:** 3.11.1\r\n* **Platform:** linux-rocky8-zen2\r\n* **Concretizer:** clingo\r\n\n\n### Additional information\n\nThe first three lines from `spack-built-out.txt` have the issue.\r\n\r\n```\r\n==> gmake: Executing phase: 'autoreconf'\r\n==> gmake: Executing phase: 'configure'\r\n==> [2023-05-10-17:09:50.041111] '/tmp/root/spack-stage/spack-stage-gmake-4.4.1-kqkpdnxusciojbahb3up4ot5xr4wdrwb/spack-src/configure' '--prefix=/opt/ohpc/pub/spack/develop/opt/spack/$linux-rocky8-zen2/$gcc-$12.2.0/$gmake-$4.4.1-$kqkpdnxusciojbahb3up4ot5xr4wdrwb' '--without-guile' '--disable-nls'\r\n```\r\n\r\nThese `$` are also seen in the `spack-build-env.txt`\r\n```\r\nSPACK_RPATH_DIRS=\"/opt/ohpc/pub/spack/develop/opt/spack/$linux-rocky8-zen2/$gcc-$12.2.0/$gmake-$4.4.1-$kqkpdnxusciojbahb3up4ot5xr4wdrwb/lib:/opt/ohpc/pub/spack/develop/opt/spack/$linux-rocky8-zen2/$gcc-$12.2.0/$gmake-$4.4.1-$kqkpdnxusciojbahb3up4ot5xr4wdrwb/lib64\"; export SPACK_RPATH_DIRS\r\n```\r\n\r\n\r\nMaintainer: @haampie \r\n\r\nI think the issue isn't related to `gmake` though, I also see it with other packages, but not all packages.\r\n\r\nAlso attached is my config YAML (renamed to `.txt` due to file type upload error), which only differs from `defaults/config.yaml` at `config > install_tree > root`.\r\n\r\n[spack-build-env.txt](https://github.com/spack/spack/files/11443626/spack-build-env.txt)\r\n[spack-build-out.txt](https://github.com/spack/spack/files/11443627/spack-build-out.txt)\r\n[config.yaml.txt](https://github.com/spack/spack/files/11443677/config.yaml.txt)\n\n### General information\n\n- [X] I have run `spack debug report` and reported the version of Spack/Python/Platform\n- [X] I have run `spack maintainers ` and **@mentioned** any maintainers\n- [X] I have uploaded the build log and environment files\n- [X] I have searched the issues of this repo and believe this is not a duplicate\n"},"hints_text":{"kind":"string","value":"Ping. \r\n\r\nAny workaround? Would be very helpful to get this fixed. Thanks!\nPossibly due to the outdated Python 3.6.8 on the server. Simply writing `prefix.bin.gmake` above this line\r\nhttps://github.com/spack/spack/blob/45838cee0b8b01ad999b459ed6d19e37686859c0/var/spack/repos/builtin/packages/gmake/package.py#L79\r\n\r\nremoved the `$` symbols from the path -- not sure why."},"created_at":{"kind":"string","value":"2024-01-03T14:23:17Z"},"merged_at":{"kind":"string","value":"2024-01-03T16:45:00Z"},"PASS_TO_PASS":{"kind":"string","value":"[\"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_spec_flags_maintain_order\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[libelf foo=bar,baz-libelf foo=*-libelf foo=bar,baz]\", \"lib/spack/spack/test/spec_semantics.py::test_intersects_and_satisfies[ArchSpec-None-None-x86_64:haswell-linux-None-icelake-results3]\", \"lib/spack/spack/test/spec_semantics.py::test_constrain[ArchSpec-None-ubuntu20.04-nocona:haswell-None-None-x86_64:icelake-False-None-ubuntu20.04-nocona:haswell]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[libdwarf^libelf@0.8.13-^libelf@0:1-libdwarf^libelf@0.8.13]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_lhs_is_not_changed_when_constraining[libelf@1.0:5.0-@1.0:5.0]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[multivalue-variant foo=\\\"bar,baz\\\"-foo=\\\"baz,bar\\\"-multivalue-variant foo=bar,baz]\", \"lib/spack/spack/test/spec_semantics.py::test_intersects_and_satisfies[ArchSpec-linux-None-None-linux-None-None-results4]\", \"lib/spack/spack/test/spec_semantics.py::test_abstract_provider_in_spec[^conditional-provider-v1-consumer ^conditional-provider+disable-v1]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_concrete_specs_which_do_not_satisfy_abstract[mpich-mpich +foo]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_errors_in_variant_directive\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[libelf++debug-libelf+debug+foo-libelf++debug++foo]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[mpich foo==False-mpich~foo-mpich~foo]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_lhs_is_not_changed_when_constraining[libelf^foo%gcc-libelf^foo%gcc]\", \"lib/spack/spack/test/spec_semantics.py::test_abstract_contains_semantic[a@1.0-a-False]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[foo arch=test-frontend-frontend-platform=test os=frontend target=frontend-foo platform=test os=frontend target=frontend]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[builtin.mock.mpich-mpich-builtin.mock.mpich]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[mpich foo=1-mpich-mpich foo=1]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_spec_contains_deps\", \"lib/spack/spack/test/spec_semantics.py::test_abstract_provider_in_spec[v1-provider-v1-consumer ^conditional-provider+disable-v1]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_lhs_is_changed_when_constraining[libelf-+debug]\", \"lib/spack/spack/test/spec_semantics.py::test_intersects_and_satisfies[ArchSpec-None-ubuntu20.04-None-None-None-x86_64-results0]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[foo%pgi@4.5-%pgi@4.4:4.6-foo%pgi@4.5]\", \"lib/spack/spack/test/spec_semantics.py::test_spec_dict_hashless_dep\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_constraining_abstract_specs_with_empty_intersection[libelf platform=test target=be os=be-libelf target=fe os=fe]\", \"lib/spack/spack/test/spec_semantics.py::test_is_extension_after_round_trip_to_dict[extension1]\", \"lib/spack/spack/test/spec_semantics.py::test_is_extension_after_round_trip_to_dict[py-extension2]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[foo%gcc-%gcc-foo%gcc]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[mpich+foo-mpich+foo-mpich+foo]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[builtin.mpich-builtin.mpich-builtin.mpich]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[foo arch=test-None-None-platform=test-foo platform=test]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[mpich foo==1-mpich foo==1-mpich foo==1]\", \"lib/spack/spack/test/spec_semantics.py::test_spec_format_path[zlib@git.foo/bar-{name}-{version}-{/hash}-None]\", \"lib/spack/spack/test/spec_semantics.py::test_package_hash_affects_dunder_and_dag_hash\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[libelf+debug-libelf+foo-libelf+debug+foo]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_constraining_abstract_specs_with_empty_intersection[mpich cppflags=\\\"-O3\\\"-mpich cppflags=\\\"-O2\\\"]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_splice_input_unchanged[True]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_target_constraints[libelf target=haswell-target=icelake,:nocona-False]\", \"lib/spack/spack/test/spec_semantics.py::test_spec_installed\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_lhs_is_not_changed_when_constraining[libelf%gcc-%gcc]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_lhs_is_changed_when_constraining[libelf-%gcc]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_target_constraints[libelf target=haswell-target=haswell,:nocona-True]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_combination_of_wildcard_or_none\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_error_message_unknown_variant\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_lhs_is_changed_when_constraining[libelf-debug=2]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[mpich+foo-mpich foo=True-mpich+foo]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_splice_swap_names[False]\", \"lib/spack/spack/test/spec_semantics.py::test_merge_abstract_anonymous_specs[specs0-+baz+bar]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[mpileaks^mpi@1.5-^mpi@1.2:1.6-mpileaks^mpi@1.5]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_concrete_specs_which_do_not_satisfy_abstract[mpich-mpich++foo]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_unsatisfiable_multi_value_variant\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_splice_dict_roundtrip[True]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[mpich~~foo-mpich~~foo-mpich~~foo]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[libelf foo=*-libelf foo=bar,baz-libelf foo=bar,baz]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[foo%intel-%intel-foo%intel]\", \"lib/spack/spack/test/spec_semantics.py::test_intersects_and_satisfies[ArchSpec-None-ubuntu20.04-None-None-ubuntu22.04-None-results7]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[mpileaks ^mpich@2.0-^mpich@1:3-mpileaks ^mpich@2.0]\", \"lib/spack/spack/test/spec_semantics.py::test_call_dag_hash_on_old_dag_hash_spec\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_constraining_abstract_specs_with_empty_intersection[libelf@0:2.0-libelf@2.1:3]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[libelf cflags=\\\"-O3\\\"-libelf cppflags=\\\"-Wall\\\"-libelf cflags=\\\"-O3\\\" cppflags=\\\"-Wall\\\"]\", \"lib/spack/spack/test/spec_semantics.py::test_intersects_and_satisfies[Spec-cppflags=-foo-cppflags=-bar-results12]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[mpileaks ^builtin.mock.mpich-^mpi-mpileaks ^mpi ^builtin.mock.mpich]\", \"lib/spack/spack/test/spec_semantics.py::test_intersects_and_satisfies[CompilerSpec-gcc-clang-results8]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[mpich~foo-mpich foo=FALSE-mpich~foo]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[libelf+debug-libelf+debug~foo-libelf+debug~foo]\", \"lib/spack/spack/test/spec_semantics.py::test_intersects_and_satisfies[ArchSpec-None-ubuntu20.04-None-None-ubuntu20.04-None-results6]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_concrete_specs_which_satisfies_abstract[libelf-@0:1 %gcc]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[libdwarf-rhs3-libdwarf]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_virtual_deps_bindings[netlib-scalapack ^mpich ^[virtuals=lapack] openblas-with-lapack-specs_in_dag3]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[mpich~foo-mpich-mpich~foo]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[multivalue-variant foo=\\\"bar,baz\\\"-multivalue-variant foo=*-multivalue-variant foo=bar,baz]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_lhs_is_not_changed_when_constraining[libelf-libelf]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_constraining_abstract_specs_with_empty_intersection[foo os=redhat6-platform=test os=debian6 target=x86_64]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_virtual_deps_bindings[hdf5 ^[virtuals=mpi] mpich-specs_in_dag0]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_unsatisfied_single_valued_variant\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[foo platform=test target=backend os=backend-platform=test target=backend os=backend-foo platform=test target=backend os=backend]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[mpileaks^mpi@2:-^mpich-mpileaks^mpi@2: ^mpich]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_lhs_is_changed_when_constraining[libelf^foo-libelf^foo~debug]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[mpich foo=1-mpich foo=1-mpich foo=1]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_virtual_deps_bindings[netlib-scalapack ^[virtuals=mpi] mpich ^openblas-with-lapack-specs_in_dag2]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_lhs_is_changed_when_constraining[libelf%gcc-%gcc@4.5]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[%intel-rhs4-%intel]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_indirect_unsatisfied_single_valued_variant\", \"lib/spack/spack/test/spec_semantics.py::test_intersects_and_satisfies[CompilerSpec-gcc@5-gcc@5-tag-results11]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[@3:-rhs7-@3:]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_lhs_is_not_changed_when_constraining[libelf^foo cppflags=\\\"-O3\\\"-libelf^foo cppflags=\\\"-O3\\\"]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_constraining_abstract_specs_with_empty_intersection[mpich~foo-mpich+foo]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[multivalue-variant foo=\\\"bar,baz\\\"-multivalue-variant foo=bar,baz-multivalue-variant foo=bar,baz]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_constraining_abstract_specs_with_empty_intersection[mpileaks^mpi@3:-^mpich@1.0]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_splice_with_cached_hashes[False]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[libelf debug==2-libelf foo=1-libelf debug==2 foo==1]\", \"lib/spack/spack/test/spec_semantics.py::test_intersects_and_satisfies[ArchSpec-None-ubuntu20.04-None-linux-None-x86_64-results1]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_constraining_abstract_specs_with_empty_intersection[builtin.mock.mpich-builtin.mpich]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_mismatched_constrain_spec_by_hash\", \"lib/spack/spack/test/spec_semantics.py::test_merge_abstract_anonymous_specs[specs2-^mpich@3.2 +foo]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_constraining_abstract_specs_with_empty_intersection[foo platform=linux-platform=test os=redhat6 target=x86]\", \"lib/spack/spack/test/spec_semantics.py::test_spec_format_path_posix[zlib@git.foo/bar-package\\\\\\\\{name}\\\\\\\\{version}-None]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_constraining_abstract_specs_with_empty_intersection[foo target=x86_64-platform=test os=redhat6 target=x86]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_virtual_deps_bindings[netlib-scalapack ^intel-parallel-studio ^[virtuals=lapack] openblas-with-lapack-specs_in_dag7]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[mpich foo=true-mpich+foo-mpich+foo]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[libelf-libelf %gcc@4.4.7-libelf %gcc@4.4.7]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_target_constraints[libelf target=haswell-target=x86_64:-True]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[libelf++debug-libelf++debug~foo-libelf++debug~~foo]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_concrete_specs_which_do_not_satisfy_abstract[multivalue-variant fee=bar-multivalue-variant fee=baz]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_lhs_is_not_changed_when_constraining[libelf cppflags==\\\"-O3\\\"-cppflags==\\\"-O3\\\"]\", \"lib/spack/spack/test/spec_semantics.py::test_intersects_and_satisfies[CompilerSpec-gcc@5-gcc@5.3-results10]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[mpich-mpich++foo-mpich+foo]\", \"lib/spack/spack/test/spec_semantics.py::test_constrain[ArchSpec-None-ubuntu20.04-nocona,haswell-None-None-x86_64:icelake-False-None-ubuntu20.04-nocona,haswell]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_intersects_virtual_providers\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[foo %gcc@4.7.3-%gcc@4.7-foo %gcc@4.7.3]\", \"lib/spack/spack/test/spec_semantics.py::test_intersects_and_satisfies[Spec-mpi-lapack-results17]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[mpich foo=False-mpich~foo-mpich~foo]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[mpileaks ^builtin.mock.mpich-^builtin.mock.mpich-mpileaks ^builtin.mock.mpich]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_splice_subsequent[False]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[mpich+foo-mpich-mpich+foo]\", \"lib/spack/spack/test/spec_semantics.py::test_intersects_and_satisfies[ArchSpec-None-None-x86_64:-linux-None-haswell-results2]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_splice_dict_roundtrip[False]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_splice_dict[False]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_splice[True]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[mpileaks ^mpi-^mpich-mpileaks ^mpi ^mpich]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_satisfies_single_valued_variant\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[mpileaks ^mpi-^mpi-mpileaks ^mpi]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_intersects_virtual\", \"lib/spack/spack/test/spec_semantics.py::test_abstract_contains_semantic[a-a@1.0-True]\", \"lib/spack/spack/test/spec_semantics.py::test_merge_anonymous_spec_with_named_spec[+plumed-gromacs-gromacs+plumed]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_exceptional_paths_for_constructor\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[libelf debug=2-libelf debug=2 foo=1-libelf debug=2 foo=1]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_lhs_is_changed_when_constraining[libelf-^foo]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_constraining_abstract_specs_with_empty_intersection[mpich cppflags=\\\"-O3\\\"-mpich cppflags==\\\"-O3\\\"]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[builtin.mpich-mpich-builtin.mpich]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_splice_with_cached_hashes[True]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_concrete_specs_which_satisfies_abstract[libelf-@0:1]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[mpileaks^mpi@2:-^mpich@3.0.4-mpileaks^mpi@2: ^mpich@3.0.4]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[mpich foo=*-mpich~foo-mpich~foo]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_virtual_deps_bindings[netlib-scalapack ^[virtuals=mpi] mpich ^[virtuals=lapack] openblas-with-lapack-specs_in_dag4]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_splice_subsequent[True]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_concrete_specs_which_do_not_satisfy_abstract[multivalue-variant foo=bar-multivalue-variant ~foo]\", \"lib/spack/spack/test/spec_semantics.py::test_merge_anonymous_spec_with_named_spec[+plumed-builtin.gromacs-builtin.gromacs+plumed]\", \"lib/spack/spack/test/spec_semantics.py::test_abstract_hash_intersects_and_satisfies\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_unsatisfiable_virtual_deps_bindings[netlib-scalapack ^[virtuals=blas] intel-parallel-studio ^openblas-with-lapack]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_constraining_abstract_specs_with_empty_intersection[libelf debug=True-libelf debug=False]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[libelf %gcc@4.4.7-libelf %gcc@4.4.7-libelf %gcc@4.4.7]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_concrete_specs_which_do_not_satisfy_abstract[multivalue-variant foo=bar-multivalue-variant +foo]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_constraining_abstract_specs_with_empty_intersection[libelf+debug~foo-libelf+debug+foo]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_constraining_abstract_specs_with_empty_intersection[foo arch=test-frontend-frontend-platform=test os=frontend target=backend]\", \"lib/spack/spack/test/spec_semantics.py::test_merge_anonymous_spec_with_named_spec[+plumed ^plumed%gcc-gromacs-gromacs+plumed ^plumed%gcc]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_lhs_is_not_changed_when_constraining[libelf cppflags=\\\"-O3\\\"-cppflags=\\\"-O3\\\"]\", \"lib/spack/spack/test/spec_semantics.py::test_constrain[ArchSpec-None-None-x86_64-None-None-x86_64-False-None-None-x86_64]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_satisfies_dependencies_ordered\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[libelf@0:2.5%gcc@2:4.6-libelf@2.1:3%gcc@4.5:4.7-libelf@2.1:2.5%gcc@4.5:4.6]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[mpich cppflags==\\\"-O3\\\"-mpich cppflags==\\\"-O3\\\"-mpich cppflags==\\\"-O3\\\"]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_lhs_is_not_changed_when_constraining[libelf^foo+debug-libelf^foo+debug]\", \"lib/spack/spack/test/spec_semantics.py::test_concretize_partial_old_dag_hash_spec\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_concrete_specs_which_do_not_satisfy_abstract[mpich-mpich~~foo]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_constraining_abstract_specs_with_empty_intersection[mpich++foo-mpich~~foo]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[foo%intel-%intel@4.7.2-foo%intel@4.7.2]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[multivalue-variant foo=\\\"bar,baz,barbaz\\\"-multivalue-variant foo=bar,baz-multivalue-variant foo=bar,baz,barbaz]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_target_constraints[libelf target=haswell-target=haswell-True]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_lhs_is_not_changed_when_constraining[libelf@1.0-@1.0]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_lhs_is_not_changed_when_constraining[libelf^foo~debug-libelf^foo~debug]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_constraining_abstract_specs_with_empty_intersection[mpileaks^mpich@4.0^callpath@1.7-^mpich@1:3^callpath@1.4:1.6]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_constraining_abstract_specs_with_empty_intersection[mpileaks^mpich@4.0^callpath@1.5-^mpich@1:3^callpath@1.4:1.6]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_splice_swap_names[True]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_constraining_abstract_specs_with_empty_intersection[foo@4.0%pgi-@1:3%pgi]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[mpich -mpich cppflags=\\\"-O3\\\"-mpich cppflags=\\\"-O3\\\"]\", \"lib/spack/spack/test/spec_semantics.py::test_constrain[ArchSpec-None-None-x86_64:icelake-None-None-x86_64:icelake-False-None-None-x86_64:icelake]\", \"lib/spack/spack/test/spec_semantics.py::test_intersects_and_satisfies[CompilerSpec-gcc-gcc@5-results9]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_constrain_specs_by_hash\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[foo%gcc-%gcc@4.7.2-foo%gcc@4.7.2]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[multivalue-variant foo=\\\"bar,baz\\\"-multivalue-variant foo=baz-multivalue-variant foo=bar,baz]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_lhs_is_changed_when_constraining[libelf^foo-libelf^foo@1.0]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_target_constraints[libelf target=haswell-target=broadwell-False]\", \"lib/spack/spack/test/spec_semantics.py::test_is_extension_after_round_trip_to_dict[perl-extension]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_constraining_abstract_specs_with_empty_intersection[foo%intel-%gcc]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_constraining_abstract_specs_with_empty_intersection[mpileaks^mpi@3:-^mpich2]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[libelf cflags=\\\"-O3\\\"-libelf cppflags==\\\"-Wall\\\"-libelf cflags=\\\"-O3\\\" cppflags==\\\"-Wall\\\"]\", \"lib/spack/spack/test/spec_semantics.py::test_constrain[ArchSpec-None-ubuntu20.04-None-linux-None-x86_64-True-linux-ubuntu20.04-x86_64]\", \"lib/spack/spack/test/spec_semantics.py::test_unsupported_compiler\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_target_constraints[libelf target=haswell-target=x86_64-False]\", \"lib/spack/spack/test/spec_semantics.py::test_intersects_and_satisfies_on_concretized_spec\", \"lib/spack/spack/test/spec_semantics.py::test_constrain[Spec-cppflags=-foo-cflags=-foo-True-cppflags=-foo cflags=-foo]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[^mpi-rhs5-^mpi]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_lhs_is_changed_when_constraining[libelf-cppflags=\\\"-O3\\\"]\", \"lib/spack/spack/test/spec_semantics.py::test_intersects_and_satisfies[Spec-cppflags='-bar -foo'-cppflags=-bar-results13]\", \"lib/spack/spack/test/spec_semantics.py::test_spec_format_path[zlib@git.foo/bar=1.0%gcc-{name}/{version}/{compiler}-zlib/git.foo_bar_1.0/gcc]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_constraining_abstract_specs_with_empty_intersection[mpileaks^mpich@2.0^callpath@1.7-^mpich@1:3^callpath@1.4:1.6]\", \"lib/spack/spack/test/spec_semantics.py::test_intersects_and_satisfies[Spec-@0.94h-@:0.94i-results16]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[mpileaks ^mpich-^mpich-mpileaks ^mpich]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_constraining_abstract_specs_with_empty_intersection[mpich foo==True-mpich foo==False]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_spec_prefix_error\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_virtual_deps_bindings[netlib-scalapack ^mpich ^openblas-with-lapack-specs_in_dag1]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_dep_index\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_constraining_abstract_specs_with_empty_intersection[mpileaks^mpi@3:-^mpich2@1.4]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[libelf target=default_target os=default_os-libelf target=default_target os=default_os-libelf target=default_target os=default_os]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_lhs_is_not_changed_when_constraining[libelf+debug-+debug]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[multivalue-variant foo=\\\"bar\\\"-multivalue-variant foo=\\\"baz\\\"-multivalue-variant foo=\\\"bar,baz\\\"]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_constraining_abstract_specs_with_empty_intersection[libelf+debug-libelf~debug]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[foo arch=test-frontend-frontend-platform=test-foo platform=test os=frontend target=frontend]\", \"lib/spack/spack/test/spec_semantics.py::test_merge_abstract_anonymous_specs[specs1-@2.0:5.1 +bar]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[mpich foo==true-mpich++foo-mpich+foo]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_lhs_is_changed_when_constraining[libelf^foo%gcc-libelf^foo%gcc@4.5]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_concrete_specs_which_do_not_satisfy_abstract[mpich cflags=-O3-mpich cflags=\\\"-O3 -Ofast\\\"]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_target_constraints[libelf target=x86_64-target=haswell-False]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_target_constraints[libelf target=haswell-target=:haswell-True]\", \"lib/spack/spack/test/spec_semantics.py::test_constrain[ArchSpec-None-ubuntu20.04-None-None-None-x86_64-True-None-ubuntu20.04-x86_64]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_splice[False]\", \"lib/spack/spack/test/spec_semantics.py::test_spec_trim\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_lhs_is_not_changed_when_constraining[libelf~debug-~debug]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_constraining_abstract_specs_with_empty_intersection[libelf cppflags=\\\"-O3\\\"-libelf cppflags=\\\"-O2\\\"]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_constraining_abstract_specs_with_empty_intersection[mpileaks^mpich@1.2-^mpich@2.0]\", \"lib/spack/spack/test/spec_semantics.py::test_constrain[Spec-cppflags=-foo-cppflags=-foo-False-cppflags=-foo]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[libelf+debug-libelf~foo-libelf+debug~foo]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_self_index\", \"lib/spack/spack/test/spec_semantics.py::test_intersects_and_satisfies[Spec-cppflags=-foo-cflags=-foo-results15]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[mpich++foo-mpich++foo-mpich++foo]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[mpileaks ^mpich@2.0 ^callpath@1.5-^mpich@1:3 ^callpath@1.4:1.6-mpileaks^mpich@2.0^callpath@1.5]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_virtual_deps_bindings[netlib-scalapack ^[virtuals=mpi] intel-parallel-studio ^openblas-with-lapack-specs_in_dag6]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_constraining_abstract_specs_with_empty_intersection[foo%pgi@4.3-%pgi@4.4:4.6]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_lhs_is_changed_when_constraining[libelf-~debug]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[foo platform=linux-platform=linux-foo platform=linux]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_concrete_specs_which_do_not_satisfy_abstract[mpich-mpich foo=1]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[multivalue-variant foo=\\\"bar,barbaz\\\"-multivalue-variant foo=\\\"baz\\\"-multivalue-variant foo=\\\"bar,baz,barbaz\\\"]\", \"lib/spack/spack/test/spec_semantics.py::test_constrain[CompilerSpec-gcc@5-gcc@5-False-gcc@5]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[libelf+debug-libelf+debug+foo-libelf+debug+foo]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[foo platform=test-platform=test-foo platform=test]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_constraining_abstract_specs_with_empty_intersection[libelf@0:2.5%gcc@4.8:4.9-libelf@2.1:3%gcc@4.5:4.7]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[mpich~~foo-mpich foo=FALSE-mpich~foo]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_constraining_abstract_specs_with_empty_intersection[mpich foo=True-mpich foo=False]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_constraining_abstract_specs_with_empty_intersection[mpich+foo-mpich~foo]\", \"lib/spack/spack/test/spec_semantics.py::test_intersects_and_satisfies[Spec-mpi-pkgconfig-results18]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_virtual_deps_bindings[netlib-scalapack ^[virtuals=mpi] intel-parallel-studio ^[virtuals=lapack] openblas-with-lapack-specs_in_dag5]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_lhs_is_changed_when_constraining[libelf-@1.0:5.0]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_splice_dict[True]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_lhs_is_not_changed_when_constraining[libelf^foo@1.0-libelf^foo@1.0]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_lhs_is_not_changed_when_constraining[libelf debug=2-debug=2]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[foo platform=test-platform=test os=frontend target=frontend-foo platform=test os=frontend target=frontend]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_splice_input_unchanged[False]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_concrete_specs_which_do_not_satisfy_abstract[mpich-mpich foo==1]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_splice_swap_names_mismatch_virtuals[True]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_spec_formatting_escapes\", \"lib/spack/spack/test/spec_semantics.py::test_malformed_spec_dict\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_lhs_is_changed_when_constraining[libelf-cppflags==\\\"-O3\\\"]\", \"lib/spack/spack/test/spec_semantics.py::test_abstract_contains_semantic[a-a-True]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_concrete_specs_which_satisfies_abstract[libelf-rhs0]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_lhs_is_changed_when_constraining[libelf^foo-libelf^foo%gcc]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_splice_swap_names_mismatch_virtuals[False]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_constraining_abstract_specs_with_empty_intersection[mpileaks^mpi@3-^mpi@1.2:1.6]\", \"lib/spack/spack/test/spec_semantics.py::test_abstract_provider_in_spec[conditional-provider-v1-consumer ^conditional-provider+disable-v1]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[foo platform=test-platform=test target=frontend-foo platform=test target=frontend]\", \"lib/spack/spack/test/spec_semantics.py::test_spec_format_path[zlib@aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa=1.0%gcc-{name}/{version}/{compiler}-zlib/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa_1.0/gcc]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_concrete_specs_which_do_not_satisfy_abstract[mpich cflags=-O2-mpich cflags=\\\"-O3\\\"]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_lhs_is_changed_when_constraining[libelf^foo-libelf^foo@1.0:5.0]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[mpich+foo-mpich foo=*-mpich+foo]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[libelf cflags=\\\"-O3\\\"-libelf cflags=\\\"-O3\\\" cppflags=\\\"-Wall\\\"-libelf cflags=\\\"-O3\\\" cppflags=\\\"-Wall\\\"]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_concrete_specs_which_do_not_satisfy_abstract[mpich-mpich~foo]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_lhs_is_changed_when_constraining[libelf^foo-libelf^foo+debug]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[+debug-rhs6-+debug]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_lhs_is_changed_when_constraining[libelf-debug=*]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[libelf-rhs2-libelf]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_constraining_abstract_specs_with_empty_intersection[mpileaks ^builtin.mock.mpich-^builtin.mpich]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_lhs_is_changed_when_constraining[libelf-@1.0]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[libelf cflags==\\\"-O3\\\"-libelf cppflags==\\\"-Wall\\\"-libelf cflags==\\\"-O3\\\" cppflags==\\\"-Wall\\\"]\", \"lib/spack/spack/test/spec_semantics.py::test_constrain[CompilerSpec-gcc@5-gcc@5-tag-True-gcc@5-tag]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_lhs_is_not_changed_when_constraining[libelf^foo%gcc@4.5-libelf^foo%gcc@4.5]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_constraining_abstract_specs_with_empty_intersection[foo@4.0%pgi@4.5-@1:3%pgi@4.4:4.6]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[mpich cppflags=\\\"-O3 -Wall\\\"-mpich cppflags=\\\"-O3 -Wall\\\"-mpich cppflags=\\\"-O3 -Wall\\\"]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_copy_satisfies_transitive\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_intersectable_concrete_specs_must_have_the_same_hash\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[multivalue-variant foo=\\\"bar,baz\\\"-multivalue-variant foo=bar-multivalue-variant foo=bar,baz]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_forwarding_of_architecture_attributes\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_virtual_deps_bindings[netlib-scalapack ^[virtuals=lapack,blas] openblas-with-lapack-specs_in_dag8]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[foo platform=test os=frontend target=frontend-platform=test-foo platform=test os=frontend target=frontend]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_concrete_specs_which_do_not_satisfy_abstract[mpich-mpich cflags=\\\"-O3\\\"]\", \"lib/spack/spack/test/spec_semantics.py::test_merge_abstract_anonymous_specs[specs3-^mpich@3.2 ^mpi+foo]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[libelf debug==2-libelf debug=2 foo=1-libelf debug==2 foo==1]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[foo arch=test-None-frontend-platform=test target=frontend-foo platform=test target=frontend]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[foo@2.0%pgi@4.5-@1:3%pgi@4.4:4.6-foo@2.0%pgi@4.5]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_constraining_abstract_specs_with_empty_intersection[foo%intel-%pgi]\", \"lib/spack/spack/test/spec_semantics.py::test_intersects_and_satisfies[ArchSpec-darwin-None-None-linux-None-None-results5]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[mpileaks ^builtin.mock.mpich-^mpich-mpileaks ^builtin.mock.mpich]\", \"lib/spack/spack/test/spec_semantics.py::test_abstract_provider_in_spec[^v1-provider-v1-consumer ^conditional-provider+disable-v1]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_virtual_index\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[libelf debug=2-libelf foo=1-libelf debug=2 foo=1]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_lhs_is_not_changed_when_constraining[libelf debug=2-debug=*]\", \"lib/spack/spack/test/spec_semantics.py::test_intersects_and_satisfies[Spec-cppflags=-foo-cppflags=-foo-results14]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_constraining_abstract_specs_with_empty_intersection[mpich~~foo-mpich++foo]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[libelf@0.8.13-@0:1-libelf@0.8.13]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_lhs_is_not_changed_when_constraining[libelf%gcc@4.5-%gcc@4.5]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_spec_formatting\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[mpich++foo-mpich foo=True-mpich+foo]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_unsatisfiable_virtual_deps_bindings[netlib-scalapack ^[virtuals=lapack] intel-parallel-studio ^openblas]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[mpich~foo-mpich~foo-mpich~foo]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_lhs_is_not_changed_when_constraining[libelf^foo@1.0:5.0-libelf^foo@1.0:5.0]\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_spec_override\", \"lib/spack/spack/test/spec_semantics.py::TestSpecSemantics::test_abstract_specs_can_constrain_each_other[libelf@0:2.5-libelf@2.1:3-libelf@2.1:2.5]\"]"},"PASS_TO_FAIL":{"kind":"string","value":"[]"},"FAIL_TO_PASS":{"kind":"string","value":"[\"lib/spack/spack/test/spec_semantics.py::test_edge_equality_does_not_depend_on_virtual_order\"]"},"FAIL_TO_FAIL":{"kind":"string","value":"[]"},"install":{"kind":"string","value":"{\"install\": [\"uv pip install -e .\", \"spack -d bootstrap now --dev\"], \"pre_install\": [\"tee pytest.ini < \"List[spack.spec.Spec]\":\n+ \"\"\"Return all specs that are currently installed but not needed by root specs.\n \n- unused = [\n- rec.spec for key, rec in self._data.items() if key not in needed and rec.installed\n- ]\n+ By default, roots are all explicit specs in the database. If a set of root\n+ hashes are passed in, they are instead used as the roots.\n \n- return unused\n+ Arguments:\n+ root_hashes: optional list of roots to consider when evaluating needed installations.\n+ deptype: if a spec is reachable from a root via these dependency types, it is\n+ considered needed. By default only link and run dependency types are considered.\n+ \"\"\"\n+\n+ def root(key, record):\n+ \"\"\"Whether a DB record is a root for garbage collection.\"\"\"\n+ return key in root_hashes if root_hashes is not None else record.explicit\n+\n+ with self.read_transaction():\n+ roots = [rec.spec for key, rec in self._data.items() if root(key, rec)]\n+ needed = set(id(spec) for spec in tr.traverse_nodes(roots, deptype=deptype))\n+ return [rec.spec for rec in self._data.values() if id(rec.spec) not in needed]\n \n def update_explicit(self, spec, explicit):\n \"\"\"\ndiff --git a/lib/spack/spack/environment/environment.py b/lib/spack/spack/environment/environment.py\nindex 2721ddb828072..e2ea4b27e9ed9 100644\n--- a/lib/spack/spack/environment/environment.py\n+++ b/lib/spack/spack/environment/environment.py\n@@ -793,7 +793,7 @@ def __init__(self, manifest_dir: Union[str, pathlib.Path]) -> None:\n #: User specs from the last concretization\n self.concretized_user_specs: List[Spec] = []\n #: Roots associated with the last concretization, in order\n- self.concretized_order: List[Spec] = []\n+ self.concretized_order: List[str] = []\n #: Concretized specs by hash\n self.specs_by_hash: Dict[str, Spec] = {}\n #: Repository for this environment (memoized)\ndiff --git a/share/spack/spack-completion.bash b/share/spack/spack-completion.bash\nindex 76f046eaae56a..bc1998c465010 100755\n--- a/share/spack/spack-completion.bash\n+++ b/share/spack/spack-completion.bash\n@@ -1177,7 +1177,7 @@ _spack_find() {\n }\n \n _spack_gc() {\n- SPACK_COMPREPLY=\"-h --help -y --yes-to-all\"\n+ SPACK_COMPREPLY=\"-h --help -E --except-any-environment -e --except-environment -b --keep-build-dependencies -y --yes-to-all\"\n }\n \n _spack_gpg() {\ndiff --git a/share/spack/spack-completion.fish b/share/spack/spack-completion.fish\nindex 7f4446706a962..2b3edaa5a4413 100755\n--- a/share/spack/spack-completion.fish\n+++ b/share/spack/spack-completion.fish\n@@ -1747,9 +1747,15 @@ complete -c spack -n '__fish_spack_using_command find' -l end-date -r -f -a end_\n complete -c spack -n '__fish_spack_using_command find' -l end-date -r -d 'latest date of installation [YYYY-MM-DD]'\n \n # spack gc\n-set -g __fish_spack_optspecs_spack_gc h/help y/yes-to-all\n+set -g __fish_spack_optspecs_spack_gc h/help E/except-any-environment e/except-environment= b/keep-build-dependencies y/yes-to-all\n complete -c spack -n '__fish_spack_using_command gc' -s h -l help -f -a help\n complete -c spack -n '__fish_spack_using_command gc' -s h -l help -d 'show this help message and exit'\n+complete -c spack -n '__fish_spack_using_command gc' -s E -l except-any-environment -f -a except_any_environment\n+complete -c spack -n '__fish_spack_using_command gc' -s E -l except-any-environment -d 'remove everything unless needed by an environment'\n+complete -c spack -n '__fish_spack_using_command gc' -s e -l except-environment -r -f -a except_environment\n+complete -c spack -n '__fish_spack_using_command gc' -s e -l except-environment -r -d 'remove everything unless needed by specified environment'\n+complete -c spack -n '__fish_spack_using_command gc' -s b -l keep-build-dependencies -f -a keep_build_dependencies\n+complete -c spack -n '__fish_spack_using_command gc' -s b -l keep-build-dependencies -d 'do not remove installed build-only dependencies of roots'\n complete -c spack -n '__fish_spack_using_command gc' -s y -l yes-to-all -f -a yes_to_all\n complete -c spack -n '__fish_spack_using_command gc' -s y -l yes-to-all -d 'assume \"yes\" is the answer to every confirmation request'\n \n"},"test_patch":{"kind":"string","value":"diff --git a/lib/spack/spack/test/cmd/gc.py b/lib/spack/spack/test/cmd/gc.py\nindex d692628e106fe..9defb9d99c68a 100644\n--- a/lib/spack/spack/test/cmd/gc.py\n+++ b/lib/spack/spack/test/cmd/gc.py\n@@ -11,37 +11,140 @@\n import spack.spec\n \n gc = spack.main.SpackCommand(\"gc\")\n+add = spack.main.SpackCommand(\"add\")\n+install = spack.main.SpackCommand(\"install\")\n+find = spack.main.SpackCommand(\"find\")\n \n pytestmark = pytest.mark.not_on_windows(\"does not run on windows\")\n \n \n @pytest.mark.db\n-def test_no_packages_to_remove(config, mutable_database, capsys):\n- with capsys.disabled():\n- output = gc(\"-y\")\n+def test_gc_without_build_dependency(config, mutable_database):\n+ output = gc(\"-yb\")\n+ assert \"There are no unused specs.\" in output\n+\n+ output = gc(\"-y\")\n assert \"There are no unused specs.\" in output\n \n \n @pytest.mark.db\n-def test_packages_are_removed(config, mutable_database, capsys):\n+def test_gc_with_build_dependency(config, mutable_database):\n s = spack.spec.Spec(\"simple-inheritance\")\n s.concretize()\n s.package.do_install(fake=True, explicit=True)\n- with capsys.disabled():\n- output = gc(\"-y\")\n+\n+ output = gc(\"-yb\")\n+ assert \"There are no unused specs.\" in output\n+\n+ output = gc(\"-y\")\n assert \"Successfully uninstalled cmake\" in output\n \n \n @pytest.mark.db\n-def test_gc_with_environment(config, mutable_database, mutable_mock_env_path, capsys):\n+def test_gc_with_environment(config, mutable_database, mutable_mock_env_path):\n+ s = spack.spec.Spec(\"simple-inheritance\")\n+ s.concretize()\n+ s.package.do_install(fake=True, explicit=True)\n+\n+ e = ev.create(\"test_gc\")\n+ with e:\n+ add(\"cmake\")\n+ install()\n+ assert \"cmake\" in find()\n+ output = gc(\"-y\")\n+ assert \"Restricting garbage collection\" in output\n+ assert \"There are no unused specs\" in output\n+\n+\n+@pytest.mark.db\n+def test_gc_with_build_dependency_in_environment(config, mutable_database, mutable_mock_env_path):\n s = spack.spec.Spec(\"simple-inheritance\")\n s.concretize()\n s.package.do_install(fake=True, explicit=True)\n \n e = ev.create(\"test_gc\")\n- e.add(\"cmake\")\n with e:\n- with capsys.disabled():\n- output = gc(\"-y\")\n- assert \"Restricting the garbage collection\" in output\n+ add(\"simple-inheritance\")\n+ install()\n+ assert \"simple-inheritance\" in find()\n+ output = gc(\"-yb\")\n+ assert \"Restricting garbage collection\" in output\n assert \"There are no unused specs\" in output\n+\n+ with e:\n+ assert \"simple-inheritance\" in find()\n+ output = gc(\"-y\")\n+ assert \"Restricting garbage collection\" in output\n+ assert \"Successfully uninstalled cmake\" in output\n+\n+\n+@pytest.mark.db\n+def test_gc_except_any_environments(config, mutable_database, mutable_mock_env_path):\n+ s = spack.spec.Spec(\"simple-inheritance\")\n+ s.concretize()\n+ s.package.do_install(fake=True, explicit=True)\n+\n+ assert \"zmpi\" in find()\n+\n+ e = ev.create(\"test_gc\")\n+ with e:\n+ add(\"simple-inheritance\")\n+ install()\n+ assert \"simple-inheritance\" in find()\n+\n+ output = gc(\"-yE\")\n+ assert \"Restricting garbage collection\" not in output\n+ assert \"Successfully uninstalled zmpi\" in output\n+ assert \"zmpi\" not in find()\n+\n+ with e:\n+ output = gc(\"-yE\")\n+ assert \"Restricting garbage collection\" not in output\n+ assert \"There are no unused specs\" not in find()\n+\n+\n+@pytest.mark.db\n+def test_gc_except_specific_environments(config, mutable_database, mutable_mock_env_path):\n+ s = spack.spec.Spec(\"simple-inheritance\")\n+ s.concretize()\n+ s.package.do_install(fake=True, explicit=True)\n+\n+ assert \"zmpi\" in find()\n+\n+ e = ev.create(\"test_gc\")\n+ with e:\n+ add(\"simple-inheritance\")\n+ install()\n+ assert \"simple-inheritance\" in find()\n+\n+ output = gc(\"-ye\", \"test_gc\")\n+ assert \"Restricting garbage collection\" not in output\n+ assert \"Successfully uninstalled zmpi\" in output\n+ assert \"zmpi\" not in find()\n+\n+\n+@pytest.mark.db\n+def test_gc_except_nonexisting_dir_env(config, mutable_database, mutable_mock_env_path, tmpdir):\n+ output = gc(\"-ye\", tmpdir.strpath, fail_on_error=False)\n+ assert \"No such environment\" in output\n+ gc.returncode == 1\n+\n+\n+@pytest.mark.db\n+def test_gc_except_specific_dir_env(config, mutable_database, mutable_mock_env_path, tmpdir):\n+ s = spack.spec.Spec(\"simple-inheritance\")\n+ s.concretize()\n+ s.package.do_install(fake=True, explicit=True)\n+\n+ assert \"zmpi\" in find()\n+\n+ e = ev.create_in_dir(tmpdir.strpath)\n+ with e:\n+ add(\"simple-inheritance\")\n+ install()\n+ assert \"simple-inheritance\" in find()\n+\n+ output = gc(\"-ye\", tmpdir.strpath)\n+ assert \"Restricting garbage collection\" not in output\n+ assert \"Successfully uninstalled zmpi\" in output\n+ assert \"zmpi\" not in find()\ndiff --git a/lib/spack/spack/test/conftest.py b/lib/spack/spack/test/conftest.py\nindex 7b396a0358826..6b714e64af15e 100644\n--- a/lib/spack/spack/test/conftest.py\n+++ b/lib/spack/spack/test/conftest.py\n@@ -801,13 +801,13 @@ def mock_low_high_config(tmpdir):\n def _populate(mock_db):\n r\"\"\"Populate a mock database with packages.\n \n- Here is what the mock DB looks like:\n+ Here is what the mock DB looks like (explicit roots at top):\n \n- o mpileaks o mpileaks' o mpileaks''\n- |\\ |\\ |\\\n- | o callpath | o callpath' | o callpath''\n- |/| |/| |/|\n- o | mpich o | mpich2 o | zmpi\n+ o mpileaks o mpileaks' o mpileaks'' o externaltest o trivial-smoke-test\n+ |\\ |\\ |\\ |\n+ | o callpath | o callpath' | o callpath'' o externaltool\n+ |/| |/| |/| |\n+ o | mpich o | mpich2 o | zmpi o externalvirtual\n | | o | fake\n | | |\n | |______________/\ndiff --git a/lib/spack/spack/test/database.py b/lib/spack/spack/test/database.py\nindex ee3e5da81ef67..ace7ff01e33df 100644\n--- a/lib/spack/spack/test/database.py\n+++ b/lib/spack/spack/test/database.py\n@@ -25,6 +25,7 @@\n from llnl.util.tty.colify import colify\n \n import spack.database\n+import spack.deptypes as dt\n import spack.package_base\n import spack.repo\n import spack.spec\n@@ -778,9 +779,39 @@ def test_query_unused_specs(mutable_database):\n s.concretize()\n s.package.do_install(fake=True, explicit=True)\n \n- unused = spack.store.STORE.db.unused_specs\n- assert len(unused) == 1\n- assert unused[0].name == \"cmake\"\n+ si = s.dag_hash()\n+ ml_mpich = spack.store.STORE.db.query_one(\"mpileaks ^mpich\").dag_hash()\n+ ml_mpich2 = spack.store.STORE.db.query_one(\"mpileaks ^mpich2\").dag_hash()\n+ ml_zmpi = spack.store.STORE.db.query_one(\"mpileaks ^zmpi\").dag_hash()\n+ externaltest = spack.store.STORE.db.query_one(\"externaltest\").dag_hash()\n+ trivial_smoke_test = spack.store.STORE.db.query_one(\"trivial-smoke-test\").dag_hash()\n+\n+ def check_unused(roots, deptype, expected):\n+ unused = spack.store.STORE.db.unused_specs(root_hashes=roots, deptype=deptype)\n+ assert set(u.name for u in unused) == set(expected)\n+\n+ default_dt = dt.LINK | dt.RUN\n+ check_unused(None, default_dt, [\"cmake\"])\n+ check_unused(\n+ [si, ml_mpich, ml_mpich2, ml_zmpi, externaltest],\n+ default_dt,\n+ [\"trivial-smoke-test\", \"cmake\"],\n+ )\n+ check_unused(\n+ [si, ml_mpich, ml_mpich2, ml_zmpi, externaltest],\n+ dt.LINK | dt.RUN | dt.BUILD,\n+ [\"trivial-smoke-test\"],\n+ )\n+ check_unused(\n+ [si, ml_mpich, ml_mpich2, externaltest, trivial_smoke_test],\n+ dt.LINK | dt.RUN | dt.BUILD,\n+ [\"mpileaks\", \"callpath\", \"zmpi\", \"fake\"],\n+ )\n+ check_unused(\n+ [si, ml_mpich, ml_mpich2, ml_zmpi],\n+ default_dt,\n+ [\"trivial-smoke-test\", \"cmake\", \"externaltest\", \"externaltool\", \"externalvirtual\"],\n+ )\n \n \n @pytest.mark.regression(\"10019\")\n@@ -1008,6 +1039,16 @@ def test_check_parents(spec_str, parent_name, expected_nparents, database):\n assert len(edges) == expected_nparents\n \n \n+def test_db_all_hashes(database):\n+ # ensure we get the right number of hashes without a read transaction\n+ hashes = database.all_hashes()\n+ assert len(hashes) == 17\n+\n+ # and make sure the hashes match\n+ with database.read_transaction():\n+ assert set(s.dag_hash() for s in database.query()) == set(hashes)\n+\n+\n def test_consistency_of_dependents_upon_remove(mutable_database):\n # Check the initial state\n s = mutable_database.query_one(\"dyninst\")\n"},"problem_statement":{"kind":"string","value":"spack gc: remove packages not used by an environment\nI would like `spack gc` to have the additional functionality that would allow it to uninstall all packages that are not currently activated by some environment.\r\n\r\n### Rationale\r\n\r\nI use Spack as a replacement for Homebrew. I would like functionality similar to `brew cleanup` that would allow me to uninstall all old versions of software that are no longer used by my environment. \r\n\r\n### Description\r\n\r\nPreferably, this wouldn't include build dependencies needed to install my environment, since I will need to reinstall the environment from time-to-time ~~, and since Spack currently automatically installs build dependencies even when they aren't needed (#7695)~~.\r\n\r\nIn the meantime, @becker33 came up with the following script that could likely be adapted to work for `spack gc`:\r\n```python\r\n#!/usr/bin/env spack-python\r\nfrom spack.cmd.uninstall import dependent_environments\r\nimport spack.store\r\ninstalled = spack.store.db.query()\r\nfor spec in installed:\r\n if not dependent_environments([spec]):\r\n spec.package.do_uninstall()\r\n```\r\n\r\n@alalazo \n"},"hints_text":{"kind":"string","value":"Yes please!\nWorth noting: the above script will delete build-only dependencies when run on the current spack develop (i.e. autotools will go away unless your environment requires it).\r\n\r\nHere's a tweak to the above script that makes its operation a little clearer by \"inlining\" and simplifying the `dependent_environments` command.\r\n```python\r\n#!/usr/bin/env spack-python\r\n\r\nimport spack.environment as ev\r\nfrom spack.package import PackageStillNeededError\r\nimport spack.store\r\n\r\ninstalled = {spec.dag_hash(): spec for spec in spack.store.db.query()}\r\n\r\nenvhashes = set()\r\nfor eh in ev.all_environments():\r\n envhashes.update(eh.all_hashes())\r\n\r\nunwanted = set(installed) - envhashes\r\nfor hash in unwanted:\r\n spec = installed[hash]\r\n try:\r\n spec.package.do_uninstall()\r\n except PackageStillNeededError as e:\r\n print(e)\r\n```\nWould this only catch environments that are listed under $spack/var/spack/environments, not environments in directories outside of the $spack tree?\n@adamjstewart Currently `spack gc` is context sensitive, meaning it behaves differently depending on whether or not an environment is active. If we add this functionality should it distinguish between these two contexts?\nYes, I think it makes sense to keep it context sensitive. I'm fine with keeping the current behavior intact and simply adding an extra flag that does what I need. I'm also fine with adding a new command that does exactly what I need, or replacing the current behavior of `spack gc`. Basically, I just want a way to replicate `brew cleanup` with Spack Environments.\n@adamjstewart I'm trying to figure out a way to keep the functionality we have in `spack gc` and add the one you need in a way that is not surprising to users and that can take into account @glennpj comment (i.e. have a way to manually add other environments if they are not managed by Spack). \r\n\r\nIf we go this way (my first thought too):\r\n\r\n> I'm fine with keeping the current behavior intact and simply adding an extra flag that does what I need.\r\n\r\nthat extra flag will behave the same both within an environment and outside of it, so suddenly you have an option that turns a context sensitive command into something that is not. Something like that might be confusing, because it requires you to think:\r\n\r\n1. If you are in an environment or not\r\n2. Which options are you passing to the command\r\n\r\nto reason about the resulting outcome, while I think it's enough to reason only about one of the two points above.\r\n\r\nOne possibility that comes to my mind would be to trigger the different behaviors by setting an option:\r\n```console\r\n$ spack gc --mode=[store,all,active] \r\n```\r\nwhere:\r\n- `store` is the current behavior outside of an environment\r\n- `active` is the current behavior when an environment is active\r\n- `all` is the behavior you request here\r\n\r\nAn additional option to take into account anonymous environments can be added to work on @glennpj observation:\r\n```console\r\n$ spack gc --mode=all -e
-e \r\n```\r\nDoes that seem a reasonable design for the cli? Would you change anything (or is anything not clear)? \r\n\r\nAlso: if we really want to be 100% backward compatible we can change the default value for the `mode` option from `store` to `active` when an environment is active.\nHmm, I'm still thinking about this. The way I see it, `spack gc` is a command to \"garbage collect packages\" or \"remove no longer needed installations\". There are many different ways to define \"no longer needed\":\r\n\r\n1. Build dependencies (not needed after build is finished)\r\n2. Out-of-date software (older versions where a newer version is also installed)\r\n3. Inactive software (installations not present in an environment)\r\n4. Leftover software (unexplicitly installed software whose dependents were uninstalled)\r\n\r\nIn a lot of ways, this command is similar to `spack clean`, so why not use a similar CLI? For example:\r\n```console\r\n$ spack gc --old\r\n$ spack gc --build --inactive\r\n$ spack gc --all # equivalent to -boil\r\n```\r\nThis could still be made environment-aware. When not in an environment:\r\n* `--old`, `--build`, and `--leftover` apply to all packages\r\n* `--inactive` removes any installation that is not present in any environment\r\n\r\nWhen in an environment:\r\n* `--old`, `--build`, and `--leftover` apply only to packages in the environment\r\n* `--inactive` removes any installation not present in the current environment\r\n\r\nThat last one might be problematic, so we might want to change that (or even disallow that option). How do you feel about this?\n@adamjstewart I think that in the last case (in an environment) the `--inactive` flag should still respect other environments known to Spack.\nI didn't know this hadn't been merged... any updates on this? 'Twould be useful.\nHas anyone gotten a chance to work on this yet?\nI'd also like to jump into this conversation and say that I'd find this feature immensely helpful. At the moment I'm upgrading my brew like environment by running the following verbose set of commands. It'd be nice to simplify this a bit and respect specs in other known environments.\r\n\r\n```console\r\n$ spack mark -ai\r\n$ spack env activate myenv\r\n$ spack concretize --fresh --force\r\n$ spack install\r\n$ spack env deactivate\r\n$ spack gc\r\n```"},"created_at":{"kind":"string","value":"2023-12-17T09:16:06Z"},"merged_at":{"kind":"string","value":"2023-12-26T22:52:10Z"},"PASS_TO_PASS":{"kind":"string","value":"[\"lib/spack/spack/test/database.py::test_017_write_and_read_without_uuid\", \"lib/spack/spack/test/database.py::test_query_spec_with_non_conditional_virtual_dependency\", \"lib/spack/spack/test/database.py::test_110_no_write_with_exception_on_install\", \"lib/spack/spack/test/database.py::test_115_reindex_with_packages_not_in_repo\", \"lib/spack/spack/test/database.py::test_050_basic_query\", \"lib/spack/spack/test/database.py::test_070_remove_and_add_dependency_package\", \"lib/spack/spack/test/database.py::test_mark_failed\", \"lib/spack/spack/test/database.py::test_add_to_upstream_after_downstream\", \"lib/spack/spack/test/database.py::test_store_find_accept_string\", \"lib/spack/spack/test/database.py::test_reindex_when_all_prefixes_are_removed\", \"lib/spack/spack/test/database.py::test_database_construction_doesnt_use_globals[lock_cfg0]\", \"lib/spack/spack/test/database.py::test_consistency_of_dependents_upon_remove\", \"lib/spack/spack/test/database.py::test_removed_upstream_dep\", \"lib/spack/spack/test/database.py::test_prefix_failed\", \"lib/spack/spack/test/database.py::test_prefix_write_lock_error\", \"lib/spack/spack/test/database.py::test_check_parents[dyninst-callpath-3]\", \"lib/spack/spack/test/database.py::test_040_ref_counts\", \"lib/spack/spack/test/database.py::test_store_find_failures[query_arg1-MatchError-does not match any]\", \"lib/spack/spack/test/database.py::test_query_installed_when_package_unknown\", \"lib/spack/spack/test/database.py::test_cannot_write_upstream\", \"lib/spack/spack/test/database.py::test_database_construction_doesnt_use_globals[lock_cfg1]\", \"lib/spack/spack/test/database.py::test_regression_issue_8036\", \"lib/spack/spack/test/database.py::test_090_non_root_ref_counts\", \"lib/spack/spack/test/database.py::test_015_write_and_read\", \"lib/spack/spack/test/database.py::test_error_message_when_using_too_new_db\", \"lib/spack/spack/test/database.py::test_080_root_ref_counts\", \"lib/spack/spack/test/database.py::test_installed_upstream\", \"lib/spack/spack/test/database.py::test_026_reindex_after_deprecate\", \"lib/spack/spack/test/database.py::test_010_all_install_sanity\", \"lib/spack/spack/test/database.py::test_041_ref_counts_deprecate\", \"lib/spack/spack/test/database.py::test_clear_failure_keep\", \"lib/spack/spack/test/database.py::test_recursive_upstream_dbs\", \"lib/spack/spack/test/database.py::test_query_spec_with_conditional_dependency\", \"lib/spack/spack/test/database.py::test_query_virtual_spec\", \"lib/spack/spack/test/database.py::test_failed_spec_path_error\", \"lib/spack/spack/test/database.py::test_database_construction_doesnt_use_globals[lock_cfg2]\", \"lib/spack/spack/test/database.py::test_external_entries_in_db\", \"lib/spack/spack/test/database.py::test_025_reindex\", \"lib/spack/spack/test/database.py::test_store_find_failures[query_arg0-MatchError-matches multiple packages]\", \"lib/spack/spack/test/database.py::test_check_parents[libelf-dyninst-1]\", \"lib/spack/spack/test/database.py::test_100_no_write_with_exception_on_remove\", \"lib/spack/spack/test/database.py::test_old_external_entries_prefix\", \"lib/spack/spack/test/database.py::test_clear_failure_forced\", \"lib/spack/spack/test/database.py::test_database_works_with_empty_dir\", \"lib/spack/spack/test/database.py::test_check_parents[libelf-libdwarf-1]\", \"lib/spack/spack/test/database.py::test_005_db_exists\", \"lib/spack/spack/test/database.py::test_reindex_removed_prefix_is_not_installed\", \"lib/spack/spack/test/database.py::test_060_remove_and_add_root_package\", \"lib/spack/spack/test/database.py::test_uninstall_by_spec\", \"lib/spack/spack/test/database.py::test_030_db_sanity_from_another_process\", \"lib/spack/spack/test/database.py::test_020_db_sanity\", \"lib/spack/spack/test/database.py::test_default_queries\", \"lib/spack/spack/test/database.py::test_spec_installed_upstream\"]"},"PASS_TO_FAIL":{"kind":"string","value":"[]"},"FAIL_TO_PASS":{"kind":"string","value":"[\"lib/spack/spack/test/database.py::test_query_unused_specs\", \"lib/spack/spack/test/database.py::test_db_all_hashes\", \"lib/spack/spack/test/cmd/gc.py::test_gc_without_build_dependency\", \"lib/spack/spack/test/database.py::test_database_construction_doesnt_use_globals[None]\", \"lib/spack/spack/test/cmd/gc.py::test_gc_except_nonexisting_dir_env\", \"lib/spack/spack/test/cmd/gc.py::test_gc_except_specific_dir_env\", \"lib/spack/spack/test/cmd/gc.py::test_gc_with_build_dependency\", \"lib/spack/spack/test/cmd/gc.py::test_gc_with_environment\", \"lib/spack/spack/test/cmd/gc.py::test_gc_except_any_environments\", \"lib/spack/spack/test/cmd/gc.py::test_gc_except_specific_environments\", \"lib/spack/spack/test/cmd/gc.py::test_gc_with_build_dependency_in_environment\"]"},"FAIL_TO_FAIL":{"kind":"string","value":"[]"},"install":{"kind":"string","value":"{\"install\": [\"uv pip install -e .\", \"spack -d bootstrap now --dev\"], \"pre_install\": [\"tee pytest.ini < bool:\n- \"\"\"Returns true iff spec is an external that can be reused.\n+def _is_reusable(spec: spack.spec.Spec, packages, local: bool) -> bool:\n+ \"\"\"A spec is reusable if it's not a dev spec, it's imported from the cray manifest, it's not\n+ external, or it's external with matching packages.yaml entry. The latter prevents two issues:\n+\n+ 1. Externals in build caches: avoid installing an external on the build machine not\n+ available on the target machine\n+ 2. Local externals: avoid reusing an external if the local config changes. This helps in\n+ particular when a user removes an external from packages.yaml, and expects that that\n+ takes effect immediately.\n \n Arguments:\n- packages: the packages configuration\n spec: the spec to check\n+ packages: the packages configuration\n \"\"\"\n- for name in {spec.name, *(p.name for p in spec.package.provided)}:\n+ if \"dev_path\" in spec.variants:\n+ return False\n+\n+ if not spec.external:\n+ return True\n+\n+ # Cray external manifest externals are always reusable\n+ if local:\n+ _, record = spack.store.STORE.db.query_by_spec_hash(spec.dag_hash())\n+ if record and record.origin == \"external-db\":\n+ return True\n+\n+ try:\n+ provided = [p.name for p in spec.package.provided]\n+ except spack.repo.RepoError:\n+ provided = []\n+\n+ for name in {spec.name, *provided}:\n for entry in packages.get(name, {}).get(\"externals\", []):\n if (\n spec.satisfies(entry[\"spec\"])\n@@ -3188,29 +3212,21 @@ def _check_input_and_extract_concrete_specs(specs):\n def _reusable_specs(self, specs):\n reusable_specs = []\n if self.reuse:\n+ packages = spack.config.get(\"packages\")\n # Specs from the local Database\n with spack.store.STORE.db.read_transaction():\n reusable_specs.extend(\n- [\n- s\n- for s in spack.store.STORE.db.query(installed=True)\n- if not s.satisfies(\"dev_path=*\")\n- ]\n+ s\n+ for s in spack.store.STORE.db.query(installed=True)\n+ if _is_reusable(s, packages, local=True)\n )\n \n # Specs from buildcaches\n try:\n- # Specs in a build cache that depend on externals are reusable as long as local\n- # config has matching externals. This should guard against picking up binaries\n- # linked against externals not available locally, while still supporting the use\n- # case of distributing binaries across machines with similar externals.\n- packages = spack.config.get(\"packages\")\n reusable_specs.extend(\n- [\n- s\n- for s in spack.binary_distribution.update_cache_and_get_specs()\n- if not s.external or _is_reusable_external(packages, s)\n- ]\n+ s\n+ for s in spack.binary_distribution.update_cache_and_get_specs()\n+ if _is_reusable(s, packages, local=False)\n )\n except (spack.binary_distribution.FetchCacheError, IndexError):\n # this is raised when no mirrors had indices.\n"},"test_patch":{"kind":"string","value":"diff --git a/lib/spack/spack/test/concretize.py b/lib/spack/spack/test/concretize.py\nindex 2eb75edb6c607e..fd5bd7d9c59684 100644\n--- a/lib/spack/spack/test/concretize.py\n+++ b/lib/spack/spack/test/concretize.py\n@@ -1817,12 +1817,14 @@ def test_git_ref_version_succeeds_with_unknown_version(self, git_ref):\n \n @pytest.mark.regression(\"31484\")\n @pytest.mark.only_clingo(\"Use case not supported by the original concretizer\")\n- def test_installed_externals_are_reused(self, mutable_database, repo_with_changing_recipe):\n+ def test_installed_externals_are_reused(\n+ self, mutable_database, repo_with_changing_recipe, tmp_path\n+ ):\n \"\"\"Test that external specs that are in the DB can be reused.\"\"\"\n external_conf = {\n \"changing\": {\n \"buildable\": False,\n- \"externals\": [{\"spec\": \"changing@1.0\", \"prefix\": \"/usr\"}],\n+ \"externals\": [{\"spec\": \"changing@1.0\", \"prefix\": str(tmp_path)}],\n }\n }\n spack.config.set(\"packages\", external_conf)\n@@ -1847,12 +1849,12 @@ def test_installed_externals_are_reused(self, mutable_database, repo_with_changi\n \n @pytest.mark.regression(\"31484\")\n @pytest.mark.only_clingo(\"Use case not supported by the original concretizer\")\n- def test_user_can_select_externals_with_require(self, mutable_database):\n+ def test_user_can_select_externals_with_require(self, mutable_database, tmp_path):\n \"\"\"Test that users have means to select an external even in presence of reusable specs.\"\"\"\n external_conf = {\n \"mpi\": {\"buildable\": False},\n \"multi-provider-mpi\": {\n- \"externals\": [{\"spec\": \"multi-provider-mpi@2.0.0\", \"prefix\": \"/usr\"}]\n+ \"externals\": [{\"spec\": \"multi-provider-mpi@2.0.0\", \"prefix\": str(tmp_path)}]\n },\n }\n spack.config.set(\"packages\", external_conf)\n@@ -2434,7 +2436,8 @@ def test_reusable_externals_match(mock_packages, tmpdir):\n spec.external_path = tmpdir.strpath\n spec.external_modules = [\"mpich/4.1\"]\n spec._mark_concrete()\n- assert spack.solver.asp._is_reusable_external(\n+ assert spack.solver.asp._is_reusable(\n+ spec,\n {\n \"mpich\": {\n \"externals\": [\n@@ -2442,7 +2445,7 @@ def test_reusable_externals_match(mock_packages, tmpdir):\n ]\n }\n },\n- spec,\n+ local=False,\n )\n \n \n@@ -2451,7 +2454,8 @@ def test_reusable_externals_match_virtual(mock_packages, tmpdir):\n spec.external_path = tmpdir.strpath\n spec.external_modules = [\"mpich/4.1\"]\n spec._mark_concrete()\n- assert spack.solver.asp._is_reusable_external(\n+ assert spack.solver.asp._is_reusable(\n+ spec,\n {\n \"mpi\": {\n \"externals\": [\n@@ -2459,7 +2463,7 @@ def test_reusable_externals_match_virtual(mock_packages, tmpdir):\n ]\n }\n },\n- spec,\n+ local=False,\n )\n \n \n@@ -2468,7 +2472,8 @@ def test_reusable_externals_different_prefix(mock_packages, tmpdir):\n spec.external_path = \"/other/path\"\n spec.external_modules = [\"mpich/4.1\"]\n spec._mark_concrete()\n- assert not spack.solver.asp._is_reusable_external(\n+ assert not spack.solver.asp._is_reusable(\n+ spec,\n {\n \"mpich\": {\n \"externals\": [\n@@ -2476,7 +2481,7 @@ def test_reusable_externals_different_prefix(mock_packages, tmpdir):\n ]\n }\n },\n- spec,\n+ local=False,\n )\n \n \n@@ -2486,7 +2491,8 @@ def test_reusable_externals_different_modules(mock_packages, tmpdir, modules):\n spec.external_path = tmpdir.strpath\n spec.external_modules = modules\n spec._mark_concrete()\n- assert not spack.solver.asp._is_reusable_external(\n+ assert not spack.solver.asp._is_reusable(\n+ spec,\n {\n \"mpich\": {\n \"externals\": [\n@@ -2494,7 +2500,7 @@ def test_reusable_externals_different_modules(mock_packages, tmpdir, modules):\n ]\n }\n },\n- spec,\n+ local=False,\n )\n \n \n@@ -2502,6 +2508,8 @@ def test_reusable_externals_different_spec(mock_packages, tmpdir):\n spec = Spec(\"mpich@4.1%gcc@13.1.0~debug build_system=generic arch=linux-ubuntu23.04-zen2\")\n spec.external_path = tmpdir.strpath\n spec._mark_concrete()\n- assert not spack.solver.asp._is_reusable_external(\n- {\"mpich\": {\"externals\": [{\"spec\": \"mpich@4.1 +debug\", \"prefix\": tmpdir.strpath}]}}, spec\n+ assert not spack.solver.asp._is_reusable(\n+ spec,\n+ {\"mpich\": {\"externals\": [{\"spec\": \"mpich@4.1 +debug\", \"prefix\": tmpdir.strpath}]}},\n+ local=False,\n )\ndiff --git a/lib/spack/spack/test/cray_manifest.py b/lib/spack/spack/test/cray_manifest.py\nindex 123e2ac3f12fd6..dd19919ebc6ab8 100644\n--- a/lib/spack/spack/test/cray_manifest.py\n+++ b/lib/spack/spack/test/cray_manifest.py\n@@ -19,6 +19,7 @@\n import spack.compilers\n import spack.config\n import spack.cray_manifest as cray_manifest\n+import spack.solver.asp\n import spack.spec\n import spack.store\n from spack.cray_manifest import compiler_from_entry, entries_to_specs\n@@ -488,3 +489,23 @@ def test_find_external_nonempty_default_manifest_dir(\n spack.cmd.external._collect_and_consume_cray_manifest_files(ignore_default_dir=False)\n specs = spack.store.STORE.db.query(\"hwloc\")\n assert any(x.dag_hash() == \"hwlocfakehashaaa\" for x in specs)\n+\n+\n+def test_reusable_externals_cray_manifest(\n+ tmpdir, mutable_config, mock_packages, temporary_store, manifest_content\n+):\n+ \"\"\"The concretizer should be able to reuse specs imported from a manifest without a\n+ externals config entry in packages.yaml\"\"\"\n+ with tmpdir.as_cwd():\n+ with open(\"external-db.json\", \"w\") as f:\n+ json.dump(manifest_content, f)\n+ cray_manifest.read(path=\"external-db.json\", apply_updates=True)\n+\n+ # Get any imported spec\n+ spec = temporary_store.db.query_local()[0]\n+\n+ # Reusable if imported locally\n+ assert spack.solver.asp._is_reusable(spec, packages={}, local=True)\n+\n+ # If cray manifest entries end up in a build cache somehow, they are not reusable\n+ assert not spack.solver.asp._is_reusable(spec, packages={}, local=False)\n"},"problem_statement":{"kind":"string","value":"External packages modules are cached in opt/spack/.spack-db without being updated on configuration changes\n### Steps to reproduce\n\nLet's say you have an external package provided via modules like this\r\n\r\n```yaml\r\npackages:\r\n cray-mpich:\r\n externals:\r\n - spec: cray-mpich@8.1.21\r\n modules:\r\n - cray/22.11\r\n - cray-mpich/8.1.21\r\n```\r\n\r\nand you install it in your spack instance.\r\n\r\nLater, you want to update the config because this package now requires an additional module (e.g. `libfabric`)\r\n\r\n```yaml\r\npackages:\r\n cray-mpich:\r\n externals:\r\n - spec: cray-mpich@8.1.21\r\n modules:\r\n - cray/22.11\r\n - cray-mpich/8.1.21\r\n - libfabric\r\n```\n\n### Error message\n\nUnfortunately, the change in the config is not going to be reflected in the behaviour, because the configuration used will always be the one that existed at the time the package was installed the first time.\r\n\r\nIndeed, the configuration is stored in the spack db, i.e. `$SPACK_ROOT/opt/spack/.spack-db/index.json` and does not get \"updated\".\r\n\r\nThe only way to reflect the change was to uninstall the package for which I made the configuration change (together with all the dependents), and re-install it so that it's the \"first\" installation and it gather the new information from the configuration file.\n\n### Information on your system\n\n* **Spack:** 0.21.0.dev0 (33cb8c988f3fd9afb364b403eda3aaaabe130729)\r\n* **Python:** 3.6.15\r\n* **Platform:** linux-sles15-zen2\r\n* **Concretizer:** clingo\n\n### General information\n\n- [X] I have run `spack debug report` and reported the version of Spack/Python/Platform\n- [X] I have searched the issues of this repo and believe this is not a duplicate\n- [X] I have run the failing commands in debug mode and reported the output\n"},"hints_text":{"kind":"string","value":"Thanks to @haampie for the support in debugging this problem. \r\n\r\nProbably worth pointing out that https://github.com/spack/spack/pull/35975 might be useful for trying solving this.\nThe idea of #35975 is to only reuse those externals that match config:\r\n\r\n```python\r\nreusables = [s for s in specs if not s.external or any(s.satisfies(t) and s.prefix == t.prefix and s.modules == t.modules for t in package_py_externals]\r\n```\r\n\r\nthat way any config update to modules takes effect immediately.\nThere is one thing that I don't understand in this conversation. Given that installing the first `cray-mpich` right now will leave the following entry in the DB:\r\n\r\n
cray-mpich \r\n

\r\n\r\n```json\r\n{\r\n \"spec\": {\r\n \"_meta\": {\r\n \"version\": 4\r\n },\r\n \"nodes\": [\r\n {\r\n \"name\": \"cray-mpich\",\r\n \"version\": \"8.1.21\",\r\n \"arch\": {\r\n \"platform\": \"linux\",\r\n \"platform_os\": \"ubuntu20.04\",\r\n \"target\": {\r\n \"name\": \"icelake\",\r\n \"vendor\": \"GenuineIntel\",\r\n \"features\": [\r\n \"adx\",\r\n \"aes\",\r\n \"avx\",\r\n \"avx2\",\r\n \"avx512_bitalg\",\r\n \"avx512_vbmi2\",\r\n \"avx512_vnni\",\r\n \"avx512_vpopcntdq\",\r\n \"avx512bw\",\r\n \"avx512cd\",\r\n \"avx512dq\",\r\n \"avx512f\",\r\n \"avx512ifma\",\r\n \"avx512vbmi\",\r\n \"avx512vl\",\r\n \"bmi1\",\r\n \"bmi2\",\r\n \"clflushopt\",\r\n \"clwb\",\r\n \"f16c\",\r\n \"fma\",\r\n \"gfni\",\r\n \"mmx\",\r\n \"movbe\",\r\n \"pclmulqdq\",\r\n \"popcnt\",\r\n \"rdpid\",\r\n \"rdrand\",\r\n \"rdseed\",\r\n \"sha_ni\",\r\n \"sse\",\r\n \"sse2\",\r\n \"sse4_1\",\r\n \"sse4_2\",\r\n \"ssse3\",\r\n \"vaes\",\r\n \"vpclmulqdq\",\r\n \"xsavec\",\r\n \"xsaveopt\"\r\n ],\r\n \"generation\": 0,\r\n \"parents\": [\r\n \"cascadelake\",\r\n \"cannonlake\"\r\n ]\r\n }\r\n },\r\n \"compiler\": {\r\n \"name\": \"gcc\",\r\n \"version\": \"9.4.0\"\r\n },\r\n \"namespace\": \"builtin\",\r\n \"parameters\": {\r\n \"build_system\": \"generic\",\r\n \"wrappers\": true,\r\n \"cflags\": [],\r\n \"cppflags\": [],\r\n \"cxxflags\": [],\r\n \"fflags\": [],\r\n \"ldflags\": [],\r\n \"ldlibs\": []\r\n },\r\n \"external\": {\r\n \"path\": null,\r\n \"module\": [\r\n \"cray/22.11\",\r\n \"cray-mpich/8.1.21\"\r\n ],\r\n \"extra_attributes\": {}\r\n },\r\n \"package_hash\": \"rodj3475q2dbljuz5g5qa6btl36vw2ek6ubhip4i2oylayabwhdq====\",\r\n \"hash\": \"la6bdrwowheiuqiybkanvmpp4j5226c4\"\r\n }\r\n ]\r\n }\r\n}\r\n```\r\n\r\n

\r\n
\r\n\r\nwhich includes the modules being loaded, how can we ensure that:\r\n\r\n> any config update to modules takes effect immediately.\r\n\r\nwithout either having splicing, or disregarding the hash of all the specs built on top of `cray-mpich`? If we don't do one of the two things, wouldn't that mean that we have to reinstall everything built on top of `cray-mpich` because of the change in configuration?\nThe solution to that is the extension of #35975"},"created_at":{"kind":"string","value":"2023-12-14T23:40:30Z"},"merged_at":{"kind":"string","value":"2023-12-20T19:21:15Z"},"PASS_TO_PASS":{"kind":"string","value":"[\"lib/spack/spack/test/concretize.py::TestConcretize::test_no_compilers_for_arch\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[external-buildable-with-variant@0.9 +baz-True-@0.9]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_newer_dependency_adds_a_transitive_virtual\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_enable_disable_compiler_existence_check\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-preference-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a-True-with_dep0-without_dep0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_constraint_with_external_package[cmake %gcc-%gcc]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts2-True]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_two_setuptools[minimal]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_no_multiple_solutions_with_different_edges_same_nodes\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_and_virtual\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_no_conflict_in_external_specs[conflict@10.0%clang+foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_anonymous_dep[mpileaks ^cflags=-g]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_match_is_preferred_to_newer_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_deprecated_versions_not_selected[deprecated-versions-deprecated-versions@1.0.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inheritance[clang]\", \"lib/spack/spack/test/concretize.py::TestConcreteSpecsByHash::test_adding_specs[input_specs0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_no_matching_compiler_specs\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies@1.0-patched_deps1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[True-dev-build-test-dependent ^dev-build-test-install-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_annotated_on_edges[mpileaks ^mpich]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize_preferences[specs2-libelf@0.8.13-3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_architecture_inheritance\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_conditional_variant\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretization_with_compilers_supporting_target_any\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inheritance[gcc@10.2.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_and_compiler_preferences[cmake %gcc-expected1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_noversion_pkg[noversion-bundle]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants[conditional-variant-pkg@2.0+version_based+variant_based-expected3-unexpected3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_target_ranges_in_conflicts\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-preference-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inheritance[gcc]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretization_of_test_dependencies\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_provides_or_depends_on\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_dependency_conditional_on_another_dependency_state\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_my_dep_depends_on_provider_of_my_virtual_dep\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts6-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mv_variants_disjoint_sets_from_spec[mvapich2 file_systems=lustre-file_systems-expected_values1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[fftw ^mpich-expected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[ascent~~shared +adios2 ^adios2+shared-expected_propagation3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants_fail[@1.0+version_based]\", \"lib/spack/spack/test/cray_manifest.py::test_translate_cray_platform_to_linux\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich~debug]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_not_reusing_incompatible_os_or_compiler\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich debug=True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_noversion_pkg[noversion]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts5-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_children\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_version_weight_and_provenance\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[externaltool@1.0-True-@1.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_host_compatible_concretization\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant foo=foo-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_result_specs_is_not_empty[specs2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize_preferences[specs0-libelf@0.8.12-1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_is_unique[mpileaks ^mpich%clang@12.0.0-%clang@12.0.0]\", \"lib/spack/spack/test/cray_manifest.py::test_read_cray_manifest\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[False-dev-build-test-dependent ^dev-build-test-install-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_package_with_constraint_not_met_by_external\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize_preferences[specs3-mpich-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_constraint_with_external_package[cmake %clang-%clang]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflicts_in_spec[conflict%clang+foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[cannonlake-preference-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals_with_two_bound\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_preferred_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_config[python@configured platform=test]\", \"lib/spack/spack/test/cray_manifest.py::test_read_cray_manifest_add_compiler_failure\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[libelf@0.8.13]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concrete_specs_are_not_modified_on_reuse[mpich~debug-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_provides_handles_multiple_providers_of_same_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_with_unknown_package_dont_raise\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_is_unique[mpileaks-%gcc@10.2.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[haswell-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_flags_from_user_are_grouped\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[skylake-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_pure_build_virtual_dependency[minimal]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs7-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_with_restricted_virtual\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_flags_from_compiler_and_dependent\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_solution_without_cycles\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[False-dev-build-test-install-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[quantum-espresso-expected2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant@1.72.0 cxxstd=2a-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich+debug]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[broadwell-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[broadwell-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[conflict-parent%gcc]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_succeeds_with_unknown_version[0.2.15]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_succeeds_with_unknown_version[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_config[python@configured os=debian]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_reconstructed_on_reuse[mpileaks ^zmpi-zmpi]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflict_in_all_directives_true\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_conflicts_in_package_py[bowtie@1.4.0-%gcc@10.2.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants_fail[@2.0+version_based~variant_based+two_whens]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_conflicts_in_package_py[bowtie@1.3.0-%clang@12.0.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals_with_one_bound\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[develop-v_opts1-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[cannonlake-preference-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_add_microarchitectures_on_explicit_request\", \"lib/spack/spack/test/cray_manifest.py::test_failed_translate_compiler_name\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_packages_have_consistent_hash\", \"lib/spack/spack/test/concretize.py::TestConcretizeEdges::test_condition_triggered_by_edge_property[conditional-edge~foo-expected_satisfies1-expected_not_satisfies1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[old-external-True-@1.0.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-preference-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs5-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[ascent~~shared +adios2-expected_propagation2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_annotated_on_edges[mpileaks]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_and_compiler_preferences[cmake-expected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs1-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_error_message_for_inconsistent_variants[wrong-variant-in-conflicts]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[haswell-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants_fail[@1.0~version_based]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_reconstructed_on_reuse[mpileaks ^mpich2-mpich2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[haswell-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflicts_show_cores[conflict-parent@0.9^conflict~foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_os_selection_when_multiple_choices_are_possible[mpileaks%gcc@10.2.1 platform=test os=debian6-os=debian6]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[skylake-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[cannonlake-preference-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcreteSpecsByHash::test_adding_specs[input_specs2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_module\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_cumulative_version_ranges_with_different_length\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_specified_variant\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[broadwell-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[ascent++shared +adios2 ^adios2~shared-expected_propagation4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_config[python@configured target=core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_config[python@configured]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants[conditional-variant-pkg@1.0-expected0-unexpected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_unified_python\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_installed_packages_when_package_def_changes[context0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[external-buildable-with-variant +baz-True-@1.1.special +baz]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagated_variant_is_not_passed_to_dependent\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_mention_build_dep\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_versions_in_virtual_dependencies\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_installed_specs_disregard_conflicts\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[external-buildable-with-variant@1.0: ~baz-False-@1.0 ~baz]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[git.branch=1.2.3-v_opts16-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_multivalue_variant\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mv_variants_disjoint_sets_from_packages_yaml\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inheritance[clang@:12.0.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[libelf0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_with_unknown_namespace_dont_raise\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_compiler_flag_propagate\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concrete_specs_are_not_modified_on_reuse[mpich-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants[conditional-variant-pkg@2.0~version_based-expected2-unexpected2]\", \"lib/spack/spack/test/concretize.py::TestConcretizeEdges::test_virtuals_provided_together_but_only_one_required_in_dag\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_succeeds_with_unknown_version[fbranch]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_result_specs_is_not_empty[specs0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_child\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extensions_have_dependency\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_provider_must_meet_requirements\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[py-extension3@1.1 ^python@2.7.11-expected3-unexpected3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_dependent_with_singlevalued_variant_type\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_os_selection_when_multiple_choices_are_possible[mpileaks%gcc@10.2.1 platform=test os=redhat6-os=redhat6]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts4-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[py-extension3@1.0 ^python@3.5.1-expected4-unexpected4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[conflict%clang~foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_simultaneous_concretization_of_specs[abstract_specs0]\", \"lib/spack/spack/test/cray_manifest.py::test_compiler_from_entry\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[broadwell-mpileaks%gcc@=5.3.0 target=x86_64:-broadwell]\", \"lib/spack/spack/test/concretize.py::TestConcretizeEdges::test_condition_triggered_by_edge_property[conditional-edge+foo-expected_satisfies2-expected_not_satisfies2]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_two_gmake[minimal]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a foobar=bar-tests_arg2-with_dep2-without_dep2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals_with_dual_provider\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_do_not_invent_new_concrete_versions_unless_necessary\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_delete_version_and_reuse\", \"lib/spack/spack/test/cray_manifest.py::test_read_old_manifest_v1_2\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_two_gmake[full]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-preference-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[False-dev-build-test-install-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[hypre~~shared ^openblas+shared-expected_propagation0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_variant_not_default\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_non_default_provider_of_multiple_virtuals\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@2.20]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_deprecated_versions_not_selected[deprecated-versions@=1.1.0-deprecated-versions@1.1.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_is_equivalent_to_specified_version[main]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant@1.62.0 cxxstd=17-False]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[0000001=1.2.3-v_opts12-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_compiler_flag_not_passed_to_dependent\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant foo=bar-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[skylake-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich cppflags==\\\"-O3\\\"]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_simultaneous_concretization_of_specs[abstract_specs1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_os_selection_when_multiple_choices_are_possible[mpileaks-os=debian6]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_installed_packages_when_package_def_changes[context2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies +foo-patched_deps4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs4-3]\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_pure_build_virtual_dependency[full]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_custom_compiler_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_target_granularity\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs3-4]\", \"lib/spack/spack/test/cray_manifest.py::test_manifest_compatibility\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[callpath]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_parents\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_that_would_require_a_virtual_dependency\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[quantum-espresso-expected1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_anonymous\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a foobar=bar-tests_arg3-with_dep3-without_dep3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[externaltool@0.9-True-@0.9]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflicts_show_cores[conflict%clang+foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_transitive_conditional_virtual_dependency\", \"lib/spack/spack/test/concretize.py::TestConcretizeSeparately::test_two_setuptools[full]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_inherited_upwards\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_dont_define_new_version_from_input_if_checksum_required\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_self\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[skylake-mpileaks%apple-clang@=5.1.0 target=x86_64:-x86_64]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[external-buildable-with-variant ~baz-False-@1.0 ~baz]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_installed_packages_when_package_def_changes[context1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_sticky_variant_in_package\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[py-extension3@1.0 ^python@2.7.11-expected2-unexpected2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant@1.62.0 cxxstd=2a-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs8-1]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts11-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_anonymous_dep[mpileaks ^%gcc]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_version_badness_more_important_than_default_mv_variants\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtuals_are_reconstructed_on_reuse[mpileaks-mpich]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_all_patches_applied\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@1.2:2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[icelake-mpileaks%gcc@=4.8 target=x86_64:-haswell]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_values_in_variants[conditional-values-in-variant@1.72.0 staging=flexpath-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[libelf1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_with_custom_non_numeric_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_two_virtuals_with_dual_provider_and_a_conflict\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts15-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_version_matches_any_entry_in_compilers_yaml\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtual_is_fully_expanded_for_mpileaks\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants[conditional-variant-pkg@2.0-expected1-unexpected1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_match_constraints_when_selected\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_nobuild_package\", \"lib/spack/spack/test/concretize.py::TestConcreteSpecsByHash::test_adding_specs[input_specs1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_different_compilers_get_different_flags\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_coconcretize_reuse_and_virtuals\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_virtual_is_fully_expanded_for_callpath\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_conflicts_in_package_py[bowtie@1.2.2 os=redhat6-%gcc@11.1.0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mv_variants_disjoint_sets_from_spec[mvapich2 file_systems=lustre,gpfs-file_systems-expected_values2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_multivalued_variants_from_cli[multivalue-variant-expected_dict0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_result_specs_is_not_empty[specs1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mixing_compilers_only_affects_subdag\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_multivalued_variants_from_cli[multivalue-variant libs=static-expected_dict1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@2.21]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_with_non_default_variant_as_dependency\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[0000000000000000000000000000000000000001=1.2.3-v_opts10-True]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts0-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@:1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_user_can_select_externals_with_require\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_regression_issue_4492\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[True-dev-build-test-install-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[cannonlake-preference-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_installed\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_in_nonbuildable_external_package[clang-external-common-python-%clang ^external-common-openssl%clang ^external-common-gdbm%clang-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@2.1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[quantum-espresso-expected3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[True-dev-build-test-install-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_working_around_conflicting_defaults[quantum-espresso~veritas-expected4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_installed_externals_are_reused\", \"lib/spack/spack/test/cray_manifest.py::test_read_cray_manifest_twice_no_compiler_duplicates\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_python_from_cli_and_extension_from_db\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize_preferences[specs1-libelf@0.8.12-2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs2-4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_regression_issue_7705\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_is_equivalent_to_specified_version[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_sibling\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts9-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[True-dev-build-test-dependent ^dev-build-test-install-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_regression_issue_7239\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_propagate_disabled_variant[hypre~~shared ^openblas-expected_propagation1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_variants_fail[@2.0~version_based+variant_based]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_error_message_for_inconsistent_variants[wrong-variant-in-depends-on]\", \"lib/spack/spack/test/concretize.py::TestConcretizeEdges::test_condition_triggered_by_edge_property[conditional-edge-expected_satisfies0-expected_not_satisfies0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies ^libelf@0.8.10-patched_deps3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_compiler_flag_does_not_propagate\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a foobar=bar-False-with_dep4-without_dep4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_mv_variants_disjoint_sets_from_spec[mvapich2-file_systems-expected_values0]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts13-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs0-1]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts3-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_and_compiler_preferences[cmake %clang-expected2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_in_nonbuildable_external_package[gcc-external-common-python %clang-%clang ^external-common-openssl%gcc ^external-common-gdbm%clang-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_architecture_deep_inheritance\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_activating_test_dependencies[a foobar=bar-True-with_dep1-without_dep1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_simultaneous_concretization_of_specs[abstract_specs3]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_regression_issue_7941\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies-patched_deps0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_misleading_error_message_on_version\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[conflict]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts14-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conflicts_in_spec[conflict-parent@0.9^conflict~foo]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[py-extension3 ^python@2.7.11-expected1-unexpected1]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_ref_version_is_equivalent_to_specified_version[0.2.15]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@2:]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_with_flags\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_best_effort_coconcretize[specs6-4]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_simultaneous_concretization_of_specs[abstract_specs2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_reuse_does_not_overwrite_dev_specs[False-dev-build-test-dependent ^dev-build-test-install-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpileaks ^mpi@:1.1]\", \"lib/spack/spack/test/cray_manifest.py::test_translate_compiler_name\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_require_targets_are_allowed\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts8-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize_with_provides_when\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_installed_version_is_selected_only_for_reuse\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_package_versions[externaltool@0_8-True-@0_8]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_patching_dependencies[patch-several-dependencies@1.0 ^libdwarf@20111030-patched_deps2]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concretize[mpich cppflags=\\\"-O3\\\"]\", \"lib/spack/spack/test/concretize.py::test_drop_moving_targets[1.2.3-v_opts7-True]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_external_python_extension_find_dependency_from_detection\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_target_compatibility\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_dont_select_version_that_brings_more_variants_in\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_concrete_specs_are_not_modified_on_reuse[mpich+debug-False]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_conditional_dependencies[py-extension3 ^python@3.5.1-expected0-unexpected0]\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_git_hash_assigned_version_is_preferred\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_adjusting_default_target_based_on_compiler[haswell-mpileaks%gcc@=4.4.7 ^dyninst@=10.2.1 target=x86_64:-core2]\", \"lib/spack/spack/test/cray_manifest.py::test_generate_specs_from_manifest\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_compiler_flags_differ_identical_compilers\", \"lib/spack/spack/test/concretize.py::TestConcretize::test_find_spec_none\"]"},"PASS_TO_FAIL":{"kind":"string","value":"[]"},"FAIL_TO_PASS":{"kind":"string","value":"[\"lib/spack/spack/test/concretize.py::test_reusable_externals_different_spec\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_match_virtual\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_different_prefix\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_different_modules[modules1]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_different_modules[None]\", \"lib/spack/spack/test/concretize.py::test_reusable_externals_match\", \"lib/spack/spack/test/cray_manifest.py::test_convert_validation_error\"]"},"FAIL_TO_FAIL":{"kind":"string","value":"[\"lib/spack/spack/test/cray_manifest.py::test_reusable_externals_cray_manifest\", \"lib/spack/spack/test/cray_manifest.py::test_find_external_nonempty_default_manifest_dir\"]"},"install":{"kind":"string","value":"{\"install\": [\"uv pip install -e .\", \"spack -d bootstrap now --dev\"], \"pre_install\": [\"tee pytest.ini < EnvironmentModifications:\n if id(spec) in self.nodes_in_subdag:\n pkg.setup_dependent_run_environment(run_env_mods, spec)\n pkg.setup_run_environment(run_env_mods)\n+\n+ external_env = (dspec.extra_attributes or {}).get(\"environment\", {})\n+ if external_env:\n+ run_env_mods.extend(spack.schema.environment.parse(external_env))\n+\n if self.context == Context.BUILD:\n # Don't let the runtime environment of comiler like dependencies leak into the\n # build env\ndiff --git a/lib/spack/spack/schema/packages.py b/lib/spack/spack/schema/packages.py\nindex 2802f8952947a..82c3c9b552a5b 100644\n--- a/lib/spack/spack/schema/packages.py\n+++ b/lib/spack/spack/schema/packages.py\n@@ -7,6 +7,7 @@\n .. literalinclude:: _spack_root/lib/spack/spack/schema/packages.py\n :lines: 13-\n \"\"\"\n+import spack.schema.environment\n \n permissions = {\n \"type\": \"object\",\n@@ -155,7 +156,13 @@\n \"spec\": {\"type\": \"string\"},\n \"prefix\": {\"type\": \"string\"},\n \"modules\": {\"type\": \"array\", \"items\": {\"type\": \"string\"}},\n- \"extra_attributes\": {\"type\": \"object\"},\n+ \"extra_attributes\": {\n+ \"type\": \"object\",\n+ \"additionalProperties\": True,\n+ \"properties\": {\n+ \"environment\": spack.schema.environment.definition\n+ },\n+ },\n },\n \"additionalProperties\": True,\n \"required\": [\"spec\"],\n"},"test_patch":{"kind":"string","value":"diff --git a/lib/spack/spack/test/build_environment.py b/lib/spack/spack/test/build_environment.py\nindex cbccbc429eac6..8e13a5f13a436 100644\n--- a/lib/spack/spack/test/build_environment.py\n+++ b/lib/spack/spack/test/build_environment.py\n@@ -285,6 +285,24 @@ def platform_pathsep(pathlist):\n assert name not in os.environ\n \n \n+def test_external_config_env(mock_packages, mutable_config, working_env):\n+ cmake_config = {\n+ \"externals\": [\n+ {\n+ \"spec\": \"cmake@1.0\",\n+ \"prefix\": \"/fake/path\",\n+ \"extra_attributes\": {\"environment\": {\"set\": {\"TEST_ENV_VAR_SET\": \"yes it's set\"}}},\n+ }\n+ ]\n+ }\n+ spack.config.set(\"packages:cmake\", cmake_config)\n+\n+ cmake_client = spack.spec.Spec(\"cmake-client\").concretized()\n+ spack.build_environment.setup_package(cmake_client.package, False)\n+\n+ assert os.environ[\"TEST_ENV_VAR_SET\"] == \"yes it's set\"\n+\n+\n @pytest.mark.regression(\"9107\")\n def test_spack_paths_before_module_paths(config, mock_packages, monkeypatch, working_env):\n s = spack.spec.Spec(\"cmake\")\n"},"problem_statement":{"kind":"string","value":"Allow for environment modifications by the external packages\nIt would be nice to have an option to apply additional modifications to the environment when an external package is in use. We already have it for compilers, so the required logic is already more or less implemented.\r\n\r\n### Rationale\r\n\r\nThis would help to customize the existing modules. For example, some packages need to run `srun` either at the configure time (to make sure that the provided MPI implementation does not suffer some particular bugs) or when running tests. A common assumption is that `srun -n 4 ./executable` does the job. There are cases, though, when this does not work. On one of the systems I have to specify an account, a constraint and a partition:\r\n```console\r\nsrun -A some_account -C some_constraint -p some_partition -n 4 ./executable\r\n```\r\n\r\nThis could be solved with the requested feature as follows:\r\n```yaml\r\npackages:\r\n cray-mpich:\r\n buildable: false\r\n externals:\r\n - spec: cray-mpich@7.7.16\r\n modules:\r\n - cray-mpich/7.7.16\r\n environment:\r\n set:\r\n SLURM_ACCOUNT: some_account\r\n SLURM_CONSTRAINT: some_constraint\r\n SLURM_PARTITION: some_partition\r\n```\r\n\r\nand `srun -n 4 ./executable` would work.\r\n\r\n### Description\r\n\r\nThe current way to solve this problem is to create an additional module and append it to the list of loaded modules. This is not very convenient though.\r\n\r\n### Additional information\r\nWe need to discuss whether the environment modifications should affect the hash. This makes sense for the modules since we normally get the prefix from them but I don't think we should try to guess the prefix based on the environment modifications.\r\n\r\n\r\n### General information\r\n\r\n- [ ] I have run `spack --version` and reported the version of Spack\r\n- [x] I have searched the issues of this repo and believe this is not a duplicate\n"},"hints_text":{"kind":"string","value":"There is probably one more thing to consider. Imagine that `mpi` is not an external package. Say we build `openmpi`. We still have to set additional environment variables to make `srun` work. Therefore, it would be nice to have an additional `environment` section for the whole package, not only for externals:\r\n\r\n```yaml\r\npackages:\r\n openmpi:\r\n buildable: true\r\n environment:\r\n# we want to set SLURM variables regardless of whether an external version is used\r\n set:\r\n SLURM_ACCOUNT: some_account\r\n SLURM_CONSTRAINT: some_constraint\r\n SLURM_PARTITION: some_partition\r\n externals:\r\n - spec: openmpi@4.0.5%gcc\r\n modules:\r\n - openmpi/4.0.5-gcc\r\n environment:\r\n# the openmpi/4.0.5-gcc module sets some custom BAD_VAR variable, which we don't want in the build environment\r\n unset: BAD_VAR\r\n```"},"created_at":{"kind":"string","value":"2023-12-15T19:54:08Z"},"merged_at":{"kind":"string","value":"2023-12-19T04:24:15Z"},"PASS_TO_PASS":{"kind":"string","value":"[\"lib/spack/spack/test/build_environment.py::test_compiler_config_modifications[initial2-modifications2-expected2]\", \"lib/spack/spack/test/build_environment.py::test_compiler_config_modifications[initial4-modifications4-expected4]\", \"lib/spack/spack/test/build_environment.py::test_compiler_config_modifications[initial1-modifications1-expected1]\", \"lib/spack/spack/test/build_environment.py::test_package_inheritance_module_setup\", \"lib/spack/spack/test/build_environment.py::test_dirty_disable_module_unload\", \"lib/spack/spack/test/build_environment.py::test_compiler_config_modifications[initial6-modifications6-expected6]\", \"lib/spack/spack/test/build_environment.py::test_compiler_config_modifications[initial0-modifications0-expected0]\", \"lib/spack/spack/test/build_environment.py::TestModuleMonkeyPatcher::test_getting_attributes\", \"lib/spack/spack/test/build_environment.py::test_build_jobs_defaults\", \"lib/spack/spack/test/build_environment.py::test_build_jobs_command_line_overrides\", \"lib/spack/spack/test/build_environment.py::test_monkey_patching_works_across_virtual\", \"lib/spack/spack/test/build_environment.py::test_effective_deptype_build_environment\", \"lib/spack/spack/test/build_environment.py::test_compiler_config_modifications[initial7-modifications7-expected7]\", \"lib/spack/spack/test/build_environment.py::test_compiler_config_modifications[initial3-modifications3-expected3]\", \"lib/spack/spack/test/build_environment.py::test_build_jobs_sequential_is_sequential\", \"lib/spack/spack/test/build_environment.py::test_external_prefixes_last\", \"lib/spack/spack/test/build_environment.py::test_cc_not_changed_by_modules\", \"lib/spack/spack/test/build_environment.py::test_setup_dependent_package_inherited_modules[mock_archive0]\", \"lib/spack/spack/test/build_environment.py::test_static_to_shared_library\", \"lib/spack/spack/test/build_environment.py::test_parallel_false_is_not_propagating\", \"lib/spack/spack/test/build_environment.py::test_setting_dtags_based_on_config[rpath---disable-new-dtags]\", \"lib/spack/spack/test/build_environment.py::TestModuleMonkeyPatcher::test_setting_attributes\", \"lib/spack/spack/test/build_environment.py::test_wrapper_variables\", \"lib/spack/spack/test/build_environment.py::test_spack_paths_before_module_paths\", \"lib/spack/spack/test/build_environment.py::test_compiler_config_modifications[initial5-modifications5-expected5]\", \"lib/spack/spack/test/build_environment.py::test_setting_dtags_based_on_config[runpath---enable-new-dtags]\", \"lib/spack/spack/test/build_environment.py::test_effective_deptype_run_environment\"]"},"PASS_TO_FAIL":{"kind":"string","value":"[]"},"FAIL_TO_PASS":{"kind":"string","value":"[\"lib/spack/spack/test/build_environment.py::test_clear_compiler_related_runtime_variables_of_build_deps\", \"lib/spack/spack/test/build_environment.py::test_external_config_env\"]"},"FAIL_TO_FAIL":{"kind":"string","value":"[]"},"install":{"kind":"string","value":"{\"install\": [\"uv pip install -e .\", \"spack -d bootstrap now --dev\"], \"pre_install\": [\"tee pytest.ini < str:\n+ \"\"\"For strings like ``name=value`` or ``name==value``, quote and escape the value if needed.\n \n- If the heuristic finds a match (which can be checked with `__bool__()`), a warning\n- message explaining how to quote multiple flags correctly can be generated with\n- `.report()`.\n+ This is a compromise to respect quoting of key-value pairs on the CLI. The shell\n+ strips quotes from quoted arguments, so we cannot know *exactly* how CLI arguments\n+ were quoted. To compensate, we re-add quotes around anything staritng with ``name=``\n+ or ``name==``, and we assume the rest of the argument is the value. This covers the\n+ common cases of passign flags, e.g., ``cflags=\"-O2 -g\"`` on the command line.\n \"\"\"\n+ match = re.match(spack.parser.SPLIT_KVP, string)\n+ if not match:\n+ return string\n \n- flags_arg_pattern = re.compile(\n- r'^({0})=([^\\'\"].*)$'.format(\"|\".join(spack.spec.FlagMap.valid_compiler_flags()))\n- )\n+ key, delim, value = match.groups()\n+ return f\"{key}{delim}{spack.parser.quote_if_needed(value)}\"\n \n- def __init__(self, all_unquoted_flag_pairs: List[Tuple[Match[str], str]]):\n- self._flag_pairs = all_unquoted_flag_pairs\n-\n- def __bool__(self) -> bool:\n- return bool(self._flag_pairs)\n-\n- @classmethod\n- def extract(cls, sargs: str) -> \"_UnquotedFlags\":\n- all_unquoted_flag_pairs: List[Tuple[Match[str], str]] = []\n- prev_flags_arg = None\n- for arg in shlex.split(sargs):\n- if prev_flags_arg is not None:\n- all_unquoted_flag_pairs.append((prev_flags_arg, arg))\n- prev_flags_arg = cls.flags_arg_pattern.match(arg)\n- return cls(all_unquoted_flag_pairs)\n-\n- def report(self) -> str:\n- single_errors = [\n- \"({0}) {1} {2} => {3}\".format(\n- i + 1,\n- match.group(0),\n- next_arg,\n- '{0}=\"{1} {2}\"'.format(match.group(1), match.group(2), next_arg),\n- )\n- for i, (match, next_arg) in enumerate(self._flag_pairs)\n- ]\n- return dedent(\n- \"\"\"\\\n- Some compiler or linker flags were provided without quoting their arguments,\n- which now causes spack to try to parse the *next* argument as a spec component\n- such as a variant instead of an additional compiler or linker flag. If the\n- intent was to set multiple flags, try quoting them together as described below.\n-\n- Possible flag quotation errors (with the correctly-quoted version after the =>):\n- {0}\"\"\"\n- ).format(\"\\n\".join(single_errors))\n-\n-\n-def parse_specs(args, **kwargs):\n+\n+def parse_specs(\n+ args: Union[str, List[str]], concretize: bool = False, tests: bool = False\n+) -> List[spack.spec.Spec]:\n \"\"\"Convenience function for parsing arguments from specs. Handles common\n exceptions and dies if there are errors.\n \"\"\"\n- concretize = kwargs.get(\"concretize\", False)\n- normalize = kwargs.get(\"normalize\", False)\n- tests = kwargs.get(\"tests\", False)\n-\n- sargs = args\n- if not isinstance(args, str):\n- sargs = \" \".join(args)\n- unquoted_flags = _UnquotedFlags.extract(sargs)\n+ args = [args] if isinstance(args, str) else args\n+ arg_string = \" \".join([quote_kvp(arg) for arg in args])\n \n- try:\n- specs = spack.parser.parse(sargs)\n- for spec in specs:\n- if concretize:\n- spec.concretize(tests=tests) # implies normalize\n- elif normalize:\n- spec.normalize(tests=tests)\n- return specs\n-\n- except spack.error.SpecError as e:\n- msg = e.message\n- if e.long_message:\n- msg += e.long_message\n- # Unquoted flags will be read as a variant or hash\n- if unquoted_flags and (\"variant\" in msg or \"hash\" in msg):\n- msg += \"\\n\\n\"\n- msg += unquoted_flags.report()\n-\n- raise spack.error.SpackError(msg) from e\n+ specs = spack.parser.parse(arg_string)\n+ for spec in specs:\n+ if concretize:\n+ spec.concretize(tests=tests)\n+ return specs\n \n \n def matching_spec_from_env(spec):\ndiff --git a/lib/spack/spack/parser.py b/lib/spack/spack/parser.py\nindex b0a8d8ad83355..63c139b9f04e3 100644\n--- a/lib/spack/spack/parser.py\n+++ b/lib/spack/spack/parser.py\n@@ -58,6 +58,7 @@\n expansion when it is the first character in an id typed on the command line.\n \"\"\"\n import enum\n+import json\n import pathlib\n import re\n import sys\n@@ -95,13 +96,55 @@\n else:\n FILENAME = WINDOWS_FILENAME\n \n+#: These are legal values that *can* be parsed bare, without quotes on the command line.\n VALUE = r\"(?:[a-zA-Z_0-9\\-+\\*.,:=\\~\\/\\\\]+)\"\n-QUOTED_VALUE = r\"[\\\"']+(?:[a-zA-Z_0-9\\-+\\*.,:=\\~\\/\\\\\\s]+)[\\\"']+\"\n+\n+#: Variant/flag values that match this can be left unquoted in Spack output\n+NO_QUOTES_NEEDED = r\"^[a-zA-Z0-9,/_.-]+$\"\n+\n+#: Quoted values can be *anything* in between quotes, including escaped quotes.\n+QUOTED_VALUE = r\"(?:'(?:[^']|(?<=\\\\)')*'|\\\"(?:[^\\\"]|(?<=\\\\)\\\")*\\\")\"\n \n VERSION = r\"=?(?:[a-zA-Z0-9_][a-zA-Z_0-9\\-\\.]*\\b)\"\n VERSION_RANGE = rf\"(?:(?:{VERSION})?:(?:{VERSION}(?!\\s*=))?)\"\n VERSION_LIST = rf\"(?:{VERSION_RANGE}|{VERSION})(?:\\s*,\\s*(?:{VERSION_RANGE}|{VERSION}))*\"\n \n+#: Regex with groups to use for splitting (optionally propagated) key-value pairs\n+SPLIT_KVP = rf\"^({NAME})(==?)(.*)$\"\n+\n+#: Regex to strip quotes. Group 2 will be the unquoted string.\n+STRIP_QUOTES = r\"^(['\\\"])(.*)\\1$\"\n+\n+\n+def strip_quotes_and_unescape(string: str) -> str:\n+ \"\"\"Remove surrounding single or double quotes from string, if present.\"\"\"\n+ match = re.match(STRIP_QUOTES, string)\n+ if not match:\n+ return string\n+\n+ # replace any escaped quotes with bare quotes\n+ quote, result = match.groups()\n+ return result.replace(rf\"\\{quote}\", quote)\n+\n+\n+def quote_if_needed(value: str) -> str:\n+ \"\"\"Add quotes around the value if it requires quotes.\n+\n+ This will add quotes around the value unless it matches ``NO_QUOTES_NEEDED``.\n+\n+ This adds:\n+ * single quotes by default\n+ * double quotes around any value that contains single quotes\n+\n+ If double quotes are used, we json-escpae the string. That is, we escape ``\\\\``,\n+ ``\"``, and control codes.\n+\n+ \"\"\"\n+ if re.match(spack.parser.NO_QUOTES_NEEDED, value):\n+ return value\n+\n+ return json.dumps(value) if \"'\" in value else f\"'{value}'\"\n+\n \n class TokenBase(enum.Enum):\n \"\"\"Base class for an enum type with a regex value\"\"\"\n@@ -138,8 +181,8 @@ class TokenType(TokenBase):\n # Variants\n PROPAGATED_BOOL_VARIANT = rf\"(?:(?:\\+\\+|~~|--)\\s*{NAME})\"\n BOOL_VARIANT = rf\"(?:[~+-]\\s*{NAME})\"\n- PROPAGATED_KEY_VALUE_PAIR = rf\"(?:{NAME}\\s*==\\s*(?:{VALUE}|{QUOTED_VALUE}))\"\n- KEY_VALUE_PAIR = rf\"(?:{NAME}\\s*=\\s*(?:{VALUE}|{QUOTED_VALUE}))\"\n+ PROPAGATED_KEY_VALUE_PAIR = rf\"(?:{NAME}==(?:{VALUE}|{QUOTED_VALUE}))\"\n+ KEY_VALUE_PAIR = rf\"(?:{NAME}=(?:{VALUE}|{QUOTED_VALUE}))\"\n # Compilers\n COMPILER_AND_VERSION = rf\"(?:%\\s*(?:{NAME})(?:[\\s]*)@\\s*(?:{VERSION_LIST}))\"\n COMPILER = rf\"(?:%\\s*(?:{NAME}))\"\n@@ -351,12 +394,14 @@ def parse(\n # accept another package name afterwards in a node\n if self.ctx.accept(TokenType.UNQUALIFIED_PACKAGE_NAME):\n initial_spec.name = self.ctx.current_token.value\n+\n elif self.ctx.accept(TokenType.FULLY_QUALIFIED_PACKAGE_NAME):\n parts = self.ctx.current_token.value.split(\".\")\n name = parts[-1]\n namespace = \".\".join(parts[:-1])\n initial_spec.name = name\n initial_spec.namespace = namespace\n+\n elif self.ctx.accept(TokenType.FILENAME):\n return FileParser(self.ctx).parse(initial_spec)\n \n@@ -370,6 +415,7 @@ def parse(\n compiler_name = self.ctx.current_token.value[1:]\n initial_spec.compiler = spack.spec.CompilerSpec(compiler_name.strip(), \":\")\n self.has_compiler = True\n+\n elif self.ctx.accept(TokenType.COMPILER_AND_VERSION):\n if self.has_compiler:\n raise spack.spec.DuplicateCompilerSpecError(\n@@ -381,6 +427,7 @@ def parse(\n compiler_name.strip(), compiler_version\n )\n self.has_compiler = True\n+\n elif (\n self.ctx.accept(TokenType.VERSION_HASH_PAIR)\n or self.ctx.accept(TokenType.GIT_VERSION)\n@@ -395,31 +442,39 @@ def parse(\n )\n initial_spec.attach_git_version_lookup()\n self.has_version = True\n+\n elif self.ctx.accept(TokenType.BOOL_VARIANT):\n variant_value = self.ctx.current_token.value[0] == \"+\"\n initial_spec._add_flag(\n self.ctx.current_token.value[1:].strip(), variant_value, propagate=False\n )\n+\n elif self.ctx.accept(TokenType.PROPAGATED_BOOL_VARIANT):\n variant_value = self.ctx.current_token.value[0:2] == \"++\"\n initial_spec._add_flag(\n self.ctx.current_token.value[2:].strip(), variant_value, propagate=True\n )\n+\n elif self.ctx.accept(TokenType.KEY_VALUE_PAIR):\n- name, value = self.ctx.current_token.value.split(\"=\", maxsplit=1)\n- name = name.strip(\"'\\\" \")\n- value = value.strip(\"'\\\" \")\n- initial_spec._add_flag(name, value, propagate=False)\n+ match = re.match(SPLIT_KVP, self.ctx.current_token.value)\n+ assert match, \"SPLIT_KVP and KEY_VALUE_PAIR do not agree.\"\n+\n+ name, delim, value = match.groups()\n+ initial_spec._add_flag(name, strip_quotes_and_unescape(value), propagate=False)\n+\n elif self.ctx.accept(TokenType.PROPAGATED_KEY_VALUE_PAIR):\n- name, value = self.ctx.current_token.value.split(\"==\", maxsplit=1)\n- name = name.strip(\"'\\\" \")\n- value = value.strip(\"'\\\" \")\n- initial_spec._add_flag(name, value, propagate=True)\n+ match = re.match(SPLIT_KVP, self.ctx.current_token.value)\n+ assert match, \"SPLIT_KVP and PROPAGATED_KEY_VALUE_PAIR do not agree.\"\n+\n+ name, delim, value = match.groups()\n+ initial_spec._add_flag(name, strip_quotes_and_unescape(value), propagate=True)\n+\n elif self.ctx.expect(TokenType.DAG_HASH):\n if initial_spec.abstract_hash:\n break\n self.ctx.accept(TokenType.DAG_HASH)\n initial_spec.abstract_hash = self.ctx.current_token.value[1:]\n+\n else:\n break\n \ndiff --git a/lib/spack/spack/spec.py b/lib/spack/spack/spec.py\nindex 20e5c3ffa33e0..4cb7f00a5757f 100644\n--- a/lib/spack/spack/spec.py\n+++ b/lib/spack/spack/spec.py\n@@ -910,19 +910,23 @@ def flags():\n yield flags\n \n def __str__(self):\n- sorted_keys = [k for k in sorted(self.keys()) if self[k] != []]\n- cond_symbol = \" \" if len(sorted_keys) > 0 else \"\"\n- return (\n- cond_symbol\n- + \" \".join(\n- key\n- + ('==\"' if True in [f.propagate for f in self[key]] else '=\"')\n- + \" \".join(self[key])\n- + '\"'\n- for key in sorted_keys\n- )\n- + cond_symbol\n- )\n+ sorted_items = sorted((k, v) for k, v in self.items() if v)\n+\n+ result = \"\"\n+ for flag_type, flags in sorted_items:\n+ normal = [f for f in flags if not f.propagate]\n+ if normal:\n+ result += f\" {flag_type}={spack.parser.quote_if_needed(' '.join(normal))}\"\n+\n+ propagated = [f for f in flags if f.propagate]\n+ if propagated:\n+ result += f\" {flag_type}=={spack.parser.quote_if_needed(' '.join(propagated))}\"\n+\n+ # TODO: somehow add this space only if something follows in Spec.format()\n+ if sorted_items:\n+ result += \" \"\n+\n+ return result\n \n \n def _sort_by_dep_types(dspec: DependencySpec):\ndiff --git a/lib/spack/spack/variant.py b/lib/spack/spack/variant.py\nindex 9bea903aac728..f9f6f8b960c97 100644\n--- a/lib/spack/spack/variant.py\n+++ b/lib/spack/spack/variant.py\n@@ -19,6 +19,7 @@\n \n import spack.directives\n import spack.error as error\n+import spack.parser\n \n special_variant_values = [None, \"none\", \"*\"]\n \n@@ -399,13 +400,12 @@ def __contains__(self, item):\n return item in self._value\n \n def __repr__(self):\n- cls = type(self)\n- return \"{0.__name__}({1}, {2})\".format(cls, repr(self.name), repr(self._original_value))\n+ return f\"{type(self).__name__}({repr(self.name)}, {repr(self._original_value)})\"\n \n def __str__(self):\n- if self.propagate:\n- return \"{0}=={1}\".format(self.name, \",\".join(str(x) for x in self.value))\n- return \"{0}={1}\".format(self.name, \",\".join(str(x) for x in self.value))\n+ delim = \"==\" if self.propagate else \"=\"\n+ values = spack.parser.quote_if_needed(\",\".join(str(v) for v in self.value))\n+ return f\"{self.name}{delim}{values}\"\n \n \n class MultiValuedVariant(AbstractVariant):\n@@ -443,15 +443,14 @@ def append(self, value):\n self._original_value = \",\".join(self._value)\n \n def __str__(self):\n- # Special-case patches to not print the full 64 character hashes\n+ # Special-case patches to not print the full 64 character sha256\n if self.name == \"patches\":\n values_str = \",\".join(x[:7] for x in self.value)\n else:\n values_str = \",\".join(str(x) for x in self.value)\n \n- if self.propagate:\n- return \"{0}=={1}\".format(self.name, values_str)\n- return \"{0}={1}\".format(self.name, values_str)\n+ delim = \"==\" if self.propagate else \"=\"\n+ return f\"{self.name}{delim}{spack.parser.quote_if_needed(values_str)}\"\n \n \n class SingleValuedVariant(AbstractVariant):\n@@ -467,9 +466,8 @@ def _value_setter(self, value):\n self._value = str(self._value[0])\n \n def __str__(self):\n- if self.propagate:\n- return \"{0}=={1}\".format(self.name, self.value)\n- return \"{0}={1}\".format(self.name, self.value)\n+ delim = \"==\" if self.propagate else \"=\"\n+ return f\"{self.name}{delim}{spack.parser.quote_if_needed(self.value)}\"\n \n @implicit_variant_conversion\n def satisfies(self, other):\n"},"test_patch":{"kind":"string","value":"diff --git a/lib/spack/spack/test/cmd/common/arguments.py b/lib/spack/spack/test/cmd/common/arguments.py\nindex e889fe55d89e2..dcfe86aa5153a 100644\n--- a/lib/spack/spack/test/cmd/common/arguments.py\n+++ b/lib/spack/spack/test/cmd/common/arguments.py\n@@ -50,8 +50,8 @@ def test_negative_integers_not_allowed_for_parallel_jobs(job_parser):\n [\n (['coreutils cflags=\"-O3 -g\"'], [\"-O3\", \"-g\"], [False, False], []),\n (['coreutils cflags==\"-O3 -g\"'], [\"-O3\", \"-g\"], [True, True], []),\n- ([\"coreutils\", \"cflags=-O3 -g\"], [\"-O3\"], [False], [\"g\"]),\n- ([\"coreutils\", \"cflags==-O3 -g\"], [\"-O3\"], [True], [\"g\"]),\n+ ([\"coreutils\", \"cflags=-O3 -g\"], [\"-O3\", \"-g\"], [False, False], []),\n+ ([\"coreutils\", \"cflags==-O3 -g\"], [\"-O3\", \"-g\"], [True, True], []),\n ([\"coreutils\", \"cflags=-O3\", \"-g\"], [\"-O3\"], [False], [\"g\"]),\n ],\n )\ndiff --git a/lib/spack/spack/test/cmd/spec.py b/lib/spack/spack/test/cmd/spec.py\nindex 763d83bf0ad17..39fff0bbd4fec 100644\n--- a/lib/spack/spack/test/cmd/spec.py\n+++ b/lib/spack/spack/test/cmd/spec.py\n@@ -4,7 +4,6 @@\n # SPDX-License-Identifier: (Apache-2.0 OR MIT)\n \n import re\n-from textwrap import dedent\n \n import pytest\n \n@@ -74,41 +73,6 @@ def test_spec_parse_cflags_quoting():\n assert [\"-flto\", \"-Os\"] == gh_flagged.compiler_flags[\"cxxflags\"]\n \n \n-def test_spec_parse_unquoted_flags_report():\n- \"\"\"Verify that a useful error message is produced if unquoted compiler flags are\n- provided.\"\"\"\n- # This should fail during parsing, since /usr/include is interpreted as a spec hash.\n- with pytest.raises(spack.error.SpackError) as cm:\n- # We don't try to figure out how many following args were intended to be part of\n- # cflags, we just explain how to fix it for the immediate next arg.\n- spec(\"gcc cflags=-Os -pipe -other-arg-that-gets-ignored cflags=-I /usr/include\")\n- # Verify that the generated error message is nicely formatted.\n-\n- expected_message = dedent(\n- '''\\\n- Some compiler or linker flags were provided without quoting their arguments,\n- which now causes spack to try to parse the *next* argument as a spec component\n- such as a variant instead of an additional compiler or linker flag. If the\n- intent was to set multiple flags, try quoting them together as described below.\n-\n- Possible flag quotation errors (with the correctly-quoted version after the =>):\n- (1) cflags=-Os -pipe => cflags=\"-Os -pipe\"\n- (2) cflags=-I /usr/include => cflags=\"-I /usr/include\"'''\n- )\n-\n- assert expected_message in str(cm.value)\n-\n- # Verify that the same unquoted cflags report is generated in the error message even\n- # if it fails during concretization, not just during parsing.\n- with pytest.raises(spack.error.SpackError) as cm:\n- spec(\"gcc cflags=-Os -pipe\")\n- cm = str(cm.value)\n- assert cm.startswith(\n- 'trying to set variant \"pipe\" in package \"gcc\", but the package has no such variant'\n- )\n- assert cm.endswith('(1) cflags=-Os -pipe => cflags=\"-Os -pipe\"')\n-\n-\n def test_spec_yaml():\n output = spec(\"--yaml\", \"mpileaks\")\n \ndiff --git a/lib/spack/spack/test/spec_syntax.py b/lib/spack/spack/test/spec_syntax.py\nindex 3cbb59e69f0af..e2282df745081 100644\n--- a/lib/spack/spack/test/spec_syntax.py\n+++ b/lib/spack/spack/test/spec_syntax.py\n@@ -2,6 +2,7 @@\n # Spack Project Developers. See the top-level COPYRIGHT file for details.\n #\n # SPDX-License-Identifier: (Apache-2.0 OR MIT)\n+import inspect\n import itertools\n import os\n import re\n@@ -9,6 +10,7 @@\n \n import pytest\n \n+import spack.cmd\n import spack.platforms.test\n import spack.spec\n import spack.variant\n@@ -203,7 +205,8 @@ def _specfile_for(spec_str, filename):\n \"mvapich_foo ^_openmpi@1.2:1.4,1.6%intel@12.1~qt_4 debug=2 ^stackwalker@8.1_1e\",\n ),\n (\n- \"mvapich_foo ^_openmpi@1.2:1.4,1.6%intel@12.1 cppflags=-O3 +debug~qt_4 ^stackwalker@8.1_1e\", # noqa: E501\n+ \"mvapich_foo ^_openmpi@1.2:1.4,1.6%intel@12.1 cppflags=-O3 +debug~qt_4 \"\n+ \"^stackwalker@8.1_1e\",\n [\n Token(TokenType.UNQUALIFIED_PACKAGE_NAME, value=\"mvapich_foo\"),\n Token(TokenType.DEPENDENCY, value=\"^\"),\n@@ -217,7 +220,8 @@ def _specfile_for(spec_str, filename):\n Token(TokenType.UNQUALIFIED_PACKAGE_NAME, value=\"stackwalker\"),\n Token(TokenType.VERSION, value=\"@8.1_1e\"),\n ],\n- 'mvapich_foo ^_openmpi@1.2:1.4,1.6%intel@12.1 cppflags=\"-O3\" +debug~qt_4 ^stackwalker@8.1_1e', # noqa: E501\n+ \"mvapich_foo ^_openmpi@1.2:1.4,1.6%intel@12.1 cppflags=-O3 +debug~qt_4 \"\n+ \"^stackwalker@8.1_1e\",\n ),\n # Specs containing YAML or JSON in the package name\n (\n@@ -424,7 +428,7 @@ def _specfile_for(spec_str, filename):\n compiler_with_version_range(\"%gcc@10.1.0,12.2.1:\"),\n compiler_with_version_range(\"%gcc@:8.4.3,10.2.1:12.1.0\"),\n # Special key value arguments\n- (\"dev_path=*\", [Token(TokenType.KEY_VALUE_PAIR, value=\"dev_path=*\")], \"dev_path=*\"),\n+ (\"dev_path=*\", [Token(TokenType.KEY_VALUE_PAIR, value=\"dev_path=*\")], \"dev_path='*'\"),\n (\n \"dev_path=none\",\n [Token(TokenType.KEY_VALUE_PAIR, value=\"dev_path=none\")],\n@@ -444,33 +448,28 @@ def _specfile_for(spec_str, filename):\n (\n \"cflags=a=b=c\",\n [Token(TokenType.KEY_VALUE_PAIR, value=\"cflags=a=b=c\")],\n- 'cflags=\"a=b=c\"',\n+ \"cflags='a=b=c'\",\n ),\n (\n \"cflags=a=b=c\",\n [Token(TokenType.KEY_VALUE_PAIR, value=\"cflags=a=b=c\")],\n- 'cflags=\"a=b=c\"',\n+ \"cflags='a=b=c'\",\n ),\n (\n \"cflags=a=b=c+~\",\n [Token(TokenType.KEY_VALUE_PAIR, value=\"cflags=a=b=c+~\")],\n- 'cflags=\"a=b=c+~\"',\n+ \"cflags='a=b=c+~'\",\n ),\n (\n \"cflags=-Wl,a,b,c\",\n [Token(TokenType.KEY_VALUE_PAIR, value=\"cflags=-Wl,a,b,c\")],\n- 'cflags=\"-Wl,a,b,c\"',\n+ \"cflags=-Wl,a,b,c\",\n ),\n # Multi quoted\n- (\n- \"cflags=''-Wl,a,b,c''\",\n- [Token(TokenType.KEY_VALUE_PAIR, value=\"cflags=''-Wl,a,b,c''\")],\n- 'cflags=\"-Wl,a,b,c\"',\n- ),\n (\n 'cflags==\"-O3 -g\"',\n [Token(TokenType.PROPAGATED_KEY_VALUE_PAIR, value='cflags==\"-O3 -g\"')],\n- 'cflags==\"-O3 -g\"',\n+ \"cflags=='-O3 -g'\",\n ),\n # Whitespace is allowed in version lists\n (\"@1.2:1.4 , 1.6 \", [Token(TokenType.VERSION, value=\"@1.2:1.4 , 1.6\")], \"@1.2:1.4,1.6\"),\n@@ -484,22 +483,6 @@ def _specfile_for(spec_str, filename):\n ],\n \"a@1:\",\n ),\n- (\n- \"@1.2: develop = foo\",\n- [\n- Token(TokenType.VERSION, value=\"@1.2:\"),\n- Token(TokenType.KEY_VALUE_PAIR, value=\"develop = foo\"),\n- ],\n- \"@1.2: develop=foo\",\n- ),\n- (\n- \"@1.2:develop = foo\",\n- [\n- Token(TokenType.VERSION, value=\"@1.2:\"),\n- Token(TokenType.KEY_VALUE_PAIR, value=\"develop = foo\"),\n- ],\n- \"@1.2: develop=foo\",\n- ),\n (\n \"% intel @ 12.1:12.6 + debug\",\n [\n@@ -587,8 +570,8 @@ def _specfile_for(spec_str, filename):\n )\n def test_parse_single_spec(spec_str, tokens, expected_roundtrip):\n parser = SpecParser(spec_str)\n- assert parser.tokens() == tokens\n- assert str(parser.next_spec()) == expected_roundtrip\n+ assert tokens == parser.tokens()\n+ assert expected_roundtrip == str(parser.next_spec())\n \n \n @pytest.mark.parametrize(\n@@ -654,20 +637,80 @@ def test_parse_multiple_specs(text, tokens, expected_specs):\n assert str(total_parser.next_spec()) == str(single_spec_parser.next_spec())\n \n \n+@pytest.mark.parametrize(\n+ \"args,expected\",\n+ [\n+ # Test that CLI-quoted flags/variant values are preserved\n+ ([\"zlib\", \"cflags=-O3 -g\", \"+bar\", \"baz\"], \"zlib cflags='-O3 -g' +bar baz\"),\n+ # Test that CLI-quoted propagated flags/variant values are preserved\n+ ([\"zlib\", \"cflags==-O3 -g\", \"+bar\", \"baz\"], \"zlib cflags=='-O3 -g' +bar baz\"),\n+ # An entire string passed on the CLI with embedded quotes also works\n+ ([\"zlib cflags='-O3 -g' +bar baz\"], \"zlib cflags='-O3 -g' +bar baz\"),\n+ # Entire string *without* quoted flags splits -O3/-g (-g interpreted as a variant)\n+ ([\"zlib cflags=-O3 -g +bar baz\"], \"zlib cflags=-O3 +bar~g baz\"),\n+ # If the entirety of \"-O3 -g +bar baz\" is quoted on the CLI, it's all taken as flags\n+ ([\"zlib\", \"cflags=-O3 -g +bar baz\"], \"zlib cflags='-O3 -g +bar baz'\"),\n+ # If the string doesn't start with key=, it needs internal quotes for flags\n+ ([\"zlib\", \" cflags=-O3 -g +bar baz\"], \"zlib cflags=-O3 +bar~g baz\"),\n+ # Internal quotes for quoted CLI args are considered part of *one* arg\n+ ([\"zlib\", 'cflags=\"-O3 -g\" +bar baz'], \"\"\"zlib cflags='\"-O3 -g\" +bar baz'\"\"\"),\n+ # Use double quotes if internal single quotes are present\n+ ([\"zlib\", \"cflags='-O3 -g' +bar baz\"], '''zlib cflags=\"'-O3 -g' +bar baz\"'''),\n+ # Use single quotes and escape single quotes with internal single and double quotes\n+ ([\"zlib\", \"cflags='-O3 -g' \\\"+bar baz\\\"\"], 'zlib cflags=\"\\'-O3 -g\\' \\\\\"+bar baz\\\\\"\"'),\n+ # Ensure that empty strings are handled correctly on CLI\n+ ([\"zlib\", \"ldflags=\", \"+pic\"], \"zlib+pic\"),\n+ # These flags are assumed to be quoted by the shell, but the space doesn't matter because\n+ # flags are space-separated.\n+ ([\"zlib\", \"ldflags= +pic\"], \"zlib ldflags='+pic'\"),\n+ ([\"ldflags= +pic\"], \"ldflags='+pic'\"),\n+ # If the name is not a flag name, the space is preserved verbatim, because variant values\n+ # are comma-separated.\n+ ([\"zlib\", \"foo= +pic\"], \"zlib foo=' +pic'\"),\n+ ([\"foo= +pic\"], \"foo=' +pic'\"),\n+ # You can ensure no quotes are added parse_specs() by starting your string with space,\n+ # but you still need to quote empty strings properly.\n+ ([\" ldflags= +pic\"], SpecTokenizationError),\n+ ([\" ldflags=\", \"+pic\"], SpecTokenizationError),\n+ ([\" ldflags='' +pic\"], \"+pic\"),\n+ ([\" ldflags=''\", \"+pic\"], \"+pic\"),\n+ # Ensure that empty strings are handled properly in quoted strings\n+ ([\"zlib ldflags='' +pic\"], \"zlib+pic\"),\n+ # Ensure that $ORIGIN is handled correctly\n+ ([\"zlib\", \"ldflags=-Wl,-rpath=$ORIGIN/_libs\"], \"zlib ldflags='-Wl,-rpath=$ORIGIN/_libs'\"),\n+ # Ensure that passing escaped quotes on the CLI raises a tokenization error\n+ ([\"zlib\", '\"-g', '-O2\"'], SpecTokenizationError),\n+ ],\n+)\n+def test_cli_spec_roundtrip(args, expected):\n+ if inspect.isclass(expected) and issubclass(expected, BaseException):\n+ with pytest.raises(expected):\n+ spack.cmd.parse_specs(args)\n+ return\n+\n+ specs = spack.cmd.parse_specs(args)\n+ output_string = \" \".join(str(spec) for spec in specs)\n+ assert expected == output_string\n+\n+\n @pytest.mark.parametrize(\n \"text,expected_in_error\",\n [\n- (\"x@@1.2\", \"x@@1.2\\n ^^^^^\"),\n- (\"y ^x@@1.2\", \"y ^x@@1.2\\n ^^^^^\"),\n- (\"x@1.2::\", \"x@1.2::\\n ^\"),\n- (\"x::\", \"x::\\n ^^\"),\n+ (\"x@@1.2\", r\"x@@1.2\\n ^\"),\n+ (\"y ^x@@1.2\", r\"y ^x@@1.2\\n ^\"),\n+ (\"x@1.2::\", r\"x@1.2::\\n ^\"),\n+ (\"x::\", r\"x::\\n ^^\"),\n+ (\"cflags=''-Wl,a,b,c''\", r\"cflags=''-Wl,a,b,c''\\n ^ ^ ^ ^^\"),\n+ (\"@1.2: develop = foo\", r\"@1.2: develop = foo\\n ^^\"),\n+ (\"@1.2:develop = foo\", r\"@1.2:develop = foo\\n ^^\"),\n ],\n )\n def test_error_reporting(text, expected_in_error):\n parser = SpecParser(text)\n with pytest.raises(SpecTokenizationError) as exc:\n parser.tokens()\n- assert expected_in_error in str(exc), parser.tokens()\n+\n+ assert expected_in_error in str(exc), parser.tokens()\n \n \n @pytest.mark.parametrize(\n"},"problem_statement":{"kind":"string","value":"Spack spec fails with \"complex\" flags string even if quoted\n### Steps to reproduce\n\n```console\r\nspack/bin/spack spec umpire%clang@9.0.0 cxxflags=\"-stdlib=libc++ -DGTEST_HAS_CXXABI_H_=0\"\r\n```\r\n\r\n@cosmicexplorer @trws \r\nI seem to have an issue with this\n\n### Error message\n\n```console\r\n➜ uberenv_libs git:(bernede1/ci/spack-user-cache-path) spack/bin/spack --debug --stacktrace spec umpire%clang@9.0.0 cxxflags=\"-stdlib=libc++ -DGTEST_HAS_CXXABI_H_=0\"\r\n/g/g91/bernede1/Projects/umpire/uberenv_libs/spack/lib/spack/spack/cmd/__init__.py:126 ==> [2022-06-21-07:01:56.277447] Imported spec from built-in commands\r\n/g/g91/bernede1/Projects/umpire/uberenv_libs/spack/lib/spack/spack/cmd/__init__.py:126 ==> [2022-06-21-07:01:56.279183] Imported spec from built-in commands\r\n/g/g91/bernede1/Projects/umpire/uberenv_libs/spack/lib/spack/spack/main.py:896 ==> [2022-06-21-07:01:56.281030] SpackError: Unexpected token: '=' Encountered when parsing spec:\r\n umpire%clang@9.0.0\r\n ^\r\n\r\nSome compiler or linker flags were provided without quoting their arguments,\r\nwhich now causes spack to try to parse the *next* argument as a spec component\r\nsuch as a variant instead of an additional compiler or linker flag. If the\r\nintent was to set multiple flags, try quoting them together as described below.\r\n\r\nPossible flag quotation errors (with the correctly-quoted version after the =>):\r\n(1) cxxflags=-stdlib=libc++ -DGTEST_HAS_CXXABI_H_=0 => cxxflags=\"-stdlib=libc++ -DGTEST_HAS_CXXABI_H_=0\"\r\n/g/g91/bernede1/Projects/umpire/uberenv_libs/spack/lib/spack/spack/error.py:54 ==> [2022-06-21-07:01:56.281606] Error: Unexpected token: '=' Encountered when parsing spec:\r\n umpire%clang@9.0.0\r\n ^\r\n\r\nSome compiler or linker flags were provided without quoting their arguments,\r\nwhich now causes spack to try to parse the *next* argument as a spec component\r\nsuch as a variant instead of an additional compiler or linker flag. If the\r\nintent was to set multiple flags, try quoting them together as described below.\r\n\r\nPossible flag quotation errors (with the correctly-quoted version after the =>):\r\n(1) cxxflags=-stdlib=libc++ -DGTEST_HAS_CXXABI_H_=0 => cxxflags=\"-stdlib=libc++ -DGTEST_HAS_CXXABI_H_=0\"\r\nTraceback (most recent call last):\r\n File \"/g/g91/bernede1/Projects/umpire/uberenv_libs/spack/lib/spack/spack/spec.py\", line 5145, in do_parse\r\n self.unexpected_token()\r\n File \"/g/g91/bernede1/Projects/umpire/uberenv_libs/spack/lib/spack/spack/parse.py\", line 133, in unexpected_token\r\n self.next_token_error(\"Unexpected token: '%s'\" % self.next.value)\r\n File \"/g/g91/bernede1/Projects/umpire/uberenv_libs/spack/lib/spack/spack/parse.py\", line 126, in next_token_error\r\n raise ParseError(message, self.text[0], self.token.end)\r\nspack.parse.ParseError: Unexpected token: '='\r\n\r\nThe above exception was the direct cause of the following exception:\r\n\r\nTraceback (most recent call last):\r\n File \"/g/g91/bernede1/Projects/umpire/uberenv_libs/spack/lib/spack/spack/cmd/__init__.py\", line 219, in parse_specs\r\n specs = spack.spec.parse(sargs)\r\n File \"/g/g91/bernede1/Projects/umpire/uberenv_libs/spack/lib/spack/spack/spec.py\", line 5366, in parse\r\n return SpecParser().parse(string)\r\n File \"/g/g91/bernede1/Projects/umpire/uberenv_libs/spack/lib/spack/spack/parse.py\", line 157, in parse\r\n return self.do_parse()\r\n File \"/g/g91/bernede1/Projects/umpire/uberenv_libs/spack/lib/spack/spack/spec.py\", line 5148, in do_parse\r\n raise six.raise_from(SpecParseError(e), e)\r\n File \"\", line 3, in raise_from\r\nspack.spec.SpecParseError: Unexpected token: '='\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n File \"/g/g91/bernede1/Projects/umpire/uberenv_libs/spack/lib/spack/spack/main.py\", line 893, in main\r\n return _main(argv)\r\n File \"/g/g91/bernede1/Projects/umpire/uberenv_libs/spack/lib/spack/spack/main.py\", line 848, in _main\r\n return finish_parse_and_run(parser, cmd_name, env_format_error)\r\n File \"/g/g91/bernede1/Projects/umpire/uberenv_libs/spack/lib/spack/spack/main.py\", line 876, in finish_parse_and_run\r\n return _invoke_command(command, parser, args, unknown)\r\n File \"/g/g91/bernede1/Projects/umpire/uberenv_libs/spack/lib/spack/spack/main.py\", line 533, in _invoke_command\r\n return_val = command(parser, args)\r\n File \"/g/g91/bernede1/Projects/umpire/uberenv_libs/spack/lib/spack/spack/cmd/spec.py\", line 82, in spec\r\n input_specs = spack.cmd.parse_specs(args.specs)\r\n File \"/g/g91/bernede1/Projects/umpire/uberenv_libs/spack/lib/spack/spack/cmd/__init__.py\", line 236, in parse_specs\r\n raise spack.error.SpackError(msg)\r\nspack.error.SpackError: Unexpected token: '=' Encountered when parsing spec:\r\n umpire%clang@9.0.0\r\n ^\r\n\r\nSome compiler or linker flags were provided without quoting their arguments,\r\nwhich now causes spack to try to parse the *next* argument as a spec component\r\nsuch as a variant instead of an additional compiler or linker flag. If the\r\nintent was to set multiple flags, try quoting them together as described below.\r\n\r\nPossible flag quotation errors (with the correctly-quoted version after the =>):\r\n(1) cxxflags=-stdlib=libc++ -DGTEST_HAS_CXXABI_H_=0 => cxxflags=\"-stdlib=libc++ -DGTEST_HAS_CXXABI_H_=0\"\r\n```\n\n### Information on your system\n\n* **Spack:** 0.19.0.dev0 (aebb601b70018f2879c537bf6021ba28e39dae49)\r\n* **Python:** 3.7.2\r\n* **Platform:** linux-rhel7-power9le\r\n* **Concretizer:** clingo\r\n\r\n@cosmicexplorer @trws, this likely relates to #29282 \n\n### General information\n\n- [X] I have run `spack debug report` and reported the version of Spack/Python/Platform\n- [X] I have searched the issues of this repo and believe this is not a duplicate\n- [X] I have run the failing commands in debug mode and reported the output\n"},"hints_text":{"kind":"string","value":"If the whole spec is quoted, it seems to parse, e.g.:\r\n```\r\n./bin/spack spec 'umpire%clang@9.0.0 cxxflags=\"-stdlib=libc++ -DGTEST_HAS_CXXABI_H_=0\"'\r\n```\nThat seems like a regression, the way @davidbeckingsale posted it is what that patch was meant to fix, but it should have kept working with the individual components quoted as well.\nI think the issue is that (in my investigations) the quotes don't make it from the shell into Spack, so I'm not sure how we can fix it. IIRC I was able to get it to parse by explicitly quoting the flags too:\r\n\r\n```\r\n./bin/spack spec umpire%clang@9.0.0 cxxflags=\\\"-stdlib=libc++ -DGTEST_HAS_CXXABI_H_=0\\\"\r\n```\nYeah, the shell would strip them. They should be represented by the fact that the full cxxflag string is part of the element of the list representing the arguments though, so it's probably getting joined off instead of parsed in pieces somewhere it shouldn't be.\n@trws I _think_ the problem may be related to the use of `=` inside the flag value.\r\nAnd again, likely related to https://github.com/spack/spack/pull/29282 although I did not run the `git bisect`.\r\n\nOh definitely, what you had there would have worked before that I'm pretty sure, but the same thing with cflags also specified would have failed in spectacular fashion. I'll see if I can make some time to look into this.\nIt's a bit worse than I thought. At present, if the parser is passed a string it treats that as a shell command line to be split then processes it, that seems reasonable. If it's passed a list, it joins the list with spaces, then treats the result as a command line to be split. This is where things are breaking for quoted flags arguments, because the subsequent splitting breaks them apart. I tried adding in a corrected quoter that will work for any nested shell quoting, but that produces errors because spack tests currently expect that:\r\n\r\n* arguments passed in on the command line will have quotes removed rather than preserved (shell does this, ok)\r\n* arguments passed in as though on the command line but from inside spack tests as a single argument with embedded quotes will have *their* quotes removed and words split (!!?!?)\r\n\r\nSo at the moment we have conflicting requirements for handling of lists of arguments, and I'm not sure yet how best to deal with this. I *think* we might be able to get away with taking a join of the flatmap of quoting each argument after applying shutil.split to each of them individually, but man is that strange.\r\n\r\n@cosmicexplorer, @tgamblin, @haampie any thoughts?\nSadly the split and quote method does not work, because it breaks things like `spack spec coreutils 'cflags=-O3 -g'` from the command line. If that goes away, then `spack spec 'coreutils cflags=\"-O3 -g\"'` breaks, and that's required by existing tests to work. I'm starting to become convinced that we need a coherent policy for how this is supposed to behave we can implement, because at the moment quoted arguments do not work adequately without embedded quotes."},"created_at":{"kind":"string","value":"2023-12-10T07:41:12Z"},"merged_at":{"kind":"string","value":"2023-12-14T00:36:22Z"},"PASS_TO_PASS":{"kind":"string","value":"[\"lib/spack/spack/test/spec_syntax.py::test_platform_is_none_if_not_present[os=redhat6]\", \"lib/spack/spack/test/spec_syntax.py::test_error_conditions[x target=fe target=be-DuplicateArchitectureError]\", \"lib/spack/spack/test/spec_syntax.py::test_error_conditions[x os=fe os=fe-DuplicateArchitectureError]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_specfile_simple\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[^[virtuals=mpi] openmpi-tokens70-^[virtuals=mpi] openmpi]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_multiple_specs[mvapich cppflags='-O3 -fPIC' emacs-tokens1-expected_specs1]\", \"lib/spack/spack/test/spec_syntax.py::test_error_conditions[x@1.2%y@1.2@2.3:2.4-MultipleVersionError]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[openmpi ^hwloc@1.2e6:-tokens21-openmpi ^hwloc@1.2e6:]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_filename_missing_slash_as_spec[libelf.json]\", \"lib/spack/spack/test/spec_syntax.py::test_error_reporting[x@1.2::-x@1.2::\\\\\\\\n ^]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[openmpi ^hwloc^libunwind-tokens18-openmpi ^hwloc ^libunwind]\", \"lib/spack/spack/test/spec_syntax.py::test_error_conditions[x arch=linux-rhel7-x86_64 arch=linux-rhel7-ppc64le-DuplicateArchitectureError]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[_openmpi +debug -qt_4-tokens46-_openmpi+debug~qt_4]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[mvapich_foo ^_openmpi@1.2:1.4,1.6%intel@12.1~qt_4 debug=2 ^stackwalker@8.1_1e-tokens25-mvapich_foo ^_openmpi@1.2:1.4,1.6%intel@12.1~qt_4 debug=2 ^stackwalker@8.1_1e]\", \"lib/spack/spack/test/spec_syntax.py::test_error_conditions[x@1.2+debug+debug-DuplicateVariantError]\", \"lib/spack/spack/test/cmd/common/arguments.py::test_root_and_dep_match_returns_root\", \"lib/spack/spack/test/cmd/spec.py::test_spec_json\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[openmpi ^hwloc ^libunwind-tokens17-openmpi ^hwloc ^libunwind]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[x ^y@foo ^y@foo-tokens42-x ^y@foo]\", \"lib/spack/spack/test/spec_syntax.py::test_specfile_error_conditions_windows[../../libdwarf.yaml-NoSuchSpecFileError]\", \"lib/spack/spack/test/cmd/spec.py::test_spec_deptypes_edges\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[%intel-tokens5-%intel]\", \"lib/spack/spack/test/spec_syntax.py::test_specfile_error_conditions_windows[./libdwarf.yaml-NoSuchSpecFileError]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[zlib foo==bar-tokens75-zlib foo==bar]\", \"lib/spack/spack/test/spec_syntax.py::test_error_conditions[x ^y%intel%gcc-DuplicateCompilerSpecError]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_specfile_relative_paths\", \"lib/spack/spack/test/cmd/common/arguments.py::test_concretizer_arguments[--reuse-deps-dependencies]\", \"lib/spack/spack/test/spec_syntax.py::test_specfile_error_conditions_windows[libdwarf^/bogus/path/libelf.yamlfoobar ^/path/to/bogus.yaml-NoSuchSpecFileError]\", \"lib/spack/spack/test/spec_syntax.py::test_error_reporting[x@@1.2-x@@1.2\\\\\\\\n ^]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[mvapich_foo ^_openmpi@1.2:1.4,1.6%intel@12.1+debug~qt_4 ^stackwalker@8.1_1e-tokens24-mvapich_foo ^_openmpi@1.2:1.4,1.6%intel@12.1+debug~qt_4 ^stackwalker@8.1_1e]\", \"lib/spack/spack/test/cmd/spec.py::test_spec_parse_error\", \"lib/spack/spack/test/spec_syntax.py::test_error_conditions[x target=be platform=test os=be os=fe-DuplicateArchitectureError]\", \"lib/spack/spack/test/spec_syntax.py::test_spec_by_hash\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[y~f+e~d+c~b+a-tokens33-y+a~b+c~d+e~f]\", \"lib/spack/spack/test/cmd/common/arguments.py::test_match_spec_env\", \"lib/spack/spack/test/cmd/spec.py::test_spec_returncode\", \"lib/spack/spack/test/cmd/spec.py::test_spec_format\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[platform=test-tokens12-arch=test-None-None]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[os=default_os-tokens37-arch=test-debian6-None]\", \"lib/spack/spack/test/spec_syntax.py::test_specfile_parsing[.\\\\\\\\\\\\\\\\relative\\\\\\\\\\\\\\\\dot\\\\\\\\\\\\\\\\win\\\\\\\\\\\\\\\\path.yaml-(?:\\\\\\\\.|[a-zA-Z0-9-_]*\\\\\\\\\\\\\\\\|[a-zA-Z]:\\\\\\\\\\\\\\\\)(?:[a-zA-Z0-9-_\\\\\\\\.\\\\\\\\\\\\\\\\]*)(?:\\\\\\\\.json|\\\\\\\\.yaml)]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[x ^y@foo +bar ^y@foo-tokens44-x ^y@foo+bar]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[os=fe-tokens36-arch=test-redhat6-None]\", \"lib/spack/spack/test/spec_syntax.py::test_invalid_hash_dep\", \"lib/spack/spack/test/spec_syntax.py::test_parse_specfile_relative_subdir_path\", \"lib/spack/spack/test/spec_syntax.py::test_spec_by_hash_tokens[foo@1.2.3 /abcde-tokens2]\", \"lib/spack/spack/test/spec_syntax.py::test_specfile_error_conditions_windows[libfoo ^/bogus/path/libdwarf.yaml-NoSuchSpecFileError]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[builtin.yaml-cpp ^testrepo.boost ^zlib-tokens31-yaml-cpp ^boost ^zlib]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[openmpi ^hwloc@1.2e6:1.4b7-rc3-tokens23-openmpi ^hwloc@1.2e6:1.4b7-rc3]\", \"lib/spack/spack/test/cmd/spec.py::test_spec\", \"lib/spack/spack/test/spec_syntax.py::test_git_ref_spec_equivalences[develop-branch-version@git.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa=develop-develop-branch-version@git.0.2.15=develop-expected2]\", \"lib/spack/spack/test/spec_syntax.py::test_specfile_error_conditions_windows[libfoo ^./libdwarf.yaml-NoSuchSpecFileError]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[@4.2: languages=go-tokens14-@4.2: languages=go]\", \"lib/spack/spack/test/spec_syntax.py::test_error_reporting[x::-x::\\\\\\\\n ^^]\", \"lib/spack/spack/test/spec_syntax.py::test_error_conditions[x target=fe target=fe-DuplicateArchitectureError]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[~foo-tokens10-~foo]\", \"lib/spack/spack/test/cmd/spec.py::test_env_aware_spec\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[_mvapich_foo-tokens2-_mvapich_foo]\", \"lib/spack/spack/test/spec_syntax.py::test_compare_abstract_specs\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[dev_path=../relpath/work-tokens57-dev_path=../relpath/work]\", \"lib/spack/spack/test/cmd/spec.py::test_spec_parse_dependency_variant_value\", \"lib/spack/spack/test/spec_syntax.py::test_error_conditions[x platform=test platform=test-DuplicateArchitectureError]\", \"lib/spack/spack/test/spec_syntax.py::test_disambiguate_hash_by_spec[zlib+shared-zlib~shared-+shared]\", \"lib/spack/spack/test/spec_syntax.py::test_specfile_error_conditions_windows[libfoo ^../../libdwarf.yaml-NoSuchSpecFileError]\", \"lib/spack/spack/test/spec_syntax.py::test_error_conditions[x ^y@1.2+debug debug=true-DuplicateVariantError]\", \"lib/spack/spack/test/cmd/spec.py::test_spec_parse_cflags_quoting\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[openmpi ^hwloc@:1.4b7-rc3-tokens22-openmpi ^hwloc@:1.4b7-rc3]\", \"lib/spack/spack/test/cmd/common/arguments.py::test_setting_jobs_flag\", \"lib/spack/spack/test/spec_syntax.py::test_ambiguous_hash\", \"lib/spack/spack/test/spec_syntax.py::test_parse_filename_missing_slash_as_spec[libelf.yaml]\", \"lib/spack/spack/test/cmd/common/arguments.py::test_concretizer_arguments[--reuse-True]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[%gcc@:10.2.1-tokens51-%gcc@:10.2.1]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[x ^y@foo ^y+bar-tokens43-x ^y@foo+bar]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_multiple_specs[mvapich emacs-tokens0-expected_specs0]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[@ 12.1:12.6 + debug - qt_4-tokens67-@12.1:12.6+debug~qt_4]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[develop-branch-version@abc12abc12abc12abc12abc12abc12abc12abc12=develop-tokens41-develop-branch-version@abc12abc12abc12abc12abc12abc12abc12abc12=develop]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[@2.7:-tokens7-@2.7:]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[builtin.yaml-cpp@0.1.8%gcc@7.2.0 ^boost@3.1.4-tokens30-yaml-cpp@0.1.8%gcc@7.2.0 ^boost@3.1.4]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_multiple_specs[mvapich emacs @1.1.1 %intel cflags=-O3-tokens3-expected_specs3]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[platform=linux-tokens40-arch=linux-None-None]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[@:0.4 % nvhpc-tokens69-@:0.4%nvhpc]\", \"lib/spack/spack/test/spec_syntax.py::test_error_conditions[x ^y%gcc%intel-DuplicateCompilerSpecError]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[%gcc@:8.4.3,10.2.1:12.1.0-tokens54-%gcc@:8.4.3,10.2.1:12.1.0]\", \"lib/spack/spack/test/spec_syntax.py::test_error_conditions[y ^x arch=linux-rhel7-x86_64 arch=linux-rhel7-x86_64-DuplicateArchitectureError]\", \"lib/spack/spack/test/spec_syntax.py::test_error_conditions[x@1.2@2.3-MultipleVersionError]\", \"lib/spack/spack/test/cmd/spec.py::test_spec_deptypes_nodes\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[languages=go @4.2:-tokens13-@4.2: languages=go]\", \"lib/spack/spack/test/spec_syntax.py::test_specfile_parsing[relative/path/to/file.yaml-(?:\\\\\\\\.|\\\\\\\\/|[a-zA-Z0-9-_]*\\\\\\\\/)(?:[a-zA-Z0-9-_\\\\\\\\.\\\\\\\\/]*)(?:\\\\\\\\.json|\\\\\\\\.yaml)]\", \"lib/spack/spack/test/spec_syntax.py::test_error_conditions[x@1.2:2.3@1.4-MultipleVersionError]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[+foo-tokens9-+foo]\", \"lib/spack/spack/test/cmd/common/arguments.py::test_parse_spec_flags_with_spaces[specs1-cflags1-propagation1-negated_variants1]\", \"lib/spack/spack/test/spec_syntax.py::test_invalid_hash\", \"lib/spack/spack/test/spec_syntax.py::test_error_conditions[x ^y@1.2 debug=false ~debug-DuplicateVariantError]\", \"lib/spack/spack/test/spec_syntax.py::test_git_ref_spec_equivalences[develop-branch-version@git.0.2.15=develop-develop-branch-version@develop-expected3]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[@1.2:1.4 , 1.6 -tokens64-@1.2:1.4,1.6]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[%gcc@10.2.1:-tokens50-%gcc@10.2.1:]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[^[deptypes=link,build] zlib-tokens71-^[deptypes=build,link] zlib]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[%gcc@10.1.0,12.2.1:-tokens53-%gcc@10.1.0,12.2.1:]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[dev_path=/abspath/work-tokens58-dev_path=/abspath/work]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[dev_path=none-tokens56-dev_path=none]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[@2.7-tokens6-@2.7]\", \"lib/spack/spack/test/spec_syntax.py::test_platform_is_none_if_not_present[target=x86_64:]\", \"lib/spack/spack/test/spec_syntax.py::test_error_conditions[^[foo=bar] zlib-SpecParsingError]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[_openmpi +debug~qt_4-tokens47-_openmpi+debug~qt_4]\", \"lib/spack/spack/test/cmd/common/arguments.py::test_use_buildcache_type\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[develop-branch-version@git.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa=develop+var1+var2-tokens49-develop-branch-version@git.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa=develop+var1+var2]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[foo %bar@1.0 @2.0-tokens19-foo@2.0%bar@1.0]\", \"lib/spack/spack/test/spec_syntax.py::test_error_conditions[x@1.2@2.3:2.4-MultipleVersionError]\", \"lib/spack/spack/test/spec_syntax.py::test_specfile_parsing[/absolute/path/to/file.yaml-(?:\\\\\\\\.|\\\\\\\\/|[a-zA-Z0-9-_]*\\\\\\\\/)(?:[a-zA-Z0-9-_\\\\\\\\.\\\\\\\\/]*)(?:\\\\\\\\.json|\\\\\\\\.yaml)]\", \"lib/spack/spack/test/cmd/spec.py::test_spec_yaml\", \"lib/spack/spack/test/spec_syntax.py::test_error_conditions[^[@foo] zlib-SpecParsingError]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[@:2.7-tokens8-@:2.7]\", \"lib/spack/spack/test/spec_syntax.py::test_specfile_parsing[relative\\\\\\\\\\\\\\\\windows\\\\\\\\\\\\\\\\path.yaml-(?:\\\\\\\\.|[a-zA-Z0-9-_]*\\\\\\\\\\\\\\\\|[a-zA-Z]:\\\\\\\\\\\\\\\\)(?:[a-zA-Z0-9-_\\\\\\\\.\\\\\\\\\\\\\\\\]*)(?:\\\\\\\\.json|\\\\\\\\.yaml)]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[% intel @ 12.1:12.6 + debug-tokens66-%intel@12.1:12.6+debug]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[target=:broadwell,icelake-tokens48-arch=None-None-:broadwell,icelake]\", \"lib/spack/spack/test/spec_syntax.py::test_specfile_parsing[./dot/rel/to/file.yaml-(?:\\\\\\\\.|\\\\\\\\/|[a-zA-Z0-9-_]*\\\\\\\\/)(?:[a-zA-Z0-9-_\\\\\\\\.\\\\\\\\/]*)(?:\\\\\\\\.json|\\\\\\\\.yaml)]\", \"lib/spack/spack/test/cmd/spec.py::test_spec_version_assigned_git_ref_as_version[develop-branch-version-git.foo=0.2.15-None]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[mvapich_foo-tokens1-mvapich_foo]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_multiple_specs[mvapich cppflags=-O3 emacs-tokens2-expected_specs2]\", \"lib/spack/spack/test/spec_syntax.py::test_error_conditions[x ^y@1.2 debug=false debug=true-DuplicateVariantError]\", \"lib/spack/spack/test/spec_syntax.py::test_error_conditions[x arch=linux-rhel7-ppc64le arch=linux-rhel7-x86_64-DuplicateArchitectureError]\", \"lib/spack/spack/test/spec_syntax.py::test_disambiguate_hash_by_spec[zlib-hdf5-None]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[3dtk-tokens3-3dtk]\", \"lib/spack/spack/test/spec_syntax.py::test_error_conditions[x%intel%gcc-DuplicateCompilerSpecError]\", \"lib/spack/spack/test/cmd/common/arguments.py::test_multiple_env_match_raises_error\", \"lib/spack/spack/test/spec_syntax.py::test_error_conditions[x os=fe platform=test target=fe os=fe-DuplicateArchitectureError]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[target=default_target-tokens39-arch=test-None-core2]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[@:-tokens34-]\", \"lib/spack/spack/test/spec_syntax.py::test_specfile_error_conditions_windows[/bogus/path/libdwarf.yamlfoobar-NoSuchSpecFileError]\", \"lib/spack/spack/test/spec_syntax.py::test_error_conditions[x ^y@1 ^y@2-DuplicateDependencyError]\", \"lib/spack/spack/test/cmd/spec.py::test_spec_concretizer_args\", \"lib/spack/spack/test/spec_syntax.py::test_nonexistent_hash\", \"lib/spack/spack/test/spec_syntax.py::test_error_conditions[x%intel%intel-DuplicateCompilerSpecError]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[target=be-tokens38-arch=test-None-core2]\", \"lib/spack/spack/test/spec_syntax.py::test_error_conditions[x arch=linux-rhel7-x86_64 arch=linux-rhel7-x86_64-DuplicateArchitectureError]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[_openmpi +debug-qt_4-tokens45-_openmpi+debug-qt_4]\", \"lib/spack/spack/test/spec_syntax.py::test_error_reporting[y ^x@@1.2-y ^x@@1.2\\\\\\\\n ^]\", \"lib/spack/spack/test/cmd/common/arguments.py::test_concretizer_arguments[--fresh-False]\", \"lib/spack/spack/test/cmd/spec.py::test_spec_version_assigned_git_ref_as_version[develop-branch-version-f3c7206350ac8ee364af687deaae5c574dcfca2c=develop-None]\", \"lib/spack/spack/test/spec_syntax.py::test_cli_spec_roundtrip[args20-SpecTokenizationError]\", \"lib/spack/spack/test/spec_syntax.py::test_error_conditions[x@1.2 +foo~bar @2.3-MultipleVersionError]\", \"lib/spack/spack/test/spec_syntax.py::test_error_conditions[y ^x arch=linux-rhel7-x86_64 arch=linux-rhel7-ppc64le-DuplicateArchitectureError]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[mvapich ^stackwalker ^_openmpi-tokens32-mvapich ^_openmpi ^stackwalker]\", \"lib/spack/spack/test/cmd/spec.py::test_spec_version_assigned_git_ref_as_version[develop-branch-version-git.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa=develop-None]\", \"lib/spack/spack/test/spec_syntax.py::test_error_conditions[x ^y%intel%intel-DuplicateCompilerSpecError]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[a@1: b-tokens65-a@1:]\", \"lib/spack/spack/test/spec_syntax.py::test_dep_spec_by_hash\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[zlib ~~foo-tokens74-zlib~~foo]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[@1.6,1.2:1.4-tokens35-@1.2:1.4,1.6]\", \"lib/spack/spack/test/cmd/common/arguments.py::test_parse_spec_flags_with_spaces[specs0-cflags0-propagation0-negated_variants0]\", \"lib/spack/spack/test/spec_syntax.py::test_disambiguate_hash_by_spec[hdf5+mpi^zmpi-hdf5~mpi-^zmpi]\", \"lib/spack/spack/test/spec_syntax.py::test_error_conditions[x os=fe os=be-DuplicateArchitectureError]\", \"lib/spack/spack/test/cmd/common/arguments.py::test_omitted_job_flag\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[%gcc@10.2.1:12.1.0-tokens52-%gcc@10.2.1:12.1.0]\", \"lib/spack/spack/test/cmd/common/arguments.py::test_parse_spec_flags_with_spaces[specs4-cflags4-propagation4-negated_variants4]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[openmpi ^hwloc@1.2e6-tokens20-openmpi ^hwloc@1.2e6]\", \"lib/spack/spack/test/spec_syntax.py::test_multiple_specs_with_hash\", \"lib/spack/spack/test/spec_syntax.py::test_error_conditions[x%gcc%intel-DuplicateCompilerSpecError]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[ns-3-dev-tokens4-ns-3-dev]\", \"lib/spack/spack/test/spec_syntax.py::test_spec_by_hash_tokens[foo/abcde-tokens1]\", \"lib/spack/spack/test/spec_syntax.py::test_git_ref_spec_equivalences[develop-branch-version@git.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa=develop-develop-branch-version@develop-expected0]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[zlib ++foo-tokens73-zlib++foo]\", \"lib/spack/spack/test/spec_syntax.py::test_specfile_error_conditions_windows[/bogus/path/libdwarf.yaml-NoSuchSpecFileError]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[^zlib-tokens15-^zlib]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[-foo-tokens11-~foo]\", \"lib/spack/spack/test/spec_syntax.py::test_git_ref_spec_equivalences[develop-branch-version@git.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa=develop-develop-branch-version@git.bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb=develop-expected1]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[mvapich-tokens0-mvapich]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[@10.4.0:10,11.3.0:target=aarch64:-tokens68-@10.4.0:10,11.3.0: arch=None-None-aarch64:]\", \"lib/spack/spack/test/spec_syntax.py::test_disambiguate_hash_by_spec[hdf5+mpi^mpich+debug-hdf5+mpi^mpich~debug-^mpich+debug]\", \"lib/spack/spack/test/spec_syntax.py::test_error_conditions[x@1.2@2.3,2.4-MultipleVersionError]\", \"lib/spack/spack/test/spec_syntax.py::test_spec_by_hash_tokens[/abcde-tokens0]\", \"lib/spack/spack/test/cmd/common/arguments.py::test_negative_integers_not_allowed_for_parallel_jobs\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[openmpi ^hwloc-tokens16-openmpi ^hwloc]\", \"lib/spack/spack/test/spec_syntax.py::test_specfile_parsing[c:\\\\\\\\abs\\\\\\\\windows\\\\\\\\\\\\\\\\path.yaml-(?:\\\\\\\\.|[a-zA-Z0-9-_]*\\\\\\\\\\\\\\\\|[a-zA-Z]:\\\\\\\\\\\\\\\\)(?:[a-zA-Z0-9-_\\\\\\\\.\\\\\\\\\\\\\\\\]*)(?:\\\\\\\\.json|\\\\\\\\.yaml)]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[builtin.yaml-cpp%gcc-tokens28-yaml-cpp%gcc]\", \"lib/spack/spack/test/cmd/spec.py::test_spec_version_assigned_git_ref_as_version[callpath-f3c7206350ac8ee364af687deaae5c574dcfca2c=1.0-FetchError]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_multiple_specs[mvapich cflags=\\\"-O3 -fPIC\\\" emacs^ncurses%intel-tokens4-expected_specs4]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[testrepo.yaml-cpp%gcc-tokens29-yaml-cpp%gcc]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_specfile_dependency\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[yaml-cpp@0.1.8%intel@12.1 ^boost@3.1.4-tokens27-yaml-cpp@0.1.8%intel@12.1 ^boost@3.1.4]\", \"lib/spack/spack/test/spec_syntax.py::test_platform_is_none_if_not_present[target=x86_64]\"]"},"PASS_TO_FAIL":{"kind":"string","value":"[]"},"FAIL_TO_PASS":{"kind":"string","value":"[\"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[cflags=a=b=c-tokens59-cflags='a=b=c']\", \"lib/spack/spack/test/spec_syntax.py::test_cli_spec_roundtrip[args4-zlib cflags='-O3 -g +bar baz']\", \"lib/spack/spack/test/spec_syntax.py::test_cli_spec_roundtrip[args15-SpecTokenizationError]\", \"lib/spack/spack/test/spec_syntax.py::test_cli_spec_roundtrip[args13-foo=' +pic']\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[cflags=-Wl,a,b,c-tokens62-cflags=-Wl,a,b,c]\", \"lib/spack/spack/test/spec_syntax.py::test_error_reporting[@1.2: develop = foo-@1.2: develop = foo\\\\\\\\n ^^]\", \"lib/spack/spack/test/spec_syntax.py::test_cli_spec_roundtrip[args9-zlib+pic]\", \"lib/spack/spack/test/spec_syntax.py::test_cli_spec_roundtrip[args1-zlib cflags=='-O3 -g' +bar baz]\", \"lib/spack/spack/test/spec_syntax.py::test_cli_spec_roundtrip[args8-zlib cflags=\\\"'-O3 -g' \\\\\\\\\\\"+bar baz\\\\\\\\\\\"\\\"]\", \"lib/spack/spack/test/spec_syntax.py::test_cli_spec_roundtrip[args2-zlib cflags='-O3 -g' +bar baz]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[cflags==\\\"-O3 -g\\\"-tokens63-cflags=='-O3 -g']\", \"lib/spack/spack/test/spec_syntax.py::test_cli_spec_roundtrip[args5-zlib cflags=-O3 +bar~g baz]\", \"lib/spack/spack/test/spec_syntax.py::test_cli_spec_roundtrip[args17-+pic]\", \"lib/spack/spack/test/spec_syntax.py::test_cli_spec_roundtrip[args14-SpecTokenizationError]\", \"lib/spack/spack/test/spec_syntax.py::test_cli_spec_roundtrip[args0-zlib cflags='-O3 -g' +bar baz]\", \"lib/spack/spack/test/spec_syntax.py::test_error_reporting[@1.2:develop = foo-@1.2:develop = foo\\\\\\\\n ^^]\", \"lib/spack/spack/test/spec_syntax.py::test_cli_spec_roundtrip[args3-zlib cflags=-O3 +bar~g baz]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[mvapich_foo ^_openmpi@1.2:1.4,1.6%intel@12.1 cppflags=-O3 +debug~qt_4 ^stackwalker@8.1_1e-tokens26-mvapich_foo ^_openmpi@1.2:1.4,1.6%intel@12.1 cppflags=-O3 +debug~qt_4 ^stackwalker@8.1_1e]\", \"lib/spack/spack/test/spec_syntax.py::test_cli_spec_roundtrip[args6-zlib cflags='\\\"-O3 -g\\\" +bar baz']\", \"lib/spack/spack/test/spec_syntax.py::test_cli_spec_roundtrip[args11-ldflags='+pic']\", \"lib/spack/spack/test/cmd/common/arguments.py::test_parse_spec_flags_with_spaces[specs3-cflags3-propagation3-negated_variants3]\", \"lib/spack/spack/test/spec_syntax.py::test_error_reporting[cflags=''-Wl,a,b,c''-cflags=''-Wl,a,b,c''\\\\\\\\n ^ ^ ^ ^^]\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[cflags=a=b=c-tokens60-cflags='a=b=c']\", \"lib/spack/spack/test/spec_syntax.py::test_cli_spec_roundtrip[args18-zlib+pic]\", \"lib/spack/spack/test/cmd/common/arguments.py::test_parse_spec_flags_with_spaces[specs2-cflags2-propagation2-negated_variants2]\", \"lib/spack/spack/test/spec_syntax.py::test_cli_spec_roundtrip[args16-+pic]\", \"lib/spack/spack/test/spec_syntax.py::test_cli_spec_roundtrip[args7-zlib cflags=\\\"'-O3 -g' +bar baz\\\"]\", \"lib/spack/spack/test/spec_syntax.py::test_cli_spec_roundtrip[args19-zlib ldflags='-Wl,-rpath=$ORIGIN/_libs']\", \"lib/spack/spack/test/spec_syntax.py::test_cli_spec_roundtrip[args12-zlib foo=' +pic']\", \"lib/spack/spack/test/spec_syntax.py::test_cli_spec_roundtrip[args10-zlib ldflags='+pic']\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[dev_path=*-tokens55-dev_path='*']\", \"lib/spack/spack/test/spec_syntax.py::test_parse_single_spec[cflags=a=b=c+~-tokens61-cflags='a=b=c+~']\"]"},"FAIL_TO_FAIL":{"kind":"string","value":"[]"},"install":{"kind":"string","value":"{\"install\": [\"uv pip install -e .\", \"spack -d bootstrap now --dev\"], \"pre_install\": [\"tee pytest.ini < Error: literal specs have different requirements. clear cache before computing literals\r\n```\r\n\r\nThe trigger is, in general:\r\n- Have 2 or more user specs that map to the same concrete spec on a first concretization\r\n- Deconcretize something else, and try to reconcretize the environment\r\n\r\n### Information on your system\r\n\r\n* **Spack:** 0.22.0.dev0 (5299b84319d34072fae5be6abdf8e57f06be94e9)\r\n* **Python:** 3.11.5\r\n* **Platform:** linux-ubuntu20.04-icelake\r\n* **Concretizer:** clingo\r\n\r\n\r\n### General information\r\n\r\n- [X] I have run `spack debug report` and reported the version of Spack/Python/Platform\r\n- [X] I have searched the issues of this repo and believe this is not a duplicate\r\n- [X] I have run the failing commands in debug mode and reported the output\n"},"hints_text":{"kind":"string","value":"Looking at the code, the assertion seems unnecessary[^1] and a fix might just be:\r\n```diff\r\ndiff --git a/lib/spack/spack/solver/asp.py b/lib/spack/spack/solver/asp.py\r\nindex b41bcba228..4661d82e96 100644\r\n--- a/lib/spack/spack/solver/asp.py\r\n+++ b/lib/spack/spack/solver/asp.py\r\n@@ -2709,10 +2709,6 @@ def literal_specs(self, specs):\r\n # Effect imposes the spec\r\n imposed_spec_key = str(spec), None\r\n cache = self._effect_cache[spec.name]\r\n- msg = (\r\n- \"literal specs have different requirements. clear cache before computing literals\"\r\n- )\r\n- assert imposed_spec_key not in cache, msg\r\n effect_id = next(self._effect_id_counter)\r\n requirements = self.spec_clauses(spec)\r\n root_name = spec.name\r\n```\r\nAlso, the message is misleading, since:\r\n1. The error was stemming from a concrete spec, not from a literal spec\r\n2. Requirements are literally the same (we are enforcing the same concrete spec)\r\n\r\n[^1]: I'll double check this and eventually submit a PR with a regression test"},"created_at":{"kind":"string","value":"2023-11-28T13:42:34Z"},"merged_at":{"kind":"string","value":"2023-11-29T08:09:16Z"},"PASS_TO_PASS":{"kind":"string","value":"[\"lib/spack/spack/test/env.py::test_environment_concretizer_scheme_used[False-True]\", \"lib/spack/spack/test/env.py::test_update_default_complex_view[\\\\nspack:\\\\n specs:\\\\n - mpileaks\\\\n view:\\\\n default:\\\\n root: ./view-gcc\\\\n select: ['%gcc']\\\\n link_type: symlink\\\\n-True-expected_view1]\", \"lib/spack/spack/test/env.py::test_activate_should_require_an_env\", \"lib/spack/spack/test/env.py::test_roundtrip_spack_yaml_with_comments[spack:\\\\n specs:\\\\n - matrix:\\\\n # test\\\\n - - a\\\\n concretizer:\\\\n unify: false]\", \"lib/spack/spack/test/env.py::test_environment_config_scheme_used[True]\", \"lib/spack/spack/test/env.py::test_requires_on_virtual_and_potential_providers[mpich-False]\", \"lib/spack/spack/test/env.py::test_env_change_spec_in_matrix_raises_error\", \"lib/spack/spack/test/env.py::test_env_change_spec\", \"lib/spack/spack/test/env.py::test_update_default_view[True-True]\", \"lib/spack/spack/test/env.py::test_environment_concretizer_scheme_used[when_possible-True]\", \"lib/spack/spack/test/env.py::test_environment_config_scheme_used[False]\", \"lib/spack/spack/test/env.py::test_update_default_view[True-False]\", \"lib/spack/spack/test/env.py::test_cannot_initialize_in_dir_with_init_file[spack.yaml]\", \"lib/spack/spack/test/env.py::test_initialize_from_lockfile[as9582g54.lock]\", \"lib/spack/spack/test/env.py::test_error_on_nonempty_view_dir\", \"lib/spack/spack/test/env.py::test_update_default_view[True-./view]\", \"lib/spack/spack/test/env.py::test_initialize_from_random_file_as_manifest[random.yaml]\", \"lib/spack/spack/test/env.py::test_manifest_file_removal_works_if_spec_is_not_normalized[mpileaks ~shared +opt]\", \"lib/spack/spack/test/env.py::test_conflicts_with_packages_that_are_not_dependencies[vendorsb@=1.1-True-None]\", \"lib/spack/spack/test/env.py::test_can_add_specs_to_environment_without_specs_attribute\", \"lib/spack/spack/test/env.py::test_environment_concretizer_scheme_used[False-when_possible]\", \"lib/spack/spack/test/env.py::test_manifest_file_removal_works_if_spec_is_not_normalized[mpileaks +opt]\", \"lib/spack/spack/test/env.py::test_cannot_initialize_from_bad_lockfile\", \"lib/spack/spack/test/env.py::test_cannot_initialize_if_init_file_does_not_exist\", \"lib/spack/spack/test/env.py::test_initialize_from_random_file_as_manifest[spack.yaml]\", \"lib/spack/spack/test/env.py::test_environment_config_scheme_used[when_possible]\", \"lib/spack/spack/test/env.py::test_requires_on_virtual_and_potential_providers[zmpi-True]\", \"lib/spack/spack/test/env.py::test_initialize_from_lockfile[spack.lock]\", \"lib/spack/spack/test/env.py::test_update_default_view[False-True]\", \"lib/spack/spack/test/env.py::test_env_with_include_defs\", \"lib/spack/spack/test/env.py::test_requires_on_virtual_and_potential_providers[mpich-True]\", \"lib/spack/spack/test/env.py::test_preserving_comments_when_adding_specs[spack:\\\\n specs:\\\\n # baz\\\\n - zlib\\\\n-libpng-spack:\\\\n specs:\\\\n # baz\\\\n - zlib\\\\n - libpng\\\\n]\", \"lib/spack/spack/test/env.py::test_removing_from_non_existing_list_fails\", \"lib/spack/spack/test/env.py::test_hash_change_no_rehash_concrete\", \"lib/spack/spack/test/env.py::test_environment_concretizer_scheme_used[True-False]\", \"lib/spack/spack/test/env.py::test_environment_concretizer_scheme_used[when_possible-False]\", \"lib/spack/spack/test/env.py::test_environment_cant_modify_environments_root\", \"lib/spack/spack/test/env.py::test_initialize_from_random_file_as_manifest[random.txt]\", \"lib/spack/spack/test/env.py::test_removing_spec_from_manifest_with_exact_duplicates[duplicate_specs1-3]\", \"lib/spack/spack/test/env.py::test_requires_on_virtual_and_potential_providers[zmpi-False]\", \"lib/spack/spack/test/env.py::test_error_message_when_using_too_new_lockfile\", \"lib/spack/spack/test/env.py::test_removing_spec_from_manifest_with_exact_duplicates[duplicate_specs2-4]\", \"lib/spack/spack/test/env.py::test_variant_propagation_with_unify_false\", \"lib/spack/spack/test/env.py::test_environment_concretizer_scheme_used[True-when_possible]\", \"lib/spack/spack/test/env.py::test_initialize_from_lockfile[m3ia54s.json]\", \"lib/spack/spack/test/env.py::test_environment_pickle\", \"lib/spack/spack/test/env.py::test_user_view_path_is_not_canonicalized_in_yaml\", \"lib/spack/spack/test/env.py::test_env_change_spec_in_definition\", \"lib/spack/spack/test/env.py::test_conflicts_with_packages_that_are_not_dependencies[vendorsb-False-vendorsb@=1.0]\", \"lib/spack/spack/test/env.py::test_cannot_initialize_in_dir_with_init_file[spack.lock]\", \"lib/spack/spack/test/env.py::test_update_default_view[./view-False]\", \"lib/spack/spack/test/env.py::test_removing_spec_from_manifest_with_exact_duplicates[duplicate_specs0-3]\", \"lib/spack/spack/test/env.py::test_update_default_complex_view[\\\\nspack:\\\\n specs:\\\\n - mpileaks\\\\n view:\\\\n default:\\\\n root: ./view-gcc\\\\n select: ['%gcc']\\\\n link_type: symlink\\\\n-./another-view-expected_view0]\", \"lib/spack/spack/test/env.py::TestDirectoryInitialization::test_environment_dir_from_name\", \"lib/spack/spack/test/env.py::test_cannot_initiliaze_if_dirname_exists_as_a_file\", \"lib/spack/spack/test/env.py::test_manifest_file_removal_works_if_spec_is_not_normalized[mpileaks +opt ~shared]\", \"lib/spack/spack/test/env.py::test_update_default_view[./view-True]\", \"lib/spack/spack/test/env.py::test_adding_anonymous_specs_to_env_fails\", \"lib/spack/spack/test/env.py::test_update_default_view[False-False]\"]"},"PASS_TO_FAIL":{"kind":"string","value":"[]"},"FAIL_TO_PASS":{"kind":"string","value":"[\"lib/spack/spack/test/env.py::test_deconcretize_then_concretize_does_not_error\", \"lib/spack/spack/test/env.py::test_env_with_include_def_missing\"]"},"FAIL_TO_FAIL":{"kind":"string","value":"[]"},"install":{"kind":"string","value":"{\"install\": [\"uv pip install -e .\", \"spack -d bootstrap now --dev\"], \"pre_install\": [\"tee pytest.ini < Error: invalid values for variant \"openmp\" in package \"llvm\": ['True']\r\n```\r\nThis shouldn't happen when the variant is under the `all:` section.\n\n### Error message\n\n```console\r\n$ spack -d concretize -f\r\n==> [2023-11-17-14:13:54.062723] Reading config from file /home/culpo/PycharmProjects/spack/etc/spack/defaults/config.yaml\r\n==> [2023-11-17-14:13:54.080177] Reading config from file /home/culpo/.spack/config.yaml\r\n==> [2023-11-17-14:13:54.080805] Reading config from file /tmp/spack-3jx3axqz/spack.yaml\r\n==> [2023-11-17-14:13:54.084330] Reading config from file /home/culpo/PycharmProjects/spack/etc/spack/defaults/config.yaml\r\n==> [2023-11-17-14:13:54.101653] Reading config from file /home/culpo/.spack/config.yaml\r\n==> [2023-11-17-14:13:54.102171] Using environment '/tmp/spack-3jx3axqz'\r\n==> [2023-11-17-14:13:54.107170] Imported concretize from built-in commands\r\n==> [2023-11-17-14:13:54.107711] Imported concretize from built-in commands\r\n==> [2023-11-17-14:13:54.123985] Reading config from file /home/culpo/PycharmProjects/spack/etc/spack/defaults/concretizer.yaml\r\n==> [2023-11-17-14:13:54.133070] DATABASE LOCK TIMEOUT: 60s\r\n==> [2023-11-17-14:13:54.133142] PACKAGE LOCK TIMEOUT: No timeout\r\n==> [2023-11-17-14:13:54.133328] Reading config from file /home/culpo/PycharmProjects/spack/etc/spack/defaults/bootstrap.yaml\r\n==> [2023-11-17-14:13:54.139698] Reading config from file /tmp/spack-3jx3axqz/spack.yaml\r\n==> [2023-11-17-14:13:54.143285] Reading config from file /home/culpo/PycharmProjects/spack/etc/spack/defaults/config.yaml\r\n==> [2023-11-17-14:13:54.161208] Reading config from file /home/culpo/.spack/config.yaml\r\n==> [2023-11-17-14:13:54.161713] Deactivated environment '/tmp/spack-3jx3axqz'\r\n==> [2023-11-17-14:13:54.163441] Reading config from file /home/culpo/PycharmProjects/spack/etc/spack/defaults/repos.yaml\r\n==> [2023-11-17-14:13:54.166053] [BOOTSTRAP CONFIG SCOPE] name=_builtin\r\n==> [2023-11-17-14:13:54.166354] Reading config from file /home/culpo/PycharmProjects/spack/etc/spack/defaults/bootstrap.yaml\r\n==> [2023-11-17-14:13:54.172742] [BOOTSTRAP CONFIG SCOPE] name=defaults, path=/home/culpo/PycharmProjects/spack/etc/spack/defaults\r\n==> [2023-11-17-14:13:54.172869] [BOOTSTRAP CONFIG SCOPE] name=defaults/linux, path=/home/culpo/PycharmProjects/spack/etc/spack/defaults/linux\r\n==> [2023-11-17-14:13:54.172919] [BOOTSTRAP CONFIG SCOPE] name=bootstrap, path=/home/culpo/.spack/bootstrap/config\r\n==> [2023-11-17-14:13:54.172959] [BOOTSTRAP CONFIG SCOPE] name=bootstrap/linux, path=/home/culpo/.spack/bootstrap/config/linux\r\n==> [2023-11-17-14:13:54.174446] Reading config from file /home/culpo/PycharmProjects/spack/etc/spack/defaults/config.yaml\r\n==> [2023-11-17-14:13:54.193603] Reading config from file /home/culpo/.spack/bootstrap/config/linux/config.yaml\r\n==> [2023-11-17-14:13:54.203517] DATABASE LOCK TIMEOUT: 60s\r\n==> [2023-11-17-14:13:54.203578] PACKAGE LOCK TIMEOUT: No timeout\r\n==> [2023-11-17-14:13:54.203774] Reading config from file /home/culpo/.spack/bootstrap/config/linux/compilers.yaml\r\n==> [2023-11-17-14:13:54.227386] [BOOTSTRAP ROOT SPEC] patchelf@0.13.1: %gcc target=x86_64\r\n==> [2023-11-17-14:13:54.227738] Reading config from file /home/culpo/PycharmProjects/spack/etc/spack/defaults/bootstrap.yaml\r\n==> [2023-11-17-14:13:54.237674] [BOOTSTRAP EXECUTABLES patchelf] Try installed specs with query 'patchelf@0.13.1: %gcc target=x86_64'\r\n==> [2023-11-17-14:13:54.243963] Reading config from file /home/culpo/PycharmProjects/spack/etc/spack/defaults/modules.yaml\r\n==> [2023-11-17-14:13:54.254745] Reading config from file /home/culpo/PycharmProjects/spack/etc/spack/defaults/linux/modules.yaml\r\n==> [2023-11-17-14:13:54.280810] Adding env modifications for patchelf\r\n==> [2023-11-17-14:13:54.327654] Reading config from file /home/culpo/PycharmProjects/spack/etc/spack/defaults/packages.yaml\r\n==> [2023-11-17-14:13:54.356636] Reading config from file /home/culpo/.spack/bootstrap/config/packages.yaml\r\n==> [2023-11-17-14:13:54.365403] [BOOTSTRAP ROOT SPEC] gnupg@2.3: %gcc target=x86_64\r\n==> [2023-11-17-14:13:54.366719] [BOOTSTRAP ROOT SPEC] clingo-bootstrap@spack+python %gcc target=x86_64\r\n==> [2023-11-17-14:13:54.366759] [BOOTSTRAP MODULE clingo] Try importing from Python\r\n==> [2023-11-17-14:13:54.482067] [BOOTSTRAP MODULE clingo] The installed spec \"clingo-bootstrap@spack+python %gcc target=x86_64 ^python@3.11/55qeu52pkt5shpwd7ulugv7wzt5j7vqd\" provides the \"clingo\" Python module\r\n==> [2023-11-17-14:13:54.483052] Reading config from file /home/culpo/PycharmProjects/spack/etc/spack/defaults/config.yaml\r\n==> [2023-11-17-14:13:54.501627] Reading config from file /home/culpo/.spack/config.yaml\r\n==> [2023-11-17-14:13:54.503693] Reading config from file /tmp/spack-3jx3axqz/spack.yaml\r\n==> [2023-11-17-14:13:54.508724] Reading config from file /home/culpo/PycharmProjects/spack/etc/spack/defaults/config.yaml\r\n==> [2023-11-17-14:13:54.528214] Reading config from file /home/culpo/.spack/config.yaml\r\n==> [2023-11-17-14:13:54.528832] Using environment '/tmp/spack-3jx3axqz'\r\n==> [2023-11-17-14:13:54.528945] Reading config from file /home/culpo/PycharmProjects/spack/etc/spack/defaults/concretizer.yaml\r\n==> [2023-11-17-14:13:54.534984] Reading config from file /home/culpo/PycharmProjects/spack/etc/spack/defaults/repos.yaml\r\n==> [2023-11-17-14:13:54.601761] Reading config from file /home/culpo/PycharmProjects/spack/etc/spack/defaults/packages.yaml\r\n==> [2023-11-17-14:13:54.725592] Reading config from file /home/culpo/PycharmProjects/spack/etc/spack/defaults/mirrors.yaml\r\n==> [2023-11-17-14:13:54.727844] Reading config from file /home/culpo/.spack/mirrors.yaml\r\n==> [2023-11-17-14:13:54.729079] Checking existence of file:///mirror/build_cache/index.json\r\n==> [2023-11-17-14:13:54.743097] Failure reading URL: \r\n==> [2023-11-17-14:13:56.485923] Reading config from file /home/culpo/.spack/linux/compilers.yaml\r\n==> [2023-11-17-14:13:56.501007] [REUSE] Issues when trying to reuse libelf@0.8.13%gcc@10.2.1 build_system=generic arch=test-debian6-core2/i5m3nzm: Unknown namespace: builtin.mock\r\n==> [2023-11-17-14:13:59.722066] InvalidVariantValueError: invalid values for variant \"openmp\" in package \"llvm\": ['True']\r\n\r\n==> [2023-11-17-14:13:59.722274] Error: invalid values for variant \"openmp\" in package \"llvm\": ['True']\r\n\r\nTraceback (most recent call last):\r\n File \"/home/culpo/PycharmProjects/spack/lib/spack/spack/main.py\", line 1064, in main\r\n return _main(argv)\r\n ^^^^^^^^^^^\r\n File \"/home/culpo/PycharmProjects/spack/lib/spack/spack/main.py\", line 1019, in _main\r\n return finish_parse_and_run(parser, cmd_name, args.command, env_format_error)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/home/culpo/PycharmProjects/spack/lib/spack/spack/main.py\", line 1047, in finish_parse_and_run\r\n return _invoke_command(command, parser, args, unknown)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/home/culpo/PycharmProjects/spack/lib/spack/spack/main.py\", line 648, in _invoke_command\r\n return_val = command(parser, args)\r\n ^^^^^^^^^^^^^^^^^^^^^\r\n File \"/home/culpo/PycharmProjects/spack/lib/spack/spack/cmd/concretize.py\", line 44, in concretize\r\n concretized_specs = env.concretize(force=args.force, tests=tests)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/home/culpo/PycharmProjects/spack/lib/spack/spack/environment/environment.py\", line 1368, in concretize\r\n return self._concretize_together(tests=tests)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/home/culpo/PycharmProjects/spack/lib/spack/spack/environment/environment.py\", line 1487, in _concretize_together\r\n concrete_specs: List[spack.spec.Spec] = spack.concretize.concretize_specs_together(\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/home/culpo/PycharmProjects/spack/lib/spack/spack/concretize.py\", line 741, in concretize_specs_together\r\n return _concretize_specs_together_new(*abstract_specs, **kwargs)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/home/culpo/PycharmProjects/spack/lib/spack/spack/concretize.py\", line 749, in _concretize_specs_together_new\r\n result = solver.solve(\r\n ^^^^^^^^^^^^^\r\n File \"/home/culpo/PycharmProjects/spack/lib/spack/spack/solver/asp.py\", line 3219, in solve\r\n result, _, _ = self.driver.solve(\r\n ^^^^^^^^^^^^^^^^^^\r\n File \"/home/culpo/PycharmProjects/spack/lib/spack/spack/solver/asp.py\", line 920, in solve\r\n setup.setup(self, specs, reuse=reuse, allow_deprecated=allow_deprecated)\r\n File \"/home/culpo/PycharmProjects/spack/lib/spack/spack/solver/asp.py\", line 2657, in setup\r\n self.preferred_variants(pkg)\r\n File \"/home/culpo/PycharmProjects/spack/lib/spack/spack/solver/asp.py\", line 1842, in preferred_variants\r\n spec.update_variant_validate(variant_name, values)\r\n File \"/home/culpo/PycharmProjects/spack/lib/spack/spack/spec.py\", line 3519, in update_variant_validate\r\n pkg_variant.validate_or_raise(self.variants[variant_name], pkg_cls)\r\n File \"/home/culpo/PycharmProjects/spack/lib/spack/spack/variant.py\", line 126, in validate_or_raise\r\n raise InvalidVariantValueError(self, not_allowed_values, pkg_cls)\r\nspack.variant.InvalidVariantValueError: invalid values for variant \"openmp\" in package \"llvm\": ['True']\r\n```\n\n### Information on your system\n\n@finkandreas \r\n\r\n* **Spack:** 0.22.0.dev0 (54ab0872f24819c1c2f220f99a05990d02a5d8da)\r\n* **Python:** 3.11.5\r\n* **Platform:** linux-ubuntu20.04-icelake\r\n* **Concretizer:** clingo\r\n\n\n### General information\n\n- [X] I have run `spack debug report` and reported the version of Spack/Python/Platform\n- [X] I have searched the issues of this repo and believe this is not a duplicate\n- [X] I have run the failing commands in debug mode and reported the output\n"},"hints_text":{"kind":"string","value":""},"created_at":{"kind":"string","value":"2023-11-17T14:42:10Z"},"merged_at":{"kind":"string","value":"2023-11-23T10:30:40Z"},"PASS_TO_PASS":{"kind":"string","value":"[\"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_preferred_compilers[gcc@=4.5.0-openmpi]\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_buildable_false_all\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_preferred_variants[mpileaks-~debug~opt+shared+static-expected_results0]\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_buildable_false\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_buildable_false_virtual_true_pacakge\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_preferred_target\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_config_permissions_from_all\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_preferred_variants_from_wildcard\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_preferred_truncated\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_preferred\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_variant_not_flipped_to_pull_externals\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_buildable_false_virtual\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_preferred_variants[singlevalue-variant-variant_value4-expected_results4]\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_config_set_pkg_property_new\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_config_perms_fail_write_gt_read\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_preferred_undefined_raises\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_preferred_variants[mpileaks-variant_value2-expected_results2]\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_external_mpi\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_develop\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_external_module\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_preferred_versions_mixed_version_types\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_preferred_variants[multivalue-variant-variant_value3-expected_results3]\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_preferred_compilers[clang@=12.0.0-mpileaks]\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_config_permissions_from_package\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_preferred_compilers[gcc@=4.5.0-mpileaks]\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_config_set_pkg_property_url\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_buildable_false_all_true_package\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_preferred_providers\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_preferred_variants[mpileaks-variant_value1-expected_results1]\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_dependencies_cant_make_version_parent_score_better\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_config_permissions_differ_read_write\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_preferred_versions\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_multivalued_variants_are_lower_priority_than_providers\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_buildable_false_all_true_virtual\"]"},"PASS_TO_FAIL":{"kind":"string","value":"[]"},"FAIL_TO_PASS":{"kind":"string","value":"[\"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_sticky_variant_accounts_for_packages_yaml\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_default_preference_variant_different_type_does_not_error\"]"},"FAIL_TO_FAIL":{"kind":"string","value":"[]"},"install":{"kind":"string","value":"{\"install\": [\"uv pip install -e .\", \"spack -d bootstrap now --dev\"], \"pre_install\": [\"tee pytest.ini < 3.1)\n- \"items\": {\"anyOf\": [{\"type\": \"string\"}, {\"type\": \"number\"}]},\n- },\n+ \"require\": requirements,\n+ \"version\": {}, # Here only to warn users on ignored properties\n \"target\": {\n \"type\": \"array\",\n \"default\": [],\n@@ -78,22 +95,10 @@\n \"items\": {\"type\": \"string\"},\n }, # compiler specs\n \"buildable\": {\"type\": \"boolean\", \"default\": True},\n- \"permissions\": {\n- \"type\": \"object\",\n- \"additionalProperties\": False,\n- \"properties\": {\n- \"read\": {\"type\": \"string\", \"enum\": [\"user\", \"group\", \"world\"]},\n- \"write\": {\"type\": \"string\", \"enum\": [\"user\", \"group\", \"world\"]},\n- \"group\": {\"type\": \"string\"},\n- },\n- },\n+ \"permissions\": permissions,\n # If 'get_full_repo' is promoted to a Package-level\n # attribute, it could be useful to set it here\n- \"package_attributes\": {\n- \"type\": \"object\",\n- \"additionalProperties\": False,\n- \"patternProperties\": {r\"\\w+\": {}},\n- },\n+ \"package_attributes\": package_attributes,\n \"providers\": {\n \"type\": \"object\",\n \"default\": {},\n@@ -106,12 +111,40 @@\n }\n },\n },\n- \"variants\": {\n- \"oneOf\": [\n- {\"type\": \"string\"},\n- {\"type\": \"array\", \"items\": {\"type\": \"string\"}},\n- ]\n+ \"variants\": variants,\n+ },\n+ \"deprecatedProperties\": {\n+ \"properties\": [\"version\"],\n+ \"message\": \"setting version preferences in the 'all' section of packages.yaml \"\n+ \"is deprecated and will be removed in v0.22\\n\\n\\tThese preferences \"\n+ \"will be ignored by Spack. You can set them only in package specific sections \"\n+ \"of the same file.\\n\",\n+ \"error\": False,\n+ },\n+ }\n+ },\n+ \"patternProperties\": {\n+ r\"(?!^all$)(^\\w[\\w-]*)\": { # package name\n+ \"type\": \"object\",\n+ \"default\": {},\n+ \"additionalProperties\": False,\n+ \"properties\": {\n+ \"require\": requirements,\n+ \"version\": {\n+ \"type\": \"array\",\n+ \"default\": [],\n+ # version strings\n+ \"items\": {\"anyOf\": [{\"type\": \"string\"}, {\"type\": \"number\"}]},\n },\n+ \"target\": {}, # Here only to warn users on ignored properties\n+ \"compiler\": {}, # Here only to warn users on ignored properties\n+ \"buildable\": {\"type\": \"boolean\", \"default\": True},\n+ \"permissions\": permissions,\n+ # If 'get_full_repo' is promoted to a Package-level\n+ # attribute, it could be useful to set it here\n+ \"package_attributes\": package_attributes,\n+ \"providers\": {}, # Here only to warn users on ignored properties\n+ \"variants\": variants,\n \"externals\": {\n \"type\": \"array\",\n \"items\": {\n@@ -127,6 +160,14 @@\n },\n },\n },\n+ \"deprecatedProperties\": {\n+ \"properties\": [\"target\", \"compiler\", \"providers\"],\n+ \"message\": \"setting compiler, target or provider preferences in a package \"\n+ \"specific section of packages.yaml is deprecated, and will be removed in \"\n+ \"v0.22.\\n\\n\\tThese preferences will be ignored by Spack. You \"\n+ \"can set them only in the 'all' section of the same file.\\n\",\n+ \"error\": False,\n+ },\n }\n },\n }\ndiff --git a/lib/spack/spack/solver/asp.py b/lib/spack/spack/solver/asp.py\nindex 6df9a3583ee34..0cca7443595bd 100644\n--- a/lib/spack/spack/solver/asp.py\n+++ b/lib/spack/spack/solver/asp.py\n@@ -1258,32 +1258,9 @@ def compiler_facts(self):\n matches = sorted(indexed_possible_compilers, key=lambda x: ppk(x[1].spec))\n \n for weight, (compiler_id, cspec) in enumerate(matches):\n- f = fn.default_compiler_preference(compiler_id, weight)\n+ f = fn.compiler_weight(compiler_id, weight)\n self.gen.fact(f)\n \n- def package_compiler_defaults(self, pkg):\n- \"\"\"Facts about packages' compiler prefs.\"\"\"\n-\n- packages = spack.config.get(\"packages\")\n- pkg_prefs = packages.get(pkg.name)\n- if not pkg_prefs or \"compiler\" not in pkg_prefs:\n- return\n-\n- compiler_list = self.possible_compilers\n- compiler_list = sorted(compiler_list, key=lambda x: (x.name, x.version), reverse=True)\n- ppk = spack.package_prefs.PackagePrefs(pkg.name, \"compiler\", all=False)\n- matches = sorted(compiler_list, key=lambda x: ppk(x.spec))\n-\n- for i, compiler in enumerate(reversed(matches)):\n- self.gen.fact(\n- fn.pkg_fact(\n- pkg.name,\n- fn.node_compiler_preference(\n- compiler.spec.name, compiler.spec.version, -i * 100\n- ),\n- )\n- )\n-\n def package_requirement_rules(self, pkg):\n rules = self.requirement_rules_from_package_py(pkg)\n rules.extend(self.requirement_rules_from_packages_yaml(pkg))\n@@ -1375,9 +1352,6 @@ def pkg_rules(self, pkg, tests):\n # conflicts\n self.conflict_rules(pkg)\n \n- # default compilers for this package\n- self.package_compiler_defaults(pkg)\n-\n # virtuals\n self.package_provider_rules(pkg)\n \n@@ -1673,6 +1647,7 @@ def virtual_preferences(self, pkg_name, func):\n for i, provider in enumerate(providers):\n provider_name = spack.spec.Spec(provider).name\n func(vspec, provider_name, i)\n+ self.gen.newline()\n \n def provider_defaults(self):\n self.gen.h2(\"Default virtual providers\")\n@@ -1865,8 +1840,8 @@ def preferred_variants(self, pkg_name):\n fn.variant_default_value_from_packages_yaml(pkg_name, variant.name, value)\n )\n \n- def target_preferences(self, pkg_name):\n- key_fn = spack.package_prefs.PackagePrefs(pkg_name, \"target\")\n+ def target_preferences(self):\n+ key_fn = spack.package_prefs.PackagePrefs(\"all\", \"target\")\n \n if not self.target_specs_cache:\n self.target_specs_cache = [\n@@ -1876,17 +1851,25 @@ def target_preferences(self, pkg_name):\n \n package_targets = self.target_specs_cache[:]\n package_targets.sort(key=key_fn)\n-\n- offset = 0\n- best_default = self.default_targets[0][1]\n for i, preferred in enumerate(package_targets):\n- if str(preferred.architecture.target) == best_default and i != 0:\n- offset = 100\n- self.gen.fact(\n- fn.pkg_fact(\n- pkg_name, fn.target_weight(str(preferred.architecture.target), i + offset)\n- )\n- )\n+ self.gen.fact(fn.target_weight(str(preferred.architecture.target), i))\n+\n+ def flag_defaults(self):\n+ self.gen.h2(\"Compiler flag defaults\")\n+\n+ # types of flags that can be on specs\n+ for flag in spack.spec.FlagMap.valid_compiler_flags():\n+ self.gen.fact(fn.flag_type(flag))\n+ self.gen.newline()\n+\n+ # flags from compilers.yaml\n+ compilers = all_compilers_in_config()\n+ for compiler in compilers:\n+ for name, flags in compiler.flags.items():\n+ for flag in flags:\n+ self.gen.fact(\n+ fn.compiler_version_flag(compiler.name, compiler.version, name, flag)\n+ )\n \n def spec_clauses(self, *args, **kwargs):\n \"\"\"Wrap a call to `_spec_clauses()` into a try/except block that\n@@ -2340,6 +2323,8 @@ def target_defaults(self, specs):\n \n self.default_targets = list(sorted(set(self.default_targets)))\n \n+ self.target_preferences()\n+\n def virtual_providers(self):\n self.gen.h2(\"Virtual providers\")\n msg = (\n@@ -2661,7 +2646,6 @@ def setup(\n self.pkg_rules(pkg, tests=self.tests)\n self.gen.h2(\"Package preferences: %s\" % pkg)\n self.preferred_variants(pkg)\n- self.target_preferences(pkg)\n \n self.gen.h1(\"Develop specs\")\n # Inject dev_path from environment\ndiff --git a/lib/spack/spack/solver/concretize.lp b/lib/spack/spack/solver/concretize.lp\nindex 0b2b83dc20296..5e98e5cf11635 100644\n--- a/lib/spack/spack/solver/concretize.lp\n+++ b/lib/spack/spack/solver/concretize.lp\n@@ -589,21 +589,15 @@ possible_provider_weight(DependencyNode, VirtualNode, 0, \"external\")\n :- provider(DependencyNode, VirtualNode),\n external(DependencyNode).\n \n-% A provider mentioned in packages.yaml can use a weight\n-% according to its priority in the list of providers\n-possible_provider_weight(node(DependencyID, Dependency), node(VirtualID, Virtual), Weight, \"packages_yaml\")\n- :- provider(node(DependencyID, Dependency), node(VirtualID, Virtual)),\n- depends_on(node(ID, Package), node(DependencyID, Dependency)),\n- pkg_fact(Package, provider_preference(Virtual, Dependency, Weight)).\n-\n % A provider mentioned in the default configuration can use a weight\n % according to its priority in the list of providers\n-possible_provider_weight(node(DependencyID, Dependency), node(VirtualID, Virtual), Weight, \"default\")\n- :- provider(node(DependencyID, Dependency), node(VirtualID, Virtual)),\n- default_provider_preference(Virtual, Dependency, Weight).\n+possible_provider_weight(node(ProviderID, Provider), node(VirtualID, Virtual), Weight, \"default\")\n+ :- provider(node(ProviderID, Provider), node(VirtualID, Virtual)),\n+ default_provider_preference(Virtual, Provider, Weight).\n \n % Any provider can use 100 as a weight, which is very high and discourage its use\n-possible_provider_weight(node(DependencyID, Dependency), VirtualNode, 100, \"fallback\") :- provider(node(DependencyID, Dependency), VirtualNode).\n+possible_provider_weight(node(ProviderID, Provider), VirtualNode, 100, \"fallback\")\n+ :- provider(node(ProviderID, Provider), VirtualNode).\n \n % do not warn if generated program contains none of these.\n #defined virtual/1.\n@@ -1059,7 +1053,7 @@ attr(\"node_target\", PackageNode, Target)\n node_target_weight(node(ID, Package), Weight)\n :- attr(\"node\", node(ID, Package)),\n attr(\"node_target\", node(ID, Package), Target),\n- pkg_fact(Package, target_weight(Target, Weight)).\n+ target_weight(Target, Weight).\n \n % compatibility rules for targets among nodes\n node_target_match(ParentNode, DependencyNode)\n@@ -1181,23 +1175,17 @@ compiler_mismatch_required(PackageNode, DependencyNode)\n #defined allow_compiler/2.\n \n % compilers weighted by preference according to packages.yaml\n-compiler_weight(node(ID, Package), Weight)\n- :- node_compiler(node(ID, Package), CompilerID),\n- compiler_name(CompilerID, Compiler),\n- compiler_version(CompilerID, V),\n- pkg_fact(Package, node_compiler_preference(Compiler, V, Weight)).\n-compiler_weight(node(ID, Package), Weight)\n+node_compiler_weight(node(ID, Package), Weight)\n :- node_compiler(node(ID, Package), CompilerID),\n compiler_name(CompilerID, Compiler),\n compiler_version(CompilerID, V),\n- not pkg_fact(Package, node_compiler_preference(Compiler, V, _)),\n- default_compiler_preference(CompilerID, Weight).\n-compiler_weight(node(ID, Package), 100)\n+ compiler_weight(CompilerID, Weight).\n+\n+node_compiler_weight(node(ID, Package), 100)\n :- node_compiler(node(ID, Package), CompilerID),\n compiler_name(CompilerID, Compiler),\n compiler_version(CompilerID, V),\n- not pkg_fact(Package, node_compiler_preference(Compiler, V, _)),\n- not default_compiler_preference(CompilerID, _).\n+ not compiler_weight(CompilerID, _).\n \n % For the time being, be strict and reuse only if the compiler match one we have on the system\n error(100, \"Compiler {1}@{2} requested for {0} cannot be found. Set install_missing_compilers:true if intended.\", Package, Compiler, Version)\n@@ -1205,7 +1193,7 @@ error(100, \"Compiler {1}@{2} requested for {0} cannot be found. Set install_miss\n not node_compiler(node(ID, Package), _).\n \n #defined node_compiler_preference/4.\n-#defined default_compiler_preference/3.\n+#defined compiler_weight/3.\n \n %-----------------------------------------------------------------------------\n % Compiler flags\n@@ -1529,7 +1517,7 @@ opt_criterion(15, \"non-preferred compilers\").\n #minimize{ 0@15: #true }.\n #minimize{\n Weight@15+Priority,PackageNode\n- : compiler_weight(PackageNode, Weight),\n+ : node_compiler_weight(PackageNode, Weight),\n build_priority(PackageNode, Priority)\n }.\n \ndiff --git a/lib/spack/spack/solver/heuristic.lp b/lib/spack/spack/solver/heuristic.lp\nindex 745ea4f9625f1..cc87207047d43 100644\n--- a/lib/spack/spack/solver/heuristic.lp\n+++ b/lib/spack/spack/solver/heuristic.lp\n@@ -16,9 +16,9 @@\n #heuristic attr(\"version\", node(0, Package), Version) : pkg_fact(Package, version_declared(Version, 0)), attr(\"root\", node(0, Package)). [35, true]\n #heuristic version_weight(node(0, Package), 0) : pkg_fact(Package, version_declared(Version, 0)), attr(\"root\", node(0, Package)). [35, true]\n #heuristic attr(\"variant_value\", node(0, Package), Variant, Value) : variant_default_value(Package, Variant, Value), attr(\"root\", node(0, Package)). [35, true]\n-#heuristic attr(\"node_target\", node(0, Package), Target) : pkg_fact(Package, target_weight(Target, 0)), attr(\"root\", node(0, Package)). [35, true]\n+#heuristic attr(\"node_target\", node(0, Package), Target) : target_weight(Target, 0), attr(\"root\", node(0, Package)). [35, true]\n #heuristic node_target_weight(node(0, Package), 0) : attr(\"root\", node(0, Package)). [35, true]\n-#heuristic node_compiler(node(0, Package), CompilerID) : default_compiler_preference(ID, 0), compiler_id(ID), attr(\"root\", node(0, Package)). [35, true]\n+#heuristic node_compiler(node(0, Package), CompilerID) : compiler_weight(ID, 0), compiler_id(ID), attr(\"root\", node(0, Package)). [35, true]\n \n % Providers\n #heuristic attr(\"node\", node(0, Package)) : default_provider_preference(Virtual, Package, 0), possible_in_link_run(Package). [30, true]\ndiff --git a/lib/spack/spack/solver/heuristic_separate.lp b/lib/spack/spack/solver/heuristic_separate.lp\nindex cb4345f3be324..caa47aa09d84d 100644\n--- a/lib/spack/spack/solver/heuristic_separate.lp\n+++ b/lib/spack/spack/solver/heuristic_separate.lp\n@@ -13,7 +13,7 @@\n #heuristic attr(\"variant_value\", node(ID, Package), Variant, Value) : variant_default_value(Package, Variant, Value), attr(\"node\", node(ID, Package)), ID > 0. [25-5*ID, true]\n #heuristic attr(\"node_target\", node(ID, Package), Target) : pkg_fact(Package, target_weight(Target, 0)), attr(\"node\", node(ID, Package)), ID > 0. [25-5*ID, true]\n #heuristic node_target_weight(node(ID, Package), 0) : attr(\"node\", node(ID, Package)), ID > 0. [25-5*ID, true]\n-#heuristic node_compiler(node(ID, Package), CompilerID) : default_compiler_preference(CompilerID, 0), compiler_id(CompilerID), attr(\"node\", node(ID, Package)), ID > 0. [25-5*ID, true]\n+#heuristic node_compiler(node(ID, Package), CompilerID) : compiler_weight(CompilerID, 0), compiler_id(CompilerID), attr(\"node\", node(ID, Package)), ID > 0. [25-5*ID, true]\n \n % node(ID, _), split build dependencies\n #heuristic attr(\"version\", node(ID, Package), Version) : pkg_fact(Package, version_declared(Version, 0)), attr(\"node\", node(ID, Package)), multiple_unification_sets(Package), ID > 0. [25, true]\n@@ -21,4 +21,4 @@\n #heuristic attr(\"variant_value\", node(ID, Package), Variant, Value) : variant_default_value(Package, Variant, Value), attr(\"node\", node(ID, Package)), multiple_unification_sets(Package), ID > 0. [25, true]\n #heuristic attr(\"node_target\", node(ID, Package), Target) : pkg_fact(Package, target_weight(Target, 0)), attr(\"node\", node(ID, Package)), multiple_unification_sets(Package), ID > 0. [25, true]\n #heuristic node_target_weight(node(ID, Package), 0) : attr(\"node\", node(ID, Package)), multiple_unification_sets(Package), ID > 0. [25, true]\n-#heuristic node_compiler(node(ID, Package), CompilerID) : default_compiler_preference(CompilerID, 0), compiler_id(CompilerID), attr(\"node\", node(ID, Package)), multiple_unification_sets(Package), ID > 0. [25, true]\n+#heuristic node_compiler(node(ID, Package), CompilerID) : compiler_weight(CompilerID, 0), compiler_id(CompilerID), attr(\"node\", node(ID, Package)), multiple_unification_sets(Package), ID > 0. [25, true]\n"},"test_patch":{"kind":"string","value":"diff --git a/lib/spack/spack/test/cmd/config.py b/lib/spack/spack/test/cmd/config.py\nindex 4f3d5afe770e0..7247ce97531dc 100644\n--- a/lib/spack/spack/test/cmd/config.py\n+++ b/lib/spack/spack/test/cmd/config.py\n@@ -215,10 +215,10 @@ def test_config_add_override_leaf(mutable_empty_config):\n \n \n def test_config_add_update_dict(mutable_empty_config):\n- config(\"add\", \"packages:all:version:[1.0.0]\")\n+ config(\"add\", \"packages:hdf5:version:[1.0.0]\")\n output = config(\"get\", \"packages\")\n \n- expected = \"packages:\\n all:\\n version: [1.0.0]\\n\"\n+ expected = \"packages:\\n hdf5:\\n version: [1.0.0]\\n\"\n assert output == expected\n \n \n@@ -352,8 +352,7 @@ def test_config_add_update_dict_from_file(mutable_empty_config, tmpdir):\n contents = \"\"\"spack:\n packages:\n all:\n- version:\n- - 1.0.0\n+ target: [x86_64]\n \"\"\"\n \n # create temp file and add it to config\n@@ -368,8 +367,7 @@ def test_config_add_update_dict_from_file(mutable_empty_config, tmpdir):\n # added config comes before prior config\n expected = \"\"\"packages:\n all:\n- version:\n- - 1.0.0\n+ target: [x86_64]\n compiler: [gcc]\n \"\"\"\n \n@@ -381,7 +379,7 @@ def test_config_add_invalid_file_fails(tmpdir):\n # invalid because version requires a list\n contents = \"\"\"spack:\n packages:\n- all:\n+ hdf5:\n version: 1.0.0\n \"\"\"\n \n@@ -631,14 +629,11 @@ def test_config_prefer_upstream(\n packages = syaml.load(open(cfg_file))[\"packages\"]\n \n # Make sure only the non-default variants are set.\n- assert packages[\"boost\"] == {\n- \"compiler\": [\"gcc@=10.2.1\"],\n- \"variants\": \"+debug +graph\",\n- \"version\": [\"1.63.0\"],\n- }\n- assert packages[\"dependency-install\"] == {\"compiler\": [\"gcc@=10.2.1\"], \"version\": [\"2.0\"]}\n+ assert packages[\"all\"] == {\"compiler\": [\"gcc@=10.2.1\"]}\n+ assert packages[\"boost\"] == {\"variants\": \"+debug +graph\", \"version\": [\"1.63.0\"]}\n+ assert packages[\"dependency-install\"] == {\"version\": [\"2.0\"]}\n # Ensure that neither variant gets listed for hdf5, since they conflict\n- assert packages[\"hdf5\"] == {\"compiler\": [\"gcc@=10.2.1\"], \"version\": [\"2.3\"]}\n+ assert packages[\"hdf5\"] == {\"version\": [\"2.3\"]}\n \n # Make sure a message about the conflicting hdf5's was given.\n assert \"- hdf5\" in output\ndiff --git a/lib/spack/spack/test/cmd/env.py b/lib/spack/spack/test/cmd/env.py\nindex a06fdbd8cf8b2..983a778e969b1 100644\n--- a/lib/spack/spack/test/cmd/env.py\n+++ b/lib/spack/spack/test/cmd/env.py\n@@ -2621,7 +2621,7 @@ def test_env_write_only_non_default_nested(tmpdir):\n - matrix:\n - [mpileaks]\n packages:\n- mpileaks:\n+ all:\n compiler: [gcc]\n view: true\n \"\"\"\ndiff --git a/lib/spack/spack/test/concretize_preferences.py b/lib/spack/spack/test/concretize_preferences.py\nindex 20d0e1ae91ad8..d061f9a8f555c 100644\n--- a/lib/spack/spack/test/concretize_preferences.py\n+++ b/lib/spack/spack/test/concretize_preferences.py\n@@ -105,17 +105,13 @@ def test_preferred_variants_from_wildcard(self):\n \n @pytest.mark.parametrize(\n \"compiler_str,spec_str\",\n- [(\"gcc@4.5.0\", \"mpileaks\"), (\"clang@12.0.0\", \"mpileaks\"), (\"gcc@4.5.0\", \"openmpi\")],\n+ [(\"gcc@=4.5.0\", \"mpileaks\"), (\"clang@=12.0.0\", \"mpileaks\"), (\"gcc@=4.5.0\", \"openmpi\")],\n )\n def test_preferred_compilers(self, compiler_str, spec_str):\n \"\"\"Test preferred compilers are applied correctly\"\"\"\n- spec = Spec(spec_str)\n- update_packages(spec.name, \"compiler\", [compiler_str])\n- spec.concretize()\n- # note: lhs has concrete compiler version, rhs still abstract.\n- # Could be made more strict by checking for equality with `gcc@=4.5.0`\n- # etc.\n- assert spec.compiler.satisfies(CompilerSpec(compiler_str))\n+ update_packages(\"all\", \"compiler\", [compiler_str])\n+ spec = spack.spec.Spec(spec_str).concretized()\n+ assert spec.compiler == CompilerSpec(compiler_str)\n \n @pytest.mark.only_clingo(\"Use case not supported by the original concretizer\")\n def test_preferred_target(self, mutable_mock_repo):\n@@ -124,7 +120,7 @@ def test_preferred_target(self, mutable_mock_repo):\n default = str(spec.target)\n preferred = str(spec.target.family)\n \n- update_packages(\"mpich\", \"target\", [preferred])\n+ update_packages(\"all\", \"target\", [preferred])\n spec = concretize(\"mpich\")\n assert str(spec.target) == preferred\n \n@@ -132,7 +128,7 @@ def test_preferred_target(self, mutable_mock_repo):\n assert str(spec[\"mpileaks\"].target) == preferred\n assert str(spec[\"mpich\"].target) == preferred\n \n- update_packages(\"mpileaks\", \"target\", [default])\n+ update_packages(\"all\", \"target\", [default])\n spec = concretize(\"mpileaks\")\n assert str(spec[\"mpileaks\"].target) == default\n assert str(spec[\"mpich\"].target) == default\ndiff --git a/lib/spack/spack/test/config.py b/lib/spack/spack/test/config.py\nindex f7bf7d75698cd..5f544a31296a6 100644\n--- a/lib/spack/spack/test/config.py\n+++ b/lib/spack/spack/test/config.py\n@@ -78,7 +78,7 @@ def env_yaml(tmpdir):\n verify_ssl: False\n dirty: False\n packages:\n- libelf:\n+ all:\n compiler: [ 'gcc@4.5.3' ]\n repos:\n - /x/y/z\n@@ -942,7 +942,7 @@ def test_single_file_scope(config, env_yaml):\n # from the single-file config\n assert spack.config.get(\"config:verify_ssl\") is False\n assert spack.config.get(\"config:dirty\") is False\n- assert spack.config.get(\"packages:libelf:compiler\") == [\"gcc@4.5.3\"]\n+ assert spack.config.get(\"packages:all:compiler\") == [\"gcc@4.5.3\"]\n \n # from the lower config scopes\n assert spack.config.get(\"config:checksum\") is True\n@@ -965,7 +965,7 @@ def test_single_file_scope_section_override(tmpdir, config):\n config:\n verify_ssl: False\n packages::\n- libelf:\n+ all:\n compiler: [ 'gcc@4.5.3' ]\n repos:\n - /x/y/z\n@@ -977,7 +977,7 @@ def test_single_file_scope_section_override(tmpdir, config):\n with spack.config.override(scope):\n # from the single-file config\n assert spack.config.get(\"config:verify_ssl\") is False\n- assert spack.config.get(\"packages:libelf:compiler\") == [\"gcc@4.5.3\"]\n+ assert spack.config.get(\"packages:all:compiler\") == [\"gcc@4.5.3\"]\n \n # from the lower config scopes\n assert spack.config.get(\"config:checksum\") is True\n"},"problem_statement":{"kind":"string","value":"Unclear which provider will be used, when preferences are set in `packages.yaml` at the package level\n### Steps to reproduce\n\nI have found an issue with the concretizer not picking up the correct providers when described in `packages.yaml`. If providers are aded to the command line, e.g. `^intel-mpi ^intel-mkl`, all works as expected. Here is one example of intel-mpi not being picked up.\r\n\r\nTagging @tgamblin as discussed yesterday.\r\n\r\nThe default MPI provider after pulling the `develop` branch is Open MPI:\r\n```console\r\n[ec2-user@ip-172-31-1-92 spack]$ spack solve gromacs\r\n==> Best of 9 considered solutions.\r\n==> Optimization Criteria:\r\n Priority Criterion Value\r\n 1 deprecated versions used 0\r\n 2 version weight 0\r\n 3 number of non-default variants (roots) 0\r\n 4 preferred providers for roots 0\r\n 5 number of values in multi valued variants (root) 0\r\n 6 number of non-default variants (non-roots) 0\r\n 7 preferred providers (non-roots) 0\r\n 8 compiler mismatches 0\r\n 9 version badness 2\r\n 10 number of values in multi valued variants (non-root) -8\r\n 11 non-preferred compilers 0\r\n 12 target mismatches 0\r\n 13 non-preferred targets 0\r\n\r\ngromacs@2021.3%gcc@7.3.1~blas~cuda~cycle_subcounters~double+hwloc~ipo~lapack~mdrun_only+mpi~nosuffix~opencl+openmp~plumed~relaxed_double_precision+shared~sycl build_type=RelWithDebInfo arch=linux-amzn2-skylake_avx512\r\n ^cmake@3.21.4%gcc@7.3.1~doc+ncurses+openssl+ownlibs~qt build_type=Release arch=linux-amzn2-skylake_avx512\r\n ^ncurses@6.2%gcc@7.3.1~symlinks+termlib abi=none arch=linux-amzn2-skylake_avx512\r\n ^pkgconf@1.8.0%gcc@7.3.1 arch=linux-amzn2-skylake_avx512\r\n ^openssl@1.1.1l%gcc@7.3.1~docs certs=system arch=linux-amzn2-skylake_avx512\r\n ^perl@5.34.0%gcc@7.3.1+cpanm+shared+threads arch=linux-amzn2-skylake_avx512\r\n ^berkeley-db@18.1.40%gcc@7.3.1+cxx~docs+stl patches=b231fcc4d5cff05e5c3a4814f6a5af0e9a966428dc2176540d2c05aff41de522 arch=linux-amzn2-skylake_avx512\r\n ^bzip2@1.0.8%gcc@7.3.1~debug~pic+shared arch=linux-amzn2-skylake_avx512\r\n ^diffutils@3.8%gcc@7.3.1 arch=linux-amzn2-skylake_avx512\r\n ^libiconv@1.16%gcc@7.3.1 libs=shared,static arch=linux-amzn2-skylake_avx512\r\n ^gdbm@1.19%gcc@7.3.1 arch=linux-amzn2-skylake_avx512\r\n ^readline@8.1%gcc@7.3.1 arch=linux-amzn2-skylake_avx512\r\n ^zlib@1.2.11%gcc@7.3.1+optimize+pic+shared arch=linux-amzn2-skylake_avx512\r\n ^fftw@3.3.10%gcc@7.3.1+mpi~openmp~pfft_patches precision=double,float arch=linux-amzn2-skylake_avx512\r\n ^openmpi@4.1.1%gcc@7.3.1~atomics~cuda~cxx~cxx_exceptions+gpfs~internal-hwloc~java~legacylaunchers~lustre~memchecker~pmi~pmix~singularity~sqlite3+static~thread_multiple+vt+wrapper-rpath fabrics=none schedulers=none arch=linux-amzn2-skylake_avx512\r\n ^hwloc@2.5.0%gcc@7.3.1~cairo~cuda~gl~libudev+libxml2~netloc~nvml~opencl+pci~rocm+shared arch=linux-amzn2-skylake_avx512\r\n ^libpciaccess@0.16%gcc@7.3.1 arch=linux-amzn2-skylake_avx512\r\n ^libtool@2.4.6%gcc@7.3.1 arch=linux-amzn2-skylake_avx512\r\n ^m4@1.4.19%gcc@7.3.1+sigsegv patches=9dc5fbd0d5cb1037ab1e6d0ecc74a30df218d0a94bdd5a02759a97f62daca573,bfdffa7c2eb01021d5849b36972c069693654ad826c1a20b53534009a4ec7a89 arch=linux-amzn2-skylake_avx512\r\n ^libsigsegv@2.13%gcc@7.3.1 arch=linux-amzn2-skylake_avx512\r\n ^util-macros@1.19.3%gcc@7.3.1 arch=linux-amzn2-skylake_avx512\r\n ^libxml2@2.9.12%gcc@7.3.1~python arch=linux-amzn2-skylake_avx512\r\n ^xz@5.2.5%gcc@7.3.1~pic libs=shared,static arch=linux-amzn2-skylake_avx512\r\n ^libevent@2.1.12%gcc@7.3.1+openssl arch=linux-amzn2-skylake_avx512\r\n ^numactl@2.0.14%gcc@7.3.1 patches=4e1d78cbbb85de625bad28705e748856033eaafab92a66dffd383a3d7e00cc94,62fc8a8bf7665a60e8f4c93ebbd535647cebf74198f7afafec4c085a8825c006,ff37630df599cfabf0740518b91ec8daaf18e8f288b19adaae5364dc1f6b2296 arch=linux-amzn2-skylake_avx512\r\n ^autoconf@2.69%gcc@7.3.1 patches=35c449281546376449766f92d49fc121ca50e330e60fefcfc9be2af3253082c2,7793209b33013dc0f81208718c68440c5aae80e7a1c4b8d336e382525af791a7,a49dd5bac3b62daa0ff688ab4d508d71dbd2f4f8d7e2a02321926346161bf3ee arch=linux-amzn2-skylake_avx512\r\n ^automake@1.16.3%gcc@7.3.1 arch=linux-amzn2-skylake_avx512\r\n ^openssh@8.7p1%gcc@7.3.1 arch=linux-amzn2-skylake_avx512\r\n ^libedit@3.1-20210216%gcc@7.3.1 arch=linux-amzn2-skylake_avx512\r\n\r\n```\r\n\r\nThe default provider can be overwritten by adding a dependency to a different MPI on the command line:\r\n```console\r\n[ec2-user@ip-172-31-1-92 spack]$ spack solve gromacs ^intel-mpi\r\n==> Bootstrapping clingo from pre-built binaries\r\n==> Best of 9 considered solutions.\r\n==> Optimization Criteria:\r\n Priority Criterion Value\r\n 1 deprecated versions used 0\r\n 2 version weight 0\r\n 3 number of non-default variants (roots) 0\r\n 4 preferred providers for roots 0\r\n 5 number of values in multi valued variants (root) 0\r\n 6 number of non-default variants (non-roots) 0\r\n 7 preferred providers (non-roots) 100\r\n 8 compiler mismatches 0\r\n 9 version badness 2\r\n 10 number of values in multi valued variants (non-root) -6\r\n 11 non-preferred compilers 0\r\n 12 target mismatches 0\r\n 13 non-preferred targets 0\r\n\r\ngromacs@2021.3%gcc@7.3.1~blas~cuda~cycle_subcounters~double+hwloc~ipo~lapack~mdrun_only+mpi~nosuffix~opencl+openmp~plumed~relaxed_double_precision+shared~sycl build_type=RelWithDebInfo arch=linux-amzn2-skylake_avx512\r\n ^cmake@3.21.4%gcc@7.3.1~doc+ncurses+openssl+ownlibs~qt build_type=Release arch=linux-amzn2-skylake_avx512\r\n ^ncurses@6.2%gcc@7.3.1~symlinks+termlib abi=none arch=linux-amzn2-skylake_avx512\r\n ^pkgconf@1.8.0%gcc@7.3.1 arch=linux-amzn2-skylake_avx512\r\n ^openssl@1.1.1l%gcc@7.3.1~docs certs=system arch=linux-amzn2-skylake_avx512\r\n ^perl@5.34.0%gcc@7.3.1+cpanm+shared+threads arch=linux-amzn2-skylake_avx512\r\n ^berkeley-db@18.1.40%gcc@7.3.1+cxx~docs+stl patches=b231fcc4d5cff05e5c3a4814f6a5af0e9a966428dc2176540d2c05aff41de522 arch=linux-amzn2-skylake_avx512\r\n ^bzip2@1.0.8%gcc@7.3.1~debug~pic+shared arch=linux-amzn2-skylake_avx512\r\n ^diffutils@3.8%gcc@7.3.1 arch=linux-amzn2-skylake_avx512\r\n ^libiconv@1.16%gcc@7.3.1 libs=shared,static arch=linux-amzn2-skylake_avx512\r\n ^gdbm@1.19%gcc@7.3.1 arch=linux-amzn2-skylake_avx512\r\n ^readline@8.1%gcc@7.3.1 arch=linux-amzn2-skylake_avx512\r\n ^zlib@1.2.11%gcc@7.3.1+optimize+pic+shared arch=linux-amzn2-skylake_avx512\r\n ^fftw@3.3.10%gcc@7.3.1+mpi~openmp~pfft_patches precision=double,float arch=linux-amzn2-skylake_avx512\r\n ^intel-mpi@2019.10.317%gcc@7.3.1 arch=linux-amzn2-skylake_avx512\r\n ^hwloc@2.5.0%gcc@7.3.1~cairo~cuda~gl~libudev+libxml2~netloc~nvml~opencl+pci~rocm+shared arch=linux-amzn2-skylake_avx512\r\n ^libpciaccess@0.16%gcc@7.3.1 arch=linux-amzn2-skylake_avx512\r\n ^libtool@2.4.6%gcc@7.3.1 arch=linux-amzn2-skylake_avx512\r\n ^m4@1.4.19%gcc@7.3.1+sigsegv patches=9dc5fbd0d5cb1037ab1e6d0ecc74a30df218d0a94bdd5a02759a97f62daca573,bfdffa7c2eb01021d5849b36972c069693654ad826c1a20b53534009a4ec7a89 arch=linux-amzn2-skylake_avx512\r\n ^libsigsegv@2.13%gcc@7.3.1 arch=linux-amzn2-skylake_avx512\r\n ^util-macros@1.19.3%gcc@7.3.1 arch=linux-amzn2-skylake_avx512\r\n ^libxml2@2.9.12%gcc@7.3.1~python arch=linux-amzn2-skylake_avx512\r\n ^xz@5.2.5%gcc@7.3.1~pic libs=shared,static arch=linux-amzn2-skylake_avx512\r\n```\r\n\r\nHowever, if I try ot overwrite the provider in `packages.yaml` it is not picked up:\r\n```console\r\n[ec2-user@ip-172-31-1-92 spack]$ echo \"packages:\r\n> gromacs:\r\n> providers:\r\n> mpi: [intel-mpi]\r\n> fftw:\r\n> providers:\r\n> mpi: [intel-mpi]\r\n> \" > etc/spack/packages.yaml\r\n[ec2-user@ip-172-31-1-92 spack]$ spack solve gromacs\r\n==> Best of 9 considered solutions.\r\n==> Optimization Criteria:\r\n Priority Criterion Value\r\n 1 deprecated versions used 0\r\n 2 version weight 0\r\n 3 number of non-default variants (roots) 0\r\n 4 preferred providers for roots 0\r\n 5 number of values in multi valued variants (root) 0\r\n 6 number of non-default variants (non-roots) 0\r\n 7 preferred providers (non-roots) 0\r\n 8 compiler mismatches 0\r\n 9 version badness 2\r\n 10 number of values in multi valued variants (non-root) -8\r\n 11 non-preferred compilers 0\r\n 12 target mismatches 0\r\n 13 non-preferred targets 0\r\n\r\ngromacs@2021.3%gcc@7.3.1~blas~cuda~cycle_subcounters~double+hwloc~ipo~lapack~mdrun_only+mpi~nosuffix~opencl+openmp~plumed~relaxed_double_precision+shared~sycl build_type=RelWithDebInfo arch=linux-amzn2-skylake_avx512\r\n ^cmake@3.21.4%gcc@7.3.1~doc+ncurses+openssl+ownlibs~qt build_type=Release arch=linux-amzn2-skylake_avx512\r\n ^ncurses@6.2%gcc@7.3.1~symlinks+termlib abi=none arch=linux-amzn2-skylake_avx512\r\n ^pkgconf@1.8.0%gcc@7.3.1 arch=linux-amzn2-skylake_avx512\r\n ^openssl@1.1.1l%gcc@7.3.1~docs certs=system arch=linux-amzn2-skylake_avx512\r\n ^perl@5.34.0%gcc@7.3.1+cpanm+shared+threads arch=linux-amzn2-skylake_avx512\r\n ^berkeley-db@18.1.40%gcc@7.3.1+cxx~docs+stl patches=b231fcc4d5cff05e5c3a4814f6a5af0e9a966428dc2176540d2c05aff41de522 arch=linux-amzn2-skylake_avx512\r\n ^bzip2@1.0.8%gcc@7.3.1~debug~pic+shared arch=linux-amzn2-skylake_avx512\r\n ^diffutils@3.8%gcc@7.3.1 arch=linux-amzn2-skylake_avx512\r\n ^libiconv@1.16%gcc@7.3.1 libs=shared,static arch=linux-amzn2-skylake_avx512\r\n ^gdbm@1.19%gcc@7.3.1 arch=linux-amzn2-skylake_avx512\r\n ^readline@8.1%gcc@7.3.1 arch=linux-amzn2-skylake_avx512\r\n ^zlib@1.2.11%gcc@7.3.1+optimize+pic+shared arch=linux-amzn2-skylake_avx512\r\n ^fftw@3.3.10%gcc@7.3.1+mpi~openmp~pfft_patches precision=double,float arch=linux-amzn2-skylake_avx512\r\n ^openmpi@4.1.1%gcc@7.3.1~atomics~cuda~cxx~cxx_exceptions+gpfs~internal-hwloc~java~legacylaunchers~lustre~memchecker~pmi~pmix~singularity~sqlite3+static~thread_multiple+vt+wrapper-rpath fabrics=none schedulers=none arch=linux-amzn2-skylake_avx512\r\n ^hwloc@2.5.0%gcc@7.3.1~cairo~cuda~gl~libudev+libxml2~netloc~nvml~opencl+pci~rocm+shared arch=linux-amzn2-skylake_avx512\r\n ^libpciaccess@0.16%gcc@7.3.1 arch=linux-amzn2-skylake_avx512\r\n ^libtool@2.4.6%gcc@7.3.1 arch=linux-amzn2-skylake_avx512\r\n ^m4@1.4.19%gcc@7.3.1+sigsegv patches=9dc5fbd0d5cb1037ab1e6d0ecc74a30df218d0a94bdd5a02759a97f62daca573,bfdffa7c2eb01021d5849b36972c069693654ad826c1a20b53534009a4ec7a89 arch=linux-amzn2-skylake_avx512\r\n ^libsigsegv@2.13%gcc@7.3.1 arch=linux-amzn2-skylake_avx512\r\n ^util-macros@1.19.3%gcc@7.3.1 arch=linux-amzn2-skylake_avx512\r\n ^libxml2@2.9.12%gcc@7.3.1~python arch=linux-amzn2-skylake_avx512\r\n ^xz@5.2.5%gcc@7.3.1~pic libs=shared,static arch=linux-amzn2-skylake_avx512\r\n ^libevent@2.1.12%gcc@7.3.1+openssl arch=linux-amzn2-skylake_avx512\r\n ^numactl@2.0.14%gcc@7.3.1 patches=4e1d78cbbb85de625bad28705e748856033eaafab92a66dffd383a3d7e00cc94,62fc8a8bf7665a60e8f4c93ebbd535647cebf74198f7afafec4c085a8825c006,ff37630df599cfabf0740518b91ec8daaf18e8f288b19adaae5364dc1f6b2296 arch=linux-amzn2-skylake_avx512\r\n ^autoconf@2.69%gcc@7.3.1 patches=35c449281546376449766f92d49fc121ca50e330e60fefcfc9be2af3253082c2,7793209b33013dc0f81208718c68440c5aae80e7a1c4b8d336e382525af791a7,a49dd5bac3b62daa0ff688ab4d508d71dbd2f4f8d7e2a02321926346161bf3ee arch=linux-amzn2-skylake_avx512\r\n ^automake@1.16.3%gcc@7.3.1 arch=linux-amzn2-skylake_avx512\r\n ^openssh@8.7p1%gcc@7.3.1 arch=linux-amzn2-skylake_avx512\r\n ^libedit@3.1-20210216%gcc@7.3.1 arch=linux-amzn2-skylake_avx512\r\n```\r\n\r\nThe weird part is that for some packages it does pick up the correct MPI and I cannot find out when. One working example is fftw:\r\n```console\r\n[ec2-user@ip-172-31-1-92 spack]$ echo \"packages:\r\n gromacs:\r\n providers:\r\n mpi: [intel-mpi]\r\n fftw:\r\n providers:\r\n mpi: [intel-mpi]\r\n\" > etc/spack/packages.yaml\r\n[ec2-user@ip-172-31-1-92 spack]$ spack solve fftw\r\n==> Best of 8 considered solutions.\r\n==> Optimization Criteria:\r\n Priority Criterion Value\r\n 1 deprecated versions used 0\r\n 2 version weight 0\r\n 3 number of non-default variants (roots) 0\r\n 4 preferred providers for roots 0\r\n 5 number of values in multi valued variants (root) -2\r\n 6 number of non-default variants (non-roots) 0\r\n 7 preferred providers (non-roots) 0\r\n 8 compiler mismatches 0\r\n 9 version badness 0\r\n 10 number of values in multi valued variants (non-root) 0\r\n 11 non-preferred compilers 0\r\n 12 target mismatches 0\r\n 13 non-preferred targets 0\r\n\r\nfftw@3.3.10%gcc@7.3.1+mpi~openmp~pfft_patches precision=double,float arch=linux-amzn2-skylake_avx512\r\n ^intel-mpi@2019.10.317%gcc@7.3.1 arch=linux-amzn2-skylake_avx512\r\n[ec2-user@ip-172-31-1-92 spack]$ rm etc/spack/packages.yaml\r\n[ec2-user@ip-172-31-1-92 spack]$ spack solve fftw\r\n==> Best of 9 considered solutions.\r\n==> Optimization Criteria:\r\n Priority Criterion Value\r\n 1 deprecated versions used 0\r\n 2 version weight 0\r\n 3 number of non-default variants (roots) 0\r\n 4 preferred providers for roots 0\r\n 5 number of values in multi valued variants (root) -2\r\n 6 number of non-default variants (non-roots) 0\r\n 7 preferred providers (non-roots) 0\r\n 8 compiler mismatches 0\r\n 9 version badness 2\r\n 10 number of values in multi valued variants (non-root) -6\r\n 11 non-preferred compilers 0\r\n 12 target mismatches 0\r\n 13 non-preferred targets 0\r\n\r\nfftw@3.3.10%gcc@7.3.1+mpi~openmp~pfft_patches precision=double,float arch=linux-amzn2-skylake_avx512\r\n ^openmpi@4.1.1%gcc@7.3.1~atomics~cuda~cxx~cxx_exceptions+gpfs~internal-hwloc~java~legacylaunchers~lustre~memchecker~pmi~pmix~singularity~sqlite3+static~thread_multiple+vt+wrapper-rpath fabrics=none schedulers=none arch=linux-amzn2-skylake_avx512\r\n ^hwloc@2.5.0%gcc@7.3.1~cairo~cuda~gl~libudev+libxml2~netloc~nvml~opencl+pci~rocm+shared arch=linux-amzn2-skylake_avx512\r\n ^libpciaccess@0.16%gcc@7.3.1 arch=linux-amzn2-skylake_avx512\r\n ^libtool@2.4.6%gcc@7.3.1 arch=linux-amzn2-skylake_avx512\r\n ^m4@1.4.19%gcc@7.3.1+sigsegv patches=9dc5fbd0d5cb1037ab1e6d0ecc74a30df218d0a94bdd5a02759a97f62daca573,bfdffa7c2eb01021d5849b36972c069693654ad826c1a20b53534009a4ec7a89 arch=linux-amzn2-skylake_avx512\r\n ^libsigsegv@2.13%gcc@7.3.1 arch=linux-amzn2-skylake_avx512\r\n ^pkgconf@1.8.0%gcc@7.3.1 arch=linux-amzn2-skylake_avx512\r\n ^util-macros@1.19.3%gcc@7.3.1 arch=linux-amzn2-skylake_avx512\r\n ^libxml2@2.9.12%gcc@7.3.1~python arch=linux-amzn2-skylake_avx512\r\n ^libiconv@1.16%gcc@7.3.1 libs=shared,static arch=linux-amzn2-skylake_avx512\r\n ^xz@5.2.5%gcc@7.3.1~pic libs=shared,static arch=linux-amzn2-skylake_avx512\r\n ^zlib@1.2.11%gcc@7.3.1+optimize+pic+shared arch=linux-amzn2-skylake_avx512\r\n ^ncurses@6.2%gcc@7.3.1~symlinks+termlib abi=none arch=linux-amzn2-skylake_avx512\r\n ^libevent@2.1.12%gcc@7.3.1+openssl arch=linux-amzn2-skylake_avx512\r\n ^openssl@1.1.1l%gcc@7.3.1~docs certs=system arch=linux-amzn2-skylake_avx512\r\n ^perl@5.34.0%gcc@7.3.1+cpanm+shared+threads arch=linux-amzn2-skylake_avx512\r\n ^berkeley-db@18.1.40%gcc@7.3.1+cxx~docs+stl patches=b231fcc4d5cff05e5c3a4814f6a5af0e9a966428dc2176540d2c05aff41de522 arch=linux-amzn2-skylake_avx512\r\n ^bzip2@1.0.8%gcc@7.3.1~debug~pic+shared arch=linux-amzn2-skylake_avx512\r\n ^diffutils@3.8%gcc@7.3.1 arch=linux-amzn2-skylake_avx512\r\n ^gdbm@1.19%gcc@7.3.1 arch=linux-amzn2-skylake_avx512\r\n ^readline@8.1%gcc@7.3.1 arch=linux-amzn2-skylake_avx512\r\n ^numactl@2.0.14%gcc@7.3.1 patches=4e1d78cbbb85de625bad28705e748856033eaafab92a66dffd383a3d7e00cc94,62fc8a8bf7665a60e8f4c93ebbd535647cebf74198f7afafec4c085a8825c006,ff37630df599cfabf0740518b91ec8daaf18e8f288b19adaae5364dc1f6b2296 arch=linux-amzn2-skylake_avx512\r\n ^autoconf@2.69%gcc@7.3.1 patches=35c449281546376449766f92d49fc121ca50e330e60fefcfc9be2af3253082c2,7793209b33013dc0f81208718c68440c5aae80e7a1c4b8d336e382525af791a7,a49dd5bac3b62daa0ff688ab4d508d71dbd2f4f8d7e2a02321926346161bf3ee arch=linux-amzn2-skylake_avx512\r\n ^automake@1.16.3%gcc@7.3.1 arch=linux-amzn2-skylake_avx512\r\n ^openssh@8.7p1%gcc@7.3.1 arch=linux-amzn2-skylake_avx512\r\n ^libedit@3.1-20210216%gcc@7.3.1 arch=linux-amzn2-skylake_avx512\r\n\r\n```\n\n### Error message\n\n_No response_\n\n### Information on your system\n\n[ec2-user@ip-172-31-1-92 spack]$ spack debug report\r\n* **Spack:** 0.16.3\r\n* **Python:** 3.7.10\r\n* **Platform:** linux-amzn2-skylake_avx512\r\n* **Concretizer:** clingo\r\n\n\n### General information\n\n- [X] I have run `spack debug report` and reported the version of Spack/Python/Platform\n- [X] I have searched the issues of this repo and believe this is not a duplicate\n- [X] I have run the failing commands in debug mode and reported the output\n"},"hints_text":{"kind":"string","value":"Is this syntax supposed to work? \r\n\r\n```yaml\r\npackages:\r\n gromacs:\r\n providers:\r\n mpi: [...]\r\n```\r\n\r\nIt looks like an ill-defined minimization problem :thinking: if there are two packages depending on mpi, with different preferences, what determines optimality?\n> Is this syntax supposed to work?\r\n\r\nYes: for now the specifications in `packages.yaml` are not hard constraints, they are preferences that can be ignored. \r\n\r\nI think @tgamblin has suggested that these be treated the same as command-line constraints (e.g. `foo ^openmpi`). Even in that case, it could still make sense to allow different packages to specify different providers for a virtual (as long as they are not concretized together).\nThe main question for me is how to make the command-line constraints persistent. `spack solve gromacs ^intel-mpi` does exactly what I want it to do, so how can I add this to `packages.yaml` to make `spack solve gromacs` behave the same?\nNotice that `^intel-mpi` does not do exactly what you want to do. It means requiring a dependency on intel-mpi, which as a side-effect forces the provider for mpi to intel-mpi, because intel-mpi unconditionally provides mpi. There are packages that conditionally provide a virtual, in which case requiring that package as a dependency is not the same as forcing a provider (notably intel-mkl, which provides fftw-api only from a certain version -- clingo rather gives you an old intel-mkl so that it can give you your preferred fftw-api provider from say fftw).\r\n\r\nIsn't setting `packages:all:providers:mpi: [intel-mpi]` an option? Or if that's not an option in user config scope, how about creating an environment with a `packages` section?\r\n\r\n> I think @tgamblin has suggested that these be treated the same as command-line constraints\r\n\r\nI don't think it's necessary to resolve this issue, it looks more like a bug.\n> Notice that `^intel-mpi` does not do exactly what you want to do. It means requiring a dependency on intel-mpi, which as a side-effect forces the provider for mpi to intel-mpi, because intel-mpi unconditionally provides mpi. There are packages that conditionally provide a virtual, in which case requiring that package as a dependency is not the same as forcing a provider (notably intel-mkl, which provides fftw-api only from a certain version -- clingo rather gives you an old intel-mkl so that it can give you your preferred fftw-api provider from say fftw).\r\n\r\nYes, you are correct. I want to force a provider rather than add a dependency.\r\n\r\n> Isn't setting `packages:all:providers:mpi: [intel-mpi]` an option? Or if that's not an option in user config scope, how about creating an environment with a `packages` section?\r\n\r\nSetting providers for `all` is not an option as I want to include multiple packages with different providers per package. I have tried the environment route with adding `spack:packages:gromacs::providers:mpi:[intel-mpi]` via `spack config edit`, but no luck. Intel MPI was not pocked up by `spack solve`.\r\n\nThis will be solved, very likely, by a reworking of the rules for multi-valued variants in #25310 In the meanwhile you can set preferences as:\r\n```yaml\r\npackages:\r\n all:\r\n providers:\r\n mpi:: [intel-mpi]\r\n```\r\nto avoid `openmpi` having the same score as `intel-mpi` when used as an mpi provider. Note the double `:` which is key to discard Spack's default provider list.\nThis again only works if set for `all`. If I set it only for `gromacs`, then Open MPI is picked up.\r\n```console\r\n[ec2-user@ip-172-31-1-92 spack]$ echo \"\" > etc/spack/packages.yaml\r\n[ec2-user@ip-172-31-1-92 spack]$ spack solve gromacs | grep mpi@\r\n ^openmpi@4.1.1%gcc@7.3.1~atomics~cuda~cxx~cxx_exceptions+gpfs~internal-hwloc~java~legacylaunchers~lustre~memchecker~pmi~pmix~singularity~sqlite3+static~thread_multiple+vt+wrapper-rpath fabrics=none schedulers=none arch=linux-amzn2-skylake_avx512\r\n[ec2-user@ip-172-31-1-92 spack]$ echo \"packages:\r\n all:\r\n providers:\r\n mpi:: [intel-mpi]\r\n\" > etc/spack/packages.yaml\r\n[ec2-user@ip-172-31-1-92 spack]$ spack solve gromacs | grep mpi@\r\n ^intel-mpi@2019.10.317%gcc@7.3.1 arch=linux-amzn2-skylake_avx512\r\n[ec2-user@ip-172-31-1-92 spack]$ echo \"packages:\r\n gromacs:\r\n providers:\r\n mpi:: [intel-mpi]\r\n\" > etc/spack/packages.yaml\r\n[ec2-user@ip-172-31-1-92 spack]$ spack solve gromacs | grep mpi@\r\n ^openmpi@4.1.1%gcc@7.3.1~atomics~cuda~cxx~cxx_exceptions+gpfs~internal-hwloc~java~legacylaunchers~lustre~memchecker~pmi~pmix~singularity~sqlite3+static~thread_multiple+vt+wrapper-rpath fabrics=none schedulers=none arch=linux-amzn2-skylake_avx512\r\n```\r\n\r\nI guess for now the workaround is to use one environment per application and set providers of `all` inside each environment.\nseeing the same thing with `intel-parallel-studio` as mpi/fftw/blas/lapack provider, but in my case setting it for `all` did not help\nIs this still an issue after https://github.com/spack/spack/pull/25310?"},"created_at":{"kind":"string","value":"2022-06-23T08:44:25Z"},"merged_at":{"kind":"string","value":"2023-11-07T06:46:07Z"},"PASS_TO_PASS":{"kind":"string","value":"[\"lib/spack/spack/test/cmd/env.py::test_bad_env_yaml_create_fails[ConfigFormatError-'specks' was unexpected-spack:\\\\n specks:\\\\n - libdwarf\\\\n]\", \"lib/spack/spack/test/cmd/env.py::test_env_include_packages_url\", \"lib/spack/spack/test/config.py::test_config_collect_urls[https://gitlab.fake.io/user/repo/-/blob/config/defaults-False]\", \"lib/spack/spack/test/cmd/env.py::test_env_activate_csh_prints_shell_output[mock_archive0]\", \"lib/spack/spack/test/cmd/config.py::test_config_edit\", \"lib/spack/spack/test/config.py::test_bad_compilers_yaml\", \"lib/spack/spack/test/cmd/env.py::test_env_view_succeeds_symlinked_dir_file[mock_archive0]\", \"lib/spack/spack/test/config.py::test_read_config_merge_list\", \"lib/spack/spack/test/cmd/env.py::test_view_link_all[mock_archive0]\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_preferred_variants[mpileaks-variant_value2-expected_results2]\", \"lib/spack/spack/test/config.py::test_config_fetch_remote_configs[https://github.com/fake/fake/tree/develop-False-False]\", \"lib/spack/spack/test/cmd/env.py::test_multi_env_remove[-y]\", \"lib/spack/spack/test/config.py::test_internal_config_update\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_preferred_providers\", \"lib/spack/spack/test/cmd/env.py::test_stack_definition_conditional_with_variable\", \"lib/spack/spack/test/config.py::test_set_dict_override\", \"lib/spack/spack/test/cmd/env.py::test_custom_version_concretize_together\", \"lib/spack/spack/test/cmd/env.py::test_environment_depfile_makefile[depfile_flags1-expected_installs1]\", \"lib/spack/spack/test/cmd/env.py::test_stack_concretize_extraneous_variants\", \"lib/spack/spack/test/cmd/env.py::test_env_write_only_non_default_nested\", \"lib/spack/spack/test/config.py::test_user_cache_path_is_overridable\", \"lib/spack/spack/test/config.py::test_bad_mirrors_yaml\", \"lib/spack/spack/test/cmd/env.py::test_read_old_lock_and_write_new[v3]\", \"lib/spack/spack/test/config.py::test_immutable_scope\", \"lib/spack/spack/test/config.py::test_substitute_user_cache\", \"lib/spack/spack/test/cmd/env.py::test_stack_definition_extension\", \"lib/spack/spack/test/config.py::test_add_config_path_with_enumerated_type\", \"lib/spack/spack/test/cmd/config.py::test_config_remove_alias_rm\", \"lib/spack/spack/test/cmd/env.py::test_environment_query_spec_by_hash[mock_archive0]\", \"lib/spack/spack/test/cmd/config.py::test_config_remove_dict\", \"lib/spack/spack/test/cmd/config.py::test_config_update_works_for_empty_paths\", \"lib/spack/spack/test/config.py::test_bad_path_double_override\", \"lib/spack/spack/test/cmd/env.py::test_stack_view_activate_from_default[mock_archive0]\", \"lib/spack/spack/test/cmd/config.py::test_get_config_scope\", \"lib/spack/spack/test/cmd/env.py::test_env_status_broken_view[mock_archive0]\", \"lib/spack/spack/test/config.py::test_config_file_read_invalid_yaml\", \"lib/spack/spack/test/config.py::test_substitute_tempdir\", \"lib/spack/spack/test/cmd/env.py::test_uninstall_keeps_in_env[mock_archive0]\", \"lib/spack/spack/test/cmd/config.py::test_config_update_can_handle_comments\", \"lib/spack/spack/test/cmd/config.py::test_config_add_from_file\", \"lib/spack/spack/test/config.py::test_parse_install_tree_padded[config_settings6-expected6]\", \"lib/spack/spack/test/cmd/env.py::test_stack_view_select_and_exclude[mock_archive0]\", \"lib/spack/spack/test/config.py::test_bad_config_section\", \"lib/spack/spack/test/cmd/env.py::test_env_with_included_config_precedence\", \"lib/spack/spack/test/config.py::test_mark_internal\", \"lib/spack/spack/test/config.py::test_internal_config_list_override\", \"lib/spack/spack/test/cmd/env.py::test_indirect_build_dep\", \"lib/spack/spack/test/cmd/env.py::test_view_link_type[mock_archive0-symlink]\", \"lib/spack/spack/test/cmd/env.py::test_read_v1_lock_creates_backup\", \"lib/spack/spack/test/config.py::test_user_config_path_is_default_when_env_var_is_empty\", \"lib/spack/spack/test/cmd/env.py::test_remove_command\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_buildable_false_all_true_package\", \"lib/spack/spack/test/cmd/env.py::test_read_old_lock_and_write_new[v2]\", \"lib/spack/spack/test/cmd/config.py::test_config_with_c_argument\", \"lib/spack/spack/test/config.py::test_internal_config_scope_cache_clearing\", \"lib/spack/spack/test/cmd/env.py::test_rewrite_rel_dev_path_new_dir\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_multivalued_variants_are_lower_priority_than_providers\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_sticky_variant_accounts_for_packages_yaml\", \"lib/spack/spack/test/cmd/env.py::test_environment_depfile_makefile[depfile_flags0-expected_installs0]\", \"lib/spack/spack/test/cmd/config.py::test_config_add_to_env_preserve_comments\", \"lib/spack/spack/test/cmd/env.py::test_virtual_spec_concretize_together\", \"lib/spack/spack/test/cmd/env.py::test_env_activate_sh_prints_shell_output[mock_archive0]\", \"lib/spack/spack/test/cmd/env.py::test_depfile_empty_does_not_error\", \"lib/spack/spack/test/cmd/config.py::test_config_update_config\", \"lib/spack/spack/test/cmd/config.py::test_get_config_scope_merged\", \"lib/spack/spack/test/cmd/env.py::test_env_blocks_uninstall[mock_archive0]\", \"lib/spack/spack/test/cmd/env.py::test_environment_created_from_lockfile_has_view\", \"lib/spack/spack/test/config.py::test_parse_install_tree_padded[config_settings0-expected0]\", \"lib/spack/spack/test/cmd/env.py::test_stack_yaml_add_to_list\", \"lib/spack/spack/test/cmd/env.py::test_env_with_include_config_files_same_basename\", \"lib/spack/spack/test/cmd/env.py::test_newline_in_commented_sequence_is_not_an_issue\", \"lib/spack/spack/test/cmd/env.py::test_env_roots_marked_explicit[mock_archive0]\", \"lib/spack/spack/test/config.py::test_parse_install_tree[config_settings4-expected4]\", \"lib/spack/spack/test/config.py::test_list_merge_order\", \"lib/spack/spack/test/cmd/env.py::test_depfile_works_with_gitversions\", \"lib/spack/spack/test/cmd/config.py::test_config_add_update_dict\", \"lib/spack/spack/test/cmd/env.py::test_stack_yaml_remove_from_list_force\", \"lib/spack/spack/test/cmd/env.py::test_stage[mock_archive0]\", \"lib/spack/spack/test/config.py::test_parse_install_tree[config_settings3-expected3]\", \"lib/spack/spack/test/cmd/env.py::test_concretize_user_specs_together\", \"lib/spack/spack/test/cmd/env.py::test_env_updates_view_install[mock_archive0]\", \"lib/spack/spack/test/cmd/env.py::test_custom_store_in_environment\", \"lib/spack/spack/test/cmd/env.py::test_depfile_safe_format\", \"lib/spack/spack/test/cmd/env.py::test_env_remove\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_preferred_compilers[gcc@=4.5.0-openmpi]\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_buildable_false\", \"lib/spack/spack/test/config.py::test_bad_repos_yaml\", \"lib/spack/spack/test/cmd/env.py::test_env_list\", \"lib/spack/spack/test/cmd/env.py::test_stack_definition_conditional_with_satisfaction\", \"lib/spack/spack/test/cmd/config.py::test_config_add_list\", \"lib/spack/spack/test/cmd/env.py::test_activation_and_deactiviation_ambiguities[b-False-None-env_activate]\", \"lib/spack/spack/test/cmd/env.py::test_change_match_spec\", \"lib/spack/spack/test/cmd/env.py::test_env_with_included_config_file\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_external_mpi\", \"lib/spack/spack/test/config.py::test_config_collect_urls[https://github.com/fake/fake/blob/develop/etc/fake/defaults/packages.yaml-True]\", \"lib/spack/spack/test/config.py::test_write_empty_single_file_scope\", \"lib/spack/spack/test/config.py::test_config_collect_urls[https://github.com/fake/fake/blob/develop/README.md-True]\", \"lib/spack/spack/test/cmd/env.py::test_env_view_fail_if_symlink_points_elsewhere[mock_archive0]\", \"lib/spack/spack/test/cmd/env.py::test_env_modifications_error_on_activate[mock_archive0]\", \"lib/spack/spack/test/cmd/env.py::test_env_write_only_non_default\", \"lib/spack/spack/test/cmd/env.py::test_activation_and_deactiviation_ambiguities[None-True-None-env_activate]\", \"lib/spack/spack/test/cmd/env.py::test_rewrite_rel_dev_path_named_env\", \"lib/spack/spack/test/cmd/env.py::test_bad_env_yaml_create_fails[SpackEnvironmentConfigError-duplicate key-spack:\\\\n packages:\\\\n all:\\\\n providers:\\\\n mpi: [mvapich2]\\\\n mpi: [mpich]\\\\n]\", \"lib/spack/spack/test/cmd/env.py::test_init_from_lockfile\", \"lib/spack/spack/test/config.py::test_merge_with_defaults\", \"lib/spack/spack/test/cmd/env.py::test_modules_relative_to_views[mock_archive0]\", \"lib/spack/spack/test/cmd/env.py::test_concretize\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_variant_not_flipped_to_pull_externals\", \"lib/spack/spack/test/cmd/env.py::test_env_with_included_config_file_url\", \"lib/spack/spack/test/cmd/env.py::test_stack_concretize_extraneous_deps\", \"lib/spack/spack/test/cmd/env.py::test_lockfile_not_deleted_on_write_error\", \"lib/spack/spack/test/cmd/env.py::test_activation_and_deactiviation_ambiguities[None-False-path/-env_deactivate]\", \"lib/spack/spack/test/cmd/env.py::test_environment_status\", \"lib/spack/spack/test/cmd/env.py::test_depfile_phony_convenience_targets[dttop-expected_installs0]\", \"lib/spack/spack/test/config.py::test_set_section_override\", \"lib/spack/spack/test/config.py::test_ordereddict_merge_order\", \"lib/spack/spack/test/cmd/env.py::test_remove_after_concretize\", \"lib/spack/spack/test/cmd/env.py::test_env_loads[mock_archive0]\", \"lib/spack/spack/test/cmd/env.py::test_env_add_nonexistant_fails\", \"lib/spack/spack/test/cmd/env.py::test_stack_view_multiple_views[mock_archive0]\", \"lib/spack/spack/test/cmd/env.py::test_env_install_two_specs_same_dep[mock_archive0]\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_buildable_false_all_true_virtual\", \"lib/spack/spack/test/config.py::test_bad_config_yaml\", \"lib/spack/spack/test/cmd/env.py::test_duplicate_packages_raise_when_concretizing_together\", \"lib/spack/spack/test/cmd/config.py::test_config_add_update_dict_from_file\", \"lib/spack/spack/test/cmd/env.py::test_stack_yaml_remove_from_matrix_no_effect\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_buildable_false_all\", \"lib/spack/spack/test/cmd/env.py::test_read_legacy_lockfile_and_reconcretize[mock_archive0-v1]\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_preferred_variants_from_wildcard\", \"lib/spack/spack/test/cmd/env.py::test_read_old_lock_and_write_new[v1]\", \"lib/spack/spack/test/cmd/env.py::test_roots_display_with_variants\", \"lib/spack/spack/test/cmd/config.py::test_remove_list\", \"lib/spack/spack/test/config.py::test_add_config_path\", \"lib/spack/spack/test/config.py::test_single_file_scope_cache_clearing\", \"lib/spack/spack/test/config.py::test_add_command_line_scopes\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_develop\", \"lib/spack/spack/test/cmd/env.py::test_stack_definition_conditional_add_write\", \"lib/spack/spack/test/cmd/config.py::test_config_list\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_preferred_versions\", \"lib/spack/spack/test/cmd/env.py::test_change_multiple_matches\", \"lib/spack/spack/test/cmd/env.py::test_env_activate_broken_view[mock_archive0]\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_preferred_truncated\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_preferred\", \"lib/spack/spack/test/config.py::test_substitute_user\", \"lib/spack/spack/test/cmd/env.py::test_multi_env_remove[]\", \"lib/spack/spack/test/config.py::test_user_cache_path_is_default_when_env_var_is_empty\", \"lib/spack/spack/test/cmd/env.py::test_stack_concretize_extraneous_variants_with_dash\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_preferred_variants[multivalue-variant-variant_value3-expected_results3]\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_preferred_compilers[clang@=12.0.0-mpileaks]\", \"lib/spack/spack/test/cmd/config.py::test_config_get_gets_spack_yaml\", \"lib/spack/spack/test/config.py::test_default_install_tree\", \"lib/spack/spack/test/config.py::test_internal_config_from_data\", \"lib/spack/spack/test/cmd/env.py::test_view_link_roots[mock_archive0]\", \"lib/spack/spack/test/cmd/config.py::test_config_add_ordered_dict\", \"lib/spack/spack/test/config.py::test_write_key_in_memory\", \"lib/spack/spack/test/cmd/env.py::test_stack_view_no_activate_without_default[mock_archive0]\", \"lib/spack/spack/test/cmd/env.py::test_remove_before_concretize\", \"lib/spack/spack/test/cmd/env.py::test_env_view_external_prefix\", \"lib/spack/spack/test/cmd/config.py::test_config_add\", \"lib/spack/spack/test/cmd/config.py::test_config_edit_edits_spack_yaml\", \"lib/spack/spack/test/config.py::test_user_config_path_is_overridable\", \"lib/spack/spack/test/cmd/env.py::test_env_activate_default_view_root_unconditional\", \"lib/spack/spack/test/cmd/config.py::test_config_remove_from_env\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_config_perms_fail_write_gt_read\", \"lib/spack/spack/test/config.py::test_config_parse_dict_in_list\", \"lib/spack/spack/test/cmd/config.py::test_config_update_not_needed\", \"lib/spack/spack/test/cmd/env.py::test_env_with_included_config_missing_file\", \"lib/spack/spack/test/cmd/env.py::test_activate_adds_transitive_run_deps_to_path[mock_archive0]\", \"lib/spack/spack/test/config.py::test_add_config_filename\", \"lib/spack/spack/test/config.py::test_nested_override\", \"lib/spack/spack/test/cmd/env.py::test_stack_view_exclude[mock_archive0]\", \"lib/spack/spack/test/config.py::test_parse_install_tree_padded[config_settings1-expected1]\", \"lib/spack/spack/test/cmd/env.py::test_env_definition_symlink[mock_archive0]\", \"lib/spack/spack/test/cmd/env.py::test_env_updates_view_uninstall[mock_archive0]\", \"lib/spack/spack/test/cmd/env.py::test_env_updates_view_install_package[mock_archive0]\", \"lib/spack/spack/test/config.py::test_config_parse_list_in_dict\", \"lib/spack/spack/test/cmd/env.py::test_depfile_phony_convenience_targets[dtrun1-expected_installs1]\", \"lib/spack/spack/test/cmd/env.py::test_can_update_attributes_with_override\", \"lib/spack/spack/test/cmd/config.py::test_config_remove_value\", \"lib/spack/spack/test/config.py::test_good_env_yaml\", \"lib/spack/spack/test/config.py::test_bad_env_yaml\", \"lib/spack/spack/test/config.py::test_read_config\", \"lib/spack/spack/test/config.py::test_internal_config_dict_override\", \"lib/spack/spack/test/cmd/env.py::test_env_install_all[mock_archive0]\", \"lib/spack/spack/test/cmd/env.py::test_env_without_view_install[mock_archive0]\", \"lib/spack/spack/test/cmd/env.py::test_env_with_included_config_scope\", \"lib/spack/spack/test/cmd/env.py::test_activate_default\", \"lib/spack/spack/test/config.py::test_alternate_override\", \"lib/spack/spack/test/cmd/env.py::test_read_legacy_lockfile_and_reconcretize[mock_archive0-v3]\", \"lib/spack/spack/test/config.py::test_config_fetch_remote_configs[https://github.com/fake/fake/blob/develop/README.md-True-True]\", \"lib/spack/spack/test/config.py::test_read_config_override_key\", \"lib/spack/spack/test/config.py::test_config_fetch_remote_configs_skip[https://gitlab.fake.io/user/repo/-/blob/config/defaults/compilers.yaml-True]\", \"lib/spack/spack/test/config.py::test_write_to_same_priority_file\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_external_module\", \"lib/spack/spack/test/config.py::test_system_config_path_is_default_when_env_var_is_empty\", \"lib/spack/spack/test/config.py::test_system_config_path_is_overridable\", \"lib/spack/spack/test/config.py::test_internal_config_section_override\", \"lib/spack/spack/test/config.py::test_write_key_to_disk\", \"lib/spack/spack/test/cmd/env.py::test_view_link_type[mock_archive0-hardlink]\", \"lib/spack/spack/test/cmd/env.py::test_env_updates_view_uninstall_referenced_elsewhere[mock_archive0]\", \"lib/spack/spack/test/cmd/env.py::test_activation_and_deactiviation_ambiguities[b-False-None-env_deactivate]\", \"lib/spack/spack/test/cmd/config.py::test_config_add_invalid_file_fails\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_preferred_variants[mpileaks-variant_value1-expected_results1]\", \"lib/spack/spack/test/cmd/env.py::test_environment_depfile_makefile[depfile_flags2-expected_installs2]\", \"lib/spack/spack/test/cmd/env.py::test_env_config_view_default[mock_archive0]\", \"lib/spack/spack/test/cmd/env.py::test_user_removed_spec\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_buildable_false_virtual_true_pacakge\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_config_permissions_from_all\", \"lib/spack/spack/test/cmd/env.py::test_spack_package_ids_variable\", \"lib/spack/spack/test/config.py::test_parse_install_tree[config_settings0-expected0]\", \"lib/spack/spack/test/cmd/env.py::test_stack_yaml_definitions_as_constraints\", \"lib/spack/spack/test/cmd/env.py::test_unify_when_possible_works_around_conflicts\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_buildable_false_virtual\", \"lib/spack/spack/test/cmd/env.py::test_init_with_file_and_remove\", \"lib/spack/spack/test/cmd/env.py::test_env_updates_view_remove_concretize[mock_archive0]\", \"lib/spack/spack/test/cmd/config.py::test_environment_config_update\", \"lib/spack/spack/test/cmd/env.py::test_stack_yaml_remove_from_list\", \"lib/spack/spack/test/cmd/env.py::test_env_view_fails_dir_file[mock_archive0]\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_preferred_versions_mixed_version_types\", \"lib/spack/spack/test/cmd/env.py::test_env_activate_custom_view\", \"lib/spack/spack/test/cmd/env.py::test_uninstall_removes_from_env[mock_archive0]\", \"lib/spack/spack/test/cmd/env.py::test_stack_view_select[mock_archive0]\", \"lib/spack/spack/test/cmd/env.py::test_multiple_modules_post_env_hook[mock_archive0]\", \"lib/spack/spack/test/config.py::test_single_file_scope_section_override\", \"lib/spack/spack/test/cmd/env.py::test_to_lockfile_dict\", \"lib/spack/spack/test/cmd/env.py::test_stack_yaml_definitions_as_constraints_on_matrix\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_preferred_variants[mpileaks-~debug~opt+shared+static-expected_results0]\", \"lib/spack/spack/test/config.py::test_config_fetch_remote_configs[None-False-True]\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_preferred_target\", \"lib/spack/spack/test/config.py::test_parse_install_tree_padded[config_settings4-expected4]\", \"lib/spack/spack/test/cmd/env.py::test_activation_and_deactiviation_ambiguities[None-True-None-env_deactivate]\", \"lib/spack/spack/test/cmd/config.py::test_config_add_to_env\", \"lib/spack/spack/test/cmd/env.py::test_add\", \"lib/spack/spack/test/cmd/env.py::test_env_repo\", \"lib/spack/spack/test/cmd/env.py::test_stack_yaml_definitions\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_preferred_undefined_raises\", \"lib/spack/spack/test/cmd/env.py::test_init_from_yaml\", \"lib/spack/spack/test/config.py::test_write_list_in_memory\", \"lib/spack/spack/test/cmd/config.py::test_remove_from_list\", \"lib/spack/spack/test/config.py::test_config_fetch_remote_configs[https://gitlab.fake.io/user/repo/-/blob/config/defaults-False-False]\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_preferred_compilers[gcc@=4.5.0-mpileaks]\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_config_set_pkg_property_url\", \"lib/spack/spack/test/cmd/config.py::test_config_add_override\", \"lib/spack/spack/test/cmd/env.py::test_bad_env_yaml_create_fails[ConfigFormatError-not of type-spack:\\\\n specs: mpi@2.0\\\\n]\", \"lib/spack/spack/test/config.py::test_config_collect_urls[https://github.com/fake/fake/tree/develop-False]\", \"lib/spack/spack/test/config.py::test_local_config_can_be_disabled\", \"lib/spack/spack/test/config.py::test_config_fetch_remote_configs[https://gitlab.fake.io/user/repo/-/blob/config/defaults/compilers.yaml-True-False]\", \"lib/spack/spack/test/config.py::test_parse_install_tree_padded[config_settings3-expected3]\", \"lib/spack/spack/test/config.py::test_set_bad_path\", \"lib/spack/spack/test/cmd/config.py::test_config_add_from_file_multiple\", \"lib/spack/spack/test/cmd/env.py::test_read_legacy_lockfile_and_reconcretize[mock_archive0-v2]\", \"lib/spack/spack/test/cmd/env.py::test_env_with_included_configs_precedence\", \"lib/spack/spack/test/cmd/env.py::test_env_view_fails[mock_archive0]\", \"lib/spack/spack/test/cmd/env.py::test_store_different_build_deps\", \"lib/spack/spack/test/cmd/env.py::test_stack_yaml_definitions_write_reference\", \"lib/spack/spack/test/cmd/env.py::test_failed_view_cleanup[mock_archive0]\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_config_set_pkg_property_new\", \"lib/spack/spack/test/config.py::test_config_format_error\", \"lib/spack/spack/test/cmd/env.py::test_env_specs_partition[mock_archive0]\", \"lib/spack/spack/test/config.py::test_set_list_override\", \"lib/spack/spack/test/config.py::test_parse_install_tree_padded[config_settings2-expected2]\", \"lib/spack/spack/test/cmd/config.py::test_config_add_override_leaf_from_file\", \"lib/spack/spack/test/cmd/env.py::test_env_updates_view_add_concretize[mock_archive0]\", \"lib/spack/spack/test/cmd/env.py::test_does_not_rewrite_rel_dev_path_when_keep_relative_is_set\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_config_permissions_differ_read_write\", \"lib/spack/spack/test/cmd/env.py::test_stack_combinatorial_view[mock_archive0]\", \"lib/spack/spack/test/cmd/env.py::test_env_activate_view_fails[mock_archive0]\", \"lib/spack/spack/test/cmd/env.py::test_env_install_same_spec_twice[mock_archive0]\", \"lib/spack/spack/test/cmd/env.py::test_env_updates_view_force_remove[mock_archive0]\", \"lib/spack/spack/test/cmd/env.py::test_stack_yaml_force_remove_from_matrix\", \"lib/spack/spack/test/config.py::test_internal_config_filename\", \"lib/spack/spack/test/cmd/env.py::test_activation_and_deactiviation_ambiguities[None-False-path/-env_activate]\", \"lib/spack/spack/test/cmd/config.py::test_config_add_interpret_oneof\", \"lib/spack/spack/test/cmd/env.py::test_relative_view_path_on_command_line_is_made_absolute\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_preferred_variants[singlevalue-variant-variant_value4-expected_results4]\", \"lib/spack/spack/test/cmd/env.py::test_with_config_bad_include\", \"lib/spack/spack/test/config.py::test_parse_install_tree_padded[config_settings5-expected5]\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_config_permissions_from_package\", \"lib/spack/spack/test/cmd/env.py::test_env_with_config\", \"lib/spack/spack/test/config.py::test_substitute_date\", \"lib/spack/spack/test/config.py::test_substitute_config_variables\", \"lib/spack/spack/test/cmd/env.py::test_env_install_single_spec[mock_archive0]\", \"lib/spack/spack/test/concretize_preferences.py::TestConcretizePreferences::test_dependencies_cant_make_version_parent_score_better\", \"lib/spack/spack/test/config.py::test_config_fetch_remote_configs_skip[https://github.com/fake/fake/tree/develop-True]\", \"lib/spack/spack/test/config.py::test_parse_install_tree[config_settings2-expected2]\", \"lib/spack/spack/test/cmd/config.py::test_config_add_override_leaf\", \"lib/spack/spack/test/cmd/env.py::test_env_commands_die_with_no_env_arg\", \"lib/spack/spack/test/cmd/config.py::test_config_add_invalid_fails\", \"lib/spack/spack/test/cmd/env.py::test_view_link_run[mock_archive0]\", \"lib/spack/spack/test/cmd/env.py::test_stack_definition_conditional_true\", \"lib/spack/spack/test/cmd/env.py::test_stack_definition_complex_conditional\", \"lib/spack/spack/test/cmd/config.py::test_config_add_override_from_file\", \"lib/spack/spack/test/config.py::test_read_config_override_list\", \"lib/spack/spack/test/cmd/env.py::test_env_with_included_config_var_path\", \"lib/spack/spack/test/config.py::test_single_file_scope\", \"lib/spack/spack/test/config.py::test_config_file_dir_failure\", \"lib/spack/spack/test/cmd/env.py::test_env_add_virtual\", \"lib/spack/spack/test/config.py::test_config_parse_str_not_bool\", \"lib/spack/spack/test/cmd/env.py::test_bad_env_yaml_format_remove\", \"lib/spack/spack/test/cmd/env.py::test_environment_view_target_already_exists[mock_archive0]\", \"lib/spack/spack/test/config.py::test_read_config_override_all\", \"lib/spack/spack/test/cmd/env.py::test_activate_temp\", \"lib/spack/spack/test/config.py::test_keys_are_ordered\", \"lib/spack/spack/test/cmd/env.py::test_query_develop_specs\", \"lib/spack/spack/test/config.py::test_config_collect_urls[None-False]\", \"lib/spack/spack/test/config.py::test_parse_install_tree[config_settings1-expected1]\", \"lib/spack/spack/test/cmd/env.py::test_environment_created_in_users_location\", \"lib/spack/spack/test/cmd/env.py::test_environment_depfile_makefile[depfile_flags3-expected_installs3]\", \"lib/spack/spack/test/cmd/config.py::test_config_update_shared_linking\", \"lib/spack/spack/test/cmd/env.py::test_stack_definition_conditional_false\", \"lib/spack/spack/test/cmd/config.py::test_config_edit_fails_correctly_with_no_env\", \"lib/spack/spack/test/cmd/config.py::test_config_get_fails_correctly_with_no_env\", \"lib/spack/spack/test/cmd/env.py::test_stack_definition_conditional_invalid_variable\", \"lib/spack/spack/test/config.py::test_license_dir_config\", \"lib/spack/spack/test/cmd/env.py::test_environment_depfile_out\", \"lib/spack/spack/test/cmd/env.py::test_cant_install_single_spec_when_concretizing_together\", \"lib/spack/spack/test/cmd/config.py::test_config_add_with_scope_adds_to_scope\"]"},"PASS_TO_FAIL":{"kind":"string","value":"[]"},"FAIL_TO_PASS":{"kind":"string","value":"[\"lib/spack/spack/test/cmd/config.py::test_config_prefer_upstream[mock_archive0]\"]"},"FAIL_TO_FAIL":{"kind":"string","value":"[\"lib/spack/spack/test/config.py::test_config_file_read_perms_failure - ...\", \"lib/spack/spack/test/cmd/env.py::test_view_link_type[mock_archive0-copy]\"]"},"install":{"kind":"string","value":"{\"install\": [\"uv pip install -e .\", \"spack -d bootstrap now --dev\"], \"pre_install\": [\"tee pytest.ini <\r\nTraceback (most recent call last):\r\n File \"/home/afaul/Downloads/dvc-test/repoB/env/lib/python3.12/site-packages/dvc/commands/data_sync.py\", line 35, in run\r\n stats = self.repo.pull(\r\n ^^^^^^^^^^^^^^^\r\n File \"/home/afaul/Downloads/dvc-test/repoB/env/lib/python3.12/site-packages/dvc/repo/__init__.py\", line 58, in wrapper\r\n return f(repo, *args, **kwargs)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/home/afaul/Downloads/dvc-test/repoB/env/lib/python3.12/site-packages/dvc/repo/pull.py\", line 42, in pull\r\n stats = self.checkout(\r\n ^^^^^^^^^^^^^^\r\n File \"/home/afaul/Downloads/dvc-test/repoB/env/lib/python3.12/site-packages/dvc/repo/__init__.py\", line 58, in wrapper\r\n return f(repo, *args, **kwargs)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/home/afaul/Downloads/dvc-test/repoB/env/lib/python3.12/site-packages/dvc/repo/checkout.py\", line 184, in checkout\r\n raise CheckoutError([relpath(out_path) for out_path in failed], stats)\r\ndvc.exceptions.CheckoutError: Checkout failed for following targets:\r\ndata/nlp\r\nIs your cache up to date?\r\n\r\n\r\n2024-05-13 19:55:37,011 DEBUG: Analytics is enabled.\r\n2024-05-13 19:55:37,073 DEBUG: Trying to spawn ['daemon', 'analytics', '/tmp/tmpmpwaa9dc', '-v']\r\n2024-05-13 19:55:37,083 DEBUG: Spawned ['daemon', 'analytics', '/tmp/tmpmpwaa9dc', '-v'] with pid 3404\r\n2024-05-13 19:55:37,085 DEBUG: Removing '/tmp/tmpr14fojvgdvc-clone'\r\n2024-05-13 19:55:37,089 DEBUG: Removing '/tmp/tmpt_4flv1tdvc-cache'\r\n```\n"},"hints_text":{"kind":"string","value":"The difference is that the dependency path is saved as `tutorials/nlp/` instead of `tutorials/nlp`. We should either be stripping the final `/` there or treating these as equivalent in the dvc-data index and everywhere else.\r\n"},"created_at":{"kind":"string","value":"2024-05-31T00:14:54Z"},"merged_at":{"kind":"string","value":"2024-06-03T10:58:43Z"},"PASS_TO_PASS":{"kind":"string","value":"[\"tests/func/test_import.py::test_granular_import_from_subrepos\", \"tests/func/test_import.py::test_import_to_dir[dir]\", \"tests/func/test_import.py::test_import_complete_repo\", \"tests/func/test_import.py::test_import_configs[options4-def_repo4]\", \"tests/func/test_import.py::test_import_git_dir[False]\", \"tests/func/test_import.py::test_pull_imported_stage_from_subrepos[files1-False]\", \"tests/func/test_import.py::test_pull_wildcard_imported_directory_stage\", \"tests/func/test_import.py::test_import_subrepos[files1-True]\", \"tests/func/test_import.py::test_import_mixed_dir\", \"tests/func/test_import.py::test_import_non_existing\", \"tests/func/test_import.py::test_import_git_dir[True]\", \"tests/func/test_import.py::test_pull_imported_directory_stage[dir]\", \"tests/func/test_import.py::test_import_git_file[False]\", \"tests/func/test_import.py::test_import_file_from_dir_to_dir\", \"tests/func/test_import.py::test_import_subrepos[files1-False]\", \"tests/func/test_import.py::test_parameterized_repo[paths0]\", \"tests/func/test_import.py::test_pull_non_workspace\", \"tests/func/test_import.py::test_cache_type_is_properly_overridden\", \"tests/func/test_import.py::test_pull_imported_stage_from_subrepos[files0-False]\", \"tests/func/test_import.py::test_import\", \"tests/func/test_import.py::test_import_to_dir[.]\", \"tests/func/test_import.py::test_import_dir\", \"tests/func/test_import.py::test_pull_no_rev_lock\", \"tests/func/test_import.py::test_import_with_jobs\", \"tests/func/test_import.py::test_import_broken_dir\", \"tests/func/test_import.py::test_import_subrepos[files0-False]\", \"tests/func/test_import.py::test_import_rev\", \"tests/func/test_import.py::test_import_configs[options2-def_repo2]\", \"tests/func/test_import.py::test_pull_import_no_download_rev_lock\", \"tests/func/test_import.py::test_import_no_download\", \"tests/func/test_import.py::test_import_to_dir[dir/subdir]\", \"tests/func/test_import.py::test_import_subrepos[files0-True]\", \"tests/func/test_import.py::test_import_file_from_dir\", \"tests/func/test_import.py::test_import_configs[options0-def_repo0]\", \"tests/func/test_import.py::test_parameterized_repo[paths1]\", \"tests/func/test_import.py::test_import_configs[options3-def_repo3]\", \"tests/func/test_import.py::test_pull_imported_stage_from_subrepos[files1-True]\", \"tests/func/test_import.py::test_local_import\", \"tests/func/test_import.py::test_chained_import\", \"tests/func/test_import.py::test_import_configs[options1-def_repo1]\", \"tests/func/test_import.py::test_import_non_cached\", \"tests/func/test_import.py::test_pull_imported_stage_from_subrepos[files0-True]\", \"tests/func/test_import.py::test_pull_imported_stage\", \"tests/func/test_import.py::test_import_pipeline_tracked_outs\", \"tests/func/test_import.py::test_import_cached_file\", \"tests/func/test_import.py::test_import_with_no_exec\", \"tests/func/test_import.py::test_pull_import_no_download\", \"tests/func/test_import.py::test_import_git_file[True]\"]"},"PASS_TO_FAIL":{"kind":"string","value":"[]"},"FAIL_TO_PASS":{"kind":"string","value":"[\"tests/func/test_import.py::test_pull_imported_directory_stage[dir/]\"]"},"FAIL_TO_FAIL":{"kind":"string","value":"[]"},"install":{"kind":"string","value":"{\"install\": [\"uv pip install -e .\", \"pre-commit install\"], \"pre_install\": [], \"python\": \"3.12\", \"pip_packages\": [\"adlfs==2024.4.1\", \"aiobotocore==2.13.0\", \"aiohttp==3.9.5\", \"aiohttp-retry==2.8.3\", \"aioitertools==0.11.0\", \"aiooss2==0.2.10\", \"aiosignal==1.3.1\", \"aliyun-python-sdk-core==2.15.1\", \"aliyun-python-sdk-kms==2.16.3\", \"amqp==5.2.0\", \"annotated-types==0.7.0\", \"antlr4-python3-runtime==4.9.3\", \"anyio==4.4.0\", \"appdirs==1.4.4\", \"argcomplete==3.3.0\", \"asyncssh==2.14.2\", \"atpublic==4.1.0\", \"attrs==23.2.0\", \"azure-core==1.30.1\", \"azure-datalake-store==0.0.53\", \"azure-identity==1.16.0\", \"azure-storage-blob==12.20.0\", \"bcrypt==4.1.3\", \"beautifulsoup4==4.12.3\", \"billiard==4.2.0\", \"boto3==1.34.106\", \"botocore==1.34.106\", \"cachetools==5.3.3\", \"celery==5.4.0\", \"certifi==2024.6.2\", \"cffi==1.16.0\", \"cfgv==3.4.0\", \"charset-normalizer==3.3.2\", \"click==8.1.7\", \"click-didyoumean==0.3.1\", \"click-plugins==1.1.1\", \"click-repl==0.3.0\", \"colorama==0.4.6\", \"configobj==5.0.8\", \"coverage==7.5.3\", \"crcmod==1.7\", \"cryptography==42.0.7\", \"decorator==5.1.1\", \"dictdiffer==0.9.0\", \"diskcache==5.6.3\", \"distlib==0.3.8\", \"distro==1.9.0\", \"dpath==2.1.6\", \"dulwich==0.22.1\", \"dvc-azure==3.1.0\", \"dvc-data==3.15.1\", \"dvc-gdrive==3.0.1\", \"dvc-gs==3.0.1\", \"dvc-hdfs==3.0.0\", \"dvc-http==2.32.0\", \"dvc-objects==5.1.0\", \"dvc-oss==3.0.0\", \"dvc-render==1.0.2\", \"dvc-s3==3.2.0\", \"dvc-ssh==4.1.1\", \"dvc-studio-client==0.20.0\", \"dvc-task==0.4.0\", \"dvc-webdav==3.0.0\", \"dvc-webhdfs==3.1.0\", \"entrypoints==0.4\", \"execnet==2.1.1\", \"filelock==3.14.0\", \"flatten-dict==0.4.2\", \"flufl-lock==7.1.1\", \"frozenlist==1.4.1\", \"fsspec==2024.5.0\", \"funcy==2.0\", \"gcsfs==2024.5.0\", \"gitdb==4.0.11\", \"gitpython==3.1.43\", \"google-api-core==2.19.0\", \"google-api-python-client==2.131.0\", \"google-auth==2.29.0\", \"google-auth-httplib2==0.2.0\", \"google-auth-oauthlib==1.2.0\", \"google-cloud-core==2.4.1\", \"google-cloud-storage==2.16.0\", \"google-crc32c==1.5.0\", \"google-resumable-media==2.7.0\", \"googleapis-common-protos==1.63.1\", \"grandalf==0.8\", \"greenlet==3.0.3\", \"gto==1.7.1\", \"h11==0.14.0\", \"httpcore==1.0.5\", \"httplib2==0.22.0\", \"httpx==0.27.0\", \"hydra-core==1.3.2\", \"identify==2.5.36\", \"idna==3.7\", \"importlib-metadata==7.1.0\", \"iniconfig==2.0.0\", \"isodate==0.6.1\", \"iterative-telemetry==0.0.8\", \"jmespath==0.10.0\", \"knack==0.11.0\", \"kombu==5.3.7\", \"markdown-it-py==3.0.0\", \"mdurl==0.1.2\", \"msal==1.28.0\", \"msal-extensions==1.1.0\", \"multidict==6.0.5\", \"mypy==1.10.0\", \"mypy-extensions==1.0.0\", \"networkx==3.3\", \"nodeenv==1.9.0\", \"numpy==1.26.4\", \"oauth2client==4.1.3\", \"oauthlib==3.2.2\", \"omegaconf==2.3.0\", \"orjson==3.10.3\", \"oss2==2.18.1\", \"ossfs==2023.12.0\", \"packaging==24.0\", \"pandas==2.2.2\", \"pandas-stubs==2.2.2.240603\", \"pathspec==0.12.1\", \"platformdirs==3.11.0\", \"pluggy==1.5.0\", \"portalocker==2.8.2\", \"pre-commit==3.7.1\", \"prompt-toolkit==3.0.45\", \"proto-plus==1.23.0\", \"protobuf==4.25.3\", \"psutil==5.9.8\", \"py-cpuinfo==9.0.0\", \"pyarrow==16.1.0\", \"pyasn1==0.6.0\", \"pyasn1-modules==0.4.0\", \"pycparser==2.22\", \"pycryptodome==3.20.0\", \"pydantic==2.7.3\", \"pydantic-core==2.18.4\", \"pydot==2.0.0\", \"pydrive2==1.19.0\", \"pygal==3.0.4\", \"pygaljs==1.0.2\", \"pygit2==1.15.0\", \"pygments==2.18.0\", \"pygtrie==2.5.0\", \"pyjwt==2.8.0\", \"pyopenssl==24.1.0\", \"pyparsing==3.1.2\", \"pytest==8.2.1\", \"pytest-benchmark==4.0.0\", \"pytest-cov==5.0.0\", \"pytest-docker==3.1.1\", \"pytest-mock==3.14.0\", \"pytest-rerunfailures==14.0\", \"pytest-test-utils==0.1.0\", \"pytest-timeout==2.3.1\", \"pytest-xdist==3.6.1\", \"python-dateutil==2.9.0.post0\", \"pytz==2024.1\", \"pyyaml==6.0.1\", \"requests==2.32.3\", \"requests-oauthlib==2.0.0\", \"rich==13.7.1\", \"rsa==4.9\", \"ruamel-yaml==0.18.6\", \"ruamel-yaml-clib==0.2.8\", \"s3fs==2024.5.0\", \"s3transfer==0.10.1\", \"scmrepo==3.3.5\", \"semver==3.0.2\", \"setuptools==70.0.0\", \"shellingham==1.5.4\", \"shortuuid==1.0.13\", \"shtab==1.7.1\", \"six==1.16.0\", \"smmap==5.0.1\", \"sniffio==1.3.1\", \"soupsieve==2.5\", \"sqlalchemy==2.0.30\", \"sqltrie==0.11.0\", \"sshfs==2024.4.1\", \"tabulate==0.9.0\", \"tomlkit==0.12.5\", \"tqdm==4.66.4\", \"typer==0.12.3\", \"types-colorama==0.4.15.20240311\", \"types-psutil==5.9.5.20240516\", \"types-pyinstaller==6.6.0.20240426\", \"types-pytz==2024.1.0.20240417\", \"types-requests==2.32.0.20240602\", \"types-setuptools==70.0.0.20240524\", \"types-tabulate==0.9.0.20240106\", \"types-toml==0.10.8.20240310\", \"types-tqdm==4.66.0.20240417\", \"typing-extensions==4.12.1\", \"tzdata==2024.1\", \"uritemplate==4.1.1\", \"urllib3==2.2.1\", \"vine==5.1.0\", \"virtualenv==20.26.2\", \"voluptuous==0.14.2\", \"wcwidth==0.2.13\", \"webdav4==0.9.8\", \"wheel==0.44.0\", \"wrapt==1.16.0\", \"yarl==1.9.4\", \"zc-lockfile==3.0.post1\", \"zipp==3.19.1\"]}"},"test_framework":{"kind":"string","value":"pytest --tb=no -rA -p no:cacheprovider"},"test_commands":{"kind":"null"},"version":{"kind":"null"},"environment_setup_commit":{"kind":"null"},"docker_image_root":{"kind":"string","value":"swa-bench:sw.eval"}}},{"rowIdx":382,"cells":{"repo":{"kind":"string","value":"iterative/dvc"},"instance_id":{"kind":"string","value":"iterative__dvc-10441"},"base_commit":{"kind":"string","value":"83ec952da139853cdc8532ce6b7758d6e990e531"},"patch":{"kind":"string","value":"diff --git a/dvc/repo/fetch.py b/dvc/repo/fetch.py\nindex 05f92921d0..047a45f9c9 100644\n--- a/dvc/repo/fetch.py\n+++ b/dvc/repo/fetch.py\n@@ -2,6 +2,7 @@\n \n from dvc.exceptions import DownloadError\n from dvc.log import logger\n+from dvc.stage.cache import RunCacheNotSupported\n from dvc.ui import ui\n from dvc_data.index import DataIndex, FileStorage\n \n@@ -136,6 +137,8 @@ def fetch( # noqa: PLR0913\n try:\n if run_cache:\n self.stage_cache.pull(remote)\n+ except RunCacheNotSupported as e:\n+ logger.debug(\"failed to pull run cache: %s\", e)\n except DownloadError as exc:\n failed_count += exc.amount\n \ndiff --git a/dvc/repo/push.py b/dvc/repo/push.py\nindex 202827c836..acf31573ce 100644\n--- a/dvc/repo/push.py\n+++ b/dvc/repo/push.py\n@@ -1,10 +1,14 @@\n from contextlib import suppress\n \n from dvc.exceptions import InvalidArgumentError, UploadError\n+from dvc.log import logger\n+from dvc.stage.cache import RunCacheNotSupported\n from dvc.ui import ui\n \n from . import locked\n \n+logger = logger.getChild(__name__)\n+\n \n def _rebuild(idx, path, fs, cb):\n from dvc_data.index import DataIndex, DataIndexEntry, Meta\n@@ -95,8 +99,11 @@ def push( # noqa: PLR0913\n \"Multiple rev push is unsupported for cloud versioned remotes\"\n )\n \n- used_run_cache = self.stage_cache.push(remote) if run_cache else []\n- transferred_count += len(used_run_cache)\n+ try:\n+ used_run_cache = self.stage_cache.push(remote) if run_cache else []\n+ transferred_count += len(used_run_cache)\n+ except RunCacheNotSupported as e:\n+ logger.debug(\"failed to push run cache: %s\", e)\n \n if isinstance(targets, str):\n targets = [targets]\n"},"test_patch":{"kind":"string","value":"diff --git a/tests/func/test_run_cache.py b/tests/func/test_run_cache.py\nindex a8669e88bd..495e64c838 100644\n--- a/tests/func/test_run_cache.py\n+++ b/tests/func/test_run_cache.py\n@@ -1,3 +1,4 @@\n+import logging\n import os\n \n import pytest\n@@ -231,13 +232,15 @@ def test_restore_pull(tmp_dir, dvc, run_copy, mocker, local_remote):\n assert (tmp_dir / LOCK_FILE).exists()\n \n \n-def test_push_pull_unsupported(tmp_dir, dvc, mocker, run_copy):\n+def test_push_pull_unsupported(tmp_dir, dvc, mocker, run_copy, local_remote, caplog):\n tmp_dir.gen(\"foo\", \"foo\")\n run_copy(\"foo\", \"bar\", name=\"copy-foo-bar\")\n mocker.patch.object(\n dvc.cloud, \"get_remote_odb\", side_effect=RunCacheNotSupported(\"foo\")\n )\n- with pytest.raises(RunCacheNotSupported):\n+ with caplog.at_level(logging.DEBUG):\n dvc.push(run_cache=True)\n- with pytest.raises(RunCacheNotSupported):\n+ assert \"failed to push run cache\" in caplog.text\n+ with caplog.at_level(logging.DEBUG):\n dvc.pull(run_cache=True)\n+ assert \"failed to pull run cache\" in caplog.text\n"},"problem_statement":{"kind":"string","value":"Latest release of DVC breaks object versioned configs\n# Bug Report\r\n\r\n\r\n\r\n## Description\r\n\r\nThe latest release of DVC v3.51.0 breaks workflows where data is stored with `version_aware = true` on a remote bucket.\r\nIt seems to be due to this PR which is included in the latest release:\r\nhttps://github.com/iterative/dvc/pull/10433\r\n\r\nHere is a CI run from a week ago with version v3.50.3 of dvc, which succeeds: \r\nhttps://github.com/SkafteNicki/example_mlops/actions/runs/9112178019/job/25050892637\r\n\r\nHere is a CI run from today with version v3.51.0 of dvc, which fails with error:\r\n```\r\nERROR: failed to pull data from the cloud - config file error: 'fetch --run-cache' is unsupported for cloud versioned remotes: config file error: 'fetch --run-cache' is unsupported for cloud versioned remotes\r\n```\r\nhttps://github.com/SkafteNicki/example_mlops/actions/runs/9222033174/job/25372344887\r\n\r\nNothing has changed regarding the data, config of dvc etc. only the version being used by the CI.\r\n\r\nBy changing `dvc pull` to `dvc pull --no-run-cache` fixes the issue:\r\nhttps://github.com/SkafteNicki/example_mlops/actions/runs/9222304205/job/25373194648\r\n\r\n### Reproduce\r\n\r\n\r\n\r\n\r\n\r\n### Expected\r\n\r\n\r\n\r\nI have already found the solution for this problem, however I would not have expected such a breaking change to happen in a minor release of DVC. I would recommend the maintainers to add to the documentation that `--no-run-cache` argument needs to be added when `version_aware=true` in dvc config (alternatively, this could maybe be auto-detected from the config and automatically set?)\r\n\r\nOn a sidenote: it seems all reference in the documentation to setting a remote storage to version aware is gone?\r\nThe relevant page for this information: https://dvc.org/doc/user-guide/data-management/cloud-versioning#cloud-versioning does not really contain how to do it:\r\n```bash\r\ndvc remote modify remote_storage version_aware true\r\n```\r\n\r\n### Environment information\r\n\r\n\r\n\r\n**Output of `dvc doctor`:**\r\n\r\n```console\r\n$ dvc doctor\r\n```\r\n\r\n**Additional Information (if any):**\r\n\r\n\r\n\n"},"hints_text":{"kind":"string","value":"Seems DVC builds are also broken here https://github.com/iterative/dvc-s3-repo "},"created_at":{"kind":"string","value":"2024-05-26T20:10:13Z"},"merged_at":{"kind":"string","value":"2024-05-27T08:52:44Z"},"PASS_TO_PASS":{"kind":"string","value":"[\"tests/func/test_run_cache.py::test_outs_no_cache_deactivate_run_cache[metrics_no_cache-True]\", \"tests/func/test_run_cache.py::test_newest_entry_is_loaded_for_non_deterministic_stage\", \"tests/func/test_run_cache.py::test_memory_for_multiple_runs_of_same_stage\", \"tests/func/test_run_cache.py::test_outs_no_cache_deactivate_run_cache[outs_no_cache-False]\", \"tests/func/test_run_cache.py::test_do_not_save_on_no_exec_and_dry\", \"tests/func/test_run_cache.py::test_memory_runs_of_multiple_stages\", \"tests/func/test_run_cache.py::test_push_pull\", \"tests/func/test_run_cache.py::test_outs_no_cache_deactivate_run_cache[plots_no_cache-True]\", \"tests/func/test_run_cache.py::test_restore\", \"tests/func/test_run_cache.py::test_save\"]"},"PASS_TO_FAIL":{"kind":"string","value":"[]"},"FAIL_TO_PASS":{"kind":"string","value":"[\"tests/func/test_run_cache.py::test_push_pull_unsupported\", \"tests/func/test_run_cache.py::test_restore_pull\"]"},"FAIL_TO_FAIL":{"kind":"string","value":"[]"},"install":{"kind":"string","value":"{\"install\": [\"uv pip install -e .\", \"pre-commit install\"], \"pre_install\": [], \"python\": \"3.12\", \"pip_packages\": [\"adlfs==2024.4.1\", \"aiobotocore==2.13.0\", \"aiohttp==3.9.5\", \"aiohttp-retry==2.8.3\", \"aioitertools==0.11.0\", \"aiooss2==0.2.10\", \"aiosignal==1.3.1\", \"aliyun-python-sdk-core==2.15.1\", \"aliyun-python-sdk-kms==2.16.3\", \"amqp==5.2.0\", \"annotated-types==0.7.0\", \"antlr4-python3-runtime==4.9.3\", \"anyio==4.4.0\", \"appdirs==1.4.4\", \"argcomplete==3.3.0\", \"asyncssh==2.14.2\", \"atpublic==4.1.0\", \"attrs==23.2.0\", \"azure-core==1.30.1\", \"azure-datalake-store==0.0.53\", \"azure-identity==1.16.0\", \"azure-storage-blob==12.20.0\", \"bcrypt==4.1.3\", \"beautifulsoup4==4.12.3\", \"billiard==4.2.0\", \"boto3==1.34.106\", \"botocore==1.34.106\", \"cachetools==5.3.3\", \"celery==5.4.0\", \"certifi==2024.6.2\", \"cffi==1.16.0\", \"cfgv==3.4.0\", \"charset-normalizer==3.3.2\", \"click==8.1.7\", \"click-didyoumean==0.3.1\", \"click-plugins==1.1.1\", \"click-repl==0.3.0\", \"colorama==0.4.6\", \"configobj==5.0.8\", \"coverage==7.5.3\", \"crcmod==1.7\", \"cryptography==42.0.7\", \"decorator==5.1.1\", \"dictdiffer==0.9.0\", \"diskcache==5.6.3\", \"distlib==0.3.8\", \"distro==1.9.0\", \"dpath==2.1.6\", \"dulwich==0.22.1\", \"dvc-azure==3.1.0\", \"dvc-data==3.15.1\", \"dvc-gdrive==3.0.1\", \"dvc-gs==3.0.1\", \"dvc-hdfs==3.0.0\", \"dvc-http==2.32.0\", \"dvc-objects==5.1.0\", \"dvc-oss==3.0.0\", \"dvc-render==1.0.2\", \"dvc-s3==3.2.0\", \"dvc-ssh==4.1.1\", \"dvc-studio-client==0.20.0\", \"dvc-task==0.4.0\", \"dvc-webdav==3.0.0\", \"dvc-webhdfs==3.1.0\", \"entrypoints==0.4\", \"execnet==2.1.1\", \"filelock==3.14.0\", \"flatten-dict==0.4.2\", \"flufl-lock==7.1.1\", \"frozenlist==1.4.1\", \"fsspec==2024.5.0\", \"funcy==2.0\", \"gcsfs==2024.5.0\", \"gitdb==4.0.11\", \"gitpython==3.1.43\", \"google-api-core==2.19.0\", \"google-api-python-client==2.131.0\", \"google-auth==2.29.0\", \"google-auth-httplib2==0.2.0\", \"google-auth-oauthlib==1.2.0\", \"google-cloud-core==2.4.1\", \"google-cloud-storage==2.16.0\", \"google-crc32c==1.5.0\", \"google-resumable-media==2.7.0\", \"googleapis-common-protos==1.63.1\", \"grandalf==0.8\", \"greenlet==3.0.3\", \"gto==1.7.1\", \"h11==0.14.0\", \"httpcore==1.0.5\", \"httplib2==0.22.0\", \"httpx==0.27.0\", \"hydra-core==1.3.2\", \"identify==2.5.36\", \"idna==3.7\", \"importlib-metadata==7.1.0\", \"iniconfig==2.0.0\", \"isodate==0.6.1\", \"iterative-telemetry==0.0.8\", \"jmespath==0.10.0\", \"knack==0.11.0\", \"kombu==5.3.7\", \"markdown-it-py==3.0.0\", \"mdurl==0.1.2\", \"msal==1.28.0\", \"msal-extensions==1.1.0\", \"multidict==6.0.5\", \"mypy==1.10.0\", \"mypy-extensions==1.0.0\", \"networkx==3.3\", \"nodeenv==1.9.0\", \"numpy==1.26.4\", \"oauth2client==4.1.3\", \"oauthlib==3.2.2\", \"omegaconf==2.3.0\", \"orjson==3.10.3\", \"oss2==2.18.1\", \"ossfs==2023.12.0\", \"packaging==24.0\", \"pandas==2.2.2\", \"pandas-stubs==2.2.2.240603\", \"pathspec==0.12.1\", \"platformdirs==3.11.0\", \"pluggy==1.5.0\", \"portalocker==2.8.2\", \"pre-commit==3.7.1\", \"prompt-toolkit==3.0.45\", \"proto-plus==1.23.0\", \"protobuf==4.25.3\", \"psutil==5.9.8\", \"py-cpuinfo==9.0.0\", \"pyarrow==16.1.0\", \"pyasn1==0.6.0\", \"pyasn1-modules==0.4.0\", \"pycparser==2.22\", \"pycryptodome==3.20.0\", \"pydantic==2.7.3\", \"pydantic-core==2.18.4\", \"pydot==2.0.0\", \"pydrive2==1.19.0\", \"pygal==3.0.4\", \"pygaljs==1.0.2\", \"pygit2==1.15.0\", \"pygments==2.18.0\", \"pygtrie==2.5.0\", \"pyjwt==2.8.0\", \"pyopenssl==24.1.0\", \"pyparsing==3.1.2\", \"pytest==8.2.1\", \"pytest-benchmark==4.0.0\", \"pytest-cov==5.0.0\", \"pytest-docker==3.1.1\", \"pytest-mock==3.14.0\", \"pytest-rerunfailures==14.0\", \"pytest-test-utils==0.1.0\", \"pytest-timeout==2.3.1\", \"pytest-xdist==3.6.1\", \"python-dateutil==2.9.0.post0\", \"pytz==2024.1\", \"pyyaml==6.0.1\", \"requests==2.32.3\", \"requests-oauthlib==2.0.0\", \"rich==13.7.1\", \"rsa==4.9\", \"ruamel-yaml==0.18.6\", \"ruamel-yaml-clib==0.2.8\", \"s3fs==2024.5.0\", \"s3transfer==0.10.1\", \"scmrepo==3.3.5\", \"semver==3.0.2\", \"setuptools==75.1.0\", \"shellingham==1.5.4\", \"shortuuid==1.0.13\", \"shtab==1.7.1\", \"six==1.16.0\", \"smmap==5.0.1\", \"sniffio==1.3.1\", \"soupsieve==2.5\", \"sqlalchemy==2.0.30\", \"sqltrie==0.11.0\", \"sshfs==2024.4.1\", \"tabulate==0.9.0\", \"tomlkit==0.12.5\", \"tqdm==4.66.4\", \"typer==0.12.3\", \"types-colorama==0.4.15.20240311\", \"types-psutil==5.9.5.20240516\", \"types-pyinstaller==6.6.0.20240426\", \"types-pytz==2024.1.0.20240417\", \"types-requests==2.32.0.20240602\", \"types-setuptools==70.0.0.20240524\", \"types-tabulate==0.9.0.20240106\", \"types-toml==0.10.8.20240310\", \"types-tqdm==4.66.0.20240417\", \"typing-extensions==4.12.1\", \"tzdata==2024.1\", \"uritemplate==4.1.1\", \"urllib3==2.2.1\", \"vine==5.1.0\", \"virtualenv==20.26.2\", \"voluptuous==0.14.2\", \"wcwidth==0.2.13\", \"webdav4==0.9.8\", \"wheel==0.44.0\", \"wrapt==1.16.0\", \"yarl==1.9.4\", \"zc-lockfile==3.0.post1\", \"zipp==3.19.1\"]}"},"test_framework":{"kind":"string","value":"pytest --tb=no -rA -p no:cacheprovider"},"test_commands":{"kind":"null"},"version":{"kind":"null"},"environment_setup_commit":{"kind":"null"},"docker_image_root":{"kind":"string","value":"swa-bench:sw.eval"}}},{"rowIdx":383,"cells":{"repo":{"kind":"string","value":"iterative/dvc"},"instance_id":{"kind":"string","value":"iterative__dvc-10435"},"base_commit":{"kind":"string","value":"2e0b024efe6d7564df3d4ec2f3f9e715be0c0bab"},"patch":{"kind":"string","value":"diff --git a/dvc/commands/repro.py b/dvc/commands/repro.py\nindex fb085a1fe3..bbcb132e90 100644\n--- a/dvc/commands/repro.py\n+++ b/dvc/commands/repro.py\n@@ -117,10 +117,7 @@ def add_arguments(repro_parser):\n \"--pull\",\n action=\"store_true\",\n default=False,\n- help=(\n- \"Try automatically pulling missing cache for outputs restored \"\n- \"from the run-cache.\"\n- ),\n+ help=\"Try automatically pulling missing data.\",\n )\n repro_parser.add_argument(\n \"--allow-missing\",\ndiff --git a/dvc/stage/__init__.py b/dvc/stage/__init__.py\nindex b9deed4646..58c24646a9 100644\n--- a/dvc/stage/__init__.py\n+++ b/dvc/stage/__init__.py\n@@ -339,7 +339,7 @@ def changed_outs(self, allow_missing: bool = False) -> bool:\n for out in self.outs:\n status = out.status()\n if status:\n- if allow_missing and status[str(out)] == \"not in cache\":\n+ if allow_missing and status[str(out)] in [\"not in cache\", \"deleted\"]:\n continue\n logger.debug(\n \"Output '%s' of %s changed because it is '%s'.\",\n@@ -418,17 +418,28 @@ def transfer(\n \n @rwlocked(read=[\"deps\"], write=[\"outs\"])\n def reproduce(self, interactive=False, **kwargs) -> Optional[\"Stage\"]:\n- if not (\n- kwargs.get(\"force\", False)\n- or self.changed(\n- kwargs.get(\"allow_missing\", False), kwargs.pop(\"upstream\", None)\n- )\n- ):\n+ force = kwargs.get(\"force\", False)\n+ allow_missing = kwargs.get(\"allow_missing\", False)\n+ pull = kwargs.get(\"pull\", False)\n+ upstream = kwargs.pop(\"upstream\", None)\n+ if force:\n+ pass\n+ # Skip stages with missing data if otherwise unchanged\n+ elif not self.changed(allow_missing, upstream):\n if not isinstance(self, PipelineStage) and self.is_data_source:\n logger.info(\"'%s' didn't change, skipping\", self.addressing)\n else:\n logger.info(\"Stage '%s' didn't change, skipping\", self.addressing)\n return None\n+ # Pull stages with missing data if otherwise unchanged\n+ elif not self.changed(True, upstream) and pull:\n+ try:\n+ logger.info(\"Pulling data for %s\", self)\n+ self.repo.pull(self.addressing, jobs=kwargs.get(\"jobs\", None))\n+ self.checkout()\n+ return None\n+ except CheckoutError:\n+ logger.info(\"Unable to pull data for %s\", self)\n \n msg = f\"Going to reproduce {self}. Are you sure you want to continue?\"\n if interactive and not prompt.confirm(msg):\n@@ -597,16 +608,10 @@ def run(\n if (self.cmd or self.is_import) and not self.frozen and not dry:\n self.remove_outs(ignore_remove=False, force=False)\n \n- if (\n- self.is_import and (not self.frozen or kwargs.get(\"pull\"))\n- ) or self.is_partial_import:\n+ if (self.is_import and not self.frozen) or self.is_partial_import:\n self._sync_import(dry, force, kwargs.get(\"jobs\", None), no_download)\n elif not self.frozen and self.cmd:\n self._run_stage(dry, force, **kwargs)\n- elif kwargs.get(\"pull\"):\n- logger.info(\"Pulling data for %s\", self)\n- self.repo.pull(self.addressing, jobs=kwargs.get(\"jobs\", None))\n- self.checkout()\n elif not dry:\n args = (\"outputs\", \"frozen \") if self.frozen else (\"data sources\", \"\")\n logger.info(\"Verifying %s in %s%s\", *args, self)\n"},"test_patch":{"kind":"string","value":"diff --git a/tests/func/repro/test_repro_allow_missing.py b/tests/func/repro/test_repro_allow_missing.py\nindex e69b3764e4..bcbcd30774 100644\n--- a/tests/func/repro/test_repro_allow_missing.py\n+++ b/tests/func/repro/test_repro_allow_missing.py\n@@ -55,3 +55,16 @@ def test_repro_allow_missing_upstream_stage_modified(\n ret = dvc.reproduce(pull=True, allow_missing=True)\n # create-foo is skipped ; copy-foo pulls modified dep\n assert len(ret) == 1\n+\n+\n+def test_repro_allow_missing_cached(tmp_dir, dvc):\n+ tmp_dir.gen(\"fixed\", \"fixed\")\n+ dvc.stage.add(name=\"create-foo\", cmd=\"echo foo > foo\", deps=[\"fixed\"], outs=[\"foo\"])\n+ dvc.stage.add(name=\"copy-foo\", cmd=\"cp foo bar\", deps=[\"foo\"], outs=[\"bar\"])\n+ dvc.reproduce()\n+\n+ remove(\"foo\")\n+\n+ ret = dvc.reproduce(allow_missing=True)\n+ # both stages are skipped\n+ assert not ret\ndiff --git a/tests/func/repro/test_repro_pull.py b/tests/func/repro/test_repro_pull.py\nindex d300445378..4665913ce4 100644\n--- a/tests/func/repro/test_repro_pull.py\n+++ b/tests/func/repro/test_repro_pull.py\n@@ -1,5 +1,7 @@\n import os\n \n+import pytest\n+\n from dvc.stage.cache import RunCacheNotSupported\n from dvc.utils.fs import remove\n \n@@ -49,11 +51,14 @@ def test_repro_skip_pull_if_no_run_cache_is_passed(tmp_dir, dvc, mocker, local_r\n (foo,) = tmp_dir.dvc_gen(\"foo\", \"foo\")\n \n dvc.push()\n- spy_pull = mocker.spy(dvc.stage_cache, \"pull\")\n dvc.stage.add(name=\"copy-foo\", cmd=\"cp foo bar\", deps=[\"foo\"], outs=[\"bar\"])\n+\n+ assert dvc.reproduce(pull=True)\n+\n remove(\"foo\")\n remove(foo.outs[0].cache_path)\n-\n+ remove(\"dvc.lock\")\n+ spy_pull = mocker.spy(dvc.stage_cache, \"pull\")\n assert dvc.reproduce(pull=True, run_cache=False)\n assert not spy_pull.called\n \n@@ -68,3 +73,46 @@ def test_repro_skip_pull_if_single_item_is_passed(tmp_dir, dvc, mocker, local_re\n remove(foo.outs[0].cache_path)\n \n assert dvc.reproduce(pull=True, single_item=True)\n+\n+\n+def test_repro_pulls_persisted_output(tmp_dir, dvc, mocker, local_remote):\n+ tmp_dir.dvc_gen(\"foo\", \"foo\")\n+\n+ dvc.push()\n+\n+ dvc.stage.add(name=\"copy-foo\", cmd=\"cp foo bar\", deps=[\"foo\"], outs_persist=[\"bar\"])\n+ dvc.reproduce()\n+ remove(\"bar\")\n+\n+ # stage is skipped\n+ assert not dvc.reproduce(pull=True)\n+\n+\n+@pytest.mark.parametrize(\"allow_missing\", [True, False])\n+def test_repro_pulls_allow_missing(tmp_dir, dvc, mocker, local_remote, allow_missing):\n+ tmp_dir.dvc_gen(\"foo\", \"foo\")\n+\n+ dvc.push()\n+\n+ dvc.stage.add(name=\"copy-foo\", cmd=\"cp foo bar\", deps=[\"foo\"], outs=[\"bar\"])\n+ dvc.reproduce()\n+ remove(\"foo\")\n+\n+ # stage is skipped\n+ assert not dvc.reproduce(pull=True, allow_missing=allow_missing)\n+ # data only pulled if allow_missing is false\n+ assert (tmp_dir / \"foo\").exists() != allow_missing\n+\n+\n+def test_repro_pull_fails(tmp_dir, dvc, mocker, local_remote):\n+ tmp_dir.dvc_gen(\"foo\", \"foo\")\n+\n+ dvc.stage.add(\n+ name=\"concat-foo\", cmd=\"cat foo foo > bar\", deps=[\"foo\"], outs=[\"bar\"]\n+ )\n+ stages = dvc.reproduce()\n+ remove(\"bar\")\n+ remove(stages[0].outs[0].cache_path)\n+\n+ # stage is run\n+ assert dvc.reproduce(pull=True)\n"},"problem_statement":{"kind":"string","value":"`dvc repro --pull`: invalidates cache\n# Bug Report\r\n\r\n## `repro`: `dvc repro --pull` invalidates cache. doing `dvc pull` and then `dvc repro` works.\r\n\r\n\r\n## Description\r\n\r\nWhen I use `dvc repro --pull` on my dvc pipelines, it invalidates cache for certain stages and runs them again.\r\nHowever, if we do `dvc pull` and then do `dvc repro` it respects the cache and skips the stages. This is the behaviour I expect for `dvc repro --pull` as well.\r\n\r\nAlso for some reason the hash key of the stage outputs keeps changing for every run as well.\r\n\r\n### Reproduce\r\n\r\n\r\n\r\n\r\n\r\n1. Delete all dvc files in directory.\r\n2. `dvc repro --pull`\r\n\r\n### Expected\r\n\r\n\r\n\r\n`dvc repro --pull` must behave the same way as if we do `dvc pull` and then `dvc repro`.\r\n\r\n### Environment information\r\n\r\n\r\n\r\n**Output of `dvc doctor`:**\r\n\r\n```console\r\n$ dvc doctor\r\n\r\nDVC version: 3.49.0 (pip)\r\n-------------------------\r\nPlatform: Python 3.11.3 on Linux-6.5.0-1017-azure-x86_64-with-glibc2.35\r\nSubprojects:\r\n dvc_data = 3.15.1\r\n dvc_objects = 5.1.0\r\n dvc_render = 1.0.2\r\n dvc_task = 0.4.0\r\n scmrepo = 3.3.1\r\nSupports:\r\n azure (adlfs = 2024.4.0, knack = 0.11.0, azure-identity = 1.12.0),\r\n http (aiohttp = 3.9.4, aiohttp-retry = 2.8.3),\r\n https (aiohttp = 3.9.4, aiohttp-retry = 2.8.3)\r\nConfig:\r\n Global: /home/user/.config/dvc\r\n System: /etc/xdg/dvc\r\nCache types: hardlink, symlink\r\nCache directory: ext4 on /dev/mapper/data_vg-lv_data\r\nCaches: local\r\nRemotes: azure\r\nWorkspace directory: ext4 on /dev/mapper/data_vg-lv_data\r\nRepo: dvc, git\r\nRepo.site_cache_dir: /var/tmp/dvc/repo/cc226011e8332423634ca4bb8822ef4b\r\n```\r\n\r\n**Additional Information (if any):**\r\n\r\n\r\n\r\n`dvc repro --pull data/dvc.yaml -v`: [repro_pull_verbose.log](https://github.com/iterative/dvc/files/15192664/repro_pull_verbose.log)\r\n\n"},"hints_text":{"kind":"string","value":"Are you able to provide a reproducible example? I'm not able to reproduce with https://github.com/iterative/example-get-started:\r\n\r\n```bash\r\n$ dvc repro --pull\r\nWARNING: Failed to pull run cache: run-cache is not supported for http filesystem: https://remote.dvc.org/get-started\r\nImporting 'get-started/data.xml (https://github.com/iterative/dataset-registry)' -> 'data/data.xml'\r\n\r\nStage 'prepare' is cached - skipping run, checking out outputs\r\n\r\nStage 'featurize' is cached - skipping run, checking out outputs\r\n\r\nStage 'train' is cached - skipping run, checking out outputs\r\n\r\nStage 'evaluate' is cached - skipping run, checking out outputs\r\nUse `dvc push` to send your updates to remote storage.\r\n```\nI forgot to upload the `dvc.yaml` file used\r\n\r\n```yaml\r\nvars:\r\n - BLOB_URL: \"\"\r\n - data-version.toml\r\nstages:\r\n download_full_parquet:\r\n desc: Download the exported parquet files\r\n params:\r\n - data/data-version.toml:\r\n - DATA_DIR\r\n cmd: >2\r\n