Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set up list for classifying files without moving them -- for gather-info #891

Closed
wants to merge 1 commit into from

Conversation

masinter
Copy link
Member

No description provided.

@masinter
Copy link
Member Author

I've been looking for a way of marking files for sorting out the ones we want to promote, to keep, to move to some other repo, to include in the "everything" masterscope database vs those that are trash etc. The current setup (with lists of files that ere 'OK' per directory (OKLIBRARY OKSOURCES OKLISPUSERS) wasn't good enough.

There is another PR to make the FULLER.DATABASE and include it in the release (and the dribble files since they're small) .

@masinter masinter requested a review from rmkaplan August 25, 2022 16:53
@masinter
Copy link
Member Author

https://github.com/Interlisp/medley/issues?q=is%3Aopen+is%3Aissue+label%3Acleanup shows we've started with issue #7 and a Google Sheets spread sheet but we haven't made a lot of progress.
Is there some other way to sort things out that will work with our setup of github and repos?
Moving files out of the medley repo (as we did with test online notecards but not internal cltl2 and clos), moving things to 'obsolete'?

@rmkaplan
Copy link
Contributor

rmkaplan commented Sep 4, 2022

GITFNS indicates that the following files are newer in origin/master than in this PR:

VTCHAT
COMPAREDIRECTORIES
GITFNS

So, if this is merged, will those files move backwards?

Copy link
Contributor

@rmkaplan rmkaplan left a comment

Choose a reason for hiding this comment

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

I looked at just the 3 files that github says have changed, not all the other files that GITFNS is reporting.

Github reports a conflict with MEDLEY-UTILS, and GITFNS shows a current (origin/master) version than the one that is in the github compare (4-Aug instead of 17-Jul). So there is some unscrambling needed. My understanding is that in MEDLEY-UTILS you are just changing the way you register which files should be included in the gather-info.

The changes to LOADUP-FULL and LOADUP-LISP look good.

@masinter
Copy link
Member Author

masinter commented Sep 4, 2022

I'm not sure what GITFNS is doing. If you look at what GitHub reports:

image

this PR affects 6 files. There are conflicts with MEDLEY-UTILS that I will have to resolve before the merge will go through.
nothing about VTCHAT COMPAREDIRECTORIES or GITFNS

@masinter
Copy link
Member Author

masinter commented Sep 5, 2022

I'm not sure how to avoid introducing this kind of conflict when trying to "isolate" changes that can be approved and merged independently -- not sure how it happened.

Once the PR is approved by a reviewer, resolving the conflict manually is pretty simple if it's just a matter of pulling the conflicting file from one branch to another.

It should be possible to resolve the conflict ahead of approval..

@nbriggs
Copy link
Contributor

nbriggs commented Sep 6, 2022

Looking at the MEDLEY-UTILS most recently checked into origin/master:

% git diff 431d80fb3cd1a6f6a92b00b7d37eaed3326bd948..origin/master -- internal/MEDLEY-UTILS
diff --git a/internal/MEDLEY-UTILS b/internal/MEDLEY-UTILS
index 0e8988d7..0ed86233 100644
--- a/internal/MEDLEY-UTILS
+++ b/internal/MEDLEY-UTILS
@@ -1,25 +1,17 @@
 (DEFINE-FILE-INFO ^^PACKAGE "INTERLISP" ^^READTABLE "XCL" ^^BASE 10)
 
-(FILECREATED "17-Jul-2022 12:44:56" |{DSK}<home>larry>medley>internal>MEDLEY-UTILS.;9| 15959  
+(FILECREATED " 4-Aug-2022 09:50:04" |{DSK}<home>larry>medley>internal>MEDLEY-UTILS.;2| 10212  
 
-      :CHANGES-TO (FNS HCFILES)
+      :CHANGES-TO (VARS MEDLEY-UTILSCOMS)
 
-      :PREVIOUS-DATE "16-Jul-2022 22:08:34" |{DSK}<home>larry>medley>internal>MEDLEY-UTILS.;8|)
+      :PREVIOUS-DATE "17-Jul-2022 12:44:56" |{DSK}<home>larry>medley>internal>MEDLEY-UTILS.;1|)
 

It's really not that useful to have a versioned file system at all if the version numbers are going to jump about all over the place even within a single user's files...

@nbriggs
Copy link
Contributor

nbriggs commented Sep 6, 2022

Regarding the files in different states --

git merge-base origin/gather-info origin/master
431d80fb3cd1a6f6a92b00b7d37eaed3326bd948

so the following files changed on the master branch between the time that the gather-info branch branched from master and now:

git diff --name-only 431d80fb3cd1a6f6a92b00b7d37eaed3326bd948 origin/master
internal/COMPTEST
internal/COMPTEST.LCOM
internal/DO-TEST
internal/DO-TEST.LCOM
internal/DO-TEST.TEDIT
internal/DO-TEST.pdf
internal/DTEST.TEDIT
internal/MACROTEST
internal/MACROTEST.LCOM
internal/MACROTESTAUX
internal/MACROTESTAUX.LCOM
internal/MEDLEY-UTILS
internal/MEDLEY-UTILS.LCOM
internal/envos/DSKTEST
internal/envos/DSKTEST.TEDIT
internal/envos/FLOPPYTESTER
internal/envos/RS232TEST
internal/test/filepos/BIG.XCCS
internal/test/filepos/BIGGREEK.UTF8
internal/test/filepos/BIGGREEK.XCCS
internal/test/filepos/FIVE
internal/test/filepos/FPTESTS
internal/test/filepos/GREEK.UTF8
internal/test/filepos/GREEK.XCCS
internal/test/filepos/README
internal/test/filepos/SHORT.XCCS
internal/test/filepos/TFP
internal/test/filepos/TFP.LCOM
internal/test/filepos/ZEROONETWO.XCCS
internal/test/printing/BADFILES.TEST
internal/test/printing/BADFILES.TXT
internal/test/unpackfilename/TESTUPF
internal/test/unpackfilename/TESTUPF.LCOM
internal/test/unpackfilename/TESTUPF.TXT
library/VTCHAT
library/VTCHAT.LCOM
lispusers/COMPAREDIRECTORIES
lispusers/COMPAREDIRECTORIES.LCOM
lispusers/GITFNS
lispusers/GITFNS.LCOM
lispusers/IDLEDEMO
lispusers/PICK
lispusers/PICK.LCOM
lispusers/PICK.TEDIT
sources/INSPECT
sources/INSPECT.LCOM
sources/SEDIT-TOPLEVEL
sources/SEDIT-TOPLEVEL.DFASL

and the following files changed on the gather-info branch (and will be merged back into the master branch when the PR is acted on) --

% git diff --name-only 431d80fb3cd1a6f6a92b00b7d37eaed3326bd948..origin/gather-info
internal/MEDLEY-UTILS
internal/MEDLEY-UTILS.LCOM
sources/LOADUP-FULL
sources/LOADUP-FULL.LCOM
sources/LOADUP-LISP
sources/LOADUP-LISP.LCOM

Since there are files that are common between the two lists, MEDLEY-UTILS and its LCOM, the GITFNS comparison should be squawking about a conflict. Only the files that are listed as being different between the merge-base and the tip of the gather-info branch are going to be merged when the PR is completed.

@masinter
Copy link
Member Author

masinter commented Sep 6, 2022

I redid this PR with the conflict resolved PR #927, so I will close this one.

@masinter masinter closed this Sep 6, 2022
@nbriggs
Copy link
Contributor

nbriggs commented Sep 6, 2022

You could have used the instructions that github points you at for resolving merge conflicts using the git command line.

@masinter
Copy link
Member Author

masinter commented Sep 6, 2022

what i've been doing to run in a system with all the PR's applied is git checkout master and then I make a branch (named some variant of all-prs-merged git checkout -b all-prs-merged
and then for each PR listed in gh pr list doing
git merge name-of-pr-branch
when they're all merged, i do a loadup all and loadup db
this gives me a test environment that I then run in.
i was going from oldest to newest (from the bottom of the pr list) But maybe I should go from the top with the idea that they're not approved for so long for a reason, to avoid the situation where an old question will hang up testing newer PRs.

@masinter masinter deleted the gather-info branch September 23, 2022 04:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants