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

test typos #12738

Closed
spaette opened this issue Aug 9, 2024 · 9 comments · Fixed by #12754
Closed

test typos #12738

spaette opened this issue Aug 9, 2024 · 9 comments · Fixed by #12754

Comments

@spaette
Copy link

spaette commented Aug 9, 2024

@luzpaz

You've made previous commits pertaining to typo fixes

So perhaps you could make an assessment if these warrant fixes and whether to modify copyrighted files.

I'm disinclined to open pulls in the Organization's repos owing to contact information being searchable in .mailmap files.

grep output

$ grep -nr Completet ompi/test
ompi/test/simple/intercomm1.c:16:    printf("%d Completet\n", rank);
$ grep -nr declered ompi/test
ompi/test/carto/carto-file:24:# (Reserve word)          (declered   (declered        (declered
$ grep -nr exepcted ompi/test
ompi/test/simple/concurrent_spawn.c:61:            printf("ERROR: child did not receive exepcted argv!\n");
$ grep -nr firiing ompi/test
ompi/test/simple/hello_show_help.c:32:               "sleep statements to ensure that the timer is firiing properly\nin the HNP and "
$ grep -nr opertations ompi/test
ompi/test/monitoring/check_monitoring.c:506:       MPI_COMM_WORLD with RMA opertations */
$ grep -nr sentinal ompi/test
ompi/test/util/opal_error.c:53:        1,                 /* sentinal */
$ 
@luzpaz
Copy link
Contributor

luzpaz commented Aug 9, 2024

@spaette let me see if I understand, is the code you are referencing 3rd party upstream code?

@spaette
Copy link
Author

spaette commented Aug 9, 2024

From the grep output these specific repo files have copyrights.

The first listed file you modified in a commit merged on Aug 15, 2022.

If content from this ticket is of some use then maybe I'll look at some other subdirectories.

$ sed 11q ompi/test/monitoring/check_monitoring.c
/*
 * Copyright (c) 2016-2017 Inria.  All rights reserved.
 * Copyright (c) 2017      The University of Tennessee and The University
 *                         of Tennessee Research Foundation.  All rights
 *                         reserved.
 * $COPYRIGHT$
 *
 * Additional copyrights may follow
 *
 * $HEADER$
 */
$ sed 19q ompi/test/class/opal_pointer_array.c
/* -*- Mode: C; c-basic-offset:4 ; -*- */
/*
 * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
 *                         University Research and Technology
 *                         Corporation.  All rights reserved.
 * Copyright (c) 2004-2017 The University of Tennessee and The University
 *                         of Tennessee Research Foundation.  All rights
 *                         reserved.
 * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
 *                         University of Stuttgart.  All rights reserved.
 * Copyright (c) 2004-2005 The Regents of the University of California.
 *                         All rights reserved.
 * Copyright (c) 2010      Cisco Systems, Inc.  All rights reserved.
 * $COPYRIGHT$
 *
 * Additional copyrights may follow
 *
 * $HEADER$
 */
$ sed 17q ompi/test/util/opal_error.c
/*
 * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
 *                         University Research and Technology
 *                         Corporation.  All rights reserved.
 * Copyright (c) 2004-2005 The University of Tennessee and The University
 *                         of Tennessee Research Foundation.  All rights
 *                         reserved.
 * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
 *                         University of Stuttgart.  All rights reserved.
 * Copyright (c) 2004-2005 The Regents of the University of California.
 *                         All rights reserved.
 * $COPYRIGHT$
 *
 * Additional copyrights may follow
 *
 * $HEADER$
 */
$ 

@luzpaz
Copy link
Contributor

luzpaz commented Aug 9, 2024

Are these upstream projects hosted on github perchance ? I'd submit typo changes to them in that case. If not, feel free to revert any changes made to their source.

@spaette
Copy link
Author

spaette commented Aug 9, 2024

Are these upstream projects hosted on github perchance ?

cf: LICENCE

The text "organizations who have edited" seems to indicate this repository is the upstream project. That being said perhaps it would be appropriate for a Member to review any PR modifying the cited files. As earlier indicated I won't be submitting any PRs, as I don't want my contact information accessible via search engines' indexing of .mailmap files.

$ sed 6q ompi/LICENSE
Most files in this release are marked with the copyrights of the
organizations who have edited them.  The copyrights below are in no
particular order and generally reflect members of the Open MPI core
team who have contributed code to this release.  The copyrights for
code used under license from other parties are included in the
corresponding files.
$ 

@jsquyres
Copy link
Member

@luzpaz All of these files are in the Open MPI repository. It's a little confusing because they're in a subdirectory named ompi/, but they're all here in open-mpi/ompi.

@rhc54
Copy link
Contributor

rhc54 commented Aug 10, 2024

Just to clarify a bit. The "signed-off-by" requirement has a very long legal history in the open source software world. As a result, you'll find virtually every project requiring it. Basically, it protects the project from people who make a contribution that violates their employer's intellectual property agreement - i.e., the employer owns the person's work product and hasn't approved "giving it away" to the open source project.

Even students are generally covered by such agreements - colleges pretty much universally require they be signed, and even high schools have implemented them (at least, around here they have). Those agreements specify what IP you own and can contribute where/when you like, and what IP the employer owns and requires you gain permission prior to giving away - you need to know what it says.

It also protects the contributor by (hopefully) reminding them to check for an IP agreement and make sure they understand it prior to submitting a contribution. People often forget they signed such a thing - and employers can (and do) hold the employee responsible for "lost IP value".

The copyright is a separate matter. It allows the employer (or contributor, if they own their own IP) to flag that they have the right to use the modified code regardless of what anyone else does with it. If you and/or your employer don't care, then don't modify the copyright text. It has no value/impact for the project.

We do have bot "do not search" flags on things like mailmap, but of course those rely on the bot paying attention to them. What some of us do is simply create a new email (e.g. "[email protected]") specifically for contributing to open source projects. We can then just ignore that email should someone harvest it. Just don't use it for your GitHub account!

@spaette
Copy link
Author

spaette commented Aug 10, 2024

recursive grep for readd removed from earlier shell output and moved here

$ grep -nr readd ompi/test
ompi/test/class/opal_pointer_array.c:161:                test_failure("Add/Remove: failure during the readd ");
$ 

GNU sed commands (via script)

$ cat typos.sh
#!/bin/sh

sed -i "s/Completet/Complete/g" ompi/test/simple/intercomm1.c
sed -i "s/declered/declared/g" ompi/test/carto/carto-file
sed -i "s/exepcted/expected/g" ompi/test/simple/concurrent_spawn.c
sed -i "s/firiing/firing/g" ompi/test/simple/hello_show_help.c
sed -i "s/opertations/operations/g" ompi/test/monitoring/check_monitoring.c
sed -i "s/sentinal/sentinel/g" ompi/test/util/opal_error.c
$

@jsquyres
Copy link
Member

I filed #12749 for the fixes on main, and have cherry picked them to v5.0.x in #12754

@jsquyres jsquyres linked a pull request Aug 13, 2024 that will close this issue
@spaette
Copy link
Author

spaette commented Aug 14, 2024

dealing with dumped strings

@bosilca
committed Apr 18, 2017

I presume readd was the committer's intention.

$ sed -n '158,165p' ompi/test/class/opal_pointer_array.c
    for (i = 0; i < 4; i++) {
        if (!opal_pointer_array_add(array, (void *) (uintptr_t)(i + 1))) {
            if (i != 2) {
                test_failure("Add/Remove: failure during the readd ");
                break;
            }
        }
    }
$ 

for my own records

These files affected by this ticket's associated commits have had their copyrights updated.

test/monitoring/check_monitoring.c
test/util/opal_error.c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants