-
-
Notifications
You must be signed in to change notification settings - Fork 186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Track feedstock changes in .github
#1821
base: main
Are you sure you want to change the base?
Conversation
That's discouraged right? What are the use-cases? |
Is it? News to me We have a global set of GitHub templates that doesn't always make sense. We let people customize these when needed (for example) |
@@ -12,6 +12,7 @@ | |||
# Don't ignore any files/folders recursively in the following folders | |||
!/recipe/** | |||
!/.ci_support/** | |||
!/.github/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
!/.github/** | |
!/.github/*.md |
Ah, I forgot about the templates. |
Aren't we using conda-smithy/conda_smithy/configure_feedstock.py Lines 1785 to 1790 in 9b727a8
If I change |
No worries Re-rendering also makes changes to This came up recently when redeploying the webservice GHA Maybe we want to capture that a different way |
I don't understand. Can you send me some commands on how you expect things to break? |
There was an error while rerendering https://github.com/conda-forge/libuv-feedstock that @jakirkham tracked down (details in core chat) to
I believe this might actually be a fallout from #1413, because before that PR we did commit things into |
Wrong analysis. Restarted the heroku server and rerendering is back to normal. |
OK, great if the restart fixed it. Can you describe what caused this, and are you sure it won't happen again (with higher frequency than heroku was failing before)? From my POV, #1413 has left feedstocks with stuff in |
There are a couple issues that are related:
In trying to address 1, we discovered 2. This PR (in part) is related to 2, which remains an issue Please take a look at the GHA webservice update log for more details |
2 is fixed in conda-forge/webservices-dispatch-action#41
Can you come up with a workflow with some bash commands that doesn't work? (except for the convoluted test that the webservices-dispatch-action is doing) |
This comes down to a matter of taste. You seem to think |
Can you please tell me a workflow of a feedstock maintainer that needs to use |
Looking at the relevant templates
It seems Though IIUC If we don't think that change would occur, perhaps it makes sense to hard-code |
Same question to you @jakirkham. |
Hmm...think I've answered that above. Please let me know if you have any thoughts on the question posed at the end |
Since both of you don't like to give a reproducer, here's one I wrote for you.
According to your analysis, is this supposed to fail? |
No, because the file is already checked in, so changes are tracked. But if we ever add a new template, or rename one of the existing ones, or some maintainer commits a deletion of
You're arguing against a strawman. My point is not about a reproducer, but about the cost-benefit we get from ignoring files we have checked in, and all the care necessary that no corner case will ever break due to this. But again: it's not important to me, you win. Footnotes |
Thanks you for sending examples. I appreciate it.
For eg following works
Do you mind opening an issue? I don't want to break your workflow, so I want to support that. |
There was a typo that I fixed in #1822 that should hopefully fix the GHA webservice updates |
I may have not expressed myself well. I meant that newly rerendered content would not be readded after a deletion has been committed (unless using So here's a more complete example:
|
Feedstocks can customize the content of
.github
. However ifgit
ignores these changes, it could result in these files being dropped. So exclude them from.gitignore
to ensuregit
still tracks them