-
Notifications
You must be signed in to change notification settings - Fork 41
Brief: Add empty rules for pre-clean/post-clean #229
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
Conversation
Summary: The previous fix to add all these new rules did not check for the case where no pre-clean/post-clean was defined in a project. as such, running `janet-pm clean` without defining `pre-clean` in the project.janet resulted in an error. The original tests all passed since all pre/post steps were defined. This fix adds default empty rules for each and then tests this in the test-bundle project that doesn't define pre-clean/post-clean.
I'm looking into why the build now fails. One problem I see is that even though a custom spork is installed in the random tmp directory, when the So I need to figure out how to spawn |
I'm closing in on another patch. When calling I'm trying a fix that puts the hard-coded sys path inside the |
…ot used when run as main. This change adds a copy of the hardcoded paths inside a main in a binscript, if main exists
This latest change adds code to fix an existing janet-pm problem. and for some reason, the GitHub actions kicked off at an older SHA. It checked out https://github.com/janet-lang/spork/actions/runs/16996173637/job/48187304665
|
@rwtolbert You’re not going crazy. The issue seems to be due to the GitHub workflow using spork/.github/workflows/test.yml Lines 3 to 7 in 6f189ab
Based on this SO answer, this causes the test to run by checking out the commit of the target (i.e. the current HEAD of the master branch) rather than a merge commit that would become the current HEAD of the master branch. The change was added in 05eb014, apparently as a way to get the workflow to run without needing a maintainer to approve it (see #178). If I’m understanding things correctly, this means that pull request checks are currently meaningless because all it’s doing is running the current HEAD of master. As for the issue that #178 identified, I don’t have commit privileges for Spork so I’m not sure what its settings are but in the repos I run, I have the security setting in Settings > Actions set to ‘Require approval for first time contributors’. If that’s similarly set with Spork and it’s considered overly limiting, @bakpakin could set it to ‘Require approval for first-time contributors who are new to GitHub’. My view is that requiring approval for first-time contributors is a reasonable default and not an excessive amount of friction. In other words, I would revert the change in 05eb014. |
@pyrmont Thanks for the follow-up. I feel bad since my first PR looked good (and wasn't) and the merge has broken |
I don't think you need to feel bad. I assume the reason the checks that are causing a problem now because they are running against the current HEAD is the same reason that the checks in that PR didn't catch the error. Just a mistake in the workflow file! |
Very true. and I appreciate the sentiment. But it drives me crazy to have broken code - especially when I've done the breaking. And from what I can tell, there is no way I can get this to work from my end. |
and perhaps this is currently moot, since the tests don't run on Windows. I just got access to my Windows machine and I'm working through the |
I tried ef0f842 on a Linux box. It looks like
With With
|
Thanks for all the effort here, @rwtolbert . In the meantime, I am reverting the last merge to get builds working again. I haven't taken a closer look but may find some time this weekend to see if I can help. There does seem to be some CI weirdness going on, which should separately be investigated and improved. |
Did some testing on Linux for b257381 (has had two "reverts") and what I think is the equivalent bcad982. Good news: Other news:
|
thanks for all the eyes on this. If the CI/CD changes happen, I'll try again. |
@rwtolbert The CI change was rolled back in b257381 earlier. It should be safe to submit PRs again (although maintainer approval might be required at first depending on the setting). |
Submitted again in #230 after updates to CI/CD. |
Summary: The previous fix to add all these new rules did not check for the case where no pre-clean/post-clean was defined in a project.
as such, running
janet-pm clean
without definingpre-clean
in the project.janet resulted in an error. The original tests all passed since all pre/post steps were defined.This fix adds default empty rules
for each and then tests this in the test-bundle project that doesn't define pre-clean/post-clean.