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

Implement a generic method to mark an element as deprecated. #1425

Merged
merged 2 commits into from
Jan 30, 2020

Conversation

allevin
Copy link
Contributor

@allevin allevin commented Jan 29, 2020

Implement a generic method to mark an element as deprecated.

This is a similar technique adding the .ignore into the element directory to have it ignored during autogen/configure.

we just add a hidden file called .deprecated and the configure script will detect it and mark the the element as YES - DEPRECATED in the configuration summary.

The real code changes happen on line 179 (my editor decided to clean up the extra whitespace...)

First element to be marked is scheduler

@gvoskuilen can you review before I release to the autotester?

@allevin allevin added the AT: WIP Mark PR as a Work in Progress (No Autotesting Performed) label Jan 29, 2020
@allevin
Copy link
Contributor Author

allevin commented Jan 29, 2020

@gvoskuilen if we wanted to get more fancy, we could put in a string in the .deprecated file to be displayed in the configuration summary that would tell what release of SST that the element would be removed... Thoughts?

configure.ac Outdated
echo "Configuration Information (Make will build the following elements):"
echo ""

for e in $dist_element_libraries
do
echo "$active_element_libraries" | grep "$e" >/dev/null
if test $? -eq 0 ; then
msg="YES"
if test -e "./src/sst/elements/$e/.depreciated" ; then
msg="YES - DEPRECIATED"
Copy link
Contributor

@gvoskuilen gvoskuilen Jan 29, 2020

Choose a reason for hiding this comment

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

deprecated spelling needs fixing - everywhere including the .deprecated file name

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You know I thought that the spelling looked funny.

@gvoskuilen
Copy link
Contributor

@allevin I think it's fine as is, if we come across an instance where we decide to leave something deprecated through multiple major releases we could add that.

@allevin
Copy link
Contributor Author

allevin commented Jan 30, 2020

@gvoskuilen ok, I fixed the spelling, thanks for the catch! 👍

@allevin allevin changed the title Implement a generic method to mark an element as depreciated. Implement a generic method to mark an element as deprecated. Jan 30, 2020
@allevin allevin removed the AT: WIP Mark PR as a Work in Progress (No Autotesting Performed) label Jan 30, 2020
@sst-autotester
Copy link
Contributor

Status Flag 'Pre-Test Inspection' - Auto Inspected - Inspection Is Not Necessary for this Pull Request.

@sst-autotester
Copy link
Contributor

Status Flag 'Pull Request AutoTester' - Testing Jenkins Projects:

Pull Request Auto Testing STARTING (click to expand)

Build Information

Test Name: SST__AutotestGen2_Devel_Branch_Pull_Request_sst-test_sst-elements_withsstcore

  • Build Num: 1418
  • Status: STARTED

Build Information

Test Name: SST__AutotestGen2_Devel_Branch_Pull_Request_MacOSX_sst-elements_withsstcore

  • Build Num: 1209
  • Status: STARTED

Using Repos:

Repo: ELEMENTS (allevin/sst-elements)
  • Branch: depreciate_scheduler
  • SHA: 1a2a66e
  • Mode: TEST_REPO
Repo: SQE (sstsimulator/sst-sqe)
  • Branch: devel
  • SHA: 602826015f266cb672d0b43fa72d7a7cd537dfe5
  • Mode: SUPPORT_REPO
Repo: MACRO (sstsimulator/sst-macro)
  • Branch: devel
  • SHA: d5139c0e2e6c0055bd2ef6dc9ac565a6ec1fd4d9
  • Mode: SUPPORT_REPO
Repo: CORE (sstsimulator/sst-core)
  • Branch: devel
  • SHA: 77ac01af860d395100f72717e4a2683954284ab7
  • Mode: SUPPORT_REPO

Pull Request Author: allevin

@sst-autotester
Copy link
Contributor

Status Flag 'Pull Request AutoTester' - Jenkins Testing: all Jobs PASSED

Pull Request Auto Testing has PASSED (click to expand)

Build Information

Test Name: SST__AutotestGen2_Devel_Branch_Pull_Request_sst-test_sst-elements_withsstcore

  • Build Num: 1418
  • Status: PASSED

Build Information

Test Name: SST__AutotestGen2_Devel_Branch_Pull_Request_MacOSX_sst-elements_withsstcore

  • Build Num: 1209
  • Status: PASSED

@sst-autotester
Copy link
Contributor

Status Flag 'Pre-Merge Inspection' - Auto Inspected - Inspection Is Not Necessary for this Pull Request.

@sst-autotester
Copy link
Contributor

Status Flag 'Pull Request AutoTester' - Pull Request will be Automerged

@sst-autotester sst-autotester merged commit 720d71f into sstsimulator:devel Jan 30, 2020
@sst-autotester
Copy link
Contributor

Merge on Pull Request# 1425: IS A SUCCESS - Pull Request successfully merged

@allevin allevin deleted the depreciate_scheduler branch February 13, 2020 21:16
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